Updated Compile on Arch based distro (exclude Asahi) (markdown)

sommermorgentraum 2024-04-10 13:30:55 +08:00
parent 590b0835b1
commit 93b5c7dca4

@ -6,15 +6,13 @@ _This page not works on Asahi, please make sure you are on x86_64 platform_
sudo pacman -S git tar wget dfu-util cmake make python3 bzip2 lz4 curl hackrf python-distutils-extra python-setuptools python-pip python-yaml sudo pacman -S git tar wget dfu-util cmake make python3 bzip2 lz4 curl hackrf python-distutils-extra python-setuptools python-pip python-yaml
`` ``
_If you use nushell as your default shell, you need to install `libopencm3`package, otherwise it would call it fail. The best solution is dont use nushell_
Check the output and make sure the packages listed above were installed correctly. Check the output and make sure the packages listed above were installed correctly.
# 2. Install ARM `gcc-arm-none-eabi` package from `AUR` # 2. Install ARM `gcc-arm-none-eabi` package from `AUR`
_you can follow the instructions in [Debian based distro page in this wiki](https://github.com/portapack-mayhem/mayhem-firmware/wiki/Compile-firmware#using-arm-on-debian) as well. This doesnt work before and it turns out that its nushell caused the bug. If you dont use nushell, you are all good with that set up._ _you can follow the instructions in [Debian based distro page in this wiki](https://github.com/portapack-mayhem/mayhem-firmware/wiki/Compile-firmware#using-arm-on-debian) as well. This doesnt work before and it turns out that its nushell caused the bug. If you dont use nushell, you are all good with that set up._
_This will automatically add the path of arm toolchain to the ``PATH`` of your default shell (for example: ``bash``, ``zsh``, ``fish``, and ``nushell``)._ _This will automatically add the binaries of arm toolchain to the /usr/bin of your system. Note that you are adding an old toolchain into your system._
1. Go to [the page of `gcc-arm-none-eabi` package in AUR](https://aur.archlinux.org/packages/gcc-arm-none-eabi-bin). 1. Go to [the page of `gcc-arm-none-eabi` package in AUR](https://aur.archlinux.org/packages/gcc-arm-none-eabi-bin).
2. Click `View Changes` to check the commit history of this AUR package. 2. Click `View Changes` to check the commit history of this AUR package.