天嵌 ARM开发社区

 找回密码
 注册
查看: 4773|回复: 16

根文件系统启动到这里就不动了

[复制链接]
zhujunfengx 发表于 2009-9-16 08:15:54 | 显示全部楼层 |阅读模式
我按手册一步步做完了文件系统移植,
可是根文件系统启动到这里就不动了。显示如下:
..................
Freeing init memory: 124K
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.

请大家帮帮俺。小子在这里谢谢了!
谢谢大家!
buster 发表于 2009-9-16 08:26:58 | 显示全部楼层
显示你的  console  linuxc 不能执行  用chmod改一下属性试试
 楼主| zhujunfengx 发表于 2009-9-17 08:09:29 | 显示全部楼层
属性已经修改了。可是还没有用。我发现我不烧写文件系统它也是这种错误。我烧写的是用nand write 命令烧写的。整个启动信息如下:
0

Loading from device 0: <NULL> at 0x4e000000 (offset 0x4c000)
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-06  12:01:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1657212 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008000
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-06  12:01:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1657212 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................................................................... done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 3.4.5) #6 Sun Sep 6 20:00:27 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
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: 61440KB available (3016K code, 287K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) &copy; 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
yaffs Sep  6 2009 19:59:56 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=2, 19ns Twrph0=3 29ns, Twrph1=2 19ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3729 at 0x03a44000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "ZhuJunfeng24xx_UBoot"
0x0004c000-0x0024c000 : "ZhuJunFeng24xx_Kernel"
0x0024c000-0x03ffc000 : "ZhuJunFeng24xx_Yaffs 2 "
usbmon: debugfs is not available
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
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 3582 is marked bad
block 3583 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 124K
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.
buster 发表于 2009-9-17 09:31:46 | 显示全部楼层
内核没问题  还是要检查文件系统  关键是etc 目录下的文件  可以和他们做好的文件系统源码一下,还有编译的命令
 楼主| zhujunfengx 发表于 2009-9-21 08:18:22 | 显示全部楼层
根文件系统启动到这就没有反应了。是怎么回事呢?谢谢!
U-Boot 1.1.6 (Sep 20 2009 - 20:40:53)

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

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0

Loading from NAND 64MiB 3,3V 8-bit, offset 0x4c000
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-06  12:01:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1657212 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008000
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-06  12:01:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1657212 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................................................................... done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 3.4.5) #6 Sun Sep 6 20:00:27 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
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: 61440KB available (3016K code, 287K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
yaffs Sep  6 2009 19:59:56 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=2, 19ns Twrph0=3 29ns, Twrph1=2 19ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3729 at 0x03a44000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "ZhuJunfeng24xx_UBoot"
0x0004c000-0x0024c000 : "ZhuJunFeng24xx_Kernel"
0x0024c000-0x03ffc000 : "ZhuJunFeng24xx_Yaffs 2 "
usbmon: debugfs is not available
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
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 3582 is marked bad
block 3583 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 124K
lansky 发表于 2009-9-22 10:37:49 | 显示全部楼层
本帖最后由 lansky 于 2009-9-22 10:41 编辑

5# zhujunfengx

文件系统制作出了问题。。。我当时也遇到这种情况。
请翻以前的帖子,也有人出过这种情况的。。。

http://bbs.embedsky.net/viewthread.php?tid=815&extra=page%3D2
 楼主| zhujunfengx 发表于 2009-9-23 08:05:11 | 显示全部楼层
还是不行,我回家对着PDF检查了四次,把看起来像`的符号改成`,把 ' 变成 ' 还是不行,每个文件的字母和符号检查了好几次,它就是不行。换编译器也换了几次,它还是不行。我是用
loady 0x32000000下载YAFFS文件的。还有就是生成的YAFFS文件在虚拟机共享文件夹里拷贝不下来。我用SSH工具给down下来的。
头晕呀。请大家帮帮我呀。谢谢!
buster 发表于 2009-9-23 10:50:03 | 显示全部楼层
全部按第二版手册好像不会出现这个问题,第三版时我也遇到了 没解决 就换第二版了
 楼主| zhujunfengx 发表于 2009-9-23 12:21:35 | 显示全部楼层
我是用第二版做的呀。都是一步一步按着PDF上面写的做的呀。晕呀。谁有做好的YAFFS根文件系统呀。传一个给我试一下行不?
zhujunfengx@163.com
谢谢!
lansky 发表于 2009-9-23 23:04:25 | 显示全部楼层
9# buster

我用的就是第三版的文档。第一次出了这个问题,然后再弄一次就好了。有些文件的内容可以从busybox拷贝过来再修改的(除了usr bin sbin linuxc这几个文件之外)。
lansky 发表于 2009-9-23 23:05:13 | 显示全部楼层
10# zhujunfengx
额,明天我切换到ubuntu下,给你发一份文件系统,你自己压制一下。
 楼主| zhujunfengx 发表于 2009-9-24 08:11:51 | 显示全部楼层
谢谢 landsky
谢谢 论坛
谢谢 帮助我的兄弟姐妹。
有什么要小弟帮忙的尽管说。呵呵。我在深圳。
来深圳了请你们吃快餐。呵呵.
buster 发表于 2009-9-24 08:55:23 | 显示全部楼层
12# lansky


我按照第三版改了几次没能成,换成第二版一次就成了
 楼主| zhujunfengx 发表于 2009-9-24 14:37:44 | 显示全部楼层
我的还是不行,但是把光盘里的根文件系统拷贝出来,然后再根据PDF写的一步一步的做下去,结果就可以了。这是为什么呢?但是它还是出现了这个提示:
..........
Freeing init memory: 120K

Please press Enter to activate this console.
-sh: can't access tty; job control turned off
[root@EmbeSky /]#
lansky 发表于 2009-9-25 11:10:15 | 显示全部楼层
13# zhujunfengx

文件系统已经打包压缩发送到你的邮箱里面去了哈!请查收。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-6-29 16:49 , Processed in 1.078125 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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