June 2017
Intermediate to advanced
478 pages
13h 14m
English
For NAND flash, you need a driver for the NAND flash controller on your SoC, which you can find in the U-Boot source code in the directory drivers/mtd/nand. You use the nand command to manage the memory using the sub-commands erase, write, and read. This example shows a kernel image being loaded into RAM at 0x82000000 and then placed into flash starting at offset 0x280000:
U-Boot# tftpboot 82000000 uImageU-Boot# nand erase 280000 400000U-Boot# nand write 82000000 280000 $(filesize)
U-Boot can also read files stored in the JFFS2, YAFFS2, and UBIFS filesystems.
Read now
Unlock full access