• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 求助:移植的LINUX2.6.34挂载不了文件系统 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 5756
精华: 0
发帖: 62
金钱: 310 两
威望: 62 点
综合积分: 124 分
注册时间: 2009-05-07
最后登录: 2017-09-13
楼主  发表于: 2010-05-29 21:26

 求助:移植的LINUX2.6.34挂载不了文件系统

如题,下面是启动信息,各位好心人帮看看,问题是出在哪?

U-Boot 2010.03 ( 5鏈?29 2010 - 20:14:17)

DRAM:  64 MB
Flash:  2 MB
NAND:  64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   CS8900-0
Hit any key to stop autoboot:  0
Using CS8900-0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.2
Filename 'zImage.img'.
Load address: 0x30007fc0
Loading: #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     ##########################
done
Bytes transferred = 2128816 (207bb0 hex)
## Booting kernel from Legacy Image at 30007fc0 ...
   Image Name:   carter
   Created:      2010-05-29  12:34:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2128752 Bytes =  2 MB
   Load Address: 30007fc0
   Entry Point:  30008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.34 (carter@ubuntu) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #5 Sat May 29 20:32:19 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
CPU: VIVT data cache, VIVT instruction cache
Machine: MINI2440
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 360.000 MHz, memory 120.000 MHz, peripheral 60.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200 mem=64M rootfstype=yaffs2
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60540k/60540k available, 4996k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xe0000000   ( 440 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002a000   ( 136 kB)
      .text : 0xc002a000 - 0xc03cd000   (3724 kB)
      .data : 0xc03ec000 - 0xc0415300   ( 165 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 59.59 BogoMIPS (lpj=148992)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
MINI2440: Option string mini2440=0tb
MINI2440: 't' ignored, touchscreen not compiled in
MINI2440: LCD [0:240x320] 1:800x480 2:1024x768
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, 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
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 58 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 60x53
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
at24 0-0050: 1024 byte 24c08 EEPROM (writable)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=3, 25ns Twrph0=8 66ns, Twrph1=3 25ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "u-boot"
ftl_cs: FTL header not found.
0x000000040000-0x000000060000 : "u-boot-env"
ftl_cs: FTL header not found.
0x000000060000-0x000000560000 : "kernel"
ftl_cs: FTL header not found.
0x000000560000-0x000003f60000 : "root"
ftl_cs: FTL header not found.
dm9000 Ethernet Driver, V1.31
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b000028
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: wrong id: 0x2b2a2928
dm9000 dm9000: not found (-19).
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
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
mice: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
NET: Registered protocol family 17
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) readonly on device 31:2.
Freeing init memory: 136K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c002f628>] (unwind_backtrace+0x0/0xec) from [<c02eb828>] (panic+0x40/0xcc)
[<c02eb828>] (panic+0x40/0xcc) from [<c002a58c>] (init_post+0x9c/0xbc)
[<c002a58c>] (init_post+0x9c/0xbc) from [<c000846c>] (kernel_init+0x108/0x140)
[<c000846c>] (kernel_init+0x108/0x140) from [<c002b814>] (kernel_thread_exit+0x0/0x8)

不明白别人的就算不行也没有最后的4行,我的却有,不明白啊,各位大哥大姐帮帮哦啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-05-29 22:14
看起来yaffs文件系统已经挂载成功了,问题是/initrc无法执行。文件系统也是用4.3.2的交叉编译器编译的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 5756
精华: 0
发帖: 62
金钱: 310 两
威望: 62 点
综合积分: 124 分
注册时间: 2009-05-07
最后登录: 2017-09-13
2楼  发表于: 2010-05-30 01:13
我直接下的yaffs2打的补丁,应该可以用吧?
我想就算不能用的话,也不应该有最后那4行,对么??
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-05-30 10:42

 回 2楼(pxfslcf) 的帖子

最后四行是因为init进程退出引起的,任何原因导致init进程退出都会出现。
你还没有回答我的问题,对么??
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 5756
精华: 0
发帖: 62
金钱: 310 两
威望: 62 点
综合积分: 124 分
注册时间: 2009-05-07
最后登录: 2017-09-13
4楼  发表于: 2010-05-30 12:05
今天我又做了个文件系统,用的也是4.3.2编译的,这个文件系统没有问题,换个内核镜像就正常启动了,但用这个内核还是不行,bootloader传递的命令行也是正确的,不明白啊
级别: 侠客
UID: 5756
精华: 0
发帖: 62
金钱: 310 两
威望: 62 点
综合积分: 124 分
注册时间: 2009-05-07
最后登录: 2017-09-13
5楼  发表于: 2010-05-30 16:16
自己小顶一下哈
级别: 新手上路
UID: 10223
精华: 0
发帖: 4
金钱: 35 两
威望: 16 点
综合积分: 8 分
注册时间: 2009-10-28
最后登录: 2010-06-14
6楼  发表于: 2010-05-31 13:34
今天我又做了个文件系统,用的也是4.3.2编译的,这个文件系统没有问题,换个内核镜像就正常启动了,但用这个内核还是不行,bootloader传递的命令行也是正确的,不明白啊

这是啥意思??
你的kernel + 做的文件系统==不行
换个kernel镜像+做的文件系统==OK??

我分析,一下不就是BUSYBOX 好像与kernel没关系,,还是rootfs的问题吧。。。请高人解答哦。。
级别: 新手上路
UID: 1765
精华: 0
发帖: 37
金钱: 230 两
威望: 89 点
综合积分: 74 分
注册时间: 2008-09-26
最后登录: 2017-06-25
7楼  发表于: 2010-06-09 23:07
我也在mini2440上遇到了同样的问题,期待高手指导
级别: 新手上路
UID: 19004
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-04-15
最后登录: 2012-10-17
8楼  发表于: 2010-06-10 10:34
我也碰到这个问题了,烧到NAND flash里的是友善提供的yaffs2文件系统映像,后来尝试了用nfs挂载友善的root_qtopia,也不成功。

从官网上下了一个Linux2.6.34版本的内核,由于已经加入了对mini2440的支持,加入对yaffs2的支持后,我自己就编译了一个内核,在配置内核时,选择了nfs挂载根文件系统的支持,用U-boot通过nfs下载内核启动后却挂载不成功,详细的信息如下:
eth0: link down
IP-Config: Complete:
    device=eth0, addr=192.168.1.240, mask=255.255.255.0, gw=192.168.1.11,
    host=192.168.1.240, domain=, nis-domain=(none),
    bootserver=192.168.1.11, rootserver=192.168.1.11, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.11
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
rpcbind: server 192.168.1.11 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.11
rpcbind: server 192.168.1.11 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -110 while mounting /pro/arm/mini2440/root_qtopi
a
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)

然后我又换友善的内核,可以成功通过nfs挂载根文件系统,详细的信息如下:
eth0: link down
IP-Config: Complete:
    device=eth0, addr=192.168.1.240, mask=255.255.255.0, gw=192.168.1.11,
    host=192.168.1.240, domain=, nis-domain=(none),
    bootserver=192.168.1.11, rootserver=192.168.1.11, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.11
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Looking up port of RPC 100005/1 on 192.168.1.11
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 160K
hwclock: settimeofday() failed: Invalid argument
[01/Jan/1970:00:00:19 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:19 +0000] boa: server built Mar 26 2009 at 15:28:42.
[01/Jan/1970:00:00:19 +0000] boa: starting server pid=699, port 80
Try to bring eth0 interface up......NFS root ...Done

主机的nfs服务是成功开启的,请各路大侠帮忙分析下有可能是什么原因。
级别: 新手上路
UID: 19004
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2010-04-15
最后登录: 2012-10-17
9楼  发表于: 2010-06-11 08:34

 回 8楼(skysea) 的帖子

nfs挂载的问题解决了,要打补丁。
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go