天嵌 ARM开发社区

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

挂载自己做的根文件系统,出现以下问题

[复制链接]
hyong 发表于 2014-5-19 14:03:14 | 显示全部楼层 |阅读模式
10
以下启动信息,是将根文件系统固化到nand的根文件分区:
AND read: device 0 offset 0x80000, size 0x500000
5242880 bytes read: OK
## Booting image at 31000000 ...
   Image Name:   linux-2.6.30.4
   Created:      2014-05-15  15:22:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1970296 Bytes =  1.9 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux............................................................................................................................... done, booting the kernel.
Linux version 2.6.30.4 (root@localhost.localdomain) (gcc version 3.4.5) #8 Thu May 15 23:22:04 CST 2014
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, (c) 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 on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60712KB available (3672K code, 319K data, 144K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,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
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May 15 2014 21:30:05 Installing.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 40x30
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
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
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 08:00:3e:26:0a:5b <6>eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c486e300,c4872304 IRQ 51 MAC: 08:00:3e:26:0a:5b (smdk2440)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 520 at 0x000004100000
Bad eraseblock 1627 at 0x00000cb60000
Bad eraseblock 1740 at 0x00000d980000
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "u-boot-2009.08"
0x000000060000-0x000000080000 : "u-boot-parameters"
0x000000080000-0x000000580000 : "kernel -2.6.30.4"
0x000000580000-0x000010000000 : "Rootfile system"
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
usb usb1: configuration #1 chosen from 1 choice
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.4.3: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
mice: PS/2 mouse device common for all mice
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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-06-26 19:08:40 UTC (1246043320)
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs2
block 114 is bad
block 477 is bad
block 1584 is bad
block 1697 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 144K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c00308b8>] (dump_backtrace+0x0/0x104) from [<c00309d4>] (dump_stack+0x18/0x1c)
r7:00000000 r6:c03e561c r5:c0024750 r4:c03e4f14
[<c00309bc>] (dump_stack+0x0/0x1c) from [<c004c818>] (panic+0x40/0x114)
[<c004c7d8>] (panic+0x0/0x114) from [<c002c4fc>] (init_post+0xd0/0x100)
r3:c3805e14 r2:00000006 r1:00000005 r0:c0363a1c
[<c002c42c>] (init_post+0x0/0x100) from [<c0008bf0>] (kernel_init+0xbc/0xe4)
r4:c03e4f18
[<c0008b34>] (kernel_init+0x0/0xe4) from [<c004ed24>] (do_exit+0x0/0x588)
r5:00000000 r4:00000000
以是nfs挂载的根文件系统启动信息:
U-Boot 1.1.6 (May 17 2014 - 20:46:41)
DRAM:  64 MB
Flash:  2 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xda ( NAND 256MiB 3,3V 8-bit)
256 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
NAND read: device 0 offset 0x80000, size 0x500000
5242880 bytes read: OK
## Booting image at 31000000 ...
   Image Name:   linux-2.6.30.4
   Created:      2014-05-16   7:27:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1974396 Bytes =  1.9 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux............................................................................................................................... done, booting the kernel.
Linux version 2.6.30.4 (root@localhost.localdomain) (gcc version 3.4.5) #10 Fri May 16 15:26:04 CST 2014
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, (c) 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 on.  Total pages: 16256
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.3:/work/nfs_root ip=192.168.1.12:192.168.1.3:192.168.1.12:255.255.255.0:SKY2440.embedsky.net:eth0:off
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60700KB available (3680K code, 318K data, 144K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,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
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May 16 2014 15:25:18 Installing.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 40x30
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
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
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 08:00:3e:26:0a:5b <6>eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c486e300,c4872304 IRQ 51 MAC: 08:00:3e:26:0a:5b (smdk2440)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 157 at 0x0000013a0000
Bad eraseblock 520 at 0x000004100000
Bad eraseblock 1627 at 0x00000cb60000
Bad eraseblock 1740 at 0x00000d980000
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "u-boot-2009.08"
0x000000060000-0x000000080000 : "u-boot-parameters"
0x000000080000-0x000000580000 : "kernel -2.6.30.4"
0x000000580000-0x000010000000 : "Rootfile system"
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
usb usb1: configuration #1 chosen from 1 choice
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.4.3: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
mice: PS/2 mouse device common for all mice
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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-06-30 05:25:44 UTC (1246339544)
eth0: link down
IP-Config: Complete:
     device=eth0, addr=192.168.1.12, mask=255.255.255.0, gw=192.168.1.12,
     host=SKY2440, domain=, nis-domain=embedsky.net,
     bootserver=192.168.1.3, rootserver=192.168.1.3, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.3
eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
rpcbind: server 192.168.1.3 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.3
mount: server 192.168.1.3 not responding, timed out
Root-NFS: Server returned error -5 while mounting /work/nfs_root
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             384 mtdblock0 (driver?)
1f01             128 mtdblock1 (driver?)
1f02            5120 mtdblock2 (driver?)
1f03          256512 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c00308b8>] (dump_backtrace+0x0/0x104) from [<c00309d4>] (dump_stack+0x18/0x1c)
r7:c39d5000 r6:c03e745c r5:00000000 r4:c3817f5c
[<c00309bc>] (dump_stack+0x0/0x1c) from [<c004c4e8>] (panic+0x40/0x114)
[<c004c4a8>] (panic+0x0/0x114) from [<c000900c>] (mount_block_root+0x1d8/0x21c)
r3:00000000 r2:20000013 r1:c3817f5c r0:c0365964
[<c0008e34>] (mount_block_root+0x0/0x21c) from [<c000921c>] (mount_root+0xd0/0xf0)
[<c000914c>] (mount_root+0x0/0xf0) from [<c00093ac>] (prepare_namespace+0x170/0x1d0)
r6:00000000 r5:c0025888 r4:c03e6d64
[<c000923c>] (prepare_namespace+0x0/0x1d0) from [<c0008bec>] (kernel_init+0xb8/0xe4)
r5:c002466c r4:c03e6d58
[<c0008b34>] (kernel_init+0x0/0xe4) from [<c004e9f4>] (do_exit+0x0/0x588)
r5:00000000 r4:00000000
?
PS:在网上搜寻了各种方法都不行,此论坛的方法也都试了还是不行。求大神帮助,在线等帮助

wbz073 发表于 2014-5-19 15:11:11 | 显示全部楼层
Failed to execute /linuxrc.  Attempting defaults...
请仔细看这里,解压linuxrc出错
回复

使用道具 举报

 楼主| hyong 发表于 2014-5-19 15:20:38 | 显示全部楼层
wbz073 发表于 2014-5-19 15:11
Failed to execute /linuxrc.  Attempting defaults...
请仔细看这里,解压linuxrc出错

linuxrc是编译busybox生成的,怎么会出错呢。请版主明示
回复

使用道具 举报

wbz073 发表于 2014-5-19 15:26:01 | 显示全部楼层
hyong 发表于 2014-5-19 15:20
linuxrc是编译busybox生成的,怎么会出错呢。请版主明示

在内核配置中kernel feather下provide old way to pass kernel parameters选中看看,然后再检查下:
1        linuxrc不具备可执行属性 (chmod 775 linuxrc)
2、        linuxrc的解释shell不在首行(#!/bin/sh)
3、        linuxrc的解释shell不存在(没有sh可执行文件)
回复

使用道具 举报

 楼主| hyong 发表于 2014-5-19 16:20:55 | 显示全部楼层
wbz073 发表于 2014-5-19 15:26
在内核配置中kernel feather下provide old way to pass kernel parameters选中看看,然后再检查下:
1   ...

前2项已经检查内核中没有kernel feather下provide old way to pass kernel parameters 这个选项,至于linuxrc是2进制文件,不知道怎么去检查这个。还希望版主明示哈
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-7 11:48 , Processed in 1.046868 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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