Easily get various tools for flashing and developing the BL808 with Nix.
Enter a shell with all the tools in PATH:
nix develop github:zebreus/bl-toolsYou can also run individual commands like this:
# Run the BLDevCube tool
nix run github:zebreus/bl-tools#BLDevCube
# Run bouffalo-loader
nix run github:zebreus/bl-tools#bouffalo-loader
# Run the bouffalo-loader fork of orangecms. For flashing 2 firmwares at once.
nix run github:zebreus/bl-tools#bouffalo-loader-extended
# Run bflb-mcu-tool
nix run github:zebreus/bl-tools#bflb-mcu-tool
# Run bflb-iot-tool
nix run github:zebreus/bl-tools#bflb-iot-tool
# Run print_boot_header from bl808-utils
nix run github:zebreus/bl-tools#print_boot_header
# Run gen_boot_header from bl808-utils
nix run github:zebreus/bl-tools#gen_boot_header
# Run BLFlashCommand
nix run github:zebreus/bl-tools#BLFlashCommand
# Run bflb_fw_post_proc
nix run github:zebreus/bl-tools#bflb_fw_post_proc
# Run BLFlashCube
nix run github:zebreus/bl-tools#BLFlashCubeI wrote this flake to be able to work with the BL808 on Nixos, but it should also work on any other Linux system that supports Nix.
The packaging is, for the most part, really hacky because I just wanted to get them to work, and the flashing utilities are only available as precompiled binaries or Python packages that modify their own environment.