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/
|