Краткий перевод https://github.com/furrtek/portapack-havoc/wiki/Building-from-source Подготовка Установите пакеты: sudo apt install python sudo apt install python2.7 sudo apt install dfu-util sudo apt install cmake sudo apt install git sudo apt install hackrf wget https://bootstrap.pypa.io/get-pip.py sudo python2.7 get-pip.py sudo pip install pyyaml sudo pip install image (for building world map with adsb_map.py later) Компилятора нет в дистрбутиве, его можно скачать с сайта: cd /opt sudo wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 sudo tar xjf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 Скачайте исходники прошивки: git clone https://github.com/furrtek/portapack-havoc.git cd portapack-havoc git submodule update --init --recursive В файле {porta-pack_source_folder}/firmware/toolchain-arm-cortex-m.cmake file после строчки if(CMAKE_VERSION VERSION_LESS 3.6) замените текст до endif() на: include(CMakeForceCompiler) CMAKE_FORCE_C_COMPILER(/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc GNU) CMAKE_FORCE_CXX_COMPILER(/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-g++ GNU) else() set(CMAKE_C_COMPILER /opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc) set(CMAKE_CXX_COMPILER /opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-g++) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) endif() перед началом компиляци выполните команду export PATH=$PATH:/opt/gcc-arm-none-eabi-9-2019-q4-major/bin или добавьте путь к компилятору в PATH В файле sudo nano /etc/environment к концу строки начинающейся с PATH=" добавьте :/opt/gcc-arm-none-eabi-9-2019-q4-major/bin" Компиляция: mkdir build cd build cmake .. make firmware После завершения в папке home/user/portapack-havoc/build/firmware появится файл portapack-h1-havoc.bin чтобы прошить, подключте portapack с hackrf по usb, переведите в режим hackrf, выполните команды cd /firmware hackrf_spiflash -w portapack-h1-havoc.bin после прошивк перезагрузите portapack.