现在使用DM365的启动参数设置如下:
For DM365 with 128MB (SLC) NAND Flash
1.内核烧写在0x3a0000处
Download uImage and copy it to NAND partition
tftp 0x80700000 uImage
nand erase 0x3a0000 0x400000
nand write 0x80700000 0x3a0000 0x400000
2.文件系统ramdisk烧写在0x7a0000处
Booting with ramdisk, on each reboot
tftp 0x82000000 ramdisk.gz
nand erase 0x7a0000 0x800000
nand write 0x82000000 0x7a0000 0x800000
设置几个好更改的环境变量:
1从NFS启动的设置如下
Setenv bargs
'mem=64M console=ttyS0,38400n8 ip=192.168.14.209:192.168.14.23:192.168.14.2
54:255.255.255.0:off eth=00:0C:E8:0B:0B:0A root=/dev/nfs rw nfsroot=192.168.14.2
23:/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target '
2从ramdisk启动的设置如下
ramargs=mem=112M console=ttyS0,38400n8 ip=192.168.14.209:192.168.14.23:192.168.1
4.254:255.255.255.0:off eth=00:0C:E8:0B:0B:0A root=/dev/ram0 rw initrd=0x8200000
0,20M
3若要是uboot设置以哪种默认启动,则把上面的环境变量给 bootargs即可
E.g. Setenv bootargs $(ramargs)
这样后 bootargs 就等于 ramargs,即默认以ramdisk启动
bootargs=mem=112M console=ttyS0,38400n8 ip=192.168.14.209:192.168.14.23:192.168.1
4.254:255.255.255.0:off eth=00:0C:E8:0B:0B:0A root=/dev/ram0 rw initrd=0x8200000
0,20M
5设置uboot启动执行的命令bootcmd
bootcmd=nand read 0x82000000 0x7a0000 0x800000;nboot 0x80700000 0 0x3a0000;bootm
0x80700000
即把ramdisk读入内存0x82000000处,把内核加载到内存0x807000000处,然后从此处启动内核。
4设置tftp服务器ip: setenv serverip ' 192.168.14.34'
用户377235 2013-10-24 16:18
用户377235 2013-10-24 16:17
用户304737 2010-10-25 21:53