linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* A PPC kernel issue with UART ??
@ 2005-08-02 11:41 JohnsonCheng
  2005-08-03  0:21 ` Daniel Ann
  0 siblings, 1 reply; 4+ messages in thread
From: JohnsonCheng @ 2005-08-02 11:41 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 5274 bytes --]

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

* Re: A PPC kernel issue with UART ??
  2005-08-02 11:41 A PPC kernel issue with UART ?? JohnsonCheng
@ 2005-08-03  0:21 ` Daniel Ann
  2005-08-03  3:11   ` JohnsonCheng
       [not found]   ` <42f035f0.13006336.4667.1893SMTPIN_ADDED@mx.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Ann @ 2005-08-03  0:21 UTC (permalink / raw)
  To: JohnsonCheng; +Cc: linuxppc-embedded

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.

On 8/2/05, JohnsonCheng <johnsoncheng@qnap.com.tw> wrote:
>=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.
>=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
> rootfs have printed.
>=20
> 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 somethi=
ng
> wrong for my UART configurations, does anybody know it??
>=20
> =20
>=20
> =20
>=20
> Best Regards,
>=20
> Johnson Cheng
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
>=20


--=20
Daniel

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

* RE: A PPC kernel issue with UART ??
  2005-08-03  0:21 ` Daniel Ann
@ 2005-08-03  3:11   ` JohnsonCheng
       [not found]   ` <42f035f0.13006336.4667.1893SMTPIN_ADDED@mx.gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: JohnsonCheng @ 2005-08-03  3:11 UTC (permalink / raw)
  To: 'Daniel Ann'; +Cc: linuxppc-embedded

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: linuxppc-embedded-bounces@ozlabs.org
[mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of Daniel Ann
Sent: Wednesday, August 03, 2005 8:22 AM
To: JohnsonCheng
Cc: linuxppc-embedded@ozlabs.org
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.

On 8/2/05, JohnsonCheng <johnsoncheng@qnap.com.tw> wrote:
> 
> 
> 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
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 


-- 
Daniel
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

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

* Re: A PPC kernel issue with UART ??
       [not found]   ` <42f035f0.13006336.4667.1893SMTPIN_ADDED@mx.gmail.com>
@ 2005-08-03  5:15     ` Daniel Ann
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Ann @ 2005-08-03  5:15 UTC (permalink / raw)
  To: JohnsonCheng; +Cc: linuxppc-embedded

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

On 8/3/05, JohnsonCheng <johnsoncheng@qnap.com.tw> wrote:
> Actually, I had reviews all article about "serial console", just know I h=
ave
> 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
> 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: linuxppc-embedded-bounces@ozlabs.org
> [mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of Daniel Ann
> Sent: Wednesday, August 03, 2005 8:22 AM
> To: JohnsonCheng
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: A PPC kernel issue with UART ??
>=20
> Johnson,
>=20
> 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
> On 8/2/05, JohnsonCheng <johnsoncheng@qnap.com.tw> wrote:
> >
> >
> > 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
> > rootfs have printed.
> >
> > The conclusion is that message can be printed by printk() in linux kern=
el,
> > 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
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> >
>=20
>=20
> --
> Daniel
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
>=20


--=20
Daniel

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

end of thread, other threads:[~2005-08-03  5:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-02 11:41 A PPC kernel issue with UART ?? JohnsonCheng
2005-08-03  0:21 ` Daniel Ann
2005-08-03  3:11   ` JohnsonCheng
     [not found]   ` <42f035f0.13006336.4667.1893SMTPIN_ADDED@mx.gmail.com>
2005-08-03  5:15     ` Daniel Ann

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