Difference between revisions of "Bbb sniffer"
(→On a Linux desktop) |
(→On the BBB) |
||
Line 44: | Line 44: | ||
=On the BBB= | =On the BBB= | ||
− | depmod -a | + | depmod -a |
− | sudo apt-get install libudev-dev | + | sudo apt-get install libudev-dev |
− | mkdir sniffer | + | mkdir sniffer |
− | cd sniffer | + | cd sniffer |
− | wget https://github.com/libusb/libusb/archive/v1.0.19.tar.gz | + | wget <nowiki>https://github.com/libusb/libusb/archive/v1.0.19.tar.gz</nowiki> |
− | tar xzvf v1.0.19.tar.gz | + | tar xzvf v1.0.19.tar.gz |
− | cd libusb-1.0.19/ | + | cd libusb-1.0.19/ |
− | ./bootstrap.sh | + | ./bootstrap.sh |
− | ./configure | + | ./configure |
− | make | + | make |
− | make install | + | make install |
− | mv /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/aa_libc.conf | + | mv /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/aa_libc.conf |
− | ldconfig | + | ldconfig |
And install/run USBProxy as explained in the README.md. | And install/run USBProxy as explained in the README.md. |
Revision as of 01:18, 29 December 2014
On a Linux desktop
mkdir ~/bbb cd ~/bbb
wget http://debian.beagleboard.org/images/bone-debian-7.5-2014-05-14-2gb.img.xz md5sum bone-debian-7.5-2014-05-14-2gb.img.xz
(result should be 35877ce21e8ed0eb1bdc6819ad71c317)
xz --stdout -d bone-debian-7.5-2014-05-14-2gb.img.xz | sudo dd of=/dev/sdX bs=4096 sync
Remove the sdcard.
wget https://github.com/RobertCNelson/linux-dev/archive/3.8.13-bone50.tar.gz tar xzvf 3.8.13-bone50.tar.gz cd linux-dev-3.8.13-bone50/
If needed, modify tools/host_det.sh so that it detects your Linux distribution.
./build_kernel.sh
This script will eventually tell you to run commands to install missing packages, e.g.:
sudo apt-get update sudo apt-get install device-tree-compiler lzma
./build_kernel.sh
Patch and rebuild USB gadget modules:
cd KERNEL/drivers/usb/gadget/ wget https://raw.githubusercontent.com/dominicgs/USBProxy/master/doc/inode.c.patch patch < inode.c.patch cd ~/bbb/linux-dev-3.8.13-bone50 ./tools/rebuild.sh
Insert and mount the sdcard (e.g. to /mnt/rootfs).
cp ~/bbb/linux-dev-3.8.13-bone50/KERNEL/drivers/usb/gadget/*.ko /mnt/rootfs/lib/modules/3.8.13-bone50/kernel/drivers/usb/gadget/
Modify the /mnt/rootfs/opt/scripts/boot/am335x_evm.sh file so that the usb0 related lines are commented out.
Unmount the sdcard, plug it in the BBB, and power it on.
On the BBB
depmod -a
sudo apt-get install libudev-dev
mkdir sniffer cd sniffer wget https://github.com/libusb/libusb/archive/v1.0.19.tar.gz tar xzvf v1.0.19.tar.gz cd libusb-1.0.19/ ./bootstrap.sh ./configure make make install
mv /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/aa_libc.conf ldconfig
And install/run USBProxy as explained in the README.md.