* Compile the kernel with the default beagleboard configuration (see [http://elinux.org/BeagleBoard#Linux_kernel]). You just need to add <tt>CONFIG_USB_G_PROXY=m</tt>. I also disabled MUSB in host and OTG mode, as well as USB suspend, but this may not be necessary.

+

* Compile the kernel with the default beagleboard configuration (see [[BeagleBoard#Linux_kernel]]). You just need to add <tt>CONFIG_USB_G_PROXY=m</tt>. I also disabled MUSB in host and OTG mode, as well as USB suspend, but this may not be necessary.

* Install the new kernel on the board.

* Install the new kernel on the board.

* Clone the helper scripts git tree, and copy the content of the arm directory to the BeagleBoard (you need to modify load/setup scripts if you do not have have a copy of <tt>musb_hdrc.ko</tt> and <tt>g_proxy.ko</tt> in the same directory).

* Clone the helper scripts git tree, and copy the content of the arm directory to the BeagleBoard (you need to modify load/setup scripts if you do not have have a copy of <tt>musb_hdrc.ko</tt> and <tt>g_proxy.ko</tt> in the same directory).

Abstract

The goal of this project is to use the BeagleBoard as an USB sniffer. The host computer would be connected to the slave USB port of the BeagleBoard, and the device to be sniffed on the host USB port.

The BeagleBoard would then forward USB data, while logging it.

This presents the following advantages over a software-based solution: No software modification is required; support of proprietary OSes; allows debugging of new USB stacks; and possibly lower-level debugging of USB frames...

Build and run instructions

To get the proxy driver to work, you need to follow these steps:

Clone my kernel git tree. Use the stable-20100618 branch.

Compile the kernel with the default beagleboard configuration (see BeagleBoard#Linux_kernel). You just need to add CONFIG_USB_G_PROXY=m. I also disabled MUSB in host and OTG mode, as well as USB suspend, but this may not be necessary.

Install the new kernel on the board.

Clone the helper scripts git tree, and copy the content of the arm directory to the BeagleBoard (you need to modify load/setup scripts if you do not have have a copy of musb_hdrc.ko and g_proxy.ko in the same directory).

Run ./setup on the BeagleBoard, this will unload the g_ether gadget driver.

Plug your device (through a USB hub if it is a low/full-speed device).

Plug your PC to the BeagleBoard USB slave port (this can be done earlier as well).

Run ./unbind: This will unbind the device from the normal Linux driver.