2009年12月2日 星期三

u-boot setting, kernel loaded from SD card or TFTP

Kernel loader from SD card, uboot setting
nand unlock
nand ecc sw
setenv bootargs console=ttyS3,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 mem=256M init=/init videoout=omap24xxvout omap_vout.video1_numbuffers=4 omap_vout.vid1_static_vrfb_alloc=y ip=192.168.5.10
setenv bootcmd 'mmcinit; fatload mmc 0 0x81c00000 uImage; bootm 0x81c00000'
saveenv

Kernel loaded from TFTP, uboot setting
nand unlock
nand ecc sw
setenv serverip 192.168.5.1
setenv ipaddr 192.168.5.10
setenv netmask 255.255.255.0
setenv bootfile 'uImage'
setenv bootargs console=ttyS3,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 mem=256M init=/init videoout=omap24xxvout omap_vout.video1_numbuffers=4 omap_vout.vid1_static_vrfb_alloc=y ip=192.168.5.10
setenv bootcmd 'tftp 81c00000 uImage;bootm'
saveenv

Print environment parameter
printenv

Boot immediately
boot


沒有留言: