欢迎来到天天文库
浏览记录
ID:6130883
大小:37.50 KB
页数:9页
时间:2018-01-04
《加载内核及文件系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、法一、1、首先,用u-boot/tools/mkimage这个工具为你的内核加上u-boot引导所需要的文件头,具体做法如下:[root@localhosttftpboot]#mkimage-n'linux-2.6.14'-Aarm-Olinux-Tkernel-Cnone-a0x30008000-e0x30008000-dzImagezImage.imgImageName: linux-2.6.14Created: FriJan1217:14:502007ImageType: ARMLinuxKernelImage(uncompressed)DataSize: 1
2、262504Bytes=1232.91kB=1.20MBLoadAddress:0x30008000EntryPoint: 0x30008000这里解释一下参数的意义: -A==>setarchitectureto'arch' -O==>setoperatingsystemto'os' -T==>setimagetypeto'type' -C==>setcompressiontype'comp' -a==>setloadaddressto'addr'(hex) -e==>setentrypointto'ep'(hex) -n==>s
3、etimagenameto'name' -d==>useimagedatafrom'datafile' -x==>setXIP(executeinplace) 2、下载内核U-Boot1.1.3(Jan122007-16:16:36)U-Bootcode:33F80000->33F9BAC0 BSS:->33F9FBACRAMConfiguration:Bank#0:3000000064MBNorFlash:512kBNandFlash: 64MBIn: serialOut: serialErr: serialHitanykeytostopautoboot:
4、0sbc2410=>tftp0x31000000zImage.img TFTPfromserver192.168.1.115;ourIPaddressis192.168.1.128Filename'zImage.img'.Loadaddress:0x31000000Loading:################################################################# ################################################################# ########
5、######################################################### ####################################################doneBytestransferred=1263324(1346dchex)3.运行 sbc2410=>bootm0x31000000##Bootingimageat31000000... ImageName: linun-2.6.14 ImageType: ARMLinuxKernelImage(uncompressed) DataSize:
6、1263260Bytes= 1.2MB LoadAddress:30008000 EntryPoint: 30008000 VerifyingChecksum...OKOKStartingkernel...UncompressingLinux.............................................................Linuxversion2.6.14(root@luofuchong)(gccversion3.4.1)#21FriOct2017:206CPU:ARM920Tid(wb)[41129200]revision0(AR
7、Mv4T)Machine:SMDK2410Memorypolicy:ECCdisabled,DatacachewritebackCPUS3C2410A(id0x32410002)S3C2410:core202.800MHz,memory101.400MHz,peripheral50.700MHzS3C2410Clocks,(c)2004SimtecElectronicsCLOCK:Slowmode(1.500MHz),fast,MPLLon,UPLLonUSBControl,(c)2006sbc2410CPU0:D
此文档下载收益归作者所有