Created
February 2, 2024 17:58
-
-
Save legath/8063986f2750ffbdfb595d0ac2bd28a2 to your computer and use it in GitHub Desktop.
wch openocd build from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git@github.com:benpye/openocd.git -b mrs-2023-08-07 | |
cd openocd | |
./bootstrap | |
./configure --disable-werror --disable-linuxgpiod --enable-wlinke --disable-ch347 | |
# --disable-linuxgpiod нужен только для arch based дистрибутивов, потому что версия библиотеки убежала в системе далеко вперед | |
make -j40 | |
после сборки редактируем /etc/udev/rules.d/50-wch.rules | |
SUBSYSTEM=="usb", ATTR{idVendor}="1a86", ATTR{idProduct}=="8010", GROUP="plugdev", MODE="0666", TAG+="uaccess" | |
SUBSYSTEM=="usb", ATTR{idVendor}="4348", ATTR{idProduct}=="55e0", GROUP="plugdev", MODE="0666", TAG+="uaccess" | |
SUBSYSTEM=="usb", ATTR{idVendor}="1a86", ATTR{idProduct}=="8012", GROUP="plugdev", MODE="0666", TAG+="uaccess" | |
без этого не будет работать доступ без рута (на манджаро точно) | |
wch-riscv.cfg берем из последнего релиза MRS_Toolchain_Linux_x64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment