Skip to contentSkip to conversation

Serial console

DISCUSSION Daniel Ann 6 participants 11 messages Jul 30, 2005 – Aug 3, 2005

lore
Share & tools
lore

Daniel Ann

author
#0 lore raw

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

#1 lore raw
Quoted 16 lines · Daniel Ann

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

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.

Quoted 5 lines

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 ?

Do you have a /dev/console device node in your initrd? If not, that is one of the reasons you could be seeing that problem. Make sure /dev/null is there too.

josh

#4 lore raw
In reply to Daniel Ann

Hi Daniel,

Quoted 11 lines · Daniel Ann

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

Quoted 9 lines

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 ?

Please verify that you have a /dev/console in your rootfs, and that it's = being=20
correctly acessed by the init process.

HTH,

--=20
Ricardo Scop.

        \|/
    ___ -*-
   (@ @)/|\
  /  V  \|  R SCOP Consult.
 /(     )\  Linux-based communications

--^^---^^+------------------------------
[email protected]
+55 51 999-36-777
Porto Alegre, RS - BRazil

author
#5 lore raw

Looks like I have /dev/console
0 crw------- 1 root root 5, 1 Sep 26 2002 console 0 crw-rw-rw- 1 root root 4, 64 Jun 17 2004 ttyS0

I havent yet figured out how I should go about seeing if init is correctly accessing it tho. Let me take a look at busybox init part. BTW, any more reasons why this problem might exist ?

Quoted 19 lines · Ricardo Scop

Hi Daniel,
=20

Quoted 16 lines · Daniel Ann

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

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.

Quoted 5 lines
Quoted 4 lines

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 ?

Please verify that you have a /dev/console in your rootfs, and that it's =

being

Quoted 12 lines

correctly acessed by the init process.
=20
HTH,
=20
--
Ricardo Scop.
=20

       \|/
   ___ -*-
  (@ @)/|\
 /  V  \|  R SCOP Consult.
 /(     )\  Linux-based communications
Quoted 6 lines

--^^---^^+------------------------------
[email protected]
+55 51 999-36-777
Porto Alegre, RS - BRazil
=20
=20

--=20
Daniel

author
#2 lore raw
In reply to Josh Boyer

I too have /dev/null
0 crw-rw-rw- 1 root root 1, 3 Aug 31 2001 null

However, Im not using initrd. null, and console devices are in my RAMDISK t= ho.

Quoted 22 lines · Josh Boyer
Quoted 16 lines · Daniel Ann

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

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.

Quoted 5 lines

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 ?

Quoted 8 lines

=20
Do you have a /dev/console device node in your initrd? If not, that is one of the reasons you could be seeing that problem. Make sure /dev/null is there too.
=20
josh
=20
=20

--=20
Daniel

author
#3 lore raw

I've got a feeling that this has alot to do with IRQ. Would I be correct to assume printk doesnt require interrupt to work but printf does ?

After doing some testing, I've found my network interface ping-able when I got printf working in 2.4.31. But if I alter the openpic source to not initialize the interrupt, it also stop displaying at the same point and network interface isnt pingable.

I guess my next problem would be then, why isnt my openpic working. :( I've done exactly the same as what I did with 2.4.31 and that works. Hmmm. Something must have changed in 2.6.12.3.

I dont think this is has anything to do with serial console, so I'm gonna end the thread here.

Thanks.

Quoted 4 lines · Daniel Ann

I too have /dev/null
0 crw-rw-rw- 1 root root 1, 3 Aug 31 2001 null
=20
However, Im not using initrd. null, and console devices are in my RAMDISK=

tho.

Quoted 16 lines

=20

Quoted 14 lines · Josh Boyer
Quoted 13 lines · Daniel Ann

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

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=

,

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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 som=

e

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

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 ?

Do you have a /dev/console device node in your initrd? If not, that is one of the reasons you could be seeing that problem. Make sure /dev/null is there too.

Quoted 8 lines
Quoted 3 lines

josh

=20
=20
--
Daniel
=20

--=20
Daniel

#6 lore raw
In reply to Daniel Ann
Quoted 8 lines · Daniel Ann

Hi folks,

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 ?

Hi, we've had the same problem some time ago on a tqm850l (mpc850). Our problem was, that we had registered two serial consoles in the kernel config or something like that. we had to disable all serial-driver stuff and enable just the platform-specific serial-console driver. we tracked this down with inserting a printk(buf) into the tty_write fs-op of the serial-port driver in drivers/char/tty_io.c. the ttyS0 was used but has taken another serial-driver than the platform specific.

may this help you :)

anton

author
#7 lore raw

Thanks for your input Anton.
I'm not all that certain about sandpoint platform has its own serial driver so I've worked with 8250.c. Anyway, I've got it working now. It was problem with interrupt. As soon as I changed interrupt from EGDE to LEVEL it began working. Altho I'm faced with yet another problem with openpic but I'm digging thru it at the moment.

BTW, I have no idea why EDGE didnt work and LEVEL does.

Cheers,
Daniel

Quoted 9 lines · On 7/30/05, Anton W=F6llert <[email protected]> wrote:
Quoted 8 lines · Daniel Ann

Hi folks,

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 ?

Quoted 14 lines

=20
Hi, we've had the same problem some time ago on a tqm850l (mpc850). Our problem was, that we had registered two serial consoles in the kernel config or something like that. we had to disable all serial-driver stuff and enable just the platform-specific serial-console driver. we tracked this down with inserting a printk(buf) into the tty_write fs-op of the serial-port driver in drivers/char/tty_io.c. the ttyS0 was used but has taken another serial-driver than the platform specific.
=20
may this help you :)
=20
=20
anton
=20

--=20
Daniel

#8 lore raw

Dear Daniel,

I also meet this problem on MPC8245 with linux-2.6.12.3, and I found it = uses
LEVEL for interrupt in sandpoint.c. Do you have any idea for it?

Thanks,
Johnson Cheng

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ann
Sent: Monday, August 01, 2005 9:27 AM
To: Anton W=F6llert
Cc: [email protected]
Subject: Re: Serial console

Thanks for your input Anton.
I'm not all that certain about sandpoint platform has its own serial driver so I've worked with 8250.c. Anyway, I've got it working now. It was problem with interrupt. As soon as I changed interrupt from EGDE to LEVEL it began working. Altho I'm faced with yet another problem with openpic but I'm digging thru it at the moment.

BTW, I have no idea why EDGE didnt work and LEVEL does.

Cheers,
Daniel

Quoted 4 lines · On 7/30/05, Anton W=F6llert <[email protected]> wrote:
Quoted 3 lines · Daniel Ann

Hi folks,

Having all the kernel boot up log on console means that I've done =

some

Quoted 1 line
Quoted 1 line

part right. But why am I not getting anything from the user =

processes

Quoted 6 lines
Quoted 4 lines

on the console screen ?

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

=20
Hi, we've had the same problem some time ago on a tqm850l (mpc850). =

Our

Quoted 2 lines

problem was, that we had registered two serial consoles in the kernel config or something like that. we had to disable all serial-driver =

stuff

Quoted 1 line

and enable just the platform-specific serial-console driver. we =

tracked

Quoted 2 lines

this down with inserting a printk(buf) into the tty_write fs-op of the serial-port driver in drivers/char/tty_io.c. the ttyS0 was used but =

has

Quoted 7 lines

taken another serial-driver than the platform specific. =20
may this help you :)
=20
=20
anton
=20

--=20
Daniel
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#9 lore raw
Quoted 5 lines · JohnsonCheng

Dear Daniel,

I also meet this problem on MPC8245 with linux-2.6.12.3, and I =20 found it uses
LEVEL for interrupt in sandpoint.c. Do you have any idea for it?

All internal interrupts on the MPC8245/1 should be LEVEL interrupts.

- kumar

Quoted 72 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ann
Sent: Monday, August 01, 2005 9:27 AM
To: Anton W=F6llert
Cc: [email protected]
Subject: Re: Serial console

Thanks for your input Anton.
I'm not all that certain about sandpoint platform has its own serial driver so I've worked with 8250.c. Anyway, I've got it working now. It was problem with interrupt. As soon as I changed interrupt from EGDE to LEVEL it began working. Altho I'm faced with yet another problem with openpic but I'm digging thru it at the moment.

BTW, I have no idea why EDGE didnt work and LEVEL does.

Cheers,
Daniel

Quoted 30 lines · On 7/30/05, Anton W=F6llert <[email protected]> wrote:
Quoted 12 lines · Daniel Ann

Hi folks,

Having all the kernel boot up log on console means that I've done =20=

some
part right. But why am I not getting anything from the user =20 processes
on the console screen ?

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

Hi, we've had the same problem some time ago on a tqm850l =20 (mpc850). Our
problem was, that we had registered two serial consoles in the kernel config or something like that. we had to disable all serial-driver =20=

stuff
and enable just the platform-specific serial-console driver. we =20 tracked
this down with inserting a printk(buf) into the tty_write fs-op of =20=

the
serial-port driver in drivers/char/tty_io.c. the ttyS0 was used =20 but has
taken another serial-driver than the platform specific.

Quoted 6 lines

may this help you :)

anton

--=20
Daniel
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

author
#10 lore raw

Right. Guess I found it hard way :)
After using LEVEL interrupt, it all works now.

Quoted 77 lines · Kumar Gala

=20
On Aug 1, 2005, at 10:38 PM, JohnsonCheng wrote:
=20

Quoted 5 lines

Dear Daniel,

I also meet this problem on MPC8245 with linux-2.6.12.3, and I found it uses
LEVEL for interrupt in sandpoint.c. Do you have any idea for it?

=20
All internal interrupts on the MPC8245/1 should be LEVEL interrupts. =20
- kumar
=20

Quoted 64 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ann
Sent: Monday, August 01, 2005 9:27 AM
To: Anton W=F6llert
Cc: [email protected]
Subject: Re: Serial console

Thanks for your input Anton.
I'm not all that certain about sandpoint platform has its own serial driver so I've worked with 8250.c. Anyway, I've got it working now. It was problem with interrupt. As soon as I changed interrupt from EGDE to LEVEL it began working. Altho I'm faced with yet another problem with openpic but I'm digging thru it at the moment.

BTW, I have no idea why EDGE didnt work and LEVEL does.

Cheers,
Daniel

Quoted 27 lines · On 7/30/05, Anton W=F6llert <[email protected]> wrote:
Quoted 11 lines · Daniel Ann

Hi folks,

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 ?

Hi, we've had the same problem some time ago on a tqm850l (mpc850). Our
problem was, that we had registered two serial consoles in the kernel config or something like that. we had to disable all serial-driver stuff
and enable just the platform-specific serial-console driver. we tracked
this down with inserting a printk(buf) into the tty_write fs-op of the
serial-port driver in drivers/char/tty_io.c. the ttyS0 was used but has
taken another serial-driver than the platform specific.

Quoted 6 lines

may this help you :)

anton

--
Daniel
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 7 lines
Quoted 5 lines

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

=20
=20

--=20
Daniel