* Could not use printf after init process
@ 2009-11-10 15:37 wilbur.chan
2009-11-10 16:03 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: wilbur.chan @ 2009-11-10 15:37 UTC (permalink / raw)
To: Linux MIPS Mailing List
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
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.
Regards,
[-- Attachment #2: Type: text/html, Size: 422 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Could not use printf after init process
2009-11-10 15:37 Could not use printf after init process wilbur.chan
@ 2009-11-10 16:03 ` Ralf Baechle
2009-11-10 23:45 ` wilbur.chan
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2009-11-10 16:03 UTC (permalink / raw)
To: wilbur.chan; +Cc: Linux MIPS Mailing List
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Could not use printf after init process
2009-11-10 16:03 ` Ralf Baechle
@ 2009-11-10 23:45 ` wilbur.chan
0 siblings, 0 replies; 3+ messages in thread
From: wilbur.chan @ 2009-11-10 23:45 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux MIPS Mailing List
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
2009/11/11 Ralf Baechle <ralf@linux-mips.org>
> On Tue, Nov 10, 2009 at 11:37:20PM +0800, wilbur.chan wrote:
>
>
> 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
>
It was 'printf' in init process which was generated by busybox.
After I replaced 'init' with a simple 'hello wolrd' executable , which was
like kernel_execve("/hello wolrd"),
it could not print the 'hello wolrd' either.
[-- Attachment #2: Type: text/html, Size: 1015 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-10 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10 15:37 Could not use printf after init process wilbur.chan
2009-11-10 16:03 ` Ralf Baechle
2009-11-10 23:45 ` wilbur.chan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.