Changes between Version 30 and Version 31 of CSPFL_RADIX

Show
Ignore:
Author:
hardert (IP: 67.169.210.177)
Timestamp:
11/06/09 13:59:00 (2 weeks ago)
Comment:

Add initial manual flashing instructions -- these still need fixing

Legend:

Unmodified
Added
Removed
Modified
  • CSPFL_RADIX

    v30 v31  
    7979The entire process found in the script described above can also be done manually (by hand on the command line). The instructions below step through the entire procedure and should produce an SD card similar to the script above. Note that you should be very comfortable with the command line environment if you choose to follow these steps. 
    8080 
    81 TODO... 
     81== Formatting the SD card == 
     82The SD card must be formatted to have 2 partitions, the first is a fat partition that is bootable, the second is an ext2/3 partition that will serve as the rootfs for the initial boot. 
     83 
     84== Build the software == 
     85Follow the above guides, man pages, google, whatever you need, to build the above software.  
     86 
     87== Copy to SD == 
     88In the end you will have: x-load.bin.ift (use the signGP tool on x-load.bin), u-boot.bin, uImage, and a rootfs. Put these files onto your SD card partition 1 (the FAT parition) with the following names: mlo, u-boot.bin, uImage. Your rootfs should go onto the second (EXT) parition. Also go to the next section and grab the flashNand.scr, save this to the first parition (FAT) as boot.scr, this will flash your device when it first boots. 
     89 
     90== Boot off SD == 
     91Put your SD card in and hold the little button on the back of the CORE board (if the oswald is in its case, there is a hole on the back to press the button). The button only needs to be pressed the first time when running the nand flash script. 
     92 
     93== Flashing to NAND == 
     94To flash to nand, make sure that you have built all of the required files (x-load.bin.ift [called mlo], u-boot.bin, uImage, and the rootfs). In u-boot use the following commands to set up the NAND: 
     95 
     96Initialize mmc: 
     97 
     98{{{ 
     99mmcinit 
     100}}} 
     101 
     102write x-loader: 
     103 
     104{{{ 
     105fatload mmc 0 0x80300000 MLO 
     106nandecc hw 
     107nand erase 0 80000 
     108nand write.i 0x80300000 0 80000 
     109}}} 
     110 
     111Write u-boot: 
     112 
     113{{{ 
     114fatload mmc 0 0x80300000 u-boot.bin 
     115nandecc sw 
     116nand erase 80000 160000 
     117nand write.i 0x80300000 80000 160000 
     118}}} 
     119 
     120Write the kernel: 
     121 
     122{{{ 
     123fatload mmc 0 0x80300000 uImage 
     124nand erase 280000 400000 
     125nand write.i 0x80300000 280000 400000 
     126}}} 
     127 
     128Clear the rest of the NAND flash to get it ready for the file system: 
     129 
     130{{{ 
     131nand erase 680000 
     132}}} 
     133 
     134Finally, save the environment variables to the NAND: 
     135 
     136{{{ 
     137saveenv 
     138}}} 
     139 
     140Now, boot linux from SD: 
     141 
     142{{{ 
     143run mmcargs 
     144mmcinit 
     145fatload mmc 0 0x80300000 uImage 
     146bootm 0x80300000 
     147}}} 
     148 
     149then in Linux, flash the root file system: 
     150 
     151{{{ 
     152mkdir /media/nand 
     153mount -t jffs2 /dev/mtdblock4 /media/nand 
     154cd /media/nand 
     155tar xvjf /media/mmcblk0p2/rootfs.tar.bz2 
     156cd / 
     157umount /media/nand /media/mmcblk0p1 /media/mmcblk0p2 
     158reboot 
     159}}} 
     160 
     161Now you should be able to boot from nand. 
    82162 
    83163----