Update NAND Flash
Update of NAND boot image needs the aid of u-boot. Whether or not NAND Flash has data, the u-boot booted through TF card can be used to update NAND Flash images.
- Preparation
- Format the TF card to FAT or FAT32 file system by “HP USB Disk Storage Format Tool 2.0.6” from directory “03-Tools/” of CD.
- Copy “MLO”, “u-boot.img”, “uImage_xx” and “ubi.img” image files under directory “02-Images\Linux-image\512M_NandFlash\ LCD_4.3” to the TF card from the CD
- Update
- Insert the TF card with the system images into the development board, connect the JP8’s PIN1 and PIN2, power on and boot it. Press any key on the PC keyboard to enter the u-boot according to the following prompts:
U-Boot SPL 2011.09 (Jan 13 2014 - 17:02:44)
Texas Instruments Revision detection unimplemented
Booting from MMC...
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09 (Jan 13 2014 - 17:02:44)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Did not find a recognized configuration, assuming General purpose EVM in Profile 0 with Daughter board
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
* After entering the u-boot command line, input “run updatesys” from the PC keyboard to start automatic updating process.
# run updatesys
NAND erase.chip: device 0 whole chip
Erasing at 0x1ffe0000 -- 100% complete.
OK
reading MLO
38167 bytes read
HW ECC BCH8 Selected
NAND write: device 0 offset 0x0, size 0x9517
38167 bytes written: OK
reading u-boot.img
232892 bytes read
HW ECC BCH8 Selected
NAND write: device 0 offset 0x80000, size 0x38dbc
232892 bytes written: OK
reading uImage
3506488 bytes read
HW ECC BCH8 Selected
NAND write: device 0 offset 0x280000, size 0x358138
3506488 bytes written: OK
reading ubi.img
14942208 bytes read
SW ECC selected
NAND write: device 0 offset 0x780000, size 0xe40000
14942208 bytes written: OK
* After the system updated, the LED D3 on CPU board flashes. Pull out the TF card, connect the JP8’s PIN2 and PIN3, and then re-power the system to boot from NandFlash.