* linux booting problem: init start up very slowly and print kernel infor character by character
@ 2004-03-24 12:39 Jack Liu
2004-03-24 17:01 ` Sylvain Munaut
0 siblings, 1 reply; 2+ messages in thread
From: Jack Liu @ 2004-03-24 12:39 UTC (permalink / raw)
To: linuxppc-embedded@lists.linuxppc.org
hi,all
In the process of porting linux to a new board, I got a very strange thing:
Booting infomation:
.......
mice: PS/2 mouse device common for all mice
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k init
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~before this, everything is OK.
INIT: version 2.84 booting
Welcome....
From "INIT", system seems to start very slowly. "INIT" and other kernel infomation were printed out character by character with some kind of delay between them.It took even five minutes to mount a proc file system.
What could be the problem?
Is this becuase of disk configuation problem since init is the first program got called from disk?
Jack Liu
Jack_liu@usish.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: linux booting problem: init start up very slowly and print kernel infor character by character
2004-03-24 12:39 linux booting problem: init start up very slowly and print kernel infor character by character Jack Liu
@ 2004-03-24 17:01 ` Sylvain Munaut
0 siblings, 0 replies; 2+ messages in thread
From: Sylvain Munaut @ 2004-03-24 17:01 UTC (permalink / raw)
To: Jack Liu; +Cc: linuxppc-embedded@lists.linuxppc.org
Hi
> Booting infomation:
> .......
> mice: PS/2 mouse device common for all mice
> VFS: Mounted root (ext2 filesystem) readonly.
> Freeing unused kernel memory: 64k init
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~before this, everything is OK.
> INIT: version 2.84 booting
> Welcome....
> From "INIT", system seems to start very slowly. "INIT" and other kernel infomation were printed out character by character with some kind of delay between them.It took even five minutes to mount a proc file system.
> What could be the problem?
> Is this becuase of disk configuation problem since init is the first program got called from disk?
>
>
>
Well, I suppose that it's on a serial console.
For me it sounds like a serial problem. Everything before the "INIT:
..." is printed via printk and is then handled by the 'console' part of
the serial driver. In all the drivers I've used/seen this is done the
simpliest way, often via busy waiting on the uart, without interrupts,
.... When the init program it's called, it doesn't use the console stuff
( it's unidirectionnal anyway ... ) but it open /dev/ttyS0 ( or the
appropriate device ) and it's not at all the same code running. Here (
again, in the driver I worked with ), interrupts are used to know when
the UART is ready or when chars are incoming, ...
What you could try to see if it comes from the serial stuff, is disable
consoel completely and 'see' the time it takes to boot ( of course you
need to have another visible effect that you system is fully booted like
inserting a ping -c 1 at the end of the init scripts ... )
My 2 cents, ...
Sylvain
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-24 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-24 12:39 linux booting problem: init start up very slowly and print kernel infor character by character Jack Liu
2004-03-24 17:01 ` Sylvain Munaut
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).