Skip to content

Erovia/bashflash

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:
Bootloader Flasher
Caterina avrdude
Atmel DFU dfu-programmer
DFU dfu-util
WB32 DFU wb32-dfu-updater_cli
ISP/ASP avrdude
UF2 uf2conv.py (see below)
Massdrop mdloader
QMK HID avrdude
PJRC HalfKay avrdude

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.py and uf2families.json.

About

A small TUI script to flash firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages