Skip to content

Bash On Ubuntu On Windows10

tmk edited this page Dec 27, 2016 · 9 revisions

Bash on Ubuntu on Windows 10 for tmk build

You can build tmk_keyboard firmware with Bash on Windows.

NOTE: dfu-programmer doesn't work in Ubuntu on Windows 10 :( at this time at least. You can not flash your microcontroller inside ubuntu unfotunately. You need Windows native tool like Atmel FLIP or dfu-programmer to program microcontroller.

How to enable it

Install tools

Open Bash window form start menu and install build tools.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install -y git unzip build-essential
$ sudo apt-get install -y make gcc-avr avr-libc binutils-avr dfu-programmer
$ sudo apt-get install -y binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib dfu-util
$ sudo apt-get autoremove
$ sudo apt-get clean

How to build tmk

Get source codes from github and place under your home folder.

$ cd /mnt/c/Users/<yourname>
$ git clone

And build firmware, for example.

$ cd tmk_keyboard/keyboard/hhkb
$ make

You can access the firmware under home folder through Explorer.

Ubuntu files

You can access all files on ubuntu under this holder.


But the holder is invisible from Explorer, you can have to type the path directly in address bar.

You can’t perform that action at this time.