Skip to content

Instantly share code, notes, and snippets.

@sneak
Created October 1, 2017 09:39
Show Gist options
  • Save sneak/e59e4f5920229d28312bb8b94dd46ca7 to your computer and use it in GitHub Desktop.
Save sneak/e59e4f5920229d28312bb8b94dd46ca7 to your computer and use it in GitHub Desktop.
program md380 with vagrant/virtualbox with md380tools
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbehci", "on"]
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'radio', '--vendorid', '0x0483', '--productid', '0xdf11']
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get dist-upgrade
apt-get install -y git gcc-arm-none-eabi binutils-arm-none-eabi python-usb libnewlib-arm-none-eabi make curl python-pip
pip2 install pyusb
lsusb -v
cd /vagrant && make flash
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment