TODO
To install AVR toolchain on debian/ubuntu:
$ sudo apt-get install avrdude gcc-avr binutils-avr avr-libc
To install AVR toolchain on Arch Linux:
$ pacman -Sy avr-binutils avr-gcc avr-libc avrdude
$ make defconfig
$ make
Then, simply run make
to build the firmware.
Assuming you dispose of an AVR Isp mkII programmer, you can use following to program the flash memory:
$ sudo avrdude -v -v -p atxmega32a4 -c avrispmkII -U flash:w:lidar.hex:i