💡

QMK_Firmware環境構築 on WSL

2023/04/29に公開

meta

  • 作成日: 2023.04.29

QMK Firmware Install

https://docs.qmk.fm/#/newbs_getting_started

sudo apt update
sudo apt install -y git python3-pip
python3 -m pip install --user qmk

echo 'PATH="$HOME/.local/bin:$PATH"' >> $HOME/.bashrc && source $HOME/.bashrc
qmk setup

自分kbd用dir作成

KBDNAME="kmkb_jpm4_firmware"


mkdir ~/qmk_firmware/keyboards/kuzumotch
cd ~/qmk_firmware/keyboards/kuzumotch

git clone  git@github.com:kuzumotch/${KBDNAME}.git

ln -s ~/qmk_firmware/keyboards/kuzumotch/${KBDNAME} ~/kmkb_alias

小技

hex移動シェル作成

cd ~/

touch moveHex.sh
chmod +x moveHex.sh

echo "mv ~/qmk_firmware/*.hex /mnt/c/Users/scbp6/Desktop/kbdHexFile/" >> moveHex.sh

firmware作成コマンド

qmk compile -kb kuzumotch/kmkb_jpm4_firmware -km test

Discussion