BeagleBone and BladeRF

Having issues with the site, hardware, source code, or any other issues?
Post Reply
rayrv9a
Posts: 7
Joined: Wed Sep 03, 2014 10:45 am

BeagleBone and BladeRF

Post by rayrv9a »

Hi,
Initially I developed and have successfully run code on a Dell laptop running ubuntu 14.04LTS that works with the bladeRF over USB. The bladeRF uses the 115 FPGA and is powered from the USB connection. I then installed the same version of ubuntu on to a Beaglebone (not Beaglebone black), and successfully loaded (sudo apt-get install) bladerf and libbladerf-dev. Using gcc, I can compile and link the same source code that successfully runs with the bladeRF on the Dell laptop and do not have any compilation or linking errors.

I boot up the Beaglebone (it is powered from a 5v, 2A supply) and ssh to it from the laptop. Its USB port is powering the bladeRF. bladeRF-cli -i runs on the Beaglbone. However, when I then try to execute my program on the BeagleBone I now get the error message "Failed to open device: Operation timed out" and if I then try bladeRF-cli -i, I get the same error message. Resetting both the Beaglebone and bladeRF returns me to where I can run the bladeRF command line interface but Failed to open device error message always occurs if I try to talk to the bladeRF under control of my code.

If I ssh in to the bladeRF and run dmsg I get the following snippet:

[ 1065.756546] ---[ end trace f563c3b8e9c0222e ]---
[ 1065.891909] usb 1-1: reset high-speed USB device number 2 using musb-hdrc
[ 1066.432034] usb 1-1: reset high-speed USB device number 2 using musb-hdrc
[ 1066.971953] usb 1-1: reset high-speed USB device number 2 using musb-hdrc
[ 1067.501938] usb 1-1: reset high-speed USB device number 2 using musb-hdrc

The same situation occurs regardless of whether I power the bladeRF from an external 5v supply or power it from USB. The same situation also occurs whether or not I use a powered USB hub connected to the BeaglBone. So this seems to be an issue with the USB driver in Ubuntu 14.04 on the BeagleBone.

Has anyone else run in to this issue and resolved it? Anyone have any troubleshooting suggestions?

Thanks,
Ray
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: BeagleBone and BladeRF

Post by jynik »

Hi Ray,

I just got my hands on a BeagleBone black, so I'm hoping to jump in later this week(end). Hopefully I'll come up with something useful to you. Previously, I had been running GQRX on a Wandboard, so I'll have to try that out again as well.

I'll try the Ubuntu 14.04 image as well as putting together and submitting some meta-sdr patches.

In the meantime, would you mind sharing a verbose log (bladeRF-cli -i -v verbose) from the case where everything is powered externally?

- Jon
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: BeagleBone and BladeRF

Post by jynik »

I started working on some updated bladeRF recipes for OE/Yocto meta-sdr layer. (I'll be sumitting a pull request soon.)

Using meta-sdr, I baked a slightly stripped down gnuradio-demo-image (which is overkill, given that I really just wanted to look at the bladeRF-CLI) for the BeagleBone Black, since this is all I have. I use a powered USB 3.0, just for the sake of using a powered hub and having a more managable setup on my desk.

I see that I'm able to connect to the device via the bladeRF-cli and peek/poke registers. Nothing jumped out at me here as being problematic.

The "reset" high-speed device is an expected part of opening and (re)initializing the device, which was introduced in this commit. It seems musb is just a bit chatty...

In the CLI I tested out an 'rx config file=/dev/null n=10M' to receive and throw away samples. The only thing I noted here is that musb spits out the following, which I suspect occurs when we make a libusb call to cancel pending transfers:

Code: Select all

musb_host_rx 1654: RX2 dma busy, csr 2002
musb_host_rx 1654: RX2 dma busy, csr 2220
musb_host_rx 1654: RX2 dma busy, csr 2020
When testing out TX, I think I'm seeing some of the same issues you reported. When trying to shutdown the transmit stream, the musb driver seems to get hung up flushing some fifos, resulting in a warn_slowpath to fire off some backtraces.

Code: Select all

bladeRF> tx config file=/dev/zero repeat=0
bladeRF> tx start
[VERBOSE @ si5338.c:280] Reading MS2
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x26 0x03
[VERBOSE @ si5338.c:289] Read enable register: 0x03
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4b 0x66
[VERBOSE @ si5338.c:298] Read regs[0]: 0x66
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4c 0x9c
[VERBOSE @ si5338.c:298] Read regs[1]: 0x9c
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4d 0x08
[VERBOSE @ si5338.c:298] Read regs[2]: 0x08
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4e 0x00
[VERBOSE @ si5338.c:298] Read regs[3]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4f 0x00
[VERBOSE @ si5338.c:298] Read regs[4]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x50 0x00
[VERBOSE @ si5338.c:298] Read regs[5]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x51 0x05
[VERBOSE @ si5338.c:298] Read regs[6]: 0x05
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x52 0x00
[VERBOSE @ si5338.c:298] Read regs[7]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x53 0x00
[VERBOSE @ si5338.c:298] Read regs[8]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x54 0x00
[VERBOSE @ si5338.c:298] Read regs[9]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x21 0xc8
[VERBOSE @ si5338.c:308] Read r register: 0xc8
[VERBOSE @ si5338.c:147] Unpacked P1: 0x00009c66 (40038) P2: 0x00000002 (2) P3: 0x00000005 (5)
[VERBOSE @ si5338.c:165] Unpacked a + b/c: 316 + 4/5
[VERBOSE @ si5338.c:166] Unpacked r: 4
[VERBOSE @ si5338.c:332] Calculated samplerate: 1000000 + 0/1
[VERBOSE @ usb.c:913] config_gpio_write: 0x000000d7
[DEBUG @ bladerf.c:301] Enable Module: TX - True
[VERBOSE @ usb.c:1036] usb_lms_read: 0x40 0x00
[VERBOSE @ usb.c:1015] usb_lms_write: 0x40 0x02
[VERBOSE @ si5338.c:280] Reading MS2
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x26 0x03
[VERBOSE @ si5338.c:289] Read enable register: 0x03
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4b 0x66
[VERBOSE @ si5338.c:298] Read regs[0]: 0x66
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4c 0x9c
[VERBOSE @ si5338.c:298] Read regs[1]: 0x9c
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4d 0x08
[VERBOSE @ si5338.c:298] Read regs[2]: 0x08
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4e 0x00
[VERBOSE @ si5338.c:298] Read regs[3]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x4f 0x00
[VERBOSE @ si5338.c:298] Read regs[4]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x50 0x00
[VERBOSE @ si5338.c:298] Read regs[5]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x51 0x05
[VERBOSE @ si5338.c:298] Read regs[6]: 0x05
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x52 0x00
[VERBOSE @ si5338.c:298] Read regs[7]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x53 0x00
[VERBOSE @ si5338.c:298] Read regs[8]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x54 0x00
[VERBOSE @ si5338.c:298] Read regs[9]: 0x00
[VERBOSE @ usb.c:1273] usb_si5338_read: 0x21 0xc8
[VERBOSE @ si5338.c:308] Read r register: 0xc8
[VERBOSE @ si5338.c:147] Unpacked P1: 0x00009c66 (40038) P2: 0x00000002 (2) P3: 0x00000005 (5)
[VERBOSE @ si5338.c:165] Unpacked a + b/c: 316 + 4/5
[VERBOSE @ si5338.c:166] Unpacked r: 4
[VERBOSE @ si5338.c:332] Calculated samplerate: 1000000 + 0/1
[DEBUG @ sync.c:757] sync_tx: Worker is now running.
bladeRF> tx stop
bladeRF> [DEBUG @ bladerf.c:301] Enable Module: TX - False
                                                          ------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Not tainted 3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e5 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:605 cppi41_dma_control+0x22c/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f68>] (cppi41_dma_control+0x22c/0x2a4)
[<c03e7f68>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e6 ]---
CAUTION: musb: Babble Interrupt Occurred
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 3003
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e7 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2003
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf059f8c>] (musb_advance_schedule+0x21c/0x228 [musb_hdrc])
[<bf059f8c>] (musb_advance_schedule [musb_hdrc]) from [<bf05a078>] (musb_cleanup_urb.isra.11+0xe0/0xe8 [musb_hdrc])
[<bf05a078>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e8 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141e9 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ea ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf059f8c>] (musb_advance_schedule+0x21c/0x228 [musb_hdrc])
[<bf059f8c>] (musb_advance_schedule [musb_hdrc]) from [<bf05a078>] (musb_cleanup_urb.isra.11+0xe0/0xe8 [musb_hdrc])
[<bf05a078>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141eb ]---
[DEBUG @ sync_worker.c:319] sync_worker_wait_for_state: Wait on state change failed: Connection timed out
                                                                                                         [WARNING @ sync_worker------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ec ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 595 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 595 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ed ]---
.c:255] Timed out while stopping worker. Canceling thread.
                                                          ------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf0596a8>] (musb_start_urb+0x274/0x93c [musb_hdrc])
[<bf0596a8>] (musb_start_urb [musb_hdrc]) from [<bf05aae8>] (musb_urb_enqueue+0x5ac/0x5dc [musb_hdrc])
[<bf05aae8>] (musb_urb_enqueue [musb_hdrc]) from [<c04d3c7c>] (usb_hcd_submit_urb+0x6e4/0x7dc)
[<c04d3c7c>] (usb_hcd_submit_urb) from [<c04d4e7c>] (usb_submit_urb+0x3fc/0x42c)
[<c04d4e7c>] (usb_submit_urb) from [<c04e0208>] (usbdev_ioctl+0x1c4c/0x1d68)
[<c04e0208>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ee ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/dma/cppi41.c:602 cppi41_dma_control+0x1f0/0x2a4()
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039afc>] (warn_slowpath_null+0x2c/0x34)
[<c0039afc>] (warn_slowpath_null) from [<c03e7f2c>] (cppi41_dma_control+0x1f0/0x2a4)
[<c03e7f2c>] (cppi41_dma_control) from [<bf05ef60>] (cppi41_dma_channel_abort+0x104/0x140 [musb_hdrc])
[<bf05ef60>] (cppi41_dma_channel_abort [musb_hdrc]) from [<bf059fec>] (musb_cleanup_urb.isra.11+0x54/0xe8 [musb_hdrc])
[<bf059fec>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141ef ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 581 at /builds/yocto/poky-dizzy-1.7/builds/beaglebone/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.24+gitAUTOINC+a227f20eff_dbe5b52e93-r0/linux/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc]()
Could not flush host TX2 fifo: csr: 2403
Modules linked in: snd_soc_omap snd_pcm_dmaengine musb_dsps snd_soc_core musb_hdrc snd_compress regmap_spi snd_pcm snd_timer snd soundcore omap_rng rng_core musb_am335x
CPU: 0 PID: 581 Comm: bladeRF-cli Tainted: G        W    3.14.19-yocto-standard #1
[<c0015514>] (unwind_backtrace) from [<c0012340>] (show_stack+0x20/0x24)
[<c0012340>] (show_stack) from [<c06d8dd4>] (dump_stack+0x20/0x28)
[<c06d8dd4>] (dump_stack) from [<c0039a20>] (warn_slowpath_common+0x7c/0x9c)
[<c0039a20>] (warn_slowpath_common) from [<c0039a80>] (warn_slowpath_fmt+0x40/0x48)
[<c0039a80>] (warn_slowpath_fmt) from [<bf058ea4>] (musb_h_tx_flush_fifo+0x6c/0x98 [musb_hdrc])
[<bf058ea4>] (musb_h_tx_flush_fifo [musb_hdrc]) from [<bf05a02c>] (musb_cleanup_urb.isra.11+0x94/0xe8 [musb_hdrc])
[<bf05a02c>] (musb_cleanup_urb.isra.11 [musb_hdrc]) from [<bf05a18c>] (musb_urb_dequeue+0x10c/0x154 [musb_hdrc])
[<bf05a18c>] (musb_urb_dequeue [musb_hdrc]) from [<c04d2994>] (unlink1+0xf0/0xfc)
[<c04d2994>] (unlink1) from [<c04d3e0c>] (usb_hcd_unlink_urb+0x98/0xb4)
[<c04d3e0c>] (usb_hcd_unlink_urb) from [<c04d4f08>] (usb_kill_urb+0x5c/0xd4)
[<c04d4f08>] (usb_kill_urb) from [<c04df570>] (usbdev_ioctl+0xfb4/0x1d68)
[<c04df570>] (usbdev_ioctl) from [<c0141cd8>] (do_vfs_ioctl+0x4b4/0x5b0)
[<c0141cd8>] (do_vfs_ioctl) from [<c0141e30>] (SyS_ioctl+0x5c/0x84)
[<c0141e30>] (SyS_ioctl) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
---[ end trace be96843a427141f0 ]---

[DEBUG @ usb.c:92] Failed to write perperial access command: Operation timed out
bladeRF> [DEBUG @ libusb.c:788] lusb_control_transfer failed: status = -7
[DEBUG @ usb.c:1359] Could not enable RF TX (-6): Operation timed out

bladeRF> q
Unfortunately, I'm not sure how much time I'll have to dive into this right now. I think reviewing the musb code would be a good start, and perhaps taking a look at samples using a Beagle USB analyzer.

I heard on IRC that a few USB 3.0 XHCI controllers still don't play nicely with the bladeRF. Perhaps some debugging this musb issue will either identify defects in that driver, or bring to light some common functionality in our use of libusb of the FX3 firmware that is at fault... please keep me in the loop.

Best regards,
Jon
Post Reply