From: "Anton Kowalski" <antonkowalski@gmail.com>
To: "Wolfgang Reissnegger" <wolfgang.reissnegger@xilinx.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: no output to serial console from /init process on ml405
Date: Wed, 8 Aug 2007 12:27:50 -0400 [thread overview]
Message-ID: <e835b80a0708080927x115ef07bw62e546dd6200d252@mail.gmail.com> (raw)
In-Reply-To: <20070808153630.AF2D91A88050@mail200-sin.bigfish.com>
Wolfgang,
Thanks, I'll try your suggestion.
It's worth noting that the init executable is calling into the kernel.
I put a printk in sys_write, which is on the call path of printf() and
the output is sent to the console. However, the output of printf is
not to be seen. This suggests the problem is perhaps in the serial
device setup?
Anton
On 8/8/07, Wolfgang Reissnegger <wolfgang.reissnegger@xilinx.com> wrote:
> Hi Anton,
>
> it looks as if your init executable is not doing the right thing and for
> some reason terminates. Maybe your inittab configuration is wrong? Maybe
> the init executable has been compiled with the wrong options?
>
> You can try to copy another executable (e.g. sh, getty) into /init and
> see if you get any output. If you see anything doing that then most
> likely there's something wrong with your init executable.
>
> Wolfgang
>
> Anton Kowalski wrote:
> > Hi All:
> >
> > I'm trying to bring up linux 2.6.21.1 on an ml405 board. The kernel
> > boots fine but the init process does not produce any output. The /init
> > program resides in an initramfs file system and I believe the /dev
> > device files have been set up correctly. Here's an excerpt from my
> > initramfs specification:
> >
> > dir /dev 755 0 0
> > nod /dev/console 644 0 0 c 5 1
> > nod /dev/ttyS0 644 0 0 c 4 64
> >
> > (I am able to open these files from the init program. I tested this by
> > sleeping for a specified time on success.)
> >
> > Also, printk continues to function after /init terminates and before
> > the kernel panics.
> >
> > Here are the last few lines of the console output:
> >
> > [ 0.507478] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports,
> > IRQ sharing disabled
> > [ 0.513862] serial8250.0: ttyS0 at MMIO 0x80201003 (irq = 3) is a 16550A
> > [ 2.927509] RAMDISK driver initialized: 1 RAM disks of 8192K size
> > 1024 blocksize
> > [ 3.018391] tun: Universal TUN/TAP device driver, 1.6
> > [ 3.079115] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
> > [ 3.154919] mice: PS/2 mouse device common for all mice
> > [ 3.218021] TCP cubic registered
> > [ 3.257034] NET: Registered protocol family 1
> > [ 3.309405] NET: Registered protocol family 17
> > [ 3.363462] Freeing unused kernel memory: 300k init
> > [ 23.488277] Kernel panic - not syncing: Attempted to kill init!
> > [ 23.559517] Rebooting in 180 seconds..<NULL>
> >
> > I'm using the plb uart and the 8250.c driver. (The obp uartlite driver
> > didn't work so I switched.) The kernel and the init program were
> > compiled with eldk.
> >
> > Any insights into resolving this problem are greatly appreciated.
> >
> >
> > Anton
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
>
>
next prev parent reply other threads:[~2007-08-08 16:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 11:28 no output to serial console from /init process on ml405 Anton Kowalski
2007-08-08 15:36 ` Wolfgang Reissnegger
2007-08-08 16:27 ` Anton Kowalski [this message]
2007-08-08 16:42 ` Wolfgang Reissnegger
2007-08-08 19:31 ` Anton Kowalski
2007-08-08 16:25 ` Benedict, Michael
2007-08-08 19:42 ` Anton Kowalski
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=e835b80a0708080927x115ef07bw62e546dd6200d252@mail.gmail.com \
--to=antonkowalski@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=wolfgang.reissnegger@xilinx.com \
/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;
as well as URLs for NNTP newsgroup(s).