pc機(jī)與開發(fā)板之間的掛接資料講解_第1頁
pc機(jī)與開發(fā)板之間的掛接資料講解_第2頁
pc機(jī)與開發(fā)板之間的掛接資料講解_第3頁
pc機(jī)與開發(fā)板之間的掛接資料講解_第4頁
pc機(jī)與開發(fā)板之間的掛接資料講解_第5頁
已閱讀5頁,還剩27頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Good is good, but better carries it.精益求精,善益求善。pc機(jī)與開發(fā)板之間的掛接-PC機(jī)與開發(fā)板之間的掛接一、PC機(jī)掛接開發(fā)板-1.執(zhí)行PC機(jī)linux相關(guān)命令rootlocalhostroot#ifconfigeth015rootlocalhostroot#ifconfigeth0downrootlocalhostroot#ifconfigeth015uprootlocalhostroot#vi/etc/exportsrootlocalhostroot#/etc/init.d/portmaprestart停止portmapper:確定啟動portmappe

2、r:確定rootlocalhostroot#/etc/init.d/nfsrestart關(guān)閉NFSmountd:確定關(guān)閉NFS守護(hù)進(jìn)程:確定ShuttingdownNFSquotas:確定關(guān)閉NFS服務(wù):確定啟動NFS服務(wù):確定StartingNFSquotas:確定啟動NFS守護(hù)進(jìn)程:確定啟動NFSmountd:確定掛接rootlocalhost/#mount-onolock-tnfs15:/home/sinosys/rootfs/mnt/testrootlocalhost/#lsbinbootdevetchomeinitrdliblost+foundmiscmntoptprocrootsb

3、intftpboottmpusrvarrootlocalhost/#cd/tmp/rootlocalhosttmp#lsjd_sockV4orbit-rootsambassh-XXEkhJQ9VMwareTools-7.8.4-126130.tar.gzmakewhatistD5uVJorbit-sinosysssh-XX8WogpKssh-XXfdqEj2vmware-tools-distribU-Boot1.2.0(Aug22009-01:13:33)DRAM:64MBCFG_CMD_NANDNAND:64MBIn:serialOut:serialErr:serialHitanykeyto

4、stopautoboot:0NANDread:device0offset196608,size30408704.30408704bytesread:OK#Bootingimageat31000000.ImageName:Linux-2.6.13Created:2008-11-111:32:07UTCImageType:ARMLinuxKernelImage(uncompressed)DataSize:1311912Bytes=1.3MBLoadAddress:30008000EntryPoint:30008000VerifyingChecksum.OKOKStartingkernel.Unco

5、mpressingLinux.done,bootingthekernel.Linuxversion2.6.13(rootlocalhost.localdomain)(gccversion3.4.1)#4TueNov1109:32:03CST2008CPU:ARM920Tid(wb)41129200revision0(ARMv4T)Machine:SBC2440Memorypolicy:ECCdisabled,DatacachewritebackCPUS3C2440A(id0 x32440001)BUG:mappingfor0 x19000000at0 xd0000000overlapsvmal

6、locspaceS3C2440:core405.000MHz,memory101.250MHz,peripheral50.625MHzS3C2410Clocks,(c)2004SimtecElectronicsCPU0:DVIVTwrite-backcacheCPU0:Icache:16384bytes,associativity64,32bytelines,8setsCPU0:Dcache:16384bytes,associativity64,32bytelines,8setsBuilt1zonelistsKernelcommandline:noinitrdroot=/dev/mtdbloc

7、k2init=/linuxrcconsole=ttySAC0,115200irq:clearingsubpendingstatus00000002PIDhashtableentries:512(order:9,8192bytes)timertcon=00500000,tcnta4ca,tcfg00000200,00000000,usec00001e57Console:colourdummydevice80 x30Dentrycachehashtableentries:16384(order:4,65536bytes)Inode-cachehashtableentries:8192(order:

8、3,32768bytes)Memory:64MB=64MBtotalMemory:61952KBavailable(2134Kcode,566Kdata,92Kinit)Mount-cachehashtableentries:512CPU:Testingwritebuffercoherency:okNET:Registeredprotocolfamily16S3C2440:InitialisingarchitectureS3C2440:IRQSupportS3C2440:ClockSupport,UPLL48.000MHzSCSIsubsysteminitializedusbcore:regi

9、sterednewdriverhubS3C2410DMADriver,(c)2003-2004SimtecElectronicsDMAchannel0atc4800000,irq33DMAchannel1atc4800040,irq34DMAchannel2atc4800080,irq35DMAchannel3atc48000c0,irq36NetWinderFloatingPointEmulatorV0.97(doubleprecision)devfs:2004-01-31RichardGooch(rgoochatnf.csiro.au)devfs:boot_options:0 x1yaff

10、sNov6200818:37:36Installing.InitializingCryptographicAPIS3C2410RTC,(c)2004SimtecElectronicss3c2410-rtcs3c2410-rtc:rtcdisabled,re-enablings3c2410_serial0atMMIO0 x50000000(irq=70)isaS3C2440s3c2410_serial1atMMIO0 x50004000(irq=73)isaS3C2440s3c2410_serial2atMMIO0 x50008000(irq=76)isaS3C2440ioschedulerno

11、opregisteredioscheduleranticipatoryregisteredioschedulerdeadlineregisteredioschedulercfqregisteredRAMDISKdriverinitialized:16RAMdisksof4096Ksize1024blocksizeloop:loaded(max8devices)nbd:registereddeviceatmajor43CirrusLogicCS8900AdriverforLinux(ModifiedforSMDK2410)eth0:CS8900ArevEat0 xd0000300irq=53,n

12、oeeprom,addr:08:0:3E:26:0A:5BS3C24XXNANDDriver,(c)2004SimtecElectronicss3c2440-nand:mappedregistersatc4880000s3c2440-nand:timing:Tacls9ns,Twrph039ns,Twrph19nsNANDdevice:ManufacturerID:0 xec,ChipID:0 x76(SamsungNAND64MiB3,3V8-bit)NAND_ECC_NONEselectedbyboarddriver.Thisisnotrecommended!Scanningdevicef

13、orbadblocksCreating3MTDpartitionsonNAND64MiB3,3V8-bit:0 x00000000-0 x00030000:bootloader0 x00030000-0 x00200000:kernel0 x00200000-0 x00500000:roots3c2410-ohcis3c2410-ohci:S3C24XXOHCIs3c2410-ohcis3c2410-ohci:newUSBbusregistered,assignedbusnumber1s3c2410-ohcis3c2410-ohci:irq42,iomem0 x49000000hub1-0:1

14、.0:USBhubfoundhub1-0:1.0:2portsdetectedInitializingUSBMassStoragedriver.usbcore:registerednewdriverusb-storageUSBMassStoragesupportregistered.usbcore:registerednewdriverusbhiddrivers/usb/input/hid-core.c:v2.01:USBHIDcoredrivermice:PS/2mousedevicecommonforallmicei2c/deventriesdrivers3c2440-i2cs3c2440

15、-i2c:slaveaddress0 x10s3c2440-i2cs3c2440-i2c:busfrequencysetto98KHzs3c2440-i2cs3c2440-i2c:i2c-0:S3CI2CadapterNET:Registeredprotocolfamily2IProutecachehashtableentries:1024(order:0,4096bytes)TCPestablishedhashtableentries:4096(order:3,32768bytes)TCPbindhashtableentries:4096(order:2,16384bytes)TCP:Has

16、htablesconfigured(established4096bind4096)TCPrenoregisteredTCPbicregisteredNET:Registeredprotocolfamily1NET:Registeredprotocolfamily17VFS:Mountedroot(cramfsfilesystem)readonly.Mounteddevfson/devFreeinginitmemory:92Kinitstarted:BusyBoxv1.10.3(2009-06-0911:18:15CST)startingpid210,tty:/etc/init.d/rcS-m

17、ountall-Startingmdev.*SinosysWeb_server2440rootfsLoveLinu!*startingpid214,tty:-/bin/login(none)login:rootPassword:login214:rootloginonconsoleProcessing/etc/profile.Setsearchlibrarypathin/etc/profileSetuserpathin/etc/profileSetPS1in/etc/profileDonerootlocalhost#ifconfigrootlocalhost#ifconfigeth0192.1

18、68.3.ifconfig:badaddress192.168.3rootlocalhost#ifconfigeth0rootlocalhost#ifconfiglorootlocalhost#ifconfigeth0Linkencap:EthernetHWaddr08:00:3E:26:0A:5Binetaddr:Bcast:55Mask:UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:13errors:0dropped:0overruns:0frame:0TXpackets:0errors:0dropped:0overruns:0c

19、arrier:0collisions:0txqueuelen:1000RXbytes:2344(2.2KiB)TXbytes:0(0.0B)Interrupt:53Baseaddress:0 x300loLinkencap:LocalLoopbackinetaddr:Mask:UPLOOPBACKRUNNINGMTU:16436Metric:1RXpackets:0errors:0dropped:0overruns:0frame:0TXpackets:0errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:0(0

20、.0B)TXbytes:0(0.0B)rootlocalhost#ping15.PING15(15):56databytes64bytesfrom15:seq=0ttl=64time=2.706ms64bytesfrom15:seq=1ttl=64time=0.994ms64bytesfrom15:seq=2ttl=64time=1.039ms64bytesfrom15:seq=3ttl=64time=0.991ms-15pingstatistics-4packetstransmitted,4packetsreceived,0%packetlossround-tripmin/avg/max=0

21、.991/1.432/2.706msrootlocalhost#mount-onolock15:/home/sinosys/rootfs/tmprootlocalhost#cd/tmp/rootlocalhost#lsbindevhomelinuxrcprocsbintmpvarbootetclibmntrootsysusrrootlocalhost#二、設(shè)置啟動開發(fā)板時自動將pc機(jī)的文件系統(tǒng)(/home/sinosys/rootfs)掛接到開發(fā)板系統(tǒng)上,設(shè)置是在開發(fā)板上進(jìn)行。Pc機(jī)linux的ip地址15開發(fā)板的ip地址-U-Boot1.2.0(Aug22009-01:13:33)DRAM:

22、64MBCFG_CMD_NANDNAND:64MBIn:serialOut:serialErr:serialHitanykeytostopautoboot:0SMDK2440#printenvbootargs=noinitrdroot=/dev/mtdblock2init=/linuxrcconsole=ttySAC0,115200bootdelay=1baudrate=115200ethaddr=08:00:3e:26:0a:5bipaddr=5netmask=bootcmd=nandread0 x310000000 x300000 x1d00000;bootm0 x31000000boot

23、delay=3serverip=stdin=serialstdout=serialstderr=serialEnvironmentsize:330/65532bytesSMDK2440#setenvbootargsconsole=ttySAC0,115200root=/dev/nfsnfsroot=15:/home/sinosys/rootfsip=:eth0SMDK2440#printenvbootdelay=1baudrate=115200ethaddr=08:00:3e:26:0a:5bipaddr=5netmask=bootcmd=nandread0 x310000000 x30000

24、0 x1d00000;bootm0 x31000000bootdelay=3serverip=stdin=serialstdout=serialstderr=serialbootargs=console=ttySAC0,115200root=/dev/nfsnfsroot=15:/home/sinosys/rootfsip=:eth0Environmentsize:367/65532bytesSMDK2440#saveenvSavingEnvironmenttoNAND.ErasingNand.WritingtoNand.doneSMDK2440#rootlocalhostmnt#vi/etc

25、/exportsrootlocalhostmnt#rootlocalhostmnt#cd/home/sinosys/kernel-2.6.13rootlocalhostkernel-2.6.13#lsarchcryptoincludelibmmREPORTING-BUGSSystem.mapconfig_2440_webserverDocumentationinitMAINTAINERSnetscriptsusrCOPYINGdriversipcMakefileramdisk.imgsecurityvmlinuxCREDITSfskernelMakefileREADMEsoundweb_ser

26、ver.configrootlocalhostkernel-2.6.13#makemodulesCHKinclude/linux/version.hmake1:arch/arm/kernel/asm-offsets.sisuptodate.make1:include/asm-arm/mach-types.hisuptodate.make1:*drivers/char中斷make:*drivers中斷bash:2660:2tcsetattr:被中斷的系統(tǒng)調(diào)用rootlocalhostkernel-2.6.13#makemenucofnigmake:*Noruletomaketargetmenuc

27、ofnig.Stop.rootlocalhostkernel-2.6.13#makemenuconfigscripts/kconfig/mconfarch/arm/Kconfig#usingdefaultsfoundin.config#*EndofLinuxkernelconfiguration.*Executemaketobuildthekernelortrymakehelp.rootlocalhostkernel-2.6.13#makemodulesCHKinclude/linux/version.hSPLITinclude/linux/autoconf.h-include/config/

28、*SYMLINKinclude/asm-arm/arch-include/asm-arm/arch-s3c2410make1:arch/arm/kernel/asm-offsets.sisuptodate.make1:include/asm-arm/mach-types.hisuptodate.Buildingmodules,stage2.MODPOSTrootlocalhostkernel-2.6.13#makemodules_installWarning:youmayneedtoinstallmodule-init-toolsSee.uk/docs/post-halloween-2.6.t

29、xtif-rSystem.map-a-x/sbin/depmod;then/sbin/depmod-ae-FSystem.map2.6.13;firootlocalhostkernel-2.6.13#cd/lib/rootlocalhostlib#lscpplibcrypto.so.4libnss_db.so.1.0.0libpthread-0.10.soevmslibcrypt.so.1libnss_db.so.2libpthread.so.0i686libc.so.6libnss_db.so.2.0.0libpwdb.so.0iptableslibdb2.so.3libnss_dns-2.

30、3.2.solibpwdb.so.0.62kbdlibdb-3.1.solibnss_dns.so.2libresolv-2.3.2.sold-2.3.2.solibdb-3.2.solibnss_files-2.3.2.solibresolv.so.2ld-linux.so.2libdb-3.3.solibnss_files.so.2librt-2.3.2.sold-lsb.so.1libdb-4.0.solibnss_hesiod-2.3.2.solibrt.so.1libacl.solibdb.so.3libnss_hesiod.so.2libSegFault.solibacl.so.1

31、libdl-2.3.2.solibnss_ldap-2.3.1.solibssl.so.0.9.6blibacl.so.1.0.3libdl.so.2libnss_ldap.so.2libssl.so.0.9.7alibanl-2.3.2.solibe2p.so.2libnss_nis-2.3.2.solibssl.so.2libanl.so.1libe2p.so.2.3libnss_nisplus-2.3.2.solibssl.so.4libattr.solibext2fs.so.2libnss_nisplus.so.2libss.so.2libattr.so.1libext2fs.so.2

32、.4libnss_nis.so.2libss.so.2.0libattr.so.1.0.1libgcc_s-3.2.2-20030225.so.1libnss_winbind.solibtermcap.so.2libBrokenLocale-2.3.2.solibgcc_s.so.1libnss_winbind.so.2libtermcap.so.2.0.8libBrokenLocale.so.1libiw.so.25libnss_wins.solibthread_db-1.0.solibc-2.3.2.soliblvm-10.solibnss_wins.so.2libthread_db.so

33、.1libcap.soliblvm-10.so.1libpamc.so.0libutil-2.3.2.solibcap.so.1liblvm-10.so.1.0libpamc.so.0.75libutil.so.1libcap.so.1.10libm-2.3.2.solibpam_misc.so.0libuuid.so.1libcom_err.so.2libm.so.6libpam_misc.so.0.75libuuid.so.1.2libcom_err.so.2.0libnsl-2.3.2.solibpam.so.0lsblibcrypt-2.3.2.solibnsl.so.1libpam.

34、so.0.75moduleslibcrypto.so.0.9.6blibnss_compat-2.3.2.solibpcre.so.0securitylibcrypto.so.0.9.7alibnss_compat.so.2libpcre.so.0.0.1tlslibcrypto.so.2libnss_db.so.1libproc.so.2.0.11rootlocalhostlib#cdmodules/rootlocalhostmodules#ls2.4.20-82.6.13rootlocalhostmodules#cd2.6.13/rootlocalhost2.6.13#lsbuildmod

35、ules.depmodules.ieee1394mapmodules.parportmapmodules.pnpbiosmapsourcekernelmodules.generic_stringmodules.isapnpmapmodules.pcimapmodules.usbmaprootlocalhost2.6.13#cd/home/rootlocalhosthome#cdsinosys/rootlocalhostsinosys#lsaa.IABbusybox-1.10.3.tar.bz2rootfs.tar.gzu-boot-1.2.0-web.POaa.IADhelloworldroo

36、tfs_web.cramfsu-boot-1.2.0-web.PRaa.IMBhelloworld.tar.bz2srcu-boot-1.2.0-web.PRIaa.IMDkernel-2.6.13u-boot-1.2.0u-boot-1.2.0-web.PSaa.PFIkernel-2.6.13.tar.gzu-boot1.2.0u-boot1.2.0-WebServeraa.POlinux-2.6.26u-boot-1.2.0.tar.bz2u-boot1.2.0-WebServer.tar.gzaa.PRlinux-2.6.26-original.tar.bz2u-boot-1.2.0.

37、tar.gzu-boot-1.2.0-web.WK3aa.PRImkcramfsu-boot-1.2.0-web.IABuboot-clear.tar.gzaa.PSmkimageu-boot-1.2.0-web.IADusraa.WK3mkrootfsu-boot-1.2.0-web.IMBarm-linux-gcc-3.4.1.tgzpax_global_headeru-boot-1.2.0-web.IMDbusybox-1.10.3rootfsrootlocalhostsinosys#makemake-C/lib/modules/2.6.13/buildM=/home/sinosysmo

38、dulesmake1:Enteringdirectory/home/sinosys/kernel-2.6.13CCM/home/sinosys/hello.oBuildingmodules,stage2.MODPOSTCC/home/sinosys/hello.mod.oLDM/home/sinosys/hello.komake1:Leavingdirectory/home/sinosys/kernel-2.6.13rootlocalhostsinosys#ls-l總用量312752-rwxr-r-1sinosyssinosys28426248月110:44aa.IAB-rwxr-r-1sin

39、osyssinosys280888月110:43aa.IAD-rwxr-r-1sinosyssinosys8028168月110:44aa.IMB-rwxr-r-1sinosyssinosys81688月110:43aa.IMD-rwxr-r-1sinosyssinosys18128月110:43aa.PFI-rwxr-r-1sinosyssinosys7768月110:43aa.PO-rwxr-r-1sinosyssinosys1418488月110:43aa.PR-rwxr-r-1sinosyssinosys9173848月110:43aa.PRI-rwxr-r-1sinosyssinos

40、ys61462448月110:43aa.PS-rwxr-r-1sinosyssinosys113798月111:04aa.WK3-rwxr-r-1sinosyssinosys528426642007-01-15arm-linux-gcc-3.4.1.tgzdrwxr-xr-x31rootroot40968月412:07busybox-1.10.3-r-xr-r-1sinosyssinosy06-26busybox-1.10.3.tar.bz2-r-xr-r-1sinosyssinosys3392008-09-04hello.c-rw-r-r-1rootroot2140

41、8月511:31hello.ko-rw-r-r-1rootroot5078月511:31hello.mod.c-rw-r-r-1rootroot13808月511:31hello.mod.o-rw-r-r-1rootroot12968月511:31hello.odrwxr-xr-x2sinosyssinosys40968月114:41helloworld-rwxr-r-1sinosyssinosys4416月503:11helloworld.tar.bz2drwxrwxrwx19rootroot40968月511:28kernel-2.6.13-rwxr-r-1sinosyssinosys749688162月2319:13kernel-2.6.13.tar.gzdrwxrwxrwx22rootroot40968月409:25linux-2.6.26-r-xr-r-1sinosyssinosys494418742008-08-27linux-2.6.26-original.tar.bz2-r-xr-r-1sinosyssinosys1276月1110:12Makefile-rwxr-r-1sinosyssinosys3

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論