Skip to contentSkip to conversation

linux booting problem: init start up very slowly and print kernel infor character by character

DISCUSSION Jack Liu 2 participants 2 messages Mar 24, 2004

lore
Share & tools
lore

Jack Liu

author
#0 lore raw

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
[email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hi

Quoted 14 lines

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/