Skip to contentSkip to conversation

Help ! 2.6.14 kernel can't bring up

DISCUSSION zjznliang 3 participants 3 messages Nov 18, 2005

lore
Share & tools
lore

zjznliang

author
#0 lore raw

SGkgbGludXhwcGMtZW1iZWRkZWSjoQ0KDQoJSGkgLCBIb3cgdG8gY29uZmlnIHRoZSAiZWFybHkg cHJpbnRrIiBpbiAyLjYuMTQgbGludXggY29uZmlncmF0aW9uPz8/DQoNCg0KIAkJCQkNCg0KoaGh oXpqem5saWFuZw0KoaGhoaGhoaF6anpubGlhbmdfcG9wb0AxNjMuY29tDQqhoaGhoaGhoaGhoaEy MDA1LTExLTE4DQo=

#1 lore raw

Hello, zjznliang!

Quoted 3 lines · zjznliang

Hi linuxppc-embedded!

Hi , How to config the "early printk" in 2.6.14 linux configration???

Well... check the .config or the kernel sources for CONFIG_EARLY_PRINTK
or
CONFIG_WANT_EARLY_SERIAL

Have a look at the bootup code of your board, where it's used. I would call the printk as soon as the serial ports are initialized. If that's too late, try to toggle some pin as early as possible. If that doesn't work, and if you have no more ideas of what to do, you might think about getting some hardware debugging tools.

Best greets,

Signature · 11 lines
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19
#2 lore raw
In reply to zjznliang
Quoted 6 lines · zjznliang

Hi linuxppc-embedded!

Hi , How to config the "early printk" in 2.6.14 linux configration???

Console and debugging I/O is available at all stages of The Linux loading process - If the drivers for your board support it. There is nearly free support for 8250 like serial ports, in virtually all boards. Support for other debugging IO devices is fairly simple to setup.

I used the arch/ppc/syslib/mv64x60_dbg.c and arch/ppc/boot/simple/mv64x60_tty.c as templates to create trivial drivers for debugging IO
on hardware that had no relation to a UART.

I think "early printk" refers to the early serial driver that can be used after the kernel has uncompressed itself and relocated itself and switched to
a virtual environment. For 8250 like serial ports that can enabled in the linux .config file setup by make menuconfig or whatever variant of make xxconfig
you prefer. For non-8250 like uarts you will again have to write an early serial driver. All the early debug IO drivers are trivial - little more is needed than
an implementation of putc, as opposed to the full conolse support required for a tty on a booted system.