kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off]
@ 2012-05-07 12:51 pcuser p
  2012-05-07 13:42 ` Anirban Roy
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: pcuser p @ 2012-05-07 12:51 UTC (permalink / raw)
  To: kernelnewbies

Hi,
I am newbie to linux kernel,doing kernel porting on a arm926ej-s FPGA board
(only timer & uart hardware is available in the board)

I'm using busybox for rootfs(busy box binary is built with "static" option
enabled)

After file system is mounted,I can see the below message,
"VFS: Mounted root (cramfs filesystem) readonly on device 1:0."
"Freeing init memory: 80K"

I am expecting to get to shell prompt and give some commands (ls,clear)
after file system gets mounted.

*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
/ $"

I am getting no response from terminal for any commands entered in the shel
lafter this.

I went through this FAQ in http://www.busybox.net/FAQ.html#job_control
I could not follow this exactly.

my kernel commad line is
"mem=32M console=ttySAC0,115200 root=/dev/ram0 init=/linuxrc
initrd=0x80800000,8M user_debug=31"


*I could see 2 issues here:*
1. I am using shell on /dev/console which is not correct  as mentioned in
busybox FAQ
2. linuxrc and /etc/inittab files may not be correct.

I  think the problem could be in both above 2 cases.


Below are my /linuxrc and /etc/inittab file contents
*linuxrc:

*#!/bin/sh
/bin/echo "entered linuxrc script"
/bin/sh
exec /sbin/init

*
/etc/inittab:*

id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.
sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"

# Run gettys in standard runlevels
3:2345:respawn:/sbin/getty 115200 ttySAC0



Can some experts suggest how to fix this two problems and get a shell
prompt working?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120507/b3bcf034/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-08 13:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-07 12:51 rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off] pcuser p
2012-05-07 13:42 ` Anirban Roy
2012-05-07 13:42 ` Mandeep Sandhu
2012-05-07 14:01 ` Adam Lee
2012-05-08 12:43   ` pcuser p
2012-05-08 13:03     ` Adam Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).