在移植完yaffs文件系统后,网卡移植时遇到问题:
block 734 is bad
block 1818 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 480K
/etc/init.d/rcS: line 23: EmbedSky_wdg: not found
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 00:0c:29:52:c0:4c
/etc/rc.d/init.d/httpd: line 14: /sbin/boa: not found
Please press Enter to activate this console. eth0: link down
uptmask 255.255.255.01.6
route: SIOCADDRT: Network is unreachable
add default gw 192.168.1.255
Done
就是提示boa和EmbedSky_wdg文件找不到,这两个文件是自己照手册做的,EmbedSky_wdg是看门狗的喂狗程序,从天嵌光盘考的文件系统中复制的这两个文件也会遇到同样的问题,rcS和httpd文件如下:
httpd文件:
#!/bin/sh
base=boa
# See how we were called.
case "$1" in
start)
/sbin/$base
;;
stop)
pid=`/bin/pidof $base`
if [ -n "$pid" ]; then
kill -9 $pid
fi
;;
esac