Subject: Porting Alcatels xDSL USB Linux Modem drivers
To: None <netbsd-users@netbsd.org>
From: Jorgen Lundman <lundman@lundman.net>
List: netbsd-users
Date: 04/07/2001 16:40:00
I've taken a bit of time out to see what I could do with the Linux USB
drivers for SpeedTouch modems.
The main "mgmt" daemon is only released in ibject form, but it compiled
fine with a few harmless dummy calls. I got it to open the USB /dev
entry and attempt to send "start" to it. ie:
594 mgmt CALL ioctl(0,_IOWR('U',0x2,0x10),0xbfbfd31c)
which ofcourse gives a "Inappropriate ioctl for device" since it is
picked up as a ugen. The ioctl's that it defines are just START and
STOP.
So I figured the next task would be to try to get the Linux SpeedTouch
kernel probe() drives into NetBSD's kernel. I noticed when digging
around that it uses an external library that appears to start another
thread. I suppose that could become a real headache later on? (Although
usb.c seem to do that too, so perhaps it's not too bad).
Anyway, I spent some considerable amount of time to adapting umodem.c to
uspeed.c until I reached the point where it goes:
uspeed1 at uhub0 port 2 configuration 1 interface 1
uspeed1: ALCATEL Speed Touch USB , rev 1.10/0.00, addr 2, iclass 255/0
But don't get excited, has nearly none of the Linux sources, I was jus
trying to see if I could get anything at all. It took a little too long
and I'm not really too sure of what I am doing :)
So I guess the question is are anyone else trying to convert that driver
across (and I'm just wasting my effort?)? Or are there any good docs or
howto's that could aid me if I am indeed the only one?
Damn things actually seems to find 3 so I suspect my MATCH is broken:
uspeed0 at uhub0 port 2 configuration 1 interface 0
uspeed0: ALCATEL Speed Touch USB , rev 1.10/0.00, addr 2, iclass 255/0
ucom0 at uspeed0: portno -1071652303
uspeed1 at uhub0 port 2 configuration 1 interface 1
uspeed1: ALCATEL Speed Touch USB , rev 1.10/0.00, addr 2, iclass 255/0
uspeed2 at uhub0 port 2 configuration 1 interface 2
uspeed2: ALCATEL Speed Touch USB , rev 1.10/0.00, addr 2, iclass 255/0
Is it worth trying to get this going as an LKM? It is a hassle to reboot
just to try a new bit of code. :)
Help would be appreciated, flames expected :)
Lundy
--
Jorgen "Lord" Lundman <lundman@lundman.net>
Technology Manager, Unix Administrator.
Phone: +44 (0208)659-1860 Mobile: (0958)642-918
Pager: 0958642918@one2one.net
"Rare is the person who can weigh the faults of others
without putting his thumb on the scales": Byron J. Langenfeld