set serverip 192.168.*.*
set ipaddr 192.168.*.*
protect off all
tftp 0x100000 u-boot.bin
erase 0x34000000 +0x800000
cp.b 0x100000 0x34000000 0x80000
tftp 0x500000 uImage
erase 0x34080000 +0x180000
cp.b 0x500000 0x34080000 0x180000
tftp 0x400000 rootfs
erase 0x34260000 0x347fffff
cp.b 0x400000 0x34260000 0x50000
setenv bootargs 'root=/dev/mtdblock/2 rw rootfstype=jffs2 console=ttyS0,115200 mem=40M mtdparts=phys_mapped_flash:512k(u-boot),1536k(kernel),5760k(fs)'
setenv bootcmd mw 7400000 0 300000\;bootm 0x34080000 saveenv bootargs: 传递给linux内核的命令行参数
bootcmd:自动启动时执行的几条命令
bootargs定义命令行参数,通过bootm命令传递给内核
|
|
来自: audrey_guowei > 《我的图书馆》