[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] NetBSD
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] NetBSD |
Date: |
Sun, 3 Dec 2006 16:45:38 -0800 |
User-agent: |
Mutt/1.5.9i |
On Sat, Dec 02, 2006 at 03:02:54PM -0800, Jordan Hayes wrote:
> >> usb_control_msg failed: error sending control message: Input/output
> >> error
> >
> >I haven't tracked this down, but I'd be interested in fixing it. I
> >suspect it's either something missing in NetBSD or some OS-dependent
> >code that isn't properly abstracted. I think it might be coming from
> >libusb, but I really don't know - the error message is a bit lame. If
> >you can figure out the call chain that results in the error (perhaps
> >with ktrace on the simplest program that provokes it), that would be
> >helpful.
>
> Ok, I put a few printfs in there. You're right: the error message comes
> from libusb, but the "usb_control_msg" part comes from
> usrp/host/lib/usrp_prims.cc in the function write_cmd() and the args are
> rType=8 val=87 index=0 len=1 and so that's VRQ_I2C_WRITE so i'm gonna
> guess that this is the usrp_eeprom_write() call that includes this code:
I doubt it's coming from usrp_eeprom_write() since almost nobody
calls that. Depending on the daughterboard, it could be code that's
setting up the daughterboard.
To find out for sure, set a breakpoint with gdb and get a backtrace.
Eric