Skip to contentSkip to conversation

PXA/8250 serial clash strikes back

Angstrom-distro-users Paul Sokolovsky 2 participants 2 messages Jan 17, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20080117171654.GA23313@rainbow

Paul Sokolovsky

author NAK
#1 lore raw

Hello Dmitry,

Great analysis. Let's see what we can do.

Quoted 8 lines · you

After making gpsdrive-ipaq compile for Angstrom[1] , I tried to test in a real life on my iPAQ h2200 and suddenly found, that I can't. Needed kernel module for my CompactFash GPS card, serial_cs wasn't in the feeds. Oops.

I filed a bug[2], then changed OE's defconfig to include CONFIG_SERIAL_8250_CS=m , rebuild kernel and installed missing modules on PDA. Still no luck. On modprobe serial_cs I got this:

[]

Quoted 2 lines

Well, what choices do we have:
1) Downgrade kernel to -hh17 (may cause some regressions)

Nak.

Quoted 1 line

2) Reapply old hack to hh.org kernel locally in OE and then upgrade to it.

We can reapply it to the tree too.

Quoted 3 lines

3) Switch hh.org kernel to scheme suggested by RMK (renaming PXA serial ports from ttyS* to ttySA*) [4] and then fix (a lot of?) broken userspace programs.

Well, if RMK himself "suggests" such fix, then it would be
apparently the way to go (because it the most clean and consistent solution too). The best course of action would be to feed this patch back into LAKML and make sure Eric Miao saw it - he did many changes to PXA code RMK couldn't make before.

If we talk local OE change, then we'd need to cooperate with
Zaurus people at least, because doing it for one kernel recipe only would be pretty, ... well, adhoc. I don't think that would be lot to fix, but something to fix for sure. I cc: wider audience to get more feedback.

Quoted 10 lines

Oh, hell. Nothing of this seems to be perfect. The sad thing also is that mainline kernel still doesn't solve this problem itself.
Any ideas, comments, suggestions?

Dmitry 'MAD' Artamonow

[1]
http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2008-January/001587.html
[2] http://bugs.openembedded.org/show_bug.cgi?id=3682

Thanks for submitting this. We should create a ticket to track
requested/pending changes on the kernel level for next kernel subrelease, I already have bunch of such in my mind (and don't want to haste to not burden users with kernel upgrade). As soon as bugtracker is up, I'll post such.

Quoted 3 lines

[3] http://www.handhelds.org/hypermail/kernel-discuss/14/1419.html
[4]
http://lists.arm.linux.org.uk/lurker/message/20070702.162054.91fc79ce.html

[]

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]
#2 lore raw
Quoted 30 lines · Paul Sokolovsky

Hello Dmitry,

Great analysis. Let's see what we can do.

Quoted 8 lines · you

After making gpsdrive-ipaq compile for Angstrom[1] , I tried to test in a real life on my iPAQ h2200 and suddenly found, that I can't. Needed kernel module for my CompactFash GPS card, serial_cs wasn't in the feeds. Oops.

I filed a bug[2], then changed OE's defconfig to include CONFIG_SERIAL_8250_CS=m , rebuild kernel and installed missing modules on PDA. Still no luck. On modprobe serial_cs I got this:

[]

Quoted 2 lines

Well, what choices do we have:
1) Downgrade kernel to -hh17 (may cause some regressions)

Nak.

Quoted 1 line

2) Reapply old hack to hh.org kernel locally in OE and then upgrade to it.

We can reapply it to the tree too.

Quoted 3 lines

3) Switch hh.org kernel to scheme suggested by RMK (renaming PXA serial ports from ttyS* to ttySA*) [4] and then fix (a lot of?) broken userspace programs.

Quoted 5 lines

Well, if RMK himself "suggests" such fix, then it would be
apparently the way to go (because it the most clean and consistent solution too). The best course of action would be to feed this patch back into LAKML and make sure Eric Miao saw it - he did many changes to PXA code RMK couldn't make before.

For what it's worth, we (SDG Systems) have been patching the hh.org kernels to use the ttySA namespace for serial/pxa.c. We also make the related changes in OE. We just always felt like it was an uphill battle with getting mainline to do the same (ttySA).

However, the ttySA approach has worked well, and our users are happy with it. --
Todd Blumer
SDG Systems