ts-7000
[Top] [All Lists]

[ts-7000] Re: Curiosity with PL2303 and getty.

To:
Subject: [ts-7000] Re: Curiosity with PL2303 and getty.
From: "naturalwatt" <>
Date: Thu, 05 Jun 2008 10:44:42 -0000
--- In  "charliem_1216" <> wrote:
Hi Charlie.

I'm using the supplied kernel and busybox on the TS7250:
Linux nw0014 2.4.26-ts11 #22 Tue Jun 6 12:23:09 MST 2006 armv4l unknown
BusyBox v1.00-rc2 (2004.08.05-21:44+0000) multi-call binary

It seems my application that open and use the serial ports are ok, it's just 
that getty (from 
busybox) is probably issuing those ioctls. 

Logically, it's the OCRNL bit in c_oflag in the termios structure that does it, 
but the pl2303 
code does not concern itself with that member, and logically things like CR/NL 
translation 
should be done higher than the actual device driver itself, speaking from a 
position of 
ignorance on these matters.

I might try a new getty, but I am concerned to avoid bloat. I know busybox is 
ancient and 
the awk is broken, but it's plenty good enough for most things, and I want to 
keep using 
the 32MB RAM/ 32MB Flash boards as long as possible.

Martin
>
> Hi Martin --
> 
> --- In  "naturalwatt" <martin@> wrote:
> >
> > I was trying to use a USb/serial adapter using the PL2303 chip 
> set.  It didn't work using 
> > the pl2303.o supplied with the TS7250, so I used the one in the 
> pl2303.zip in the Files 
> > section of this group.
> > 
> > That 'sort of' worked, in that I could actually get a login prompt 
> using getty.  However, 
> > once logged in, you don't get line feeds, only carriage returns so 
> you are stuck on a single 
> > line.
> > 
> > I figured this might be something to do with ioctls, so I enabled 
> debugging and sure 
> > enough you get this output from dmesg:
> > 
> > pl2303.c: pl2303_open - submitting read urb
> > pl2303.c: pl2303_open - submitting interrupt urb
> > pl2303.c: pl2303_ioctl (0) cmd = 0x5401
> > pl2303.c: pl2303_ioctl not supported = 0x5401
> > pl2303.c: pl2303_ioctl (0) cmd = 0x540b
> > pl2303.c: pl2303_ioctl not supported = 0x540b
> > pl2303.c: pl2303_ioctl (0) cmd = 0x5402
> > pl2303.c: pl2303_ioctl not supported = 0x5402
> > pl2303.c: pl2303_set_termios -  port 0, initialized = 1
> > 
> > Where according to include/asm/ioctls,h, 
> > 0x5401 = TCGETS,
> > 0x5402 = TCSETS,
> > 0x540B = TCFLSH.
> > 
> > Am I on the right track or is this a red herring?
> > 
> > I have no idea about how to add support for these ioctls to the 
> pl2303.c code - that's just 
> > too far away from my comfort level in coding.
> > 
> > Martin
> >
> 
> Kernel, distro version?  Assuming TS 2.4, the thread starting here:
> http://tech.groups.yahoo.com/group/ts-7000/message/11062
> may help, but I doubt it.  Even up-to-date 2.6 kernels, pl2303.c 
> doesn't support those old ioctls. 
> 
> It would be better to fix the application to use posix terminal I/O 
> rather than ioctls.  What ?getty are you using, and what vintage?
> 
> Regards, ..... Charlie
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU