linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Linux 2.6-10.rc3  8xx  - Only 3 characters are printed well in __ init start_kernel() upon kernel booting - why ?
@ 2005-01-16 19:54 Povolotsky, Alexander
  2005-01-17  7:16 ` David Jander
  0 siblings, 1 reply; 2+ messages in thread
From: Povolotsky, Alexander @ 2005-01-16 19:54 UTC (permalink / raw)
  To: 'linuxppc-embedded@ozlabs.org'

> Per kind advise I have got, I have added baud rate to the command =
line (I
> did not have it there before):
>=20
> CONFIG_CMDLINE=3D"console=3DttyCPM0,115200 panic=3D3 root=3D/dev/ram"
>=20
> 	However, my real current problem (just 3 characters get printed
> correctly during the kernel boot) did not go away.
>=20
> 	Is there a way to check if the baud rate specified in the .config's
> commandline is indeed in effect for the kernel booting ?
>=20
> 	Any other reasons/explanation for my "3 character" problem ?
>=20
> 	 -----Original Message-----
> 	From: 	Povolotsky, Alexander =20
> 	Sent:	Sunday, January 16, 2005 5:59 AM
> 	To:	'linuxppc-dev@ozlabs.org'
> 	Subject:	Linux 2.6-10.rc3  8xx kernel booting - how to set
> baud rate for the serial driver ?
>=20
> 	Hi,
> 	...=20
> 	    =20
> 	My bootloader uses 115200 baud rate for the serial output during
> boot strapping.
>=20
> 	I have:
> 	CONFIG_SERIAL_CPM_CONSOLE
> 	in my .config=20
> 	...=20
> I could see some output during the kernel boot -
> I noticed that (only 3) characters (see below) from the linux_banner =
are
> printed
> in __init start_kernel() upon booting . Then a lot of garbage is =
outputted
> and eventually kernel hangs ...
>=20
> after gunzip
> done.
> Now booting the kernel
> =
Lin=FF=FF=FF=FF=FF=FF=FF=FF=C0=FF=FF=FF=FF=FF=FF=FF=FF=C08=C0=FF=FF=FF=FF=
=FF=FF=FF=FF=C0X=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0x=C0=FF=FF=FF=FF=FF=FF=FF=FF=
=C0~=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0=B8=C0=FF=FF=FF=FF=FF=FF=FF
> =FF=C0=D8=C0=FF=FF
> <more garbage>
> <hangs>
>=20
> to prove it I added printk("ALEX\n"); in __init start_kernel() prior =
to
> printk(linux_banner);
>=20
> ...=20
> lock_kernel();
> page_address_init();
> printk("ALEX\n");
> printk(linux_banner);
> setup_arch(&command_line);
> setup_per_cpu_areas();
> ...
>=20
> after gunzip
> done.
> Now booting the kernel
> =
ALE=FF=FF=FF=FF=FF=FF=FF=FF=C0=FF=FF=FF=FF=FF=FF=FF=FF=C08=C0=FF=FF=FF=FF=
=FF=FF=FF=FF=C0X=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0x=C0=FF=FF=FF=FF=FF=FF=FF=FF=
=C0~=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0=B8=C0=FF=FF=FF=FF=FF=FF=FF
> =FF=C0=D8=C0=FF=FF
> <more garbage>
> <hangs>
>=20
> Why would first 3 characters come out right ?
> Any ideas ?
> Thanks,
>=20

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linux 2.6-10.rc3 8xx - Only 3 characters are printed well in __ init start_kernel() upon kernel booting - why ?
  2005-01-16 19:54 Linux 2.6-10.rc3 8xx - Only 3 characters are printed well in __ init start_kernel() upon kernel booting - why ? Povolotsky, Alexander
@ 2005-01-17  7:16 ` David Jander
  0 siblings, 0 replies; 2+ messages in thread
From: David Jander @ 2005-01-17  7:16 UTC (permalink / raw)
  To: linuxppc-embedded

On Sunday 16 January 2005 20:54, Povolotsky, Alexander wrote:
>[...]
> > to prove it I added printk("ALEX\n"); in __init start_kernel() prior to
> > printk(linux_banner);
> >
> > ...
> > lock_kernel();
> > page_address_init();
> > printk("ALEX\n");
> > printk(linux_banner);
> > setup_arch(&command_line);
> > setup_per_cpu_areas();
> > ...
> >
> > after gunzip
> > done.
> > Now booting the kernel
> > ALE=FF=FF=FF=FF=FF=FF=FF=FF=C0=FF=FF=FF=FF=FF=FF=FF=FF=C08=C0=FF=FF=FF=
=FF=FF=FF=FF=FF=C0X=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0x=C0=FF=FF=FF=FF=FF=FF=FF=
=FF=C0~=C0=FF=FF=FF=FF=FF=FF=FF=FF=C0=B8=C0=FF=FF=FF=FF=FF=FF
> >=FF =FF=C0=D8=C0=FF=FF
> > <more garbage>
> > <hangs>
> >
> > Why would first 3 characters come out right ?
> > Any ideas ?

My fairly uneducated guess: The system hangs before the last character come=
s=20
out of the uart buffer. Try adding a delay just after printk.
The garbage could be anything produced by a piece of hardware gone wild.

Greetings,

=2D-=20
David Jander
Protonic Holland.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-17  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-16 19:54 Linux 2.6-10.rc3 8xx - Only 3 characters are printed well in __ init start_kernel() upon kernel booting - why ? Povolotsky, Alexander
2005-01-17  7:16 ` David Jander

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