busybox init and rcS
hinko.kocevar at cetrtapot.si
hinko.kocevar at cetrtapot.si
Fri Jan 6 10:53:40 UTC 2006
Hi @ll,
I'm trying to run busybox on axis etrax CPU based board. I've configured
and compiled busybox with its init applet. System boots but it doesn't
pass sysinit call in inittab. Below are /etc/inittab and
/etc/init.d/rcS files.
/etc/inittab:
# This is run first except when booting in single-user mode.
::sysinit:/etc/init.d/rcS
# Start an "askfirst" shell on the console (whatever that may be)
::askfirst:/bin/sh
# Stuff to do when restarting the init process
::restart:/sbin/init
# Stuff to do before rebooting
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
/etc/init.d/rcS:
#!/bin/sh
/bin/mount -t proc none /proc
echo "Welcome to Carneol"
sleep 3
echo "After 3sek..."
/bin/mount
If I comment out the "::sysinit:/etc/init.d/rcS" line in inittab,
/bin/sh shell runs at the end of the boot:
...
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 64k freed
init started: BusyBox v1.01 (2006.01.06-09:06+0000) multi-call binary
Please press Enter to activate this console.
BusyBox v1.01 (2006.01.06-09:06+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ #
otherwise (with ::sysinit:/etc/init.d/rcS lne present) this is what I get:
...
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 64k freed
init started: BusyBox v1.01 (2006.01.06-10:43+0000) multi-call binary
Welcome to Carneol
After 3sek...
/dev/mtdblk2 on / type jffs2 (rw,noatime)
none on /proc type proc (rw,nodiratime)
Then system seems to hang forever...
Any comments?
Thanks,
Hinko
--
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenija
Tel. +386 (0) 4 280 66 37
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
More information about the busybox
mailing list