-
Notifications
You must be signed in to change notification settings - Fork 26
Firmware load scripts
Scripts to get the dependencies and load the firmware.
wget http://tiny.cc/msbil .. redirects to https://dl.dropboxusercontent.com/u/80983693/makestuff-lindar-20140401.tar.gz which is just a few dirs and a script to do "git clone..." I think this can replace it.
sudo apt-get install \
build-essential libreadline-dev libusb-1.0-0-dev python-yaml
cd HDMI2USB-misoc-firmware/build/
mkdir makestuff
cd makestuff
git clone https://github.com/makestuff/common.git
mkdir apps; cd apps
git clone https://github.com/makestuff/flcli.git
git clone https://github.com/makestuff/fx2loader.git
cd flcli
make deps
cd ..
cd fx2loader
make deps
cd ..
Install Runtime and Utilities from http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,828&Prod=ADEPT2
#!/bin/bash -ex
# setup.sh - get and install utils
rtver=2.16.1
uver=2.2.1
wget http://www.digilentinc.com/Data/Products/ADEPT2/digilent.adept.runtime_$rtver-x86_64.tar.gz
tar xvf digilent.adept.runtime_$rtver-x86_64.tar.gz
cd digilent.adept.runtime_$rtver-x86_64
sudo ./install.sh
cd ..
wget http://www.digilentinc.com/Data/Products/ADEPT2/digilent.adept.utilities_$uver-x86_64.tar.gz
tar xvf digilent.adept.utilities_$uver-x86_64.tar.gz
cd digilent.adept.utilities_$uver-x86_64
sudo ./install.sh
#!/bin/bash -ex
# fl.sh - Firmware Load
base=https://github.com/timvideos/HDMI2USB-firmware-prebuilt/raw/master
wget $base/hdmi2usb.bit
wget $base/hdmi2usb.hex
djtgcfg init -d Atlys
djtgcfg prog -d Atlys -i 0 -f hdmi2usb_mjpeg.bit
fxload -t fx2 -d something/someting -I hdmi2usb_mjpeg.hex
# grab 2 pngs - 2 becuase my cam often gives garbage on the first frame
mplayer -tv device=/dev/video1 tv:// -frames 2 -vo png
echo camorama -d /dev/video1
https://github.com/pbatard/fxload "Oh man, are people actually using that old code?
This is no longer maintained and has been superseded by the fxload app in the libusbx directory.
I would strongly suggest that you:
- pick the latest version of libusbx from git://github.com/libusbx/libusbx.git
- Use the fxload application from the examples directory there
instead of the old version from pbatard
- pbatard
Turns out he removed functionality needed in the latest versions. - The udev script needs the ability to specify a USB device in /sys for when you have two devices with the same vid:pid (IE you plug in two devices)
The are two different fxload programs: (I gave up trying to figure out if they had any common roots, and it doesn't matter)
http://linux-hotplug.cvs.sourceforge.net/viewvc/linux-hotplug/fxload/ which is packaged https://packages.debian.org/squeeze/fxload http://packages.ubuntu.com/trusty/fxload
and https://github.com/libusb/libusb/blob/master/examples/fxload.c