From mboxrd@z Thu Jan 1 00:00:00 1970 From: adam8157@gmail.com (Adam Lee) Date: Mon, 7 May 2012 22:01:14 +0800 Subject: rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off] In-Reply-To: References: Message-ID: <20120507140114.GA4817@adam-laptop> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 --------------------------------