Thread (6 messages) 6 messages, 4 authors, 2012-05-08

rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off]

From: Adam Lee <hidden>
Date: 2012-05-07 14:01:14

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
--------------------------------
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help