Hello All, For some reason, I have to cross compile busybox with glibc/gcc for my ARM target board, which is based on Atmel ARM9. Most of things works, bash shell prompts after I login, all the busybox commands work fine. In the inittab, several sysinit commands can successfully mount the /, /proc and all other devices listed in /etc/fstab.
However, the inittab fails to invoke the /etc/init.d/rcS even if it does "see" the script. I mean "see" since if I remove the rcS or rename it, the system does complain that the "etc/init.d/rcS" does not exist. Unfortunately even if the inittab "see"s /etc/init.d/rcS, it does not really execute any commands inside the rcS. I checked that mode of rcS is executable by every one. But even the "echo" does not echo anything, in the command shell, all the commands inside rcS work fine. I do not think it is inittab itself problem, since I copy inittab and rcS to another rootfs with buysbox compiled with uclibc, it works. So I guess it could be busybox+glibc problem. By the way busybox+glibc does work for our x86 targets, but not ARM. My questions are, 1) Anyone had similar problem ? I searched in Archive, but could not find any closely related topic. 2) If I turn to sysvinit and inittab, how can I combine busybox and sysvinit together? Let sysvinit "invoke" busybox? (Uisng sysvinit to start up and busybox for all shell comands)? Any links to the all the steps to do it? Sorry if anything is already in the archive, since I could not find it. [EMAIL PROTECTED] etc]# ls -l init.d/rcS -rwxr-xr-x 1 root root 475 2008-10-25 23:06 init.d/rcS The following is my inittab null::sysinit:/bin/mount -o remount,rw / null::sysinit:/bin/mount -t proc proc /proc null::sysinit:/bin/mount -a null::sysinit:/bin/hostname -F /etc/hostname null::sysinit:/sbin/ifconfig lo 127.0.0.1 up ::sysinit:/etc/rc.d/rc.sysinit null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo null::sysinit:/sbin/route add -net 192.168.1.100 netmask 255.255.255.0 eth0 # now run any rc scripts ::sysinit:/etc/init.d/rcS # Set up a couple of getty's tty1::respawn:/sbin/getty 115200 tty1 tty2::respawn:/sbin/getty 115200 tty2 # Put a getty on the serial port ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # Logging junk null::sysinit:/bin/touch /var/log/messages null::respawn:/sbin/syslogd -n -m 0 null::respawn:/sbin/klogd -c 1 -n tty3::respawn:/usr/bin/tail -f /var/log/messages Thanks a lot for the helps, Hong
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
