[U-Boot] imx7 u-boot nand update from u-boot

Hi,
I'm trying to figure out how it is possible easily update u-boot in nand on custom imx7 board. I can start u-boot using imx_usb tool. I came from ti am33xx world where I simply get u-boot.img from tftp server and store it to beginning of flash (after SPL offset).
According imx7 datasheet for nand boot it is necessary to store FCB + DBBT and other things. It is currently possible only with userspace tool kobs-ng which can save u-boot to nand memory. It is possible to generate such image (with FCB, ...) to be able to update u-boot from u-boot by tftp and some nand write? Or it is enough to just write u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng and it will work? Many thanks for replies.
BR,
marek

On Thu, Aug 4, 2016 at 11:52 AM, Belisko Marek marek.belisko@gmail.com wrote:
Hi,
I'm trying to figure out how it is possible easily update u-boot in nand on custom imx7 board. I can start u-boot using imx_usb tool. I came from ti am33xx world where I simply get u-boot.img from tftp server and store it to beginning of flash (after SPL offset).
According imx7 datasheet for nand boot it is necessary to store FCB + DBBT and other things. It is currently possible only with userspace tool kobs-ng which can save u-boot to nand memory. It is possible to generate such image (with FCB, ...) to be able to update u-boot from u-boot by tftp and some nand write? Or it is enough to just write u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng and it will work? Many thanks for replies.
Try this patch[1] for nand bootupdate look fine for me.
U-Boot> tftp ${loadaddr} SPL U-Boot> nand bootupdate ${loadaddr} ${filesize}
U-Boot> nand erase 0x200000 0x100000 U-Boot> tftp ${loadaddr} u-boot.img U-Boot> nand write ${loadaddr} 0x200000 ${filesize}
[1] https://patchwork.ozlabs.org/patch/637573/
thanks!

Hi Jagan,
On Thu, Sep 29, 2016 at 1:23 PM, Jagan Teki jagannadh.teki@gmail.com wrote:
On Thu, Aug 4, 2016 at 11:52 AM, Belisko Marek marek.belisko@gmail.com wrote:
Hi,
I'm trying to figure out how it is possible easily update u-boot in nand on custom imx7 board. I can start u-boot using imx_usb tool. I came from ti am33xx world where I simply get u-boot.img from tftp server and store it to beginning of flash (after SPL offset).
According imx7 datasheet for nand boot it is necessary to store FCB + DBBT and other things. It is currently possible only with userspace tool kobs-ng which can save u-boot to nand memory. It is possible to generate such image (with FCB, ...) to be able to update u-boot from u-boot by tftp and some nand write? Or it is enough to just write u-boot.imx to offset 0x400 when u-boot was writen before by kobs-ng and it will work? Many thanks for replies.
Try this patch[1] for nand bootupdate look fine for me.
Thanks a lot. I'll look on it. Cheers.
U-Boot> tftp ${loadaddr} SPL U-Boot> nand bootupdate ${loadaddr} ${filesize}
U-Boot> nand erase 0x200000 0x100000 U-Boot> tftp ${loadaddr} u-boot.img U-Boot> nand write ${loadaddr} 0x200000 ${filesize}
[1] https://patchwork.ozlabs.org/patch/637573/
thanks!
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
BR,
marek
participants (2)
-
Belisko Marek
-
Jagan Teki