You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
874 B

# Update apt repo
apt update
# Install dependencies
apt install build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi git
# Clone git repo
git clone https://github.com/qmk/qmk_firmware
cd qmk_firmware
# Grab submodules
git submodule update --init --recursive
# Grab submodules (run this to update):
make git-submodule
# Build firmware
make xd87:default_tkl_ansi
# Install firmware
5 years ago
# Plug in keyboard, holding down spacebar and b to put in DFU mode
# Erase firmware
5 years ago
dfu-programmer atmega32u4 erase
# Install new firmware
dfu-programmer atmega32u4 flash ./xd87_default_tkl_ansi.hex
# Reset keyboard
dfu-programmer atmega32u4 reset
# If erasing/flashing is not working, then you need to erase the EEPROM
# Unplug, then plug in keyboard, holding down spacebar and backspace