V
13  
Tags
There are no tags for this page.
Attachments
Dobrica Pavlinušić's random unstructured stuff
Raspdancer


Raspidancer

Facedancer on RaspberryPi http://wiki.yobi.be/wiki/Raspdancer

Newer software https://github.com/ktemkin/Facedancer

Schema: http://wiki.yobi.be/images/1/18/Raspdancer21_v10_sch.png

pi@picam ~ $ git clone https://github.com/ktemkin/Facedancer


pi@picam ~ $ git clone https://github.com/lthiery/SPI-Py
Cloning into 'SPI-Py'...
remote: Counting objects: 81, done.
remote: Total 81 (delta 0), reused 0 (delta 0), pack-reused 81
Unpacking objects: 100% (81/81), done.
Checking connectivity... done.
pi@picam ~ $ cd SPI-Py/

pi@picam ~/SPI-Py $ sudo apt-get install python3-dev

pi@picam ~/SPI-Py $ python3 setup.py build

pi@picam ~/SPI-Py $ sudo python3 setup.py install



pi@picam ~/Facedancer $ export BACKEND=raspdancer

pi@picam ~/Facedancer $ sudo -E ./facedancer-serial.py

pi@picam ~/Facedancer $ sudo -E ./facedancer-serial.py 
Using MAXUSB backend.
MAXUSB initialized
MAXUSB enabled
MAXUSB revision 0
<facedancer.backends.RaspdancerMaxUSBApp.RaspdancerMaxUSBApp object at 0xb6a67710>
MAXUSB connected device USB Serial device



USB Host Shield for Arduino Pro Mini

http://shop.tkjelectronics.dk/product_info.php?cPath=22&products_id=45

Schema: http://www.tkjelectronics.dk/uploads/usbhost/UHS_mini_10.pdf

problems

  • VBCOMP is not routed on this board
  • VBUS (usb VCC) is 3.3V not 5V

MAX3421 kernel module

Raspberry pi kernel modules


pi@picam ~ $ sudo apt-get install libncurses5-dev

pi@picam ~ $ rpi-source 

pi@picam ~/linux $ ./scripts/diffconfig 
+USB_MAX3421_HCD m


pi@picam ~/linux $ grep MAX3421 .config
CONFIG_USB_MAX3421_HCD=m

pi@picam ~/linux $ make SUBDIRS=drivers/usb/host/ modules


cross-compile

dpavlin@klin:/klin/rpi/linux$ cat run.sh

  1. https://www.raspberrypi.org/documentation/linux/kernel/building.md
#make oldconfig

KERNEL=kernel7
#make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
#make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig
make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs

test -d mnt && rm -Rf mnt/
mkdir -p mnt/boot/overlays
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ modules_install
cp arch/arm/boot/zImage mnt/boot/$KERNEL.img
cp arch/arm/boot/dts/*.dtb mnt/boot/
cp arch/arm/boot/dts/overlays/*.dtb* mnt/boot/overlays/
cp arch/arm/boot/dts/overlays/README mnt/boot/overlays/


 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: