经过一段时间的煎熬,终于看到shell了,可是shell总是过几分钟输出: init: /bin/sh respawning too fast 我看了启动信息,发现运行脚本rc时,/bin/expand命令出错: Command: /bin/expand /etc/ramfs.img /dev/ram1 /bin/expand: Bad command or file name 认为shell出错和这个有关,望高指点,多谢。 以下是我的启动信息: U-Boot 1.1.4 (Jan 22 2007 - 16:40:53) U-Boot code: 0C700000 -> 0C719EF8 BSS: -> 0C71E99C RAM Configuration: Bank #0: 0c000000 8 MB Flash: 2 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ## Booting image at 00040000 ... Image Name: Linux-2.6.9 Created: 2007-01-26 2:50:16 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 659816 Bytes = 644.4 kB Load Address: 0c008000 Entry Point: 0c008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux................................................ done, bootin g the kernel. Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 200103 15 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClin ux XIP and shared lib patches from http://www.snapgear.com/)) #48 Fri Jan 26 10: 47:23 CST 2007 CPU: Samsung-S3C44B0x [44b07700] revision 0 (ARMv4T) Machine: S3C44B0X Development Board Built 1 zonelists Kernel command line: root=/dev/ram0 initrd=0x0c13c53c,120k console=ttyS0,115200 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 8MB = 8MB total Memory: 6592KB available (1297K code, 132K data, 56K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (ungzip failed); looks like an initrd Freeing initrd memory: 120K NET: Registered protocol family 16 init_module Samsung S3C44B0 Rtl8019as driver version 0.1 (2002-02-20) <hzh12@163.net> init eth0: 12:34:56:78:90:ab get_stats devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 ttyS0 at I/O 0x1d00000 (irq = 3) is a Samsung S3C44B0 Internal UART ttyS1 at I/O 0x1d04000 (irq = 2) is a Samsung S3C44B0 Internal UART RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize loop: loaded (max 8 devices) Using anticipatory io scheduler nbd: registered device at major 43 NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: romfs filesystem found at block 0 RAMDISK: Loading 120KiB [1 disk] into ram disk... done. VFS: Mounted root (romfs filesystem) readonly. Mounted devfs on /dev Freeing init memory: 56K Shell invoked to run file: /etc/rc Command: hostname Samsung Command: /bin/expand /etc/ramfs.img /dev/ram1 /bin/expand: Bad command or file name Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram1 /var mount failed: No such file or directory Command: mkdir /var/config /var/config: Read-only file system Command: mkdir /var/tmp /var/tmp: Read-only file system Command: mkdir /var/log /var/log: Read-only file system Command: mkdir /var/run /var/run: Read-only file system Command: mkdir /var/lock /var/lock: Read-only file system Command: mkdir /var/empty /var/empty: Read-only file system Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Command: ifconfig lo 127.0.0.1 ifconfig: Bad command or file name Command: route add -net 127.0.0.0 netmask 255.255.255.0 lo route: Bad command or file name Command: dhcpcd & dhcpcd: Bad command or file name sh 10: Child 14 died [14] Execution Finished, Exiting init: exec rc failed init: /bin/firewall failed!init: exec rc failed Sash command shell (version 1.1.1) />init: /bin/sh respawning too fast init: /bin/sh respawning too fast
|