da850: Add instructions to copy AIS image to NAND
PATCH 1/1 da850: Add instructions to copy AIS image to NAND
Add instructions to write an AIS image to NAND
by using the u-boot nand tools.
--- board/davinci/da8xxevm/README.da850 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
board/davinci/da8xxevm/README.da850 +22 -0
@@ -47,6 +47,28 @@ U-Boot > sf erase 0 +320000 U-Boot > tftp u-boot.ais U-Boot > sf write c0700000 0 $filesize +Flashing the images to NAND +=========================== +The AIS image can be written to NAND using the u-boot "nand" +commands. + +Example: + +The OMAPL138_LCDK requires the AIS image to be written to block 1 of +the NAND flash. + + 1 - Find out the block size using "nand info" + 2 - Download the AIS image to memory + 3 - Write the AIS image form memory to the first block + +In the case of the LCDK: + U-Boot > nand info + Erase size 131072 b (0x20000) + U-Boot > tftp u-boot.ais + Load address: 0xc0700000 + Bytes transferred = 477448 (74908 hex) + U-Boot > nand write 0xc0700000 0x20000 0x75000 + Flashing the images to MMC ========================== If the boot pins are set to boot from mmc, the RBL will try to load the
Signature · 1 line
2.9.3
PATCH 1/1 da850: Add instructions to copy AIS image to NAND
Quoted 28 lines · Axel Haslam
Add instructions to write an AIS image to NAND
by using the u-boot nand tools.Signed-off-by Axel Haslam <[email protected]>--- board/davinci/da8xxevm/README.da850 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)board/davinci/da8xxevm/README.da850 +12
-0@@ -47,6 +47,28 @@ U-Boot > sf erase 0 +320000 U-Boot > tftp u-boot.ais U-Boot > sf write c0700000 0 $filesize +Flashing the images to NAND +=========================== +The AIS image can be written to NAND using the u-boot "nand" +commands. + +Example: + +The OMAPL138_LCDK requires the AIS image to be written to block 1 of +the NAND flash. + + 1 - Find out the block size using "nand info" + 2 - Download the AIS image to memory
board/davinci/da8xxevm/README.da850 U-Boot > sf erase 0 +320000 · line 71
Quoted 10 lines
board/davinci/da8xxevm/README.da850 +9
-0+ 3 - Write the AIS image form memory to the first block + +In the case of the LCDK: + U-Boot > nand info + Erase size 131072 b (0x20000) + U-Boot > tftp u-boot.ais + Load address: 0xc0700000 + Bytes transferred = 477448 (74908 hex) + U-Boot > nand write 0xc0700000 0x20000 0x75000
Need to erase nand before this step.
Also, if mtdparts are defined, the steps can be as simple as
U-Boot > nand erase.part NAND.u-boot.ais
U-Boot > tftp u-boot.ais
U-Boot > nand write 0xc0700000 NAND.u-boot.ais
No need to find the erase size or doing manual of filesize to next erase block boundary.
Thanks,
Sekhar
PATCH 1/1 da850: Add instructions to copy AIS image to NAND
Quoted 2 lines · Sekhar Nori
No need to find the erase size or doing manual of filesize to next erase block boundary.
Should have read as:
No need to find nand erase size or doing manual adjustment of downloaded file size to next erase block boundary.
Thanks,
Sekhar
PATCH 1/1 da850: Add instructions to copy AIS image to NAND
Hi Sekhar
Quoted 8 lines · Sekhar Nori
Quoted 2 lines · Sekhar Nori
No need to find the erase size or doing manual of filesize to next erase block boundary.
Should have read as:
No need to find nand erase size or doing manual adjustment of downloaded file size to next erase block boundary.
Ill send v2 adding the case were partitions are defined, and add the erase command to the instructions.
Regards
-Axel.
Quoted 6 lines
Thanks,
Sekhar