Skip to contentSkip to conversation

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

DISCUSSION Jack Liu 2 participants 2 messages Mar 25, 2004

lore
Share & tools
lore

Jack Liu

author
#0 lore raw

Sylvain Munaut
hi,all
Thanks a lot. I checked my porting code and the answer is yes. After
assigned a right interrupt number, everything is ok.
Best regards

======= 2004-03-24 18:01:00 Origianl message=======

Quoted 28 lines
Quoted 7 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

Quoted 8 lines

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, ...

Quoted 4 lines

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 ... )

= = = = = = = = = = = = = = = = = = = =

Best regards
Jack Liu
R&D Dept. USI(Shanghai) Inc.
Tel: +86-21-58966996x115
Fax: +86-21-58967931
Email: [email protected]
http://www.usi.com.tw

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

#1 lore raw

linux booting problem: TASK = c0120490[0] 'swapper' Last syscall: 0

Hi, all,

In the process of porting linux to a mpc8250 board, I got a very strange thing:

On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=1F00 init=/rcinit
Calibrating delay loop... 131.89 BogoMIPS

Oops: kernel access of bad area, sig: 11
NIP: C01513CC XER: 00000000 LR: C015162C SP: C01223F0 REGS: c0122340 TRAP: 0300

MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: C01AF040, DSISR: 08000000
TASK = c0120490[0] 'swapper' Last syscall: 0
last math 00000000 last altivec 00000000
GPR00: FFFFFFFF C01223F0 C0120490 C0123698 00000000 00000001 C0160000 00000000
GPR08: 00000001 00000040 C01AF000 00000000 24444028 00422100 006D4A0F 20062000
GPR16: 2D808504 00000000 00000002 007FFF00 003FF000 0041A890 004FFC78 008000B4
GPR24: 00000000 00000001 80000000 00000000 00008000 C0160BA8 00000201 C01BC860 Call backtrace:
C0122438 C015162C C014F9C0 C014E724 00003724

Kernel panic: Attempted to kill the idle task!

In idle task - not syncing
Rebooting in 180 seconds..Kernel is rebooting.....

===========================================================================

But, I have this kernel run another old mpc8250 board. Everying is OK.

have you met the same problems on porting linux kernel? or could you give me any suggestions?

Tanks in advance!
John

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