免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1857 | 回复: 2
打印 上一主题 下一主题

[内核模块] 系统在以读写的方式重新挂载后起不来 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-06-17 18:21 |只看该作者 |倒序浏览
最近遇到一个很奇怪的问题,我的环境是一个arm的开发板,在终端执行一下命令后,重启,系统起不来:

mount -n -o remount,noatime,rw /
mount -n -o remount,noatime,ro /

两个命令之前没有任何操作,下面是系统日志,请各位大神帮忙分析一下,比较紧急,希望各位大神指点迷境,谢谢。
  1. RomBOOT
  2. Start AT91Bootstrap...


  3. U-Boot 2010.06-dirty (Sep 07 2015 - 16:15:49)

  4. DRAM:  32 MiB
  5. NAND:  128 MiB
  6. [WFOS] ADC=928, SEQ=1
  7. [WFOS] PRODUCT_SEQ 01. HARDWARE ID 01
  8. [WFOS] Init WFET1600XGW
  9. In:    serial
  10. Out:   serial
  11. Err:   serial
  12. Press space to abort autoboot in: 1

  13. NAND read: device 0 offset 0x80000, size 0x300000
  14. 3145728 bytes read: OK
  15. ## Booting kernel from Legacy Image at 20600000 ...
  16.    Image Name:   Linux-2.6.39
  17.    Image Type:   ARM Linux Kernel Image (uncompressed)
  18.    Data Size:    1545056 Bytes = 1.5 MiB
  19.    Load Address: 20008000
  20.    Entry Point:  20008000
  21.    Verifying Checksum ... OK
  22.    Loading Kernel Image ... OK
  23. OK

  24. Starting kernel ...

  25. Uncompressing Linux... done, booting the kernel.
  26. Linux version 2.6.39 (W08582@Debian7) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) ) #1 Wed Jul 22 09:13:15 CST 2015
  27. CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
  28. CPU: VIVT data cache, VIVT instruction cache
  29. Machine: Atmel AT91SAM9X5-EK
  30. Memory policy: ECC disabled, Data cache writeback
  31. Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
  32. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
  33. Kernel command line: rootfstype=ubifs ubi.mtd=4 ro root=ubi0:rootfs mtdparts=at91_nand:128k(bootstrap),256k(u-boot),128k(u-bootenv),3072k(kernel),14m(rootfs),20m(home),66m(data0),-(data1) vlcd=0xC8 console=ttyS2 openwd
  34. PID hash table entries: 128 (order: -3, 512 bytes)
  35. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  36. Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  37. Memory: 32MB = 32MB total
  38. Memory: 29424k/29424k available, 3344k reserved, 0K highmem
  39. Virtual kernel memory layout:
  40.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  41.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  42.     DMA     : 0xffa00000 - 0xffe00000   (   4 MB)
  43.     vmalloc : 0xc2800000 - 0xfee00000   ( 966 MB)
  44.     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
  45.     modules : 0xbf000000 - 0xc0000000   (  16 MB)
  46.       .init : 0xc0008000 - 0xc0024000   ( 112 kB)
  47.       .text : 0xc0024000 - 0xc02c72a0   (2701 kB)
  48.       .data : 0xc02c8000 - 0xc02e3f00   ( 112 kB)
  49. NR_IRQS:192
  50. AT91: 128 gpio irqs in 4 banks
  51. Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
  52. pid_max: default: 32768 minimum: 301
  53. Mount-cache hash table entries: 512
  54. CPU: Testing write buffer coherency: ok
  55. NET: Registered protocol family 16
  56. AT91: CM rev B and higher
  57. AT91: No default serial console defined.
  58. AT91: EK rev A
  59. bio: create slab <bio-0> at 0
  60. SCSI subsystem initialized
  61. usbcore: registered new interface driver usbfs
  62. usbcore: registered new interface driver hub
  63. usbcore: registered new device driver usb
  64. at_hdmac at_hdmac.0: Atmel AHB DMA Controller ( cpy slave ), 8 channels
  65. at_hdmac at_hdmac.1: Atmel AHB DMA Controller ( cpy slave ), 8 channels
  66. Switching to clocksource pit
  67. NET: Registered protocol family 2
  68. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  69. TCP established hash table entries: 1024 (order: 1, 8192 bytes)
  70. TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  71. TCP: Hash tables configured (established 1024 bind 1024)
  72. TCP reno registered
  73. UDP hash table entries: 256 (order: 0, 4096 bytes)
  74. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  75. NET: Registered protocol family 1
  76. NetWinder Floating Point Emulator V0.97 (double precision)
  77. msgmni has been set to 57
  78. io scheduler noop registered (default)
  79. atmel_usart.0: ttyS0 at MMIO 0xf801c000 (irq = 5) is a ATMEL_SERIAL
  80. atmel_usart.1: ttyS1 at MMIO 0xf8044000 (irq = 16) is a ATMEL_SERIAL
  81. atmel_usart.2: ttyS2 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
  82. console [ttyS2] enabled
  83. atmel_usart.3: ttyS3 at MMIO 0xf8020000 (irq = 6) is a ATMEL_SERIAL
  84. atmel_usart.4: ttyS4 at MMIO 0xf8024000 (irq = 7) is a ATMEL_SERIAL
  85. atmel_usart.5: ttyS5 at MMIO 0xf8028000 (irq = 8) is a ATMEL_SERIAL
  86. atmel_usart.6: ttyS6 at MMIO 0xf8040000 (irq = 15) is a ATMEL_SERIAL
  87. atmel_nand atmel_nand: No DMA support for NAND access.
  88. NAND device: Manufacturer ID: 0x98, Chip ID: 0xd1 (Toshiba NAND 128MiB 3,3V 8-bit)
  89. atmel_pmecc_init_params
  90. Scanning device for bad blocks
  91. mtd_name=bootstrap,mtd_size=0x20000,offset=0x0
  92. mtd_name=u-boot,mtd_size=0x40000,offset=0x0
  93. mtd_name=u-bootenv,mtd_size=0x20000,offset=0x0
  94. mtd_name=kernel,mtd_size=0x300000,offset=0x0
  95. mtd_name=rootfs,mtd_size=0xe00000,offset=0x0
  96. mtd_name=home,mtd_size=0x1400000,offset=0x0
  97. mtd_name=data0,mtd_size=0x4200000,offset=0x0
  98. mtd_name=data1,mtd_size=0x1880000,offset=0x0
  99. 8 cmdlinepart partitions found on MTD device at91_nand
  100. Creating 8 MTD partitions on "at91_nand":
  101. 0x000000000000-0x000000020000 : "bootstrap"
  102. 0x000000020000-0x000000060000 : "u-boot"
  103. 0x000000060000-0x000000080000 : "u-bootenv"
  104. 0x000000080000-0x000000380000 : "kernel"
  105. 0x000000380000-0x000001180000 : "rootfs"
  106. 0x000001180000-0x000002580000 : "home"
  107. 0x000002580000-0x000006780000 : "data0"
  108. 0x000006780000-0x000008000000 : "data1"
  109. UBI: attaching mtd4 to ubi0
  110. UBI: physical eraseblock size:   131072 bytes (128 KiB)
  111. UBI: logical eraseblock size:    126976 bytes
  112. UBI: smallest flash I/O unit:    2048
  113. UBI: VID header offset:          2048 (aligned 2048)
  114. UBI: data offset:                4096
  115. UBI: max. sequence number:       3
  116. UBI: attached mtd4 to ubi0
  117. UBI: MTD device name:            "rootfs"
  118. UBI: MTD device size:            14 MiB
  119. UBI: number of good PEBs:        112
  120. UBI: number of bad PEBs:         0
  121. UBI: number of corrupted PEBs:   0
  122. UBI: max. allowed volumes:       128
  123. UBI: wear-leveling threshold:    4096
  124. UBI: number of internal volumes: 1
  125. UBI: number of user volumes:     1
  126. UBI: available PEBs:             0
  127. UBI: total number of reserved PEBs: 112
  128. UBI: number of PEBs reserved for bad PEB handling: 2
  129. UBI: max/mean erase counter: 1/0
  130. UBI: image sequence number:  1445395432
  131. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  132. at91_ohci at91_ohci: AT91 OHCI
  133. at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
  134. at91_ohci at91_ohci: irq 22, io mem 0x00600000
  135. UBI: background thread "ubi_bgt0d" started, PID 205
  136. hub 1-0:1.0: USB hub found
  137. hub 1-0:1.0: 3 ports detected
  138. Initializing USB Mass Storage driver...
  139. usbcore: registered new interface driver usb-storage
  140. USB Mass Storage support registered.
  141. [WFOS] Hardware watchdog heartbeat 500 ms.
  142. [WFOS] AT91 Watchdog Timer boot enabled (15 seconds, nowayout)
  143. TCP cubic registered
  144. NET: Registered protocol family 17
  145. Registering the dns_resolver key type
  146. name=ubi0:rootfs
  147. fs_names=/init
  148. atmel_nand atmel_nand: Too many error.
  149. atmel_nand atmel_nand: Too many error.
  150. atmel_nand atmel_nand: Too many error.
  151. atmel_nand atmel_nand: Too many error.
  152. UBI error: ubi_io_read: error -1 while reading 126976 bytes from PEB 3:4096, read 2048 bytes
  153. UBIFS error (pid 1): ubifs_start_scan: cannot read 126976 bytes from LEB 1:0, error -1
  154. VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
  155. Please append a correct "root=" boot option; here are the available partitions:
  156. 1f00             128 mtdblock0  (driver?)
  157. 1f01             256 mtdblock1  (driver?)
  158. 1f02             128 mtdblock2  (driver?)
  159. 1f03            3072 mtdblock3  (driver?)
  160. 1f04           14336 mtdblock4  (driver?)
  161. 1f05           20480 mtdblock5  (driver?)
  162. 1f06           67584 mtdblock6  (driver?)
  163. 1f07           25088 mtdblock7  (driver?)
  164. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
  165. [<c002eca8>] (unwind_backtrace+0x0/0xe0) from [<c01fa1e4>] (panic+0x50/0x178)
  166. [<c01fa1e4>] (panic+0x50/0x178) from [<c0008d44>] (mount_block_root+0x24c/0x2a4)
  167. [<c0008d44>] (mount_block_root+0x24c/0x2a4) from [<c0008e8c>] (prepare_namespace+0x88/0x17c)
  168. [<c0008e8c>] (prepare_namespace+0x88/0x17c) from [<c00089c0>] (kernel_init+0x100/0x134)
  169. [<c00089c0>] (kernel_init+0x100/0x134) from [<c002aef8>] (kernel_thread_exit+0x0/0x8)
复制代码

论坛徽章:
208
巨蟹座
日期:2013-09-02 09:16:36卯兔
日期:2013-09-02 20:53:59酉鸡
日期:2013-09-05 21:21:45戌狗
日期:2013-10-15 20:51:17寅虎
日期:2013-10-18 21:13:16白羊座
日期:2013-10-23 21:15:19午马
日期:2013-10-25 21:22:48技术图书徽章
日期:2013-11-01 09:11:32双鱼座
日期:2013-11-01 20:29:44丑牛
日期:2013-11-01 20:40:00卯兔
日期:2013-11-11 09:21:32酉鸡
日期:2013-12-04 19:56:39
2 [报告]
发表于 2016-06-22 09:45 |只看该作者
感觉要么是驱动,要么是硬件有问题
可能一回写,就导致校验或者别的什么数据结构被破坏

论坛徽章:
0
3 [报告]
发表于 2016-06-22 14:15 |只看该作者
回复 2# 流氓无产者

谢谢,问题解决了,是当初烧制镜像的时候出了问题,在开发板上写入rootfs.img时,没有去掉0xFF,是PMECC的原因。
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP