pc机与开发板之间的挂接资料讲解_第1页
pc机与开发板之间的挂接资料讲解_第2页
pc机与开发板之间的挂接资料讲解_第3页
pc机与开发板之间的挂接资料讲解_第4页
pc机与开发板之间的挂接资料讲解_第5页
已阅读5页,还剩27页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Good is good, but better carries it.精益求精,善益求善。pc机与开发板之间的挂接-PC机与开发板之间的挂接一、PC机挂接开发板-1.执行PC机linux相关命令rootlocalhostroot#ifconfigeth015rootlocalhostroot#ifconfigeth0downrootlocalhostroot#ifconfigeth015uprootlocalhostroot#vi/etc/exportsrootlocalhostroot#/etc/init.d/portmaprestart停止portmapper:确定启动portmappe

2、r:确定rootlocalhostroot#/etc/init.d/nfsrestart关闭NFSmountd:确定关闭NFS守护进程:确定ShuttingdownNFSquotas:确定关闭NFS服务:确定启动NFS服务:确定StartingNFSquotas:确定启动NFS守护进程:确定启动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#二、设置启动开发板时自动将pc机的文件系统(/home/sinosys/rootfs)挂接到开发板系统上,设置是在开发板上进行。Pc机linux的ip地址15开发板的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:被中断的系统调用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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论