移植u-boot-2010.03 --- 使用tftp下载并运行内核
在解决了u-boot网卡驱动后,其实就可以通过tftp下载内核,并运行内核
1,查看系统参数
WU_SMDK6410 # printenvbootargs=console=ttySAC,115200bootcmd=nand read 0x50008000 0x100000 0x500000;bootm 0x50008000bootdelay=10baudrate=115200ethaddr=00:40:5c:26:0a:5bipaddr=192.168.1.123serverip=192.168.1.127gatewayip=192.168.1.1netmask=255.255.255.0stdin=serialstdout=serialstderr=serialethact=dm9000
检查地址,保证能连通主机的tftp,前文有提到过,这里不再说明方法。
2,下载内核
保证主机上的tftp服务器已经正常启动。并且在tftp根目录下有编译好的uImage镜像文件
WU_SMDK6410 # tftp uImagedm9000 i/o: 0x18800300, id: 0x90000a46 DM9000: running in 16 bit modeMAC: 00:40:5c:26:0a:5boperating at 100M full duplex modeUsing dm9000 deviceTFTP from server 192.168.1.127; our IP address is 192.168.1.123Filename 'uImage'.Load address: 0x50000000Loading: T T ################################################################# ###########################################doneBytes 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 ... OKOKStarting kernel ...Uncompressing Linux... done, booting the kernel.Booting Linux on physical CPU 0x0Linux version 3.12.7 (wu@wu-VirtualBox) (gcc version 4.4.3 (ctng-1.6.1) ) #1 Tue Jan 21 17:10:55 CST 2014CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387dCPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cacheMachine: OK6410Memory policy: ECC disabled, Data cache writebackCPU S3C6410 (id 0x36410101) .......省略.......