[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] NetBSD
From: |
Jordan Hayes |
Subject: |
Re: [Discuss-gnuradio] NetBSD |
Date: |
Sun, 3 Dec 2006 18:35:29 -0800 |
>> 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.
#0 write_cmd (udh=<value optimized
out>, request=8, value=87, index=0,
bytes=0xbfbfd3cb
"", len=1) at usrp_prims.cc:450
#1 0xbb19dd07 in usrp_i2c_write
(udh=0x84e6e00, i2c_addr=87, buf=0xbfbfd3cb,
len=1) at
usrp_prims.cc:960
#2 0xbb19dd44 in usrp_eeprom_read (udh=0x84e6e00,
i2c_addr=87,
eeprom_offset=0, buf=0xbfbfd424, len=32) at
usrp_prims.cc:1124
#3 0xbb19dddc in read_dboard_eeprom (udh=0x84e6e00,
slot_id=<value optimized out>, buf=0xbfbfd424 "\n")
at usrp_prims.cc:1293
#4 0xbb19de49 in usrp_read_dboard_eeprom
(udh=0x84e6e00, slot_id=3,
eeprom=0xbfbfd47c) at
usrp_prims.cc:1317
#5 0xbb19ba9e in usrp_basic_rx::probe_rx_slots
(this=0x8698000, verbose=false)
at
usrp_basic.cc:721
#6 0xbb19c5ca in usrp_basic_rx (this=0x8698000,
which_board=0,
fusb_block_size=4096, fusb_nblocks=16,
address@hidden,
address@hidden) at
usrp_basic.cc:467
#7 0xbb1a1784 in usrp_standard_rx (this=0x8698000,
which_board=0,
decim_rate=64, nchan=1, mux=839922192,
mode=0, fusb_block_size=4096,
fusb_nblocks=16, address@hidden,
address@hidden)
at usrp_standard.cc:158
#8 0xbb1a1ea7 in
usrp_standard_rx::make (which_board=0, decim_rate=64,
nchan=1, mux=839922192, mode=0, fusb_block_size=4096, fusb_nblocks=16,
address@hidden, address@hidden)
at usrp_standard.cc:228
#9 0xbb15c584 in
usrp1_source_base (this=0x804c740, address@hidden,
address@hidden,
which_board=0, decim_rate=64, nchan=1,
mux=839922192,
mode=0, fusb_block_size=4096, fusb_nblocks=16,
address@hidden,
address@hidden)
at usrp1_source_base.cc:56
#10 0xbb15cba9 in
usrp1_source_c (this=0x804c740, which_board=0,
decim_rate=64, nchan=1, mux=839922192, mode=0, fusb_block_size=4096,
fusb_nblocks=16, address@hidden,
address@hidden)
at usrp1_source_c.cc:73
#11 0xbb15d125 in
usrp1_make_source_c (which_board=0, decim_rate=64, nchan=1,
mux=839922192, mode=0, fusb_block_size=4096,
fusb_nblocks=16,
address@hidden,
address@hidden)
at
usrp1_source_c.cc:55