This vagrantfile is meant to make it easy to configure and flash firmware for my Infinity Keyboard. It should also work for other keyboards supported by kiibohd, but auto-attaching when in bootloader mode may not work without extra changes to the Vagrantfile.
Install virtualbox and extensions, and vagrant.
You may also benefit from vagrant-cachier and vagrant-triggers if you are going to play with this a lot.
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-triggers
- Bring up the VM and connect to it.
$ vagrant up $ vagrant ssh
- Edit layouts.
Layouts are in the
layouts
directory. Feel free to create a new subdir and add your own. You can use a configurator like the one here as a start if you want. - Build.
Execute
./build.sh
from one of the layout folders. - Flash
Press the flash button on the bottom of the keyboard. This will cause it to auto attach to the VM, ready to be flashed.
Using another keyboard, in the directory with the firmware, run
$ sudo ./load
. If you seestate(7) = dfuMANIFEST, status(0) = No error condition is present
then flashing has succeeded. If you only have 1 keyboard, you can trysleep 5; sudo ./load
, and push the flash button while its sleeping. - Cleanup.
exit
the vm, thenvagrant destroy
to cleanup.git clean --fXd
from the layouts directory to clean up build artifacts (automatically done if vagrant-triggers is installed).