uclinux 没有执行rc脚本 解决办法
发现系统网络不能用,proc下是空的
后来发现init没有编译到系统里
menuconfig
——》
user
——》
core app
——》
init
修改rc文件加入网关 :
route add default gw 192.168.1.1 eth0
就有下面的执行过程了
Shell invoked to run file: /etc/rc
Command: hostname Samsung
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs2048.img /dev/ram1
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram1 /ramdisk
mount: Mounting /dev/ram1 on /ramdisk failed: No such file or directory
pid 13: failed 256
Command: chmod 777 /ramdisk
/ramdisk: No such file or directory
Command: mkdir /var/config
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig eth0 192.168.0.28 netmask 255.255.255.0 up
Command: cat /etc/motd
Welcome to