新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > AM335x(TQ335x)學(xué)習(xí)筆記——掛載Ramdisk

AM335x(TQ335x)學(xué)習(xí)筆記——掛載Ramdisk

作者: 時(shí)間:2016-11-28 來源:網(wǎng)絡(luò) 收藏

接下來加載ramdisk到DRAM:

  1. loadmmc0${rdaddr}/boot/ramdisk.img
${rdaddr}的默認(rèn)值是0x88080000
最后就是將ramdisk和dtb的加載地址作為參數(shù)啟動(dòng)內(nèi)核:
  1. bootz${loadaddr}${rdaddr}${fdtaddr}
至此,Linux內(nèi)核已經(jīng)能夠正常啟動(dòng)并進(jìn)入終端模式了。

啟動(dòng)Log如下:

  1. Hitanykeytostopautoboot:0
  2. U-Boot#loadmmc0${fdtaddr}/boot/tq335x.dtb
  3. 34781bytesreadin9ms(3.7MiB/s)
  4. U-Boot#loadmmc0${loadaddr}/boot/zImage
  5. 4377824bytesreadin242ms(17.3MiB/s)
  6. U-Boot#loadmmc0${rdaddr}/boot/ramdisk.img
  7. 1120934bytesreadin68ms(15.7MiB/s)
  8. U-Boot#bootz${loadaddr}${rdaddr}${fdtaddr}
  9. Kernelimage@0x82000000[0x000000-0x42cce0]
  10. ##LoadinginitRamdiskfromLegacyImageat88080000...
  11. ImageName:ramdisk
  12. Created:2014-11-1815:47:41UTC
  13. ImageType:ARMLinuxRAMDiskImage(uncompressed)
  14. DataSize:1120870Bytes=1.1MiB
  15. LoadAddress:88080000
  16. EntryPoint:88080000
  17. VerifyingChecksum...OK
  18. ##FlattenedDeviceTreeblobat88000000
  19. Bootingusingthefdtblobat0x88000000
  20. LoadingRamdiskto8feee000,end8ffffa66...OK
  21. LoadingDeviceTreeto8fee2000,end8feed7dc...OK
  22. Startingkernel...
  23. [0.000000]BootingLinuxonphysicalCPU0x0
  24. [0.000000]Linuxversion3.17.2(lilianrong@AY140721164813287e77Z)(gccversion4.7.3(Ubuntu/Linaro4.7.3-12ubuntu1))#1SMPTueNov1822:49:31CST2014
  25. [0.000000]CPU:ARMv7Processor[413fc082]revision2(ARMv7),cr=10c5387d
  26. [0.000000]CPU:PIPT/VIPTnonaliasingdatacache,VIPTaliasinginstructioncache
  27. [0.000000]Machinemodel:TIAM335xEVM
  28. [0.000000]cma:Reserved16MiBat9e800000
  29. [0.000000]Memorypolicy:Datacachewriteback
  30. [0.000000]HighMemzone:1048574pagesexceedsfreesize0
  31. [0.000000]CPU:AllCPU(s)startedinSVCmode.
  32. [0.000000]AM335XES2.1(sgxneon)
  33. [0.000000]PERCPU:Embedded9pages/cpu@dfa9a000s14336r8192d14336u36864
  34. [0.000000]Built1zonelistsinZoneorder,mobilitygroupingon.Totalpages:129792
  35. [0.000000]Kernelcommandline:console=ttyO0,115200n8root=/dev/ram0
  36. [0.000000]PIDhashtableentries:2048(order:1,8192bytes)
  37. [0.000000]Dentrycachehashtableentries:65536(order:6,262144bytes)
  38. [0.000000]Inode-cachehashtableentries:32768(order:5,131072bytes)
  39. [0.000000]Memory:483692K/523264Kavailable(5668Kkernelcode,647Krwdata,2208Krodata,406Kinit,8210Kbss,39572Kreserved,0Khighmem)
  40. [0.000000]Virtualkernelmemorylayout:
  41. [0.000000]vector:0xffff0000-0xffff1000(4kB)
  42. [0.000000]fixmap:0xffc00000-0xffe00000(2048kB)
  43. [0.000000]vmalloc:0xe0800000-0xff000000(488MB)
  44. [0.000000]lowmem:0xc0000000-0xe0000000(512MB)
  45. [0.000000]pkmap:0xbfe00000-0xc0000000(2MB)
  46. [0.000000]modules:0xbf000000-0xbfe00000(14MB)
  47. [0.000000].text:0xc0008000-0xc07b9478(7878kB)
  48. [0.000000].init:0xc07ba000-0xc081f800(406kB)
  49. [0.000000].data:0xc0820000-0xc08c1d08(648kB)
  50. [0.000000].bss:0xc08c1d08-0xc10c68e0(8211kB)
  51. [0.000000]HierarchicalRCUimplementation.
  52. [0.000000]RCUrestrictingCPUsfromNR_CPUS=2tonr_cpu_ids=1.
  53. [0.000000]RCU:Adjustinggeometryforrcu_fanout_leaf=16,nr_cpu_ids=1
  54. [0.000000]NR_IRQS:16nr_irqs:1616
  55. [0.000000]IRQ:FoundanINTCat0xfa200000(revision5.0)with128interrupts
  56. [0.000000]Totalof128interruptson1activecontroller
  57. [0.000000]OMAPclockeventsource:timer2at24000000Hz
  58. [0.000013]sched_clock:32bitsat24MHz,resolution41ns,wrapsevery178956969942ns
  59. [0.000061]OMAPclocksource:timer1at24000000Hz
  60. [0.000795]Console:colourdummydevice80x30
  61. [0.000847]Lockdependencyvalidator:Copyright(c)2006RedHat,Inc.,IngoMolnar
  62. [0.000856]...MAX_LOCKDEP_SUBCLASSES:8
  63. [0.000863]...MAX_LOCK_DEPTH:48
  64. [0.000870]...MAX_LOCKDEP_KEYS:8191
  65. [0.000878]...CLASSHASH_SIZE:4096
  66. [0.000885]...MAX_LOCKDEP_ENTRIES:32768
  67. [0.000892]...MAX_LOCKDEP_CHAINS:65536
  68. [0.000900]...CHAINHASH_SIZE:32768
  69. [0.000907]memoryusedbylockdependencyinfo:5167kB
  70. [0.000915]pertask-structmemoryfootprint:1152bytes
  71. [0.000956]Calibratingdelayloop...996.14BogoMIPS(lpj=4980736)
  72. [0.079037]pid_max:default:32768minimum:301
  73. [0.079438]SecurityFrameworkinitialized
  74. [0.079564]Mount-cachehashtableentries:1024(order:0,4096bytes)
  75. [0.079576]Mountpoint-cachehashtableentries:1024(order:0,4096bytes)
  76. [0.081769]CPU:Testingwritebuffercoherency:ok
  77. [0.082962]CPU0:thread-1,cpu0,socket-1,mpidr0
  78. [0.083084]Settingupstaticidentitymapfor0x8055f030-0x8055f0a0
  79. [0.086327]Broughtup1CPUs
  80. [0.086347]SMP:Totalof1processorsactivated.
  81. [0.086357]CPU:AllCPU(s)startedinSVCmode.
  82. [0.088983]devtmpfs:initialized
  83. [0.097743]VFPsupportv0.3:implementor41architecture3part30variantcrev3
  84. [0.132789]omap_hwmod:tptc0usingbrokendtdatafromedma
  85. [0.133139]omap_hwmod:tptc1usingbrokendtdatafromedma
  86. [0.133467]omap_hwmod:tptc2usingbrokendtdatafromedma
  87. [0.141252]omap_hwmod:debugss:_wait_target_disablefailed
  88. [0.198964]pinctrlcore:initializedpinctrlsubsystem
  89. [0.201633]regulator-dummy:noparameters
  90. [0.231057]NET:Registeredprotocolfamily16
  91. [0.239540]DMA:preallocated256KiBpoolforatomiccoherentallocations
  92. [0.241725]cpuidle:usinggovernorladder
  93. [0.241754]cpuidle:usinggovernormenu
  94. [0.253658]OMAPGPIOhardwareversion0.1
  95. [0.268591]omap-gpmc50000000.gpmc:couldnotfindpctldevfornode/pinmux@44e10800/nandflash_pins_s0,deferringprobe
  96. [0.268635]platform50000000.gpmc:Driveromap-gpmcrequestsprobedeferral
  97. [0.273243]NoATAGs?
  98. [0.273274]hw-breakpoint:debugarchitecture0x4unsupported.
  99. [0.316650]edma-dma-engineedma-dma-engine.0:TIEDMADMAenginedriver
  100. [0.318001]vbat:5000mV
  101. [0.318774]lis3_reg:noparameters
  102. [0.322209]SCSIsubsysteminitialized
  103. [0.323028]usbcore:registerednewinterfacedriverusbfs
  104. [0.323207]usbcore:registerednewinterfacedriverhub
  105. [0.327009]usbcore:registerednewdevicedriverusb
  106. [0.327877]omap_i2c44e0b000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c0_pins,deferringprobe
  107. [0.327917]platform44e0b000.i2c:Driveromap_i2crequestsprobedeferral
  108. [0.327972]omap_i2c4802a000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c1_pins,deferringprobe
  109. [0.327995]platform4802a000.i2c:Driveromap_i2crequestsprobedeferral
  110. [0.332363]Switchedtoclocksourcetimer1
  111. [0.477595]NET:Registeredprotocolfamily2
  112. [0.479415]TCPestablishedhashtableentries:4096(order:2,16384bytes)
  113. [0.479601]TCPbindhashtableentries:4096(order:5,147456bytes)
  114. [0.480965]TCP:Hashtablesconfigured(established4096bind4096)
  115. [0.481157]TCP:renoregistered
  116. [0.481186]UDPhashtableentries:256(order:2,20480bytes)
  117. [0.481375]UDP-Litehashtableentries:256(order:2,20480bytes)
  118. [0.482657]NET:Registeredprotocolfamily1
  119. [0.484656]RPC:RegisterednamedUNIXsockettransportmodule.
  120. [0.484680]RPC:Registeredudptransportmodule.
  121. [0.484690]RPC:Registeredtcptransportmodule.
  122. [0.484699]RPC:RegisteredtcpNFSv4.1backchanneltransportmodule.
  123. [0.485566]Tryingtounpackrootfsimageasinitramfs...
  124. [0.487045]rootfsimageisnotinitramfs(nocpiomagic);lookslikeaninitrd
  125. [0.497016]Freeinginitrdmemory:1092K(cfeee000-cffff000)
  126. [0.497514]hwperfevents:enabledwitharmv7_cortex_a8PMUdriver,5countersavailable
  127. [0.501968]futexhashtableentries:256(order:2,16384bytes)
  128. [0.507634]VFS:Diskquotasdquot_6.5.2
  129. [0.507781]Dquot-cachehashtableentries:1024(order0,4096bytes)
  130. [0.510254]NFS:Registeringtheid_resolverkeytype
  131. [0.510637]Keytypeid_resolverregistered
  132. [0.510653]Keytypeid_legacyregistered
  133. [0.510794]jffs2:version2.2.(NAND)(SUMMARY)漏2001-2006RedHat,Inc.
  134. [0.511229]msgmnihasbeensetto978
  135. [0.516624]ioschedulernoopregistered
  136. [0.516656]ioschedulerdeadlineregistered
  137. [0.516726]ioschedulercfqregistered(default)
  138. [0.519057]pinctrl-single44e10800.pinmux:142pinsatpaf9e10800size568
  139. [0.522800]Serial:8250/16550driver,4ports,IRQsharingenabled
  140. [0.528945]omap_uart44e09000.serial:nowakeirqforuart0
  141. [0.529540]44e09000.serial:ttyO0atMMIO0x44e09000(irq=88,base_baud=3000000)isaOMAPUART0

關(guān)鍵詞: AM335xTQ335x掛載Ramdis

評(píng)論


技術(shù)專區(qū)

關(guān)閉