天嵌 ARM开发社区

 找回密码
 注册
查看: 2380|回复: 4

急,试过几种方法,yaffs2文件系统还是挂载不上???

[复制链接]
小劲劲 发表于 2011-11-5 09:11:54 | 显示全部楼层 |阅读模式
本帖最后由 小劲劲 于 2011-11-5 09:24 编辑

最近在移植linux-3.0到TQ2440上,搞了几天,但文件系统死活挂载不了,特上来求救,如下为我的尝试:
        U-boot                          zImage                               root                             挂载情况
        天嵌的                           天嵌的                             天嵌的                              可以
        天嵌的                             我的                                天嵌的                             不可以
         天嵌的                             天嵌的                               我的                               可以
         天嵌的                                我的                                 我的                              不可以


        首先要感谢网友们,提供我一些思路去解决一个一个的问题。我试过如下方式,不过系统现在还是死活挂不上,还望各位搞过系统挂载的网友们和天嵌工程师们帮忙看看,非常感谢你们!!!
1.根据以上尝试,很明显我的文件系统是可以用的,并且在我的内核中已经去掉其他文件系统,选上yaffs2
2.Hardware ECC去掉或者选中都不行
3.Kernel Features--->选上provide old way to pass kernel parameters   问题还是存在
4.启动参数设置:Boot options--->noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0  还是不行(天嵌2.6.30.4是没有设置这个的)


如下为内核启动的出错信息:
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.0-zk (root@AI) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #16 Fri Nov 4 18:51:29 HKT 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 ro init=/bin/bash console=ttySAC0 rootfs=yaffs2 rw
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12744k/12744k available, 3640k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc1800000 - 0xf6000000   ( 840 MB)
    lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0023000   ( 108 kB)
      .text : 0xc0023000 - 0xc030e5a4   (2990 kB)
      .data : 0xc0310000 - 0xc032efc0   ( 124 kB)
       .bss : 0xc032efe4 - 0xc035aab8   ( 175 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
DMA channel 0 at c1804000, irq 33
DMA channel 1 at c1804040, irq 34
DMA channel 2 at c1804080, irq 35
DMA channel 3 at c18040c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.24.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
msgmni has been set to 24
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 60x34
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=1 10ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2044 at 0x00000ff80000
Creating 3 MTD partitions on "NAND":
0x000000000000-0x000000040000 : "U_boot"
0x000000200000-0x000000500000 : "Kernel_3.0"
0x000000500000-0x000010000000 : "yaffs2"
dm9000 Ethernet Driver, V1.31
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mousedev: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
List of all partitions:
1f00             256 mtdblock0  (driver?)
1f01            3072 mtdblock1  (driver?)
1f02          257024 mtdblock2  (driver?)
No filesystem could mount root, tried:  vfat msdos iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[<c0033864>] (unwind_backtrace+0x0/0xec) from [<c023d034>] (panic+0x54/0x17c)
[<c023d034>] (panic+0x54/0x17c) from [<c0008d60>] (mount_block_root+0x25c/0x2ac)
[<c0008d60>] (mount_block_root+0x25c/0x2ac) from [<c0008f40>] (prepare_namespace+0x12c/0x184)
[<c0008f40>] (prepare_namespace+0x12c/0x184) from [<c000841c>] (kernel_init+0xd8/0x10c)
[<c000841c>] (kernel_init+0xd8/0x10c) from [<c002f5d4>] (kernel_thread_exit+0x0/0x8)

根据他的提示,其实ISO 9660 CDROM file system support是已经添加进去的啦,搞过的高人们欢迎指点!!!
 楼主| 小劲劲 发表于 2011-11-5 12:50:54 | 显示全部楼层
大家有遇到其他挂载不上的情况吗?怎么解决的?在线等................
 楼主| 小劲劲 发表于 2011-11-9 21:29:11 | 显示全部楼层
哎,怎么这个论坛这么冷清,难道买了板都没人搞的吗???
不言DXH 发表于 2011-11-9 21:48:27 | 显示全部楼层
这个问题我不知道是什么问题,不过你说的没错,这个论坛现在很少有人回答问题了,难!我发过几个求助的帖子都没有人回,只能自己花上几天来摸索了~~
亚瑟王 发表于 2011-11-14 18:40:09 | 显示全部楼层
1、文件系统基本上是没有问题的;
2、问题主要是内核的配置和yaffs部分的配置引起的。主要检查一下内核的General setup的配置选项。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-1 17:22 , Processed in 1.025325 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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