2011-04-12 19:39:46

by Pavel Machek

[permalink] [raw]
Subject: 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels)

Hi!

> > I cculd not get serial port to work in recent kernels (2.6.35 was
> > oldest I tried). I know they are little used but still very useful for
> > debugging.
> >
> > Is there some special config that needs to be done?
> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pavel
>
> I have output on ttyS0 using the Sharp cable, never had issues.
> Remember that bootloader is 9600n8 while kernels are usually 115200n8.

Ok, I know what is going on. I need both PXA_SERIAL and 8250... and
these two don't go well together.

I tried:

CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_CONSOLE is not set
CONFIG_SERIAL_8250_CS=y
CONFIG_SERIAL_8250_NR_UARTS=1
CONFIG_SERIAL_8250_RUNTIME_UARTS=0
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX3107 is not set
CONFIG_SERIAL_PXA=y
CONFIG_SERIAL_PXA_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y

(BTW should 8250_RUNTIME_UARTS be called "boottime uarts"? That's what
help says).

...but no luck. As soon as I enable 8250, pxa serials stop working
:-(.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


2011-04-12 20:39:42

by Dmitry Baryshkov

[permalink] [raw]
Subject: Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels)

Hello,

On Tue, Apr 12, 2011 at 11:39 PM, Pavel Machek <[email protected]> wrote:
> Hi!
>
>> > I cculd not get serial port to work in recent kernels (2.6.35 was
>> > oldest I tried). I know they are little used but still very useful for
>> > debugging.
>> >
>> > Is there some special config that needs to be done?
>> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pavel
>>
>> I have output on ttyS0 using the Sharp cable, never had issues.
>> Remember that bootloader is 9600n8 while kernels are usually 115200n8.
>
> Ok, I know what is going on. I need both PXA_SERIAL and 8250... and
> these two don't go well together.
>
> I tried:
>
> CONFIG_SERIAL_8250=y
> # CONFIG_SERIAL_8250_CONSOLE is not set
> CONFIG_SERIAL_8250_CS=y
> CONFIG_SERIAL_8250_NR_UARTS=1
> CONFIG_SERIAL_8250_RUNTIME_UARTS=0
> # CONFIG_SERIAL_8250_EXTENDED is not set
>
> #
> # Non-8250 serial port support
> #
> # CONFIG_SERIAL_MAX3100 is not set
> # CONFIG_SERIAL_MAX3107 is not set
> CONFIG_SERIAL_PXA=y
> CONFIG_SERIAL_PXA_CONSOLE=y
> CONFIG_SERIAL_CORE=y
> CONFIG_SERIAL_CORE_CONSOLE=y
>
> (BTW should 8250_RUNTIME_UARTS be called "boottime uarts"? That's what
> help says).
>
> ...but no luck. As soon as I enable 8250, pxa serials stop working
> :-(.

Please try attached patch (then PXA consoles become ttySA0-3)




--
With best wishes
Dmitry


Attachments:
0001-pxa-rename-serials-to-reuse-ttySA-naming.patch (1.10 kB)

2011-04-13 13:28:57

by Pavel Machek

[permalink] [raw]
Subject: Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels)

Hi!

> >> > I cculd not get serial port to work in recent kernels (2.6.35 was
> >> > oldest I tried). I know they are little used but still very useful for
> >> > debugging.
> >> >
> >> > Is there some special config that needs to be done?
> >> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pavel
> >>
> >> I have output on ttyS0 using the Sharp cable, never had issues.
> >> Remember that bootloader is 9600n8 while kernels are usually 115200n8.
> >
> > Ok, I know what is going on. I need both PXA_SERIAL and 8250... and
> > these two don't go well together.
...
> > ...but no luck. As soon as I enable 8250, pxa serials stop working
> > :-(.
>
> Please try attached patch (then PXA consoles become ttySA0-3)

Thanks, this works for me. Can we get it into the tree?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2011-04-13 13:43:34

by Dmitry Baryshkov

[permalink] [raw]
Subject: Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels)

On Wed, Apr 13, 2011 at 5:28 PM, Pavel Machek <[email protected]> wrote:
> Hi!
>
>> >> > I cculd not get serial port to work in recent kernels (2.6.35 was
>> >> > oldest I tried). I know they are little used but still very useful for
>> >> > debugging.
>> >> >
>> >> > Is there some special config that needs to be done?
>> >> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pavel
>> >>
>> >> I have output on ttyS0 using the Sharp cable, never had issues.
>> >> Remember that bootloader is 9600n8 while kernels are usually 115200n8.
>> >
>> > Ok, I know what is going on. I need both PXA_SERIAL and 8250... and
>> > these two don't go well together.
> ...
>> > ...but no luck. As soon as I enable 8250, pxa serials stop working
>> > :-(.
>>
>> Please try attached patch (then PXA consoles become ttySA0-3)
>
> Thanks, this works for me. Can we get it into the tree?

This depends on Eric and Russell. IIRC such patches were declined
before.

--
With best wishes
Dmitry