Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

45 Commits

Repository files navigation

logo bashflash

A small TUI script to flash firmware


Usage

[erovia@pc]$ bash <(curl -s https://raw.githubusercontent.com/Erovia/bashflash/main/bashflash)

demo

Features

  • Uses only Bash (v4+) and a few POSIX tools. (On macOS, please use the Bash from Homebrew.)
  • No external dependencies besides the low-level flasher tools.
  • No download/install necessary.
  • Flashing/Multiflashing (similar to Toolbox's Auto-flash)
  • Doctor menu for showing basic system info.
  • Supported bootloaders and flashers:
BootloaderFlasher
Caterinaavrdude
Atmel DFUdfu-programmer
DFUdfu-util
WB32 DFUwb32-dfu-updater_cli
ISP/ASPavrdude
UF2uf2conv.py (see below)
Massdropmdloader
QMK HIDavrdude
PJRC HalfKayavrdude

Flashing RP2040

Flashing RP2040-based devices (Raspberry Pi Pico, SparkFun Pro Micro RP2040, Adafruit KB2040, etc) requires the uf2conv.py script from Microsoft.
Bashflash looks at a number of directories for this script (such as local QMK installation directory, if it can find one) and tries to use that.
Otherwise, you can quickly download the script from its official repository:

curl -LO https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py
curl -LO https://github.com/microsoft/uf2/blob/master/utils/uf2families.json

Note: You need both uf2conv.pyanduf2families.json.

About

A small TUI script to flash firmware

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages