移植u-boot-2010.03 --- 使用tftp下载并运行内核
在解决了u-boot网卡驱动后,其实就可以通过tftp下载内核,并运行内核
1,查看系统参数
WU_SMDK6410 # printenv bootargs=console=ttySAC,115200 bootcmd=nand read 0x50008000 0x100000 0x500000;bootm 0x50008000 bootdelay=10 baudrate=115200 ethaddr=00:40:5c:26:0a:5b ipaddr=192.168.1.123 serverip=192.168.1.127 gatewayip=192.168.1.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial ethact=dm9000
检查地址,保证能连通主机的tftp,前文有提到过,这里不再说明方法。
2,下载内核
保证主机上的tftp服务器已经正常启动。并且在tftp根目录下有编译好的uImage镜像文件
WU_SMDK6410 # tftp uImage dm9000 i/o: 0x18800300, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 00:40:5c:26:0a:5b operating at 100M full duplex mode Using dm9000 device TFTP from server 192.168.1.127; our IP address is 192.168.1.123 Filename 'uImage'. Load address: 0x50000000 Loading: T T ################################################################# ########################################### done Bytes transferred = 1575472 (180a30 hex)
3,运行内核
WU_SMDK6410 # bootm ## Booting kernel from Legacy Image at 50000000 ... Image Name: Linux-3.12.7 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1575408 Bytes = 1.5 MB Load Address: 50008000 Entry Point: 50008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x0 Linux version 3.12.7 (wu@wu-VirtualBox) (gcc version 4.4.3 (ctng-1.6.1) ) #1 Tue Jan 21 17:10:55 CST 2014 CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: OK6410 Memory policy: ECC disabled, Data cache writeback CPU S3C6410 (id 0x36410101)
.......省略.......