Message ID | 20170316103223.2630-1-ahaslam@baylibre.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
On Thursday 16 March 2017 04:02 PM, Axel Haslam wrote: > Add instructions to write an AIS image to NAND > by using the u-boot nand tools. > > Signed-off-by: Axel Haslam <ahaslam@baylibre.com> > --- > board/davinci/da8xxevm/README.da850 | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 > index 29cb4ec..81b7b58 100644 > --- a/board/davinci/da8xxevm/README.da850 > +++ b/board/davinci/da8xxevm/README.da850 > @@ -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 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
On Friday 17 March 2017 03:50 PM, Sekhar Nori wrote: > 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
Hi Sekhar On Fri, Mar 17, 2017 at 11:26 AM, Sekhar Nori <nsekhar@ti.com> wrote: > On Friday 17 March 2017 03:50 PM, Sekhar Nori wrote: >> 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. > > Thanks, > Sekhar > > >
diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 index 29cb4ec..81b7b58 100644 --- a/board/davinci/da8xxevm/README.da850 +++ b/board/davinci/da8xxevm/README.da850 @@ -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
Add instructions to write an AIS image to NAND by using the u-boot nand tools. Signed-off-by: Axel Haslam <ahaslam@baylibre.com> --- board/davinci/da8xxevm/README.da850 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)