zedboard启动流程

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1、点击file,点击import2、选择导入General中的ExistingProjectsintoWorkspace,点击next3、点击Browse4、选中解压出的NJ-cpu1-src,点击OK5、弹出界面如下图,点击Finish6、在ProjectExplorer可看到如下界面:7:点击展开app_cpu1,继续点击展开src,双击app_cpu1.c8、此时界面如下:9、点击XilinxTools,点击CreatZynqBootImage10、点击browse,选择BIF文件保存位置,取名为zrobot.bif11、一次添加amp_fsbl.elf、system.bit、u-boot.elf、app_cpu1.elf。前3个文件直接使用提供的,第4个替换成自己编译的文件。点击add后弹窗如下:12、点击Browse,选中NJ-cpu1-targets中的amp_fsbl.elf,点击Open13、点击OK14、继续点击add,点击Browse,选中NJ-cpu1-targets中的system.bit,点击Open15、点击OK16、继续点击add,点击Browse,选中NJ-cpu1-targets中的u-boot.elf,点击Open17、点击OK18、继续点击add,点击Browse,选中NJ-cpu1-targets中的app_cpu1.elf,点击Open19、点击OK20、createimage界面最终如下,可以看到添加的四个文件。必须按照此顺序修改输出文件名,讲output.bin修改成BOOT.bin21、点击CreateImage,Console窗口输出结果如下:下图是SD卡中必要的文件,其中init2.sh是由init.sh文件重命名的。如果你需要由SD自启动需将此文件修改成init.sh文件名,如果你需要Linux单步调试,则需要将其修改成init2.sh,或者其他名称。Linux单步调试时,启动流程如下:运行到某处时,输入红字部分的命令U-Boot2013.01(Mar232014-16:21:00)DRAM:384MiBWARNING:CachesnotenabledMMC:zynq_sdhci:0SF:DetectedS25FL256Swithpagesize64KiB,total32MiB***Warning-badCRC,usingdefaultenvironmentIn:serialOut:serialErr:serialNet:000Hitanykeytostopautoboot:0CopyingLinuxfromSDtoRAM...Device:zynq_sdhciManufacturerID:27OEM:5048Name:SD04GTranSpeed:50000000RdBlockLen:512SDversion2.0HighCapacity:YesCapacity:3.7GiBBusWidth:4-bitreadinguImage3362872bytesreadin456ms(7MiB/s)readingdevicetree.dtb7321bytesreadin15ms(476.6KiB/s)readinguramdisk.image.gz5315592bytesreadin711ms(7.1MiB/s)##BootingkernelfromLegacyImageat03000000...ImageName:Linux-3.8.0-xilinxImageType:ARMLinuxKernelImage(uncompressed)DataSize:3362808Bytes=3.2MiBLoadAddress:00008000EntryPoint:00008000VerifyingChecksum...OK##LoadinginitRamdiskfromLegacyImageat02000000...ImageName:ImageType:ARMLinuxRAMDiskImage(gzipcompressed)DataSize:5315528Bytes=5.1MiBLoadAddress:00000000EntryPoint:00000000VerifyingChecksum...OK##FlattenedDeviceTreeblobat02a00000Bootingusingthefdtblobat0x02a00000LoadingKernelImage...OKOKLoadingRamdiskto17644000,end17b55bc8...OKLoadingDeviceTreeto1763f000,end17643c98...OKStartingkernel...BootingLinuxonphysicalCPU0x0Linuxversion3.8.0-xilinx(sigma@sigma-ThinkPad-R61)(gccversion4.7.2(SourceryCodeBenchLite2012.09-104))#1SMPPREEMPTWedApr201:4CPU:ARMv7Processor[413fc090]revision0(ARMv7),cr=18c5387dCPU:PIPT/VIPTnonaliasingdatacache,VIPTaliasinginstructioncacheMachine:XilinxZynqPlatform,model:XilinxZynqbootconsole[earlycon0]enabledcma:CMA:reserved16MiBat16400000Memorypolicy:ECCdisabled,DatacachewriteallocPERCPU:Embedded7pages/cpu@c09aa000s7616r8192d12864u32768Built1zonelistsinZoneorder,mobilitygroupingon.Totalpages:97536Kernelcommandline:console=ttyPS0,115200root=/dev/ramrwearlyprintkmaxcpus=1coherent_pool=2MPIDhashtableentries:2048(order:1,8192bytes)Dentrycachehashtableentries:65536(order:6,262144bytes)Inode-cachehashtableentries:32768(order:5,131072bytes)__ex_tablealreadysorted,skippingsortMemory:384MB=384MBtotalMemory:361208k/361208kavailable,32008kreserved,0KhighmemVirtualkernelmemorylayout:vector:0xffff0000-0xffff1000(4kB)fixmap:0xfff00000-0xfffe0000(896kB)vmalloc:0xd8800000-0xff000000(616MB)lowmem:0xc0000000-0xd8000000(384MB)pkmap:0xbfe00000-0xc0000000(2MB)modules:0xbf000000-0xbfe00000(14MB).text:0xc0008000-0xc06094c0(6150kB).init:0xc060a000-0xc0633dc0(168kB).data:0xc0634000-0xc0677ec8(272kB).bss:0xc0677ec8-0xc06a2bf0(172kB)PreemptiblehierarchicalRCUimplementation.DumpstacksoftasksblockingRCU-preemptGP.RCUrestrictingCPUsfromNR_CPUS=4tonr_cpu_ids=2.NR_IRQS:16nr_irqs:1616xslcrmappedtod8802000Zynqclockinitps7-ttc#0atd8804000,irq=43sched_clock:32bitsat100Hz,resolution10000000ns,wrapsevery4294967286msConsole:colourdummydevice80x30Calibratingdelayloop...1332.01BogoMIPS(lpj=6660096)pid_max:default:32768minimum:301Mount-cachehashtableentries:512CPU:Testingwritebuffercoherency:okCPU0:thread-1,cpu0,socket0,mpidr80000000Settingupstaticidentitymapfor0x46db68-0x46db9cL310cachecontrollerenabledl2x0:8ways,CACHE_ID0x000000c0,AUX_CTRL0x72360000,Cachesize:524288BBroughtup1CPUsSMP:Totalof1processorsactivated(1332.01BogoMIPS).devtmpfs:initializedNET:Registeredprotocolfamily16DMA:preallocated2048KiBpoolforatomiccoherentallocationsxgpiopse000a000.ps7-gpio:gpioat0xe000a000mappedto0xd880c000hw-breakpoint:found5(+1reserved)breakpointand1watchpointregisters.hw-breakpoint:maximumwatchpointsizeis4bytes.bio:createslabbio-0at0vgaarb:loadedSCSIsubsysteminitializedusbcore:registerednewinterfacedriverusbfsusbcore:registerednewinterfacedriverhubusbcore:registerednewdevicedriverusbLinuxvideocaptureinterface:v2.00pps_core:LinuxPPSAPIver.1registeredpps_core:Softwarever.5.3.6-Copyright2005-2007RodolfoGiomettigiometti@linux.itPTPclocksupportregisteredcfg80211:CallingCRDAtoupdateworldregulatorydomainSwitchingtoclocksourcexttcps_clocksourceNET:Registeredprotocolfamily2TCPestablishedhashtableentries:4096(order:3,32768bytes)TCPbindhashtableentries:4096(order:3,32768bytes)TCP:Hashtablesconfigured(established4096bind4096)TCP:renoregisteredUDPhashtableentries:256(order:1,8192bytes)UDP-Litehashtableentries:256(order:1,8192bytes)NET:Registeredprotocolfamily1RPC:RegisterednamedU

1 / 31
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功