我的文件系统出现的问题
来源:互联网 发布:网络搞笑段子 编辑:程序博客网 时间:2024/05/19 12:17
Power on reset
Env.Os_Auto_Flag=1
<*******************************************>
<* *>
<* S3C2410 Board BIOS V2008 *>
<* *>
<* Henan Polytechnic University *>
<* *>
<* 董利强 *>
<* *>
<* ^_^ Love you every day ^_^ *>
<* *>
<*******************************************>
NAND Flash Boot
Please select function :
0 : USB download file
1 : Uart download file
2 : Write Nand flash with download file
3 : Load Pragram from Nand flash and run
4 : Erase Nand flash regions
5 : Write NOR flash with download file
6 : Set boot params
7 : Set AutoBoot parameter,1:linux 2:wince
Set boot params = root=1f02 init=/linuxrc console=ttyS0,115200 devfs=mount display=dh240
Linux version 2.6.8.1-ptx1 (root@linuxserver) (gcc version 3.3.2) #245 Thu Mar 6 10:25:09 EST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU: D VIVT write-back cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
Built 1 zonelists
Kernel command line: root=1f02 init=/linuxrc console=ttyS0,115200 devfs=mount display=dh240
irq: clearing pending ext status 00040000
irq: clearing pending status 00002000
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
Trying to install chained handler for IRQ47
PID hash table entries: 512 (order 9: 4096 bytes)
setup_timer tcon=00090d09, tcnt c350, tcfg 0000040f,00001032
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61904KB available (2249K code, 487K data, 128K init)
Calibrating delay loop... 99.73 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410: Initialising architecture
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
VA=0xffc00000, PA=0x30380000, size=0x00027000
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.15 [Flags: R/W].
yaffs Mar 6 2008 10:21:10 Installing.
Console: switching to colour frame buffer device 40x30
s3c2410ts init
s3c2410ts device driver MAJOR:253
s3c2410ts initialized
S3C2410 Real Time Clock Driver v0.1
S3C2410X Serial, (c) 2003 Simtec Electronics
ttyS0 at MMIO 0x50000000 (irq = 70) is a S3C2410
ttyS1 at MMIO 0x50004000 (irq = 73) is a S3C2410
ttyS2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Using anticipatory io scheduler
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
Cirrus Logic CS8900A driver for Linux (V0.02)
eth0: CS8900A rev E detected
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Linux video capture interface: v1.00
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide_register_hw return -1
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "boot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x02000000 : "rootfs"
0x02000000-0x03000000 : "ext-fs1"
0x03000000-0x04000000 : "ext-fs2"
drivers/usb/host/ohci-s3c2410.c: ohci_hcd (S3C2410) at 0xf0200000, irq 42
s3c2410-ohci s3c2410-ohci5: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
s3c2410kbd_init
s3c2410-maxtrixkb successfully loaded
S3C2410-UDA1341 Probe
UDA1341 audio driver initialized
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 128K
Kernel panic: No init found. Try passing init= option to kernel.
解决办法:
加入linuxrc文件
但是又出现了新的问题:
cannot run '/etc/init.d/rcS': No such file or director
Please press Enter to activate this console.
can't open /dev/tty2: No such file or director
我想问题是出现在linuxrc文件上了,思考中。。。
后来查了一些资料:
问题1, 使用jffs2文件系统:
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "fonts" (ino #13) of dir ino #4 appears to be a hard link
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 304k freed
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.
原因: flash没有erase彻底.
问题2, 使用cramfs时出错:
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 304k freed
Error -3 while decompressing!
804878c4(1884)->81200000(16384)
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
原因: 没有仔细看 mkfs.cramfs 的手册, 需要指定-b参数, 大小与PAGE_SIZE一样 (查看.config文件 CONFIG_PAGE_SIZE_16KB=y).
问题3 :
Kernel panic - not syncing: Attempted to kill init!
原因: 应该是/etc/fstab 之类的文件没有,重做文件系统后OK
问题4, 一直提示找不到/dev/tty2-4, 按下[Enter]后死机:
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 304k freed
init started: BusyBox v1.12.1 (2008-10-13 13:37:42 CST)
starting pid 696, tty '': '/etc/init.d/rcS'
cannot run '/etc/init.d/rcS': No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty4: No such file or directory
process '-/bin/sh' (pid 698) exited. Scheduling for restart.
process '-/bin/sh' (pid 699) exited. Scheduling for restart.
又要重新编译busybox,郁闷。。。
networking/interface.c:818: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:818: error: initializer element is not constant
networking/interface.c:818: error: (near initialization for `ib_hwtype.type')
make[1]: *** [networking/interface.o] Error 1
make: *** [networking] Error 2
注释掉 820/* .type = ARPHRD_INFINIBAND, */ 就行了。
但愿以后不会出现什么问题吧!呵呵,要去拔河了,回来在做!
领悟中。。。
你的BUSYBOX和你内核的交叉编译工具必需相同
哈哈。。。终于搞定了。自己编写了一个linuxrc文件。添加bash文件到/bin文件下就可以了,一阵英文飘过,心情也变得舒畅起来。。。。。。
Power on reset
Env.Os_Auto_Flag=1
<*******************************************>
<* *>
<* S3C2410 Board BIOS V2008 *>
<* *>
<* Henan Polytechnic University *>
<* *>
<* 董利强 *>
<* *>
<* ^_^ Love you every day ^_^ *>
<* *>
<*******************************************>
NAND Flash Boot
Please select function :
0 : USB download file
1 : Uart download file
2 : Write Nand flash with download file
3 : Load Pragram from Nand flash and run
4 : Erase Nand flash regions
5 : Write NOR flash with download file
6 : Set boot params
7 : Set AutoBoot parameter,1:linux 2:wince
Set boot params = root=1f02 init=/linuxrc console=ttyS0,115200 devfs=mount display=dh240
Linux version 2.6.8.1-ptx1 (root@linuxserver) (gcc version 3.3.2) #245 Thu Mar 6 10:25:09 EST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU: D VIVT write-back cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
Built 1 zonelists
Kernel command line: root=1f02 init=/linuxrc console=ttyS0,115200 devfs=mount display=dh240
irq: clearing pending status 00002000
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
irq: clearing subpending status 00000092
Trying to install chained handler for IRQ47
PID hash table entries: 512 (order 9: 4096 bytes)
setup_timer tcon=00090d09, tcnt c350, tcfg 0000040f,00001032
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61904KB available (2249K code, 487K data, 128K init)
Calibrating delay loop... 99.94 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410: Initialising architecture
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
VA=0xffc00000, PA=0x30380000, size=0x00027000
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.15 [Flags: R/W].
yaffs Mar 6 2008 10:21:10 Installing.
Console: switching to colour frame buffer device 40x30
s3c2410ts init
s3c2410ts device driver MAJOR:253
s3c2410ts initialized
S3C2410 Real Time Clock Driver v0.1
S3C2410X Serial, (c) 2003 Simtec Electronics
ttyS0 at MMIO 0x50000000 (irq = 70) is a S3C2410
ttyS1 at MMIO 0x50004000 (irq = 73) is a S3C2410
ttyS2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Using anticipatory io scheduler
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
Cirrus Logic CS8900A driver for Linux (V0.02)
eth0: CS8900A rev E detected
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Linux video capture interface: v1.00
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide_register_hw return -1
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "boot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x02000000 : "rootfs"
0x02000000-0x03000000 : "ext-fs1"
0x03000000-0x04000000 : "ext-fs2"
drivers/usb/host/ohci-s3c2410.c: ohci_hcd (S3C2410) at 0xf0200000, irq 42
s3c2410-ohci s3c2410-ohci5: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
s3c2410kbd_init
s3c2410-maxtrixkb successfully loaded
S3C2410-UDA1341 Probe
UDA1341 audio driver initialized
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 128K
hello,qiang (这是我加的,代表我编写的Liunxrc成功执行!)
mount /etc as ramfs
re-create the /etc/mtab entries
insmod: /lib/modules/2.6.8.1-ptx1: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: sd_mod.ko: no module by that name found
insmod: /lib/modules/2.6.8.1-ptx1: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: usb-storage.ko: no module by that name found
insmod: /lib/modules/2.6.8.1-ptx1: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: usbvideo.ko: no module by that name found
insmod: /lib/modules/2.6.8.1-ptx1: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: ov511.ko: no module by that name found
mount: Mounting none on /proc/bus/usb failed: No such file or directory
mount: Mounting /dev/mtdblock/1 on /mnt/yaffs failed: No such file or directory
/etc/init.d/rcS: line 4: /usr/etc/profile: No such file or directory
Please press Enter to activate this console.
Bummer, could not run '/usr/etc/
Please press Enter to activate this console.
bash-2.05b# ls
[1;34mbin[0m [1;34metc[0m [1;34mlib[0m [1;34mproc[0m [1;34msys[0m [1;34musr[0m
[1;34mdev[0m [1;34mhome[0m [1;32mlinuxrc[0m [1;34msbin[0m [1;34mtmp[0m [1;34mvar[0m
bash-2.05b#
这下心情爽多了,也可以进入下一个阶段了——驱动程序的开发!
- 我的文件系统出现的问题
- hadoop改变文件系统中出现的问题
- 我的文件系统启动
- 在挂载yaffs2 文件系统出现的问题和解决办法。
- uboot环境变量设置好后烧写启动内核,文件系统出现的问题
- 我的JDK出现问题了
- 我的电脑 布局出现问题 解决
- 我出现的内存泄露问题
- yaffs文件系统的问题
- jffs2 文件系统的问题
- ubifs文件系统的问题
- 用uboot网络启动内核和根文件系统时的问题--出现的问题
- 记记我的 Windows 7 出现的小问题
- 记录我的bug,关于setVisibility()出现的奇怪问题
- 解决双击我的电脑出现打开方式问题
- tomcat启动出现的问题,我来总结下
- django+mysql出现的问题让我很困惑
- VM虚拟机安装centos我出现的几点问题
- 第一个博客
- 老紫竹JavaEE基础教程说明
- 老紫竹JavaEE培训教程(1)- 准备工作
- 老紫竹Java EE培训教程(2) - 认识JSP的HelloWorld
- 系统启动挂载根文件系统时Kernel panic
- 我的文件系统出现的问题
- DOS下的多窗口程序!
- Basic Fast OSX Troubleshooting
- AOP 的利器:ASM 3.0 介绍
- 用 coLinux 进行虚拟化
- 并行启动应用程序从而加速 Linux 的引导
- 关于成功
- DOS工控界面开发-图形用户界面
- 系统程序员成长计划-写得又快又好的秘诀(一)