ts-7000
[Top] [All Lists]

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

To:
Subject: [ts-7000] Re: Curiosity with PL2303 and getty.
From: "charliem_1216" <>
Date: Thu, 05 Jun 2008 02:17:43 -0000
Hi Martin --

--- In  "naturalwatt" <> 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