Hi,
I was able to do SPI-NOR flashing of u-boot, uImage, initramfs & dtd using MFG tool on IMX6DL SABRE. After boot-up I only see the U-Boot prompt and do I need to manually set the arguments for loading kernel ? Please find the cfg.ini file,
[LIST]
name = i.MX6Solo-SABREAUTO-SPI-NOR
Attached the complete putty log.
Thanks,
Pavan
Original Attachment has been moved to: SPI-NOR-Putty.log.zip
Solved! Go to Solution.
Hi Pavan
please look at attached Linux Guide sect.9.3 Run the Image from SPI-NOR.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Pavan
please look at attached Linux Guide sect.9.3 Run the Image from SPI-NOR.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Igor,
Thanks for your reply. I tried the steps mentioned at 9.3 but I'm getting the an error which was expected. From the steps looks like I need to setup TFTP server in my host PC where images are to be copied which I didn't do it and also DHCP server for assigning the IP to SABRE AI board. Let me know if my understanding is correct. If so, please let me know the host side setup for TFTP and DHCP. Please find the serial log below, I connected LVDS display so skipped the HDMI configuration
MX6SOLO SABREAUTO U-Boot > setenv serverip 10.192.225.216
MX6SOLO SABREAUTO U-Boot > setenv loadaddr 0x10800000
MX6SOLO SABREAUTO U-Boot > setenv nfsroot /data/rootfs_home/rootfs_mx6
MX6SOLO SABREAUTO U-Boot > setenv bootargs_base 'setenv bootargs console=ttymxc3, 115200'
MX6SOLO SABREAUTO U-Boot > setenv bootargs_sf 'root=/dev/nfs ip=dhcp nfsroot=${serverip }:${nfsroot},v3,tcp ip=dhcp'
MX6SOLO SABREAUTO U-Boot > setenv bootcmd_nor 'run bootargs_base bootargs_sf;sf probe 1; sf read ${loadaddr} 0x100000 0x400000;bootm'
MX6SOLO SABREAUTO U-Boot > setenv bootcmd 'run bootcmd_nor'
MX6SOLO SABREAUTO U-Boot > run bootcmd
Unknown command 'root=/dev/nfs' - try 'help'
JEDEC ID: 0x20:0x20:0x16
4096 KiB M25P32 - 4MB at 0:1 is now current device
SPI flash read failed
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MX6SOLO SABREAUTO U-Boot >
Regards,
Pavan
Hi Pavan
I think your understanding is correct. Regarding tftp please look at
sect. 5.3 TFTP Host Setup
http://cache.freescale.com/files/dsp/doc/app_note/AN3875.pdf
Best regards
igor
Hello Igor,
I was able to make some progress but getting struck at flashing the U-Boot into Parallel-NOR. I setup the TFTP/NFS and able to download the images to IMX but not flashing. Please find below the serial output,
MX6SOLO SABREAUTO U-Boot > setenv ipaddr 192.168.1.11
MX6SOLO SABREAUTO U-Boot > setenv serverip 192.168.1.10
MX6SOLO SABREAUTO U-Boot > setenv netmask 255.255.0.0
MX6SOLO SABREAUTO U-Boot > setenv loadaddr 0x10800000
MX6SOLO SABREAUTO U-Boot > tftpboot ${loadaddr} u-boot.bin
FEC: Link is Up 796d
Using FEC0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.11
Filename 'u-boot.bin'.
Load address: 0x10800000
Loading: #################################
done
Bytes transferred = 168388 (291c4 hex)
MX6SOLO SABREAUTO U-Boot > erase 8000000 168388
MX6SOLO SABREAUTO U-Boot > cp.b ${loadaddr} 8000000 168388 ---->Here it stays forever. I waited for 10minutes but nothing moved.
Thanks,
Pavan
Hi Pavan
what NOR are trying to write SPI-NOR or parallel ?
Best regards
igor
Hi Igor,
I tried with SPI & WEIM(Parallel) NOR and both have the same problem. I saw in the Quick Start Guide of IMX6dl SABRE AI that it is 32MB 16 bit parallel NOR and 4MB of SPI-NOR, so I decided to make use of parallel NOR to flash u-boot, uImage to it.
PS: I used the prebuilt u-boot-mx6dl-sabreauto-weimnor.bin for parallel NOR flashing
Thanks,
Pavan
Hi Pavan
you can write u-boot also with MFG tool.
Since both flashes are insufficient for rootfs,
it shoudl be located on another media, for example SD.
~igor
Thanks for your reply. Please find the issues that I'm facing currently,
MFG:
1.) I could flash u-boot on SPI-NOR but cannot upgrade the u-boot using MFG as IMX6 is not getting detected as HID any more now
2.) I assume that uImage,rootfs etc cannot be flashed to SPI-NOR due to size limitations and they should reside on SD
TFTP/NFS:
1.) To upgrade the u-boot to custom built one, I'm following TFTP procedure but getting struck at "cp.b ${loadaddr} 8000000 168388" as I mentioned in my previous reply.
SPI-NOR:
> U-Boot on NOR and rest on SD. Is that correct ?
WEIM-NOR:
> U-Boot and uImage on NOR and rest on SD. Is that correct ?
Regards,
Pavan
>1.) I could flash u-boot on SPI-NOR but cannot upgrade the u-boot using MFG as IMX6 is not getting detected as HID any more now
In Uboot IMX6 will not be getting detected as HID. One needs to put i.MX6 in serial downloder mode, then put
new Uboot image to MFG folder (replace old image) and run MFG
2.) I assume that uImage,rootfs etc cannot be flashed to SPI-NOR due to size limitations and they should reside on SD
correct
>SPI-NOR: > U-Boot on NOR and rest on SD. Is that correct ?
correct
>WEIM-NOR: > U-Boot and uImage on NOR and rest on SD. Is that correct ?
correct
regarding flashing WEIM Uboot one can try it with MFG Tool, refer to
Chapter 6 Downloading Images by Using MFGTool
Best regards
igor
Hi Igor,
Thanks for your reply. Do I need to flash dtd and load same like u-boot & uImage ?If so can you let me know the address where I should load it after flashing on temporary address space. I guess this step is missing in the documents.
Thanks,
Pavan
Hello Igor,
Please find the steps that I followed for loading IMX6 DL SABRE AI from WEIM-NOR based on your instructions so far and I have issue at step# 14,
Please let me know if I missed anything to overcome this issue.
Thanks,
Pavan