Where is my shell ?
Denis Vlasenko
vda.linux at googlemail.com
Thu Apr 5 14:56:08 PDT 2007
On Thursday 05 April 2007 08:26, Levend Sayar wrote:
> >In init, does exec() which starts /bin/sh (as configured in your inittab)
> >succeeds?
>
> In fact I don't know what is going on the user-land. Since ,as the log I
> posted show, nothing can be seen but kernel printk's. I tried kernel
> parameter init=/bin/sh also. And I tried init=myinit (myinit is an app
> written by me and just open(/dev/console) and writes something)
> as a last try. Again result is failure.
Don't open /dev/console. Kernel already supplies open fds #0,1,2. Just do:
write(1, "hello?", 6);
write(2, "world?", 6);
compile and boot with init=/helloworld. If this doesn't work, you
have a problem with toolchain.
--
vda
More information about the busybox
mailing list