Author Topic: Compiling TMK/QMK firmware on Windows 10 without CYGWin or WinAVR  (Read 5141 times)

0 Members and 1 Guest are viewing this topic.

Offline MajorKoos

  • Thread Starter
  • Posts: 851
  • Location: Bay Area
  • 1 life please. Extra large.
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.


« Last Edit: Tue, 21 June 2016, 06:41:58 by MajorKoos »

Offline mrhead

  • Posts: 99
  • Location: Northern AZ
  • Thread \ (•◡•) / Stopper
Re: Compiling TMK/QMK firmware on Windows 10 without CYGWin or WinAVR
« Reply #1 on: Mon, 20 June 2016, 17:15:53 »
Thanks for posting this - plan on checking this out for my project.