嵌入式爱好者

查看: 7300|回复: 3

[Linux] 移植4.1内核时遇到devtmpfs: error mounting -2这样的问题

[复制链接]

2

主题

4

帖子

19

积分

扫一扫,手机访问本帖
发表于 2018-8-13 14:31:02 | 显示全部楼层 |阅读模式
具体是这样的:
芯片 iMX6UL,
NAND flash 256M
DDR 256M
设备树 imx6ul-14x14-evk-gpmi-7.dtb

原有的u-boot+zImage+logo+dtbs+rootfs是没问题的,但是内核是3.14的。

现在我想用4.1的内核来替换3.14的内核,
设备树没有变(因为开发板本身没变),
uboot没有变,
logo文件没有变,
文件系统没有变,
然后在4.1内核中编译yaffs2文件系统,然后通过 mfgtools工具烧录进去。
然后重新上电启动出现: devtmpfs: error mounting -2 这个错误。(在网上搜了好多资料,解决不了)


详细打印信息如下:
  1. U-Boot 2015.04-g3989e3c (Dec 14 2017 - 19:04:37)
  2.                                                 
  3. CPU:   Freescale i.MX6UL rev1.1 at 396 MHz
  4. CPU:   Temperature 39 C                  
  5. Reset cause: POR      
  6. Board: MX6UL 14x14 EVK
  7. I2C:   ready         
  8. DRAM:  256 MiB
  9. NAND:  256 MiB
  10. MMC:   FSL_SDHC: 0
  11. *** Warning - bad CRC, using default environment
  12.                                                 
  13. Display: TFT70AB (800x480)
  14. Video: 800x480x24         
  15.                  
  16. NAND read: device 0 offset 0x400000, size 0x80000
  17. 524288 bytes read: OK                           
  18.                      
  19. NAND read: device 0 offset 0x400000, size 0x80000
  20. 524288 bytes read: OK                           
  21. display bmp cfb_console.c
  22. In:    serial            
  23. Out:   serial
  24. Err:   serial
  25. Net:   FEC0  
  26. Error: FEC0 address not set.
  27.                            
  28. Normal Boot
  29. Hit any key to stop autoboot:  0
  30. nand boot..........              
  31.                   
  32. NAND read: device 0 offset 0xa00000, size 0x800000
  33. 8388608 bytes read: OK                           
  34.                        
  35. NAND read: device 0 offset 0x700000, size 0x40000
  36. 262144 bytes read: OK                           
  37. Kernel image @ 0x80800000 [ 0x000000 - 0x55e8f8 ]
  38. ## Flattened Device Tree blob at 83000000        
  39.    Booting using the fdt blob at 0x83000000
  40.    Using Device Tree in place at 83000000, end 8300c7c5
  41.                                                       
  42. Starting kernel ...
  43.                   
  44. [    0.000000] Booting Linux on physical CPU 0x0
  45. [    0.000000] Linux version 4.1.15 (root@Ding) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #2 SMP PREEMPT Fri Aug 10 20:14:33 CST 2018
  46. [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
  47. [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  48. [    0.000000] Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
  49. [    0.000000] cma: Reserved 64 MiB at 0x8c000000
  50. [    0.000000] Memory policy: Data cache writealloc
  51. [    0.000000] PERCPU: Embedded 12 pages/cpu @8bdb1000 s16768 r8192 d24192 u49152
  52. [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
  53. [    0.000000] Kernel command line: console=ttymxc0,115200 cma=64M root=/dev/mtdblock5 rootfstype=yaffs2,calibrate=y
  54. [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
  55. [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  56. [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  57. [    0.000000] Memory: 183512K/262144K available (6957K kernel code, 319K rwdata, 2364K rodata, 404K init, 424K bss, 13096K reserved, 65536K cma-reserved, 0K highmem)
  58. [    0.000000] Virtual kernel memory layout:
  59. [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  60. [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
  61. [    0.000000]     vmalloc : 0x90800000 - 0xff000000   (1768 MB)
  62. [    0.000000]     lowmem  : 0x80000000 - 0x90000000   ( 256 MB)
  63. [    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
  64. [    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
  65. [    0.000000]       .text : 0x80008000 - 0x80922a30   (9323 kB)
  66. [    0.000000]       .init : 0x80923000 - 0x80988000   ( 404 kB)
  67. [    0.000000]       .data : 0x80988000 - 0x809d7e80   ( 320 kB)
  68. [    0.000000]        .bss : 0x809da000 - 0x80a44368   ( 425 kB)
  69. [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  70. [    0.000000] Preemptible hierarchical RCU implementation.
  71. [    0.000000]  Additional per-CPU info printed with stalls.
  72. [    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
  73. [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  74. [    0.000000] NR_IRQS:16 nr_irqs:16 16
  75. [    0.000000] ------------[ cut here ]------------
  76. [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/mach-imx/gpc.c:608 imx_gpc_check_dt+0x4c/0x84()
  77. [    0.000000] Modules linked in:
  78. [    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.1.15 #2
  79. [    0.000000] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
  80. [    0.000000] [<80016b64>] (unwind_backtrace) from [<80012878>] (show_stack+0x10/0x14)
  81. [    0.000000] [<80012878>] (show_stack) from [<8069511c>] (dump_stack+0x74/0xd0)
  82. [    0.000000] [<8069511c>] (dump_stack) from [<80038e54>] (warn_slowpath_common+0x78/0xb0)
  83. [    0.000000] [<80038e54>] (warn_slowpath_common) from [<80038ea8>] (warn_slowpath_null+0x1c/0x24)
  84. [    0.000000] [<80038ea8>] (warn_slowpath_null) from [<809310ec>] (imx_gpc_check_dt+0x4c/0x84)
  85. [    0.000000] [<809310ec>] (imx_gpc_check_dt) from [<80944624>] (imx6ul_init_irq+0x8/0x18)
  86. [    0.000000] [<80944624>] (imx6ul_init_irq) from [<80926368>] (init_IRQ+0x28/0x80)
  87. [    0.000000] [<80926368>] (init_IRQ) from [<80923aa8>] (start_kernel+0x21c/0x3b0)
  88. [    0.000000] [<80923aa8>] (start_kernel) from [<8000807c>] (0x8000807c)
  89. [    0.000000] ---[ end trace cb88537fdc8fa200 ]---
  90. [    0.000000] Outdated DT detected, suspend/resume will NOT work
  91. [    0.000000] mxc_clocksource_init 24000000
  92. [    0.000000] Switching to timer-based delay loop, resolution 41ns
  93. [    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
  94. [    0.000055] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
  95. [    0.002800] Console: colour dummy device 80x30
  96. [    0.002841] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
  97. [    0.002876] pid_max: default: 32768 minimum: 301
  98. [    0.003097] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  99. [    0.003124] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  100. [    0.004488] CPU: Testing write buffer coherency: ok
  101. [    0.004988] /cpus/cpu@0 missing clock-frequency property
  102. [    0.005031] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  103. [    0.005138] Setting up static identity map for 0x80008280 - 0x800082f0
  104. [    0.041232] Brought up 1 CPUs
  105. [    0.041268] SMP: Total of 1 processors activated (48.00 BogoMIPS).
  106. [    0.041288] CPU: All CPU(s) started in SVC mode.
  107. [    0.042375] devtmpfs: initialized
  108. [    0.060255] device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
  109. [    0.065649] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  110. [    0.066522] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  111. [    0.072084] pinctrl core: initialized pinctrl subsystem
  112. [    0.074835] NET: Registered protocol family 16
  113. [    0.093211] DMA: preallocated 256 KiB pool for atomic coherent allocations
  114. [    0.120904] cpuidle: using governor ladder
  115. [    0.150971] cpuidle: using governor menu
  116. [    0.199763] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
  117. [    0.199801] hw-breakpoint: maximum watchpoint size is 8 bytes.
  118. [    0.204369] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
  119. [    0.259258] mxs-dma 1804000.dma-apbh: initialized
  120. [    0.265115] SCSI subsystem initialized
  121. [    0.266509] usbcore: registered new inte**ce driver usbfs
  122. [    0.266698] usbcore: registered new inte**ce driver hub
  123. [    0.266922] usbcore: registered new device driver usb
  124. [    0.270517] i2c i2c-0: IMX I2C adapter registered
  125. [    0.270563] i2c i2c-0: can't use DMA
  126. [    0.272203] i2c i2c-1: IMX I2C adapter registered
  127. [    0.272247] i2c i2c-1: can't use DMA
  128. [    0.272556] Linux video capture inte**ce: v2.00
  129. [    0.272765] pps_core: LinuxPPS API ver. 1 registered
  130. [    0.272786] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  131. [    0.272864] PTP clock support registered
  132. [    0.275797] Advanced Linux Sound Architecture Driver Initialized.
  133. [    0.280005] Switched to clocksource mxc_timer1
  134. [    0.306744] NET: Registered protocol family 2
  135. [    0.308346] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
  136. [    0.308443] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
  137. [    0.308536] TCP: Hash tables configured (established 2048 bind 2048)
  138. [    0.308675] UDP hash table entries: 256 (order: 1, 8192 bytes)
  139. [    0.308737] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  140. [    0.309140] NET: Registered protocol family 1
  141. [    0.309865] RPC: Registered named UNIX socket transport module.
  142. [    0.309898] RPC: Registered udp transport module.
  143. [    0.309916] RPC: Registered tcp transport module.
  144. [    0.309934] RPC: Registered tcp NFSv4.1 backchannel transport module.
  145. [    0.313434] imx rpmsg driver is registered.
  146. [    0.315686] Bus freq driver module loaded
  147. [    0.317895] futex hash table entries: 256 (order: 2, 16384 bytes)
  148. [    0.335498] VFS: Disk quotas dquot_6.6.0
  149. [    0.335992] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  150. [    0.341960] NFS: Registering the id_resolver key type
  151. [    0.342063] Key type id_resolver registered
  152. [    0.342084] Key type id_legacy registered
  153. [    0.342304] jffs2: version 2.2. (NAND) &#169; 2001-2006 Red Hat, Inc.
  154. [    0.344206] fuse init (API version 7.23)
  155. [    0.349059] io scheduler noop registered
  156. [    0.349103] io scheduler deadline registered
  157. [    0.349220] io scheduler cfq registered (default)
  158. [    0.350669] imx-weim 21b8000.weim: Driver registered.
  159. [    0.357245] backlight supply power not found, using dummy regulator
  160. [    0.362492] 21c8000.lcdif supply lcd not found, using dummy regulator
  161. [    0.471662] mxsfb 21c8000.lcdif: failed to find mxc display driver
  162. [    0.490463] Console: switching to colour frame buffer device 100x30
  163. [    0.504982] mxsfb 21c8000.lcdif: initialized
  164. [    0.512362] imx-sdma 20ec000.sdma: no event needs to be remapped
  165. [    0.512582] imx-sdma 20ec000.sdma: loaded firmware 3.3
  166. [    0.520332] imx-sdma 20ec000.sdma: initialized
  167. [    0.522715] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
  168. [    1.268610] console [ttymxc0] enabled
  169. [    1.274319] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 232, base_baud = 5000000) is a IMX
  170. [    1.284562] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 233, base_baud = 5000000) is a IMX
  171. [    1.296247] imx sema4 driver is registered.
  172. [    1.300766] [drm] Initialized drm 1.1.0 20060810
  173. [    1.306654] [drm] Initialized vivante 1.0.0 20120216 on minor 0
  174. [    1.339597] brd: module loaded
  175. [    1.356305] loop: module loaded
  176. [    1.376686] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
  177. [    1.383148] nand: Micron MT29F2G08ABAEAWP
  178. [    1.387197] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
  179. [    1.395691] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
  180. [    1.402791] Scanning device for bad blocks
  181. [    1.597331] 6 ofpart partitions found on MTD device gpmi-nand
  182. [    1.603171] Creating 6 MTD partitions on "gpmi-nand":
  183. [    1.608265] 0x000000000000-0x000000400000 : "boot"
  184. [    1.615787] 0x000000400000-0x000000600000 : "logo"
  185. [    1.623299] 0x000000600000-0x000000700000 : "ENV"
  186. [    1.630597] 0x000000700000-0x000000a00000 : "DTB"
  187. [    1.637845] 0x000000a00000-0x000001200000 : "kernel"
  188. [    1.645466] 0x000001200000-0x000010000000 : "rootfs"
  189. [    1.653605] gpmi-nand 1806000.gpmi-nand: driver registered.
  190. [    1.662896] 20b4000.ethernet supply phy not found, using dummy regulator
  191. [    1.671087] pps pps0: new PPS source ptp0
  192. [    1.676616] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  193. [    1.686744] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 3a:6a:02:19:ba:91
  194. [    1.698171] libphy: fec_enet_mii_bus: probed
  195. [    1.706464] fec 20b4000.ethernet eth0: registered PHC device 0
  196. [    1.714259] 2188000.ethernet supply phy not found, using dummy regulator
  197. [    1.722397] pps pps1: new PPS source ptp1
  198. [    1.727982] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  199. [    1.738319] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 26:e8:33:c8:76:da
  200. [    1.751241] fec 2188000.ethernet eth1: registered PHC device 1
  201. [    1.758978] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  202. [    1.765787] ehci-mxc: Freescale On-Chip EHCI Host driver
  203. [    1.771734] usbcore: registered new inte**ce driver usb-storage
  204. [    1.780936] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
  205. [    1.797233] 2184200.usb supply vbus not found, using dummy regulator
  206. [    1.807718] ci_hdrc ci_hdrc.1: EHCI Host Controller
  207. [    1.812789] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
  208. [    1.840147] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
  209. [    1.847947] hub 1-0:1.0: USB hub found
  210. [    1.852027] hub 1-0:1.0: 1 port detected
  211. [    1.858395] Mass Storage Function, version: 2009/09/11
  212. [    1.863783] LUN: removable file: (no medium)
  213. [    1.868141] no file given for LUN0
  214. [    1.871752] g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22
  215. [    1.879199] mousedev: PS/2 mouse device common for all mice
  216. [    1.888279] input: iMX6UL TouchScreen Controller as /devices/platform/soc/2100000.aips-bus/2040000.tsc/input/input0
  217. [    1.902304] snvs_rtc 20cc034.snvs-rtc-lp: snvs rtc: you use old dts file, please update it
  218. [    1.911974] snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
  219. [    1.920738] i2c /dev entries driver
  220. [    1.926992] IR NEC protocol handler initialized
  221. [    1.931687] IR RC5(x/sz) protocol handler initialized
  222. [    1.936786] IR RC6 protocol handler initialized
  223. [    1.941408] IR JVC protocol handler initialized
  224. [    1.945979] IR Sony protocol handler initialized
  225. [    1.950931] IR SANYO protocol handler initialized
  226. [    1.955685] IR Sharp protocol handler initialized
  227. [    1.960495] IR MCE Keyboard/mouse protocol handler initialized
  228. [    1.966369] IR XMP protocol handler initialized
  229. [    1.974155] pxp-v4l2 pxp_v4l2: initialized
  230. [    1.981380] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
  231. [    1.988155] sdhci: Secure Digital Host Controller Inte**ce driver
  232. [    1.994475] sdhci: Copyright(c) Pierre Ossman
  233. [    1.998887] sdhci-pltfm: SDHCI platform and OF driver helper
  234. [    2.007103] /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
  235. [    2.016573] sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
  236. [    2.071147] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
  237. [    2.096064] usbcore: registered new inte**ce driver usbhid
  238. [    2.103871] usbhid: USB HID core driver
  239. [    2.137227] NET: Registered protocol family 10
  240. [    2.144623] sit: IPv6 over IPv4 tunneling driver
  241. [    2.153499] NET: Registered protocol family 17
  242. [    2.158255] Key type dns_resolver registered
  243. [    2.163247] Failed to disable 696MHz OPP
  244. [    2.170135] usb 1-1: new high-speed USB device number 2 using ci_hdrc
  245. [    2.180731] Registering SWP/SWPB emulation handler
  246. [    2.224390] snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
  247. [    2.255705] vref-3v3: disabling
  248. [    2.258901] usb_otg1_vbus: disabling
  249. [    2.262603] can-3v3: disabling
  250. [    2.266009] ALSA device list:
  251. [    2.268997]   No soundcards found.
  252. [    2.276660] yaffs: dev is 32505861 name is "mtdblock5" ro
  253. [    2.287458] yaffs: passed flags ""
  254. [    2.326374] hub 1-1:1.0: USB hub found
  255. [    2.332036] hub 1-1:1.0: 4 ports detected
  256. [    2.395719] random: nonblocking pool is initialized
  257. [    2.620055] usb 1-1.4: new high-speed USB device number 3 using ci_hdrc
  258. [    9.097586] VFS: Mounted root (yaffs2 filesystem) readonly on device 31:5.
  259. [    9.104587] devtmpfs: error mounting -2
  260. [    9.109299] Freeing unused kernel memory: 404K (80923000 - 80988000)
  261. [    9.115838] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
  262. [    9.128991] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
复制代码



回复

使用道具 举报

0

主题

177

帖子

321

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证XX18通行证TCU通行证

发表于 2018-8-14 17:08:38 | 显示全部楼层
最新资料已经更新linux4.1.15内核,您去下载烧写一下试试看。

点评

hhy
等有空了再去试试  详情 回复 发表于 2018-9-12 10:46
点评回复 支持 反对

使用道具 举报

2

主题

4

帖子

19

积分

 楼主| 发表于 2018-9-12 10:46:29 | 显示全部楼层
Marss 发表于 2018-8-14 17:08
最新资料已经更新linux4.1.15内核,您去下载烧写一下试试看。

等有空了再去试试
点评回复 支持 反对

使用道具 举报

1

主题

8

帖子

33

积分

i.MX6UL通行证i.MX6Q通行证

发表于 2021-4-14 14:03:36 | 显示全部楼层
我也碰到这个问题了,解决方法是打包rootfs的时候最前面不能带上rootfs这个路径
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-27 07:54

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表