Subject: Panic with Vodafone 3G card (ucom device)
To: netbsd-help@netbsd.org <netbsd-help@netbsd.org>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: netbsd-help
Date: 11/05/2004 15:50:08
I've been hacking around trying to get a Vodafone 3G cardbus card to
work. I've got what seems like most of the way, but it's not yet working.

The card is (or appears to the computer to be) a cardbus ohci controller
with a USB serial port:

ohci0 at cardbus0 dev 0 function 0: Opti RM861HA (rev. 0x10)
ohci0: interrupting at 3
ohci0: OHCI version 1.0, legacy support
usb4 at ohci0: USB revision 1.0
uhub4 at usb4
uhub4: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
ubsa0 at uhub4 port 1
ubsa0: Vodafone Vodafone Mobile Connect Card - 3G, rev 2.00/0.00, addr 2
ubsa0: Vodafone Vodafone Mobile Connect Card - 3G, rev 2.00/0.00, addr 2
ucom0 at ubsa0

Any attempt to send data to the device causes a panic:

kernel: page fault trap, code=0
usbd_open_pipe_ival(0,81,1,cb168c88,64) at netbsd:usbd_open_pipe_ival+0x1a
usbd_open_pipe_intr()
ubsa_open()
ucomopen()
spec_open()
spec_vnoperate()
VOP_OPEN()
vn_open()
sys_open()
syscall_plain()

Our friends over at OpenBSD have the same problem (not surprisingly given  
where
usbdi.c has come from!): http://www.webservertalk.com/message451679.html
However, FreeBSD works fine apparently.

Any help appreciated.

-- 
Stephen