分类: 嵌入式
2009-08-07 15:32:14
~/u-boot-
~/u-boot-
$ ./mkimage -A arm -O linux -T kernel -C none -a 30080000 -e 30080000 -n linux-
Image Name: linux-
Created: Sat Nov 29 16:21:35 2008
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1785268 Bytes = 1743.43 kB = 1.70 MB
Load Address: 0x30080000
Entry Point: 0x30080000
[ edukit2410]# help
[ edukit2410]# printenv
bootdelay=3
baudrate=115200
ethaddr=08:00:3e:26:
netmask=255.255.255.0
ipaddr=192.168.2.199
serverip=192.168.2.34
bootargs=console=ttySAC1 root=/dev/mtdblock/3 rootfstype=yaffs
bootcmd=tftp 30800000 uImage
stdin=serial
stdout=serial
stderr=serial
Environment size: 256/65532 bytes
如果要修改参数请使用setenv命令。比如要设置新的ipaddr:
[ edukit2410]# setenv ipaddr 192.168.2.199
[ edukit2410]# saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
[ edukit2410]#
[ edukit2410]# tftp 30800000 uImage
dm9000 i/o: 0x20000000, id: 0x
MAC: 08:00:3e:26:
operating at
TFTP from server 192.168.2.34; our IP address is 192.168.2.199
Filename 'uImage'.
Load address: 0x30800000
Loading: ########################################################################################################## ###############################################################################################################################################################
done
Bytes transferred = 1785332 (1b3df4 hex)
[ edukit2410]# bootm
这样就完成了利用u-boot下载并引导内核。