Skip to contentSkip to conversation

A PPC kernel issue with UART ??

DISCUSSION JohnsonCheng 2 participants 4 messages Aug 2, 2005 – Aug 3, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Dear All,

I meet a wired UART problem on linux-2.6 with MPC8241 chip.

My Environment is as following:

CPU: MPC8241

Linux: 2.6.12.3

COM1 offset: 0x4500, COM2 offset: 0x4600

When I booting my rootfs, it hangs at following message:

RAMDISK: Compressed image found at block 0

VFS: Mounted root (ext2 filesystem) readonly.

Freeing unused kernel memory: 104k init

EXT2-fs warning: checktime reached, running e2fsck is recommended

I had add printk in tty_write() of drivers/char/tty_io.c, the message from rootfs have printed.

The conclusion is that message can be printed by printk() in linux kernel, but can't be printed by printf() in user mode. I think it must be something wrong for my UART configurations, does anybody know it??

Best Regards,

Johnson Cheng

#1 lore raw

Johnson,

You know what? I've had the exact same problem only day or two ago. I think the mail subject was "serial console" or something similar. Have a read at it.

BTW, My problem was with interrupt setting.
Daniel.

Quoted 25 lines · JohnsonCheng

=20
=20
Dear All,
=20
=20
=20
I meet a wired UART problem on linux-2.6 with MPC8241 chip. =20
=20
=20
My Environment is as following:=20
=20
CPU: MPC8241
=20
Linux: 2.6.12.3
=20
COM1 offset: 0x4500, COM2 offset: 0x4600
=20
=20
=20
When I booting my rootfs, it hangs at following message:
=20
RAMDISK: Compressed image found at block 0
=20
VFS: Mounted root (ext2 filesystem) readonly.

Quoted 8 lines

=20
Freeing unused kernel memory: 104k init
=20
EXT2-fs warning: checktime reached, running e2fsck is recommended =20
=20
=20
I had add printk in tty_write() of drivers/char/tty_io.c, the message fro=

m

Quoted 3 lines

rootfs have printed.
=20
The conclusion is that message can be printed by printk() in linux kernel=

,

Quoted 1 line

but can't be printed by printf() in user mode. I think it must be somethi=

ng

Quoted 7 lines

wrong for my UART configurations, does anybody know it?? =20
=20
=20
=20
=20
Best Regards,

Quoted 8 lines

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

--=20
Daniel

#2 lore raw

Actually, I had reviews all article about "serial console", just know I have to use LEVEL for interrupt, not EDGE. Unfortunately the default interrupt setting for kernel is with LEVEL, IRQ_SENSE_LEVEL, I think I don't need to modify it.
But I found I add ASYNC_SKIP_TEST flag to UART in sandpoint.h can fix my problem.

Thanks,
Johnson Cheng

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ann
Sent: Wednesday, August 03, 2005 8:22 AM
To: JohnsonCheng
Cc: [email protected]
Subject: Re: A PPC kernel issue with UART ??

Johnson,

You know what? I've had the exact same problem only day or two ago. I think the mail subject was "serial console" or something similar. Have a read at it.

BTW, My problem was with interrupt setting.
Daniel.

Quoted 32 lines · JohnsonCheng

Dear All,

I meet a wired UART problem on linux-2.6 with MPC8241 chip.

My Environment is as following:

CPU: MPC8241

Linux: 2.6.12.3

COM1 offset: 0x4500, COM2 offset: 0x4600

When I booting my rootfs, it hangs at following message:

RAMDISK: Compressed image found at block 0

VFS: Mounted root (ext2 filesystem) readonly.

Freeing unused kernel memory: 104k init

EXT2-fs warning: checktime reached, running e2fsck is recommended

Quoted 5 lines

I had add printk in tty_write() of drivers/char/tty_io.c, the message from rootfs have printed.

The conclusion is that message can be printed by printk() in linux kernel, but can't be printed by printf() in user mode. I think it must be

something

Quoted 15 lines

wrong for my UART configurations, does anybody know it??

Best Regards,

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

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

A Ha. That's the question I've asked kumar earlier today. Having inserted that myself it worked also. Still wondering why tho...

Quoted 1 line · JohnsonCheng

Actually, I had reviews all article about "serial console", just know I h=

ave

Quoted 2 lines

to use LEVEL for interrupt, not EDGE. Unfortunately the default interrupt setting for kernel is with LEVEL, IRQ_SENSE_LEVEL, I think I don't need t=

o

Quoted 17 lines

modify it.
But I found I add ASYNC_SKIP_TEST flag to UART in sandpoint.h can fix my problem.
=20
Thanks,
Johnson Cheng
=20
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ann
Sent: Wednesday, August 03, 2005 8:22 AM
To: JohnsonCheng
Cc: [email protected]
Subject: Re: A PPC kernel issue with UART ??
=20
Johnson,
=20

Quoted 41 lines

You know what? I've had the exact same problem only day or two ago. I think the mail subject was "serial console" or something similar. Have a read at it.
=20
BTW, My problem was with interrupt setting.
Daniel.
=20

Quoted 33 lines · JohnsonCheng

Dear All,

I meet a wired UART problem on linux-2.6 with MPC8241 chip.

My Environment is as following:

CPU: MPC8241

Linux: 2.6.12.3

COM1 offset: 0x4500, COM2 offset: 0x4600

When I booting my rootfs, it hangs at following message:

RAMDISK: Compressed image found at block 0

VFS: Mounted root (ext2 filesystem) readonly.

Freeing unused kernel memory: 104k init

EXT2-fs warning: checktime reached, running e2fsck is recommended

I had add printk in tty_write() of drivers/char/tty_io.c, the message f=

rom

Quoted 3 lines
Quoted 3 lines

rootfs have printed.

The conclusion is that message can be printed by printk() in linux kern=

el,

Quoted 17 lines
Quoted 1 line

but can't be printed by printf() in user mode. I think it must be

something

Quoted 6 lines

wrong for my UART configurations, does anybody know it??

Quoted 9 lines

Best Regards,

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

Quoted 10 lines

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

--=20
Daniel