rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off]
Adam Lee
adam8157 at gmail.com
Mon May 7 10:01:14 EDT 2012
On Mon, May 07, 2012 at 06:21:05PM +0530, pcuser p wrote:
> I am ending up in the shell prompt with the message as below:
> "entered linuxrc script"
> "/bin/sh: can't access tty; job control turned off
> / $"
>
> my kernel commad line is
> "mem=32M console=ttySAC0,115200 root=/dev/ram0 init=/linuxrc initrd=
> 0x80800000,8M user_debug=31"
In my kernel command line(with busybox), init=/sbin/init, I drop
commands into /etc/profile.
> Below are my /linuxrc and /etc/inittab file contents
> linuxrc:
>
> #!/bin/sh
> /bin/echo "entered linuxrc script"
> /bin/sh
> exec /sbin/init
Don't run sh before init, this makes the warning.
> /etc/inittab:
>
> # Run gettys in standard runlevels
> 3:2345:respawn:/sbin/getty 115200 ttySAC0
>
runlevels makes no sense here, but it should be OK.
And, I use busybox to build the rootfs for kernel debugging:
https://github.com/adam8157/kernel-studio
the rootfs making script is at here right now:
https://github.com/adam8157/kernel-studio/blob/master/mkrootfs
Might helps.
--
Regards,
Adam Lee
--------------------------------
E-mail: adam8157 at gmail.com
Website: http://adam8157.info
--------------------------------
More information about the Kernelnewbies
mailing list