linux-mips
[Top] [All Lists]

Re: Could not use printf after init process

To: "wilbur.chan" <wilbur512@gmail.com>
Subject: Re: Could not use printf after init process
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 10 Nov 2009 17:03:54 +0100
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>
In-reply-to: <e997b7420911100737k3563b9a5l5c6463ba078e9d9@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <e997b7420911100737k3563b9a5l5c6463ba078e9d9@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.19 (2009-01-05)
On Tue, Nov 10, 2009 at 11:37:20PM +0800, wilbur.chan wrote:

> When booting , Kernel could not print on console after calling
> run_init_process-->kernel_execve("/sbin/init")
> 
> I guess that printf in busybox  might fail  after the init process began.
> 
> Any sugguestion on how to trace this problem? Thank you in advance.

I assume you meant printk, not printf.

If kernel_execve() is successful the function won't return so code following
that statement won't be executed.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>