Hi --
--- In "naturalwatt" <> wrote:
>
> --- In "charliem_1216" <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.
Strange, even the current getty.c in busybox uses those ioctls.
One option would be to add support for posix terminal i/o to busybox
mgetty. You could use a modern mgetty.c from debian util-linux as a
guide, as it has posix terminal i/o now and seems to share the same
heritage as the mgetty.c in busybox. I can't imagine this hasn't been
discussed by the busybox people, since using these ioctls would keep
their mgetty from working on most all USB serial devices AFAICS.
Or, just compile a new stand-alone getty as you said. I don't think
it would be too big at all: no new libraries should be needed, as your
own serial port programs already work.
Either way it sounds easier than adding support to the driver for the
ioctls.
Well if you are getting to a shell prompt, that means that getty is
not involved any more. Can you fix the LF/CR issue using stty after
you log in?
regards ........... Charlie
>
> 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/
|