linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Serial Console
@ 2003-03-04 14:53 Aman
  2003-03-04 15:40 ` Mark Hatle
  0 siblings, 1 reply; 23+ messages in thread
From: Aman @ 2003-03-04 14:53 UTC (permalink / raw)
  To: linuxppc embedded


 Hi

 In the Redhat 7.0 linux, I was able to enable/disable the serial console
 using the following command in the inittab
 " T0:12345:respawn:/sbin/getty ttyS0 9600 vt100"
 However in the case of the 440 Linux the serial console is enabled already.
 I wanted to know how this enabling is done. Can someone add some points to
 this.

 Thanking you in advance
 Regards
 Aman


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

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: serial console
@ 2005-10-05  2:36 KokHow Teh
  2005-10-05 12:23 ` Vitaly Bordug
  0 siblings, 1 reply; 23+ messages in thread
From: KokHow Teh @ 2005-10-05  2:36 UTC (permalink / raw)
  To: Vitaly Bordug, david.jander, linuxppc-embedded list


Hi;
      I have tried with 4 types of command lines with my linux kernel with
devfs and serial device compiled in and none gives me the desired results:

(1)   console=tts/0,115200n8 OR console=ttyCPM0,115200n8

      no serial console output at all during boot time but it gives me
login prompt at the end.

(2)   without "console=" OR console=ttyS0,115200n8

      serial console output fine during bootup but only 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.

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

(1)   David Jander's comment:

I don't know exactly what I am talking about right now, but the string
"tts/0"
in the console-line sounds suspicious to me. AFAIK when using devfs still
device names on the kernel-commandline have to be old-style.
Just a guess: try using "console=ttyS0,115200n8" and see if this helps.

      Is it confirmed that kernel-commandline has to be old-style even
though the kernel is using devfs?

(2)   Vitaly Bordug's suggestion of using "console=ttyCPM0". May I know
where is ttyCPM0 defined and how is it bound to the serial console device
driver in the source?

      Thanks for any input and pointer.

Regards,
TEH

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: serial console
@ 2005-10-05  2:32 KokHow Teh
  0 siblings, 0 replies; 23+ messages in thread
From: KokHow Teh @ 2005-10-05  2:32 UTC (permalink / raw)
  To: Vitaly Bordug, david.jander; +Cc: linuxppc-embedded list


Hi;
      I have tried with 4 types of command lines with my linux kernel with
devfs and serial device compiled in and none gives me the desired results:

(1)   console=tts/0,115200n8 OR console=ttyCPM0,115200n8

      no serial console output at all during boot time but it gives me
login prompt at the end.

(2)   without "console=" OR console=ttyS0,115200n8

      serial console output fine during bootup but only until the point
when it prints out "Freeing unused kernel memory: 232k init 4k prep". After
that, the serial console output is garbled.

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

(1)   David Jander's comment:

I don't know exactly what I am talking about right now, but the string
"tts/0"
in the console-line sounds suspicious to me. AFAIK when using devfs still
device names on the kernel-commandline have to be old-style.
Just a guess: try using "console=ttyS0,115200n8" and see if this helps.

      Is it confirmed that kernel-commandline has to be old-style even
though the kernel is using devfs?

(2)   Vitaly Bordug's suggestion of using "console=ttyCPM0". May I know
where is ttyCPM0 defined and how is it bound to the serial console device
driver in the source?

      Thanks for any input and pointer.

Regards,
TEH



Vitaly Bordug <vbordug@ru.mvista.com> on 10/04/2005 11:16:10 PM

To:    KokHow.Teh@marconi.com
cc:    linuxppc-embedded list <linuxppc-embedded@ozlabs.org>

Subject:    Re: serial console



> On Tuesday 04 October 2005 08:54, KokHow Teh wrote:
>
>>Hi;
>>      I have debian linux running on my PQ2FADS-ZU with devfs and serial
>>driver compiled in. I have read Documentation/serial-console.txt and I
have
>>tried both passing "console=" option as well as without passing that to
the
>>kernel and both don't give me the expected results.
>>      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. When I don't pass "console=" option to the kernel, I get
>>console output all the way until "Freeing unused kernel memory:" and the
>>console output is garbled and I don't see any login prompt. Here is the
>>/dev/* content:
>
>
> I don't know exactly what I am talking about right now, but the string
"tts/0"
> in the console-line sounds suspicious to me. AFAIK when using devfs still
> device names on the kernel-commandline have to be old-style.
> Just a guess: try using "console=ttyS0,115200n8" and see if this helps.
>
Yes, but PQ2FADS use cpm_uart and hence the commandline should be
console=ttyCPM0,115200

> Greetings,
>


--
Sincerely,
Vitaly

^ permalink raw reply	[flat|nested] 23+ messages in thread
* serial console
@ 2005-10-04  6:54 KokHow Teh
  2005-10-04 15:11 ` David Jander
  0 siblings, 1 reply; 23+ messages in thread
From: KokHow Teh @ 2005-10-04  6:54 UTC (permalink / raw)
  To: linuxppc-embedded

Hi;
      I have debian linux running on my PQ2FADS-ZU with devfs and seria=
l
driver compiled in. I have read Documentation/serial-console.txt and I =
have
tried both passing "console=3D" option as well as without passing that =
to the
kernel and both don't give me the expected results.
      When I pass "console=3Dtts/0,115200n8" to the kernel, I don't get=
 any
console output until the login prompt which I set to 115200 in
/etc/inittab. When I don't pass "console=3D" option to the kernel, I ge=
t
console output all the way until "Freeing unused kernel memory:" and th=
e
console output is garbled and I don't see any login prompt. Here is the=

/dev/* content:


(none) login:
Debian GNU/Linux 3.1 (none) tts/0
Password:
Last login: Thu Jan  1 02:29:06 1970 on tts/0

The programs included with the Debian GNU/Linux system are free softwar=
e;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
(none):~# l /dev
total 0
crw-------  1 root root 8, 0 Jan  1 02:00 .devfsd
lr-xr-xr-x  1 root root   13 Jan  1 02:37 MAKEDEV -> /sbin/MAKEDEV
crw-------  1 root root 5, 1 Jan  1 02:00 console
drwxr-xr-x  1 root root    0 Jan  1 02:00 discs
crw-rw-rw-  1 root root 1, 7 Jan  1 02:00 full
drwxr-xr-x  1 root root    0 Jan  1 02:00 ide
prw-------  1 root root    0 Jan  1 02:37 initctl
crw-r-----  1 root root 1, 2 Jan  1 02:00 kmem
srw-rw-rw-  1 root root    0 Jan  1 02:37 log
crw-r-----  1 root root 1, 1 Jan  1 02:00 mem
drwxr-xr-x  1 root root    0 Jan  1 02:00 misc
drwxr-xr-x  1 root root    0 Jan  1 02:00 mtd
drwxr-xr-x  1 root root    0 Jan  1 02:00 mtdblock
crw-rw-rw-  1 root root 1, 3 Jan  1 02:00 null
crw-r-----  1 root root 1, 4 Jan  1 02:00 port
crw-rw-rw-  1 root root 5, 2 Jan  1 02:00 ptmx
drwxr-xr-x  1 root root    0 Jan  1 02:00 pts
drwxr-xr-x  1 root root    0 Jan  1 02:00 pty
crw-r--r--  1 root root 1, 8 Jan  1 02:00 random
drwxr-xr-x  1 root root    0 Jan  1 02:00 rd
lr-xr-xr-x  1 root root   33 Jan  1 02:37 root -> ide/host0/bus0/target=
0/lun0/part2
drwxrwxrwt  3 root root   60 Jan  1 02:37 shm
drwxr-xr-x  1 root root    0 Jan  1 02:00 soc
drwxr-xr-x  1 root root    0 Jan  1 02:00 tts
crw-rw-rw-  1 root root 5, 0 Jan  1 02:00 tty
crw-r--r--  1 root root 1, 9 Jan  1 02:37 urandom
prw-r-----  1 root adm     0 Jan  1 02:37 xconsole
crw-rw-rw-  1 root root 1, 5 Jan  1 02:00 zero
(none):~#

      This is what I end up without "console=3D" option passed to the k=
ernel:

<snip>
Mounted devfs on /dev
Freeing unused kernel memory: 232k init 4k prep
..=EF=BF=BD=EF=BF=BD=EF=BF=BD.=EF=BF=BD...=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=
=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD.=EF=BF=BD=EF=BF=BD.=EF=BF=BD=
...=EF=BF=BD...=EF=BF=BD=EF=BF=BD=EF=BF=BD......=EF=BF=BD..=EF=BF=BD...=
=EF=BF=BD=EF=BF=BD=EF=BF=BD..=EF=BF=BD.=EF=BF=BD.=EF=BF=BD=EF=BF=BD.=EF=
=BF=BD=EF=BF=BD.....=EF=BF=BD=EF=BF=BD[42;124H.
 <no login prompt>

      My question is, how can I get a complete serial console output al=
l
the way from bootup to the login prompt? I am missing something. It is
either the kernel configuration or I have to tweak the codes somewhere.=
 Any
input and insight is appreciated.

Regards,
TEH
=

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Serial console
@ 2005-07-30  1:06 Daniel Ann
  2005-07-30  1:19 ` Josh Boyer
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Daniel Ann @ 2005-07-30  1:06 UTC (permalink / raw)
  To: linuxppc-embedded

Hi folks,

Just wondering if anyone could lend a hand with this problem I have
with serial console. I'm trying to boot up my board (very similar to
sandpoint using MPC8245) with kernel 2.6.12.3, and most of it is
working but console will display up to,
[snip]
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 112k init                                    =
   =20

I've done series of printk in sys_execve() to see if /sbin/init is
working, and found out it went thru the whole rcS file okay. Mind you,
printk is successfully displaying the output on the console while I'm
still not getting anything from the user processes.

Having all the kernel boot up log on console means that I've done some
part right. But why am I not getting anything from the user processes
on the console screen ?

Is there anything I need to do on the kernel config ?

--=20
Daniel

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Serial Console
@ 2003-01-16 21:06 Aman
  0 siblings, 0 replies; 23+ messages in thread
From: Aman @ 2003-01-16 21:06 UTC (permalink / raw)
  To: linuxppc embedded


Hi All

I have an custom board which has PPC 440GP as its processor. I have build a
kernel image and ramdisk to run on the custom board, which is running fine.
Now I want to disable the serial console in my kernel and use the serial
port for some other purpose. If I have to disable the serial console , what
command should be given for it in the kernel.

Thanking you in advance
Regards
Aman


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

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

end of thread, other threads:[~2005-10-05 12:23 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-04 14:53 Serial Console Aman
2003-03-04 15:40 ` Mark Hatle
2003-03-04 17:06   ` Ibon Gotxi Garcia
2003-03-04 19:09     ` Dave Wolfe
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05  2:36 serial console KokHow Teh
2005-10-05 12:23 ` Vitaly Bordug
2005-10-05  2:32 KokHow Teh
2005-10-04  6:54 KokHow Teh
2005-10-04 15:11 ` David Jander
2005-10-04 15:16   ` Vitaly Bordug
2005-10-05  9:16     ` David Jander
2005-07-30  1:06 Serial console Daniel Ann
2005-07-30  1:19 ` Josh Boyer
2005-07-30  1:36   ` Daniel Ann
2005-07-30  5:46     ` Daniel Ann
2005-07-30  1:27 ` Ricardo Scop
2005-07-30  1:34   ` Daniel Ann
2005-07-30 10:37 ` Anton Wöllert
2005-08-01  1:27   ` Daniel Ann
2005-08-02  3:38     ` JohnsonCheng
2005-08-02 13:39       ` Kumar Gala
2005-08-03  0:16         ` Daniel Ann
2003-01-16 21:06 Serial Console Aman

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