From: "Tom Strader" <tom.strader@xilinx.com>
To: <linux-kernel@vger.kernel.org>
Subject: kernel space to user space /bin/sh startup
Date: Tue, 10 Apr 2007 11:22:38 -0700 [thread overview]
Message-ID: <20070410182240.3AFAF590046@mail41-cpk.bigfish.com> (raw)
I am trying to boot linux on a PXA270 and I think I almost have it but
the shell seems to not be outputting to the terminal. The kernel boots,
mounts the root file system, opens ttyS0 and proceeds to call
run_init_process("/bin/sh") however I see no login prompt or shell
appear. I am using ptxdist to build the kernel and jffs2 image. After
run_init_process("/bin/sh") is run I can type on the console and
characters are echoed back to the screen, but still no other output. Is
it possible that the output is being directed to somewhere which is not
correct?
My /etc/inittab is as follows:
#############################################################
#
# /etc/inittab
#
# $Id: inittab 1681 2004-09-01 18:12:49Z $
#
console::sysinit:/etc/init.d/rcS
console::respawn:/sbin/getty -L 115200 /dev/ttyS0 vt100
# Stuff to do before rebooting
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
#############################################################
My /etc/init.d/rcS is as follows:
#############################################################
#!/bin/sh
#
# /etc/init.d/rcS
#
# $Id: rcS 2054 2004-11-25 10:57:09Z mkl $
#
echo -n "mounting filesystems..."
mount -a 2>/dev/null
echo "done."
# modprobe ppp_async
# loadkmap < /etc/boottime.kmap
# set hostname
test -e /etc/hostname && hostname -F /etc/hostname
echo -n "creating Network-Device lo..."
ifconfig lo up 127.0.0.1
echo "done."
echo "running rc.d services..."
run-parts -a start /etc/rc.d
#############################################################
This is the final output I see.
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 76K
opening ttyS0...uart_open(0) called
Now I can type on the console and characters are echoed back, pressing
ctrl-c echoes: "uart_flush_buffer(0) called" so the code is still
running, but I am not sure where I am or why I see no login prompt or
shell command line.
I never see the "mounting filesystems..." echoed to the screen, but the
code does not stall and no errors are reported by the kernel. Any help
during the transition from init/main.c in kernel space to user space
would be appreciated, so I could debug this further.
I have looked around and have not seen a solution for my problem, most
likely due to the fact that I am not entirely sure what the problem is.
Thanks in advance for your time,
Tom Strader
next reply other threads:[~2007-04-10 18:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 18:22 Tom Strader [this message]
2007-04-11 15:47 ` Jan Engelhardt
2007-04-11 15:57 ` Tom Strader
2007-04-11 16:25 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070410182240.3AFAF590046@mail41-cpk.bigfish.com \
--to=tom.strader@xilinx.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®