天嵌 ARM开发社区

 找回密码
 注册
查看: 3263|回复: 8

内核启动挂载yaffs2文件系统问题

[复制链接]
haichang417 发表于 2010-8-17 00:12:23 | 显示全部楼层 |阅读模式
  1. Starting kernel ...

  2. Uncompressing Linux... done, booting the kernel.
  3. Linux version 2.6.33.6-[lhc] (lhc@lhc-nb) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #10 Mon Aug 16 22:17:30 CST 2010
  4. CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
  5. CPU: VIVT data cache, VIVT instruction cache
  6. Machine: SMDK2440
  7. Warning: bad configuration page, trying to continue
  8. Memory policy: ECC disabled, Data cache writeback
  9. CPU S3C2440A (id 0x32440001)
  10. S3C24XX Clocks, Copyright 2004 Simtec Electronics
  11. S3C244X: core 405.600 MHz, memory 101.400 MHz, peripheral 50.700 MHz
  12. CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
  13. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
  14. Kernel command line: noinitrd root=/dev/mtdblock3 rootfstype=yaffs2 console=ttySAC0,115200 init=/linuxrc mem=64M
  15. PID hash table entries: 256 (order: -2, 1024 bytes)
  16. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  17. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  18. Memory: 64MB = 64MB total
  19. Memory: 60852KB available (3524K code, 361K data, 116K init, 0K highmem)
  20. SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  21. Hierarchical RCU implementation.
  22. NR_IRQS:85
  23. irq: clearing pending ext status 00080000
  24. irq: clearing subpending status 00000002
  25. Console: colour dummy device 80x30
  26. console [ttySAC0] enabled
  27. Calibrating delay loop... 202.34 BogoMIPS (lpj=505856)
  28. Mount-cache hash table entries: 512
  29. CPU: Testing write buffer coherency: ok
  30. devtmpfs: initialized
  31. NET: Registered protocol family 16
  32. S3C Power Management, Copyright 2004 Simtec Electronics
  33. S3C2440: Initialising architecture
  34. S3C2440: IRQ Support
  35. S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
  36. DMA channel 0 at c4808000, irq 33
  37. DMA channel 1 at c4808040, irq 34
  38. DMA channel 2 at c4808080, irq 35
  39. DMA channel 3 at c48080c0, irq 36
  40. S3C244X: Clock Support, DVS off
  41. bio: create slab <bio-0> at 0
  42. SCSI subsystem initialized
  43. usbcore: registered new interface driver usbfs
  44. usbcore: registered new interface driver hub
  45. usbcore: registered new device driver usb
  46. NET: Registered protocol family 2
  47. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  48. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  49. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  50. TCP: Hash tables configured (established 2048 bind 2048)
  51. TCP reno registered
  52. UDP hash table entries: 256 (order: 0, 4096 bytes)
  53. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  54. NET: Registered protocol family 1
  55. RPC: Registered udp transport module.
  56. RPC: Registered tcp transport module.
  57. RPC: Registered tcp NFSv4.1 backchannel transport module.
  58. NTFS driver 2.1.29 [Flags: R/W].
  59. yaffs Aug 16 2010 15:28:50 Installing.
  60. msgmni has been set to 118
  61. alg: No test for stdrng (krng)
  62. io scheduler noop registered (default)
  63. s3c2440-uart.0: lhc2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
  64. s3c2440-uart.1: lhc2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
  65. s3c2440-uart.2: lhc2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
  66. loop: module loaded
  67. S3C24XX NAND Driver, (c) 2004 Simtec Electronics
  68. s3c24xx-nand s3c2440-nand: Tacls=2, 19ns Twrph0=3 29ns, Twrph1=2 19ns
  69. s3c24xx-nand s3c2440-nand: NAND hardware ECC
  70. NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
  71. Scanning device for bad blocks
  72. Bad eraseblock 992 at 0x000007c00000
  73. Bad eraseblock 1208 at 0x000009700000
  74. Bad eraseblock 1500 at 0x00000bb80000
  75. Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
  76. 0x000000000000-0x000000040000 : "bootloader[u-boot-2010.06] lhc"
  77. 0x000000040000-0x000000060000 : "parameters[u-boot envriments] lhc"
  78. 0x000000060000-0x000000360000 : "kernel[linux-2.6.33.6] lhc"
  79. 0x000000360000-0x000004360000 : "filesystem[root-yaffs2] lhc"
  80. dm9000 Ethernet Driver, V1.31
  81. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  82. s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
  83. s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
  84. s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
  85. usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
  86. usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  87. usb usb1: Product: S3C24XX OHCI
  88. usb usb1: Manufacturer: Linux 2.6.33.6-[lhc] ohci_hcd
  89. usb usb1: SerialNumber: s3c24xx
  90. hub 1-0:1.0: USB hub found
  91. hub 1-0:1.0: 2 ports detected
  92. Initializing USB Mass Storage driver...
  93. usbcore: registered new interface driver usb-storage
  94. USB Mass Storage support registered.
  95. usbcore: registered new interface driver usbserial
  96. usbserial: USB Serial Driver core
  97. USB Serial support registered for GSM modem (1-port)
  98. usbcore: registered new interface driver option
  99. option: v0.7.2:USB Driver for GSM modems
  100. USB Serial support registered for pl2303
  101. usbcore: registered new interface driver pl2303
  102. pl2303: Prolific PL2303 USB to serial adaptor driver
  103. mice: PS/2 mouse device common for all mice
  104. S3C24XX RTC, (c) 2004,2006 Simtec Electronics
  105. s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
  106. s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
  107. S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
  108. s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
  109. Registered led device: led4
  110. Registered led device: led5
  111. Registered led device: led6
  112. Registered led device: led7
  113. usbcore: registered new interface driver usbhid
  114. usbhid: USB HID core driver
  115. pktgen 2.72: Packet Generator for packet performance testing.
  116. TCP cubic registered
  117. NET: Registered protocol family 17
  118. lib80211: common routines for IEEE802.11 drivers
  119. s3c2410-rtc s3c2410-rtc: setting system clock to 2008-12-04 00:53:05 UTC (1228351985)
  120. yaffs: dev is 32505859 name is "mtdblock3"
  121. yaffs: passed flags ""
  122. yaffs: Attempting MTD mount on 31.3, "mtdblock3"
  123. yaffs_read_super: isCheckpointed 0
  124. VFS: Mounted root (yaffs2 filesystem) readonly on device 31:3.
  125. devtmpfs: mounted
  126. Freeing init memory: 116K
  127. mkdir: can't create directory '/var/lock': Read-only file system
复制代码
启动到上面就不动了。google 了半天也没能解决它!请问谁遇到过这个问题。。
machoe 发表于 2010-8-17 08:18:36 | 显示全部楼层
machoe 发表于 2010-8-17 08:19:48 | 显示全部楼层
 楼主| haichang417 发表于 2010-8-17 09:20:05 | 显示全部楼层
谢谢版主,问题依旧。我在var下直接新建了一个lock目录,就没
mkdir: can't create directory '/var/lock': Read-only file system错误了。

现在是无法进入shell
  1. yaffs: dev is 32505859 name is "mtdblock3"
  2. yaffs: passed flags ""
  3. yaffs: Attempting MTD mount on 31.3, "mtdblock3"
  4. yaffs_read_super: isCheckpointed 0
  5. VFS: Mounted root (yaffs2 filesystem) readonly on device 31:3.
  6. devtmpfs: mounted
  7. Freeing init memory: 116K
复制代码
就停在了上面这里,但是终端可以输入,就是没反应。
machoe 发表于 2010-8-17 09:41:24 | 显示全部楼层
肯定还是你制作文件系统出了问题,具体的现在我也不好说。我还真没遇到过这种问题,等亚瑟王吧。
 楼主| haichang417 发表于 2010-8-17 12:25:22 | 显示全部楼层
我又重新制作了一遍。还是一样的问题:L。亚瑟王快来阿。。。
machoe 发表于 2010-8-17 13:39:15 | 显示全部楼层
你的环境是什么,是按照手册做的吗?如果按照手册做,应该不会啊。
 楼主| haichang417 发表于 2010-8-17 14:42:52 | 显示全部楼层
Fedora 13,编译器4.3.3。内核2.6.33.6,busybox1.17.1。内核和文件系统就是按照手册做的,用mkyaffs2image生成的镜像,感觉不是环境的问题。现在对linux挂载上文件系统以后的启动过程不很了解,所以这个错误也不清楚改哪。网上找了些方法都不行。
 楼主| haichang417 发表于 2010-8-17 18:00:41 | 显示全部楼层
搞定了。原来我写错了/etc/inittab文件的的内容。
askfirst那行,应该用lhc2440_serial0阿。我写的是lhc2440_serial2。晕死了:L,谢谢版主了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-19 15:49 , Processed in 1.023477 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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