Tuesday, May 23, 2006

How to write kernel image on NAND???

To write the kernel image on NAND follow the steps below.

The parameters being used here are:
280000: This probably represents the baud-rate.
200000: This represents the size of the kernel image.
After calculating all these parameters follow the commands listed below.

Once the board starts and uboot is executed, the command prompt will appear, execute the commands in the following order:

tftp 0x80000000 uImage_touch_IPv6
nand unlock
nand erase 280000 200000
nand ecc sw
nand write.i 0x80000000 280000 200000
nand read.i 0x80000000 280000 200000; bootm 0x80000000

And here you go...
The kernel is now placed in the NAND Flash and next time when you will start the board the kernel will be loaded automatically...
Enjoy!!!

No comments: