geekhack
geekhack Projects => Making Stuff Together! => Topic started by: MajorKoos on Mon, 20 June 2016, 16:52:06
-
You'll need to be on the insider preview or wait for the anniversary update to go RTM, but the "Bash on Ubuntu on Windows" feature will let you compile TMK/QMK without needing to mess around with WinAVR, Cygwin, etc.
Steps to get it working:
1) Install the "Windows Subsystem for Linux" feature via "Programs and Features" --> "Turn windows features on or off".
2) From an administrative command prompt run the command "lxrun /install".
- This will download and configure an image of Ubtuntu Linux LTS.
- It will ask you to set a username and password - make a note!
3) Launch the bash shell from your start menu and install the toolchain.
- You'll need the password from earlier:
- sudo apt-get install git gcc-avr avr-libc make
4) Clone the repository:
- git clone https://github.com/tmk/tmk_keyboard.git
5) Modify the your keymap, etc. as per the usual process.
- Your Ubuntu home folder is here: "C:\Users\%username%\AppData\Local\lxss\home"
- I use Visual Studio Code to edit my keymaps, but Ultra Edit, Notepad++, etc. are all good choices.
6) To build the firmware for your respective keyboard, e.g. the GH60:
- cd /tmk_keyboard/keyboard/gh60
- make
Once that's done the only thing left to do is flash the firmware to the board.
Teensy Loader or Amtel Flip both work well under windows.
-
Thanks for posting this - plan on checking this out for my project.