移植u-boot-2010.03 --- 使用tftp下載並運行內核

移植u-boot-2010.03 --- 使用tftp下載並運行內核

在解決了u-boot網卡驅動後,其實就能夠經過tftp下載內核,並運行內核服務器

1,查看系統參數spa

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,前文有提到過,這裏再也不說明方法。code

2,下載內核server

保證主機上的tftp服務器已經正常啓動。而且在tftp根目錄下有編譯好的uImage鏡像文件blog

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,運行內核ip

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).......省略.......
相關文章
相關標籤/搜索