[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: serial console



Hi;
      I rebuild the kernel with BOOTX_TEXT set and tried with 4 types of
command lines and all of them gives good serial console printout during
bootup until the point when it prints out "Freeing unused kernel memory:
232k init 4k prep". After
that, the serial console output is garbled. No login prompt.


(1)   console=tts/0,115200n8 OR console=ttyCPM0,115200n8
(2)   without "console=" OR console=ttyS0,115200n8

      So this has not solved my problem. I need more advice. Here are some
more questions and observations:

(1)   Martin Habets' comment:

If the init scripts don't set the tty speed it will probably default to
9600n8. Maybe adding an stty early on will help.

      I need more help on this. Do you refer to sbin/init or some scripts
in /etc/ folder? Where should I set it?

[root@ShrekII etc 24]# pwd
/fadsroot/etc
[root@ShrekII etc 25]# grep -rn stty *
grep: alternatives/awk: No such file or directory
grep: alternatives/awk.1.gz: No such file or directory
grep: alternatives/builtins.7.gz: No such file or directory
grep: alternatives/editor: No such file or directory
grep: alternatives/editor.1.gz: No such file or directory
grep: alternatives/mt: No such file or directory
grep: alternatives/mt.1.gz: No such file or directory
grep: alternatives/nawk: No such file or directory
grep: alternatives/nawk.1.gz: No such file or directory
grep: alternatives/rmt: No such file or directory
grep: alternatives/rmt.8.gz: No such file or directory
grep: alternatives/traceroute: No such file or directory
grep: alternatives/traceroute.8.gz: No such file or directory
grep: alternatives/traceroute.sbin: No such file or directory
grep: alternatives/w: No such file or directory
grep: alternatives/w.1.gz: No such file or directory
grep: apache2/mods-enabled/userdir.conf: No such file or directory
grep: apache2/mods-enabled/userdir.load: No such file or directory
grep: apache2/sites-enabled/default: No such file or directory
init.d/rc:39:  stty onlcr 0>&1
grep: network/run: No such file or directory
[root@ShrekII etc 26]#


      To answer Sven Luther's question. yes I am runnning 2.4.26 on
PQ2FADS-ZU with MPC8280 on board. The serial port is an CPM SCC serial
device.

      Thanks for any input and advice.

Regards,
TEH




Martin Habets <errandir_news@mph.eclipse.co.uk>@mph.eclipse.co.uk> on
10/05/2005 12:20:56 AM

Sent by:    Martin Habets <mhabets@mph.eclipse.co.uk>


To:    debian-powerpc@lists.debian.org
cc:

Subject:    Re: serial console


On Tue, Oct 04, 2005 at 02:56:54PM +0800, KokHow Teh wrote:
>       When I pass "console=tts/0,115200n8" to the kernel, I don't get any
> console output until the login prompt which I set to 115200 in
> /etc/inittab.

Make sure you have the BOOTX_TEXT config option set.

>       This is what I end up without "console=" option passed to the
kernel:
>
> <snip>
> Mounted devfs on /dev
> Freeing unused kernel memory: 232k init 4k prep
>
..���.�...��������.��.�...�...���......�..�...���..�.�.��.��.....��[42;124H.


If the init scripts don't set the tty speed it will probably default to
9600n8. Maybe adding an stty early on will help.

--
Martin


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org









Reply to: