help needed to bringup init and shell

Denis Vlasenko vda.linux at googlemail.com
Mon Apr 9 03:24:51 UTC 2007


On Sunday 08 April 2007 14:46, Maria Arpa wrote:
> Hello Denis,
> First very very thanks for replying. One gentleman
> asked me not to email such queries on this mailing
> list, so I am sending you personal email. I am sorry
> for this but need your help badly.

He probably means that your question is not about busybox per se,
but more like "how to make my embedded system boot".

> I am using Codesourcery toolchain to build static
> busybox. I tried giving init=/bin/sh to linux kernel
> as boot param, with /bin/sh being a symlink to
> busybox. However, I don't see anything coming out on
> serial port "/dev/ttyS1". I wrote a small app to do
> read and write on /dev/ttyS1 and it works fine.
> How do I tell busybox to print on /dev/ttyS1. I think
> it uses inittab for this but with that also it doesnt
> print.

I think there is a kernel option for that.

Documentation/kernel-parameters.txt"

console= [KNL] Output console
         Console device and comm spec (speed, control, parity).

30 seconds of Googling produced this:

http://www.vanemery.com/Linux/Serial/serial-console.html

Looks like it is explained there.

> When do we get "sh: applet not found" print and what
> can be wrong for it to suddenly vanish in the middle,
> any thoughts will help me move forward.

This is what basically happens:

# ./busybox sdfgsdfg
sdfgsdfg: applet not found

With symlink:

# ln -s busybox sdfgsdfg
# ./sdfgsdfg
sdfgsdfg: applet not found

You have the similar situation with "sh". Your busybox
simply doesn't know what is "sh"!

Please show your .config and ls -l /bin.
--
vda



More information about the busybox mailing list