|
我的linux_cmd_line "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0 ,115200
启动脚本文件linuxrc为:
#!/bin/sh
echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc
echo "re-create the /etc/mtab entries"
#re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
#!mount /proc as proc file system
echo"-----------mount /proc as proc"
/bin/mount -n -t proc none /proc
#!mount /sys as sysfs file system
echo "-----------mount /sys as sysfs"
/bin/mount -n -t sysfs none /sys
exec /sbin/init
用busybox自己生成的脚本能够执行。我把BUSYBOX生成的脚本linuxrc删除后,自己编辑的上面给出的linuxrc,出现如下错误:
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x00230000 : "kernel"
0x00230000-0x00530000 : "root"
0x00530000-0x04000000 : "usr"
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 104K
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel. |
|