TOOL SD card experimental 1 star v0.1.0-preview.7

HS Boot

SD-card boot menu loader for the MPC Sample (loader only, no OS). Pick Stock or any installed system at power-on; Records, SD Card, Classic and Carousel themes, custom covers, and an Official D.S.B edition.

Screenshots (2)

Images: from Holla-Back-Entertainment/hs-boot-loader

About

HS Boot loader

A boot menu for the Akai MPC Sample. It lives on the SD card, sits on top of the stock firmware and lets you pick which OS runs. Nothing on internal storage changes. This repo is only the loader. It holds no OS.

Menu previews

Edition Records SD Card
Illustrated Records menu with illustrated D.S.B drum pads and waveform SD Card menu with illustrated D.S.B artwork
Official Records menu with official D.S.B wordmark SD Card menu with official D.S.B wordmark

These 320 × 240 stills were rendered by the loader with demo entries. The cover catalogue shows the available artwork and links to each creator’s downloads.

Set up your SD card

  1. Check the stock firmware version in your Sample’s settings. Pick one ZIP from GitHub Releases.
  2. Back up your card and use a spare exFAT card for your first test. Extract the ZIP to the card root, keeping the files and folders shown below in place.
  3. Eject the card on your computer, insert it into the Sample, and power on. On 1.4, enable Developer Mode in Settings → Dev Enhancements (Beta) and accept Akai’s prompt to run the autorun script. On 1.3.0.12, the firmware runs the loader from the autorun/ folder.
  4. Turn the encoder or tap a pad to choose an entry, then push the encoder to boot it. In Records or SD Card, hold SHIFT and turn the encoder to switch between those themes.
Stock firmware Files at the card root Where added OS entries go
1.3.0.12 autorun/ and its contents autorun/os/<entry>/
1.4.0.7 or 1.4.0.8 autorun.sh, boot/, os/, and the other extracted files os/<entry>/

The ZIP contains the loader and its artwork. To add an OS, get the release from its creator, check its stock-firmware requirements, and put a copy of its inner autorun folder in the OS directory above. Give that copy a unique name such as melodee, and keep the creator's files together. Preserve any separate content folders their install guide calls for. The community catalogue links to OS downloads and known firmware requirements. OS integration notes cover native entries and releases that need a different layout.

On both firmware layouts, the picker opens before HS Boot hashes the stock firmware or stages the return-to-menu helper. Selecting an entry triggers the firmware check and any checksums supplied for that entry. Community OS releases run their own install or startup scripts after selection.

Change an OS cover

Use a Records or SD Card ZIP. Both themes use the same artwork.

  1. Make a square PNG, ideally 128 × 128 px. Transparency is supported. Keep important details near the centre so they read clearly on the screen.
  2. Open the OS entry folder from the table above. Add your PNG as dsb-cover.png beside its launch files. For example, Melodee on 1.4 uses os/melodee/dsb-cover.png.
  3. If the entry already contains dsb-record.png, back it up and move it out of the entry first. A valid dsb-record.png takes priority. For a prepared record label, use a square PNG and keep its art inside the centre circle.
  4. Eject the card and reopen the boot menu. To restore the bundled artwork, remove your custom cover and put back any original art you moved.

To change an image supplied by HS Boot, replace the matching PNG in boot/art/ on 1.4 or autorun/boot/art/ on 1.3. The cover catalogue lists the filenames. For example, stock.png changes Stock and dsb.png changes the default D.S.B cover. An OS entry can still supply its own cover. Cover changes only require editing the PNG files. Keep the launcher files intact.

Official D.S.B edition

Look for records-official or sdcard-official in GitHub Releases. Choose 1.3 or 1.4 to match your stock firmware. These ZIPs use the official flat D.S.B wordmark as the default D.S.B cover and include the supplied neon red emblem as an alternate. They also include creator artwork for all 21 projects in the catalogue, using logos, boot screens, or creator-published screenshots. The standard Records and SD Card ZIPs use the illustrated covers. See the Official edition artwork credits.

To switch to neon, copy boot/art/official/dsb-neon.png to boot/art/dsb.png, replacing that file. Copy dsb-flat.png from the same official folder to switch back. On 1.3, these paths are inside autorun/. These files are covers for D.S.B entries you add to the loader.

Official edition artwork

Screens

Renders from this repo's own drawing code (sh tools/render_menu.sh, aarch64 Linux), shown at 2x. They use example entries. These renders are not captures from a unit.

Stock only Countdown to the last OS
Menu with only Stock listed Menu counting down to My OS
Picking an entry After two crashes
Menu with Second OS selected Menu defaulting to Stock after two crashes

Loading screen for My OS

Screen capture from a firmware 1.4 Sample, 26 Nov 2026, with a dummy test entry:

HS Boot menu captured on a firmware 1.4 Sample

Menu themes

Classic shows all OS names in a scrolling list. Carousel slides between entries and spins a vinyl record or SD card for the highlighted entry and displays its name and version below it. Both use the encoder and pads. The carousel draws its media shapes directly on the 320 × 240 panel, with no external images to copy. The standalone Records and SD Card builds include the graphical picker and five credited MPC hardware covers. SHIFT + encoder switches between these two themes on the device. The ZIPs contain the loader and artwork. Community OS cover catalogue

Vinyl record SD card
Carousel vinyl record Carousel SD card
Records with an MPC2500 cover SD Card with the same cover
Records theme SD Card theme

How it runs

  1. The stock app (ac50.service) starts. Root is read-only, so nothing can run earlier.
  2. The firmware runs the card's autorun.sh (on fw 1.4 this needs Developer Mode and the "run autorun script?" prompt). src/boot/autorun.sh.in is the template.
  3. autorun.sh checks only boot.sh and hsboot against pinned sha256 hashes, then starts boot.sh in its own session.
  4. The launcher stages the executable boot files in RAM. The session runs hsboot pick or hsrecords pick to draw the menu on the panel.
  5. On a pick, hsboot splash shows a Loading screen while boot.sh checks that entry's own pins, then runs its start script in the foreground.
  6. When the start script exits, the menu comes back.

If any step after the stock kill fails, stock is started again, so a bad check never leaves a dead screen.

Start script contract (what an OS must do to be an entry)

sh start.sh, in the foreground, for as long as the OS runs. Environment: HSBOOT_DIR (the card's autorun folder), HSBOOT_OS_DIR (the entry's folder), HSBOOT_STOCK (the stock app binary).

Exit code Meaning
100 "I started stock (ac50.service)". Boot is done.
101 Same, after a crash. The start stays counted as a crash.
102 The user left on purpose (SHIFT+STOP). Stock was NOT started; the menu returns and waits (no auto-start).

Two crashes in a row of the same entry make Stock the menu's default. examples/entry-os.sh is a worked example.

SHIFT+STOP back to the menu

An OS with no way out of its own gets hs-menukey.so first in LD_PRELOAD (src/boot/hs-menukey.c). It watches read() on the "Surface" rawmidi fd for SHIFT (49) and STOP (81) held 2 s, then spawns /tmp/hs-boot/back.sh, which stops the OS and re-runs boot.sh with HSBOOT_BACK=1 (menu shown, no auto-start). It only reads: the panel's bytes pass through untouched.

Files

  • src/boot/autorun.sh.in, autorun.json: card entry point (fill in @PINS@ and the firmware hash).
  • src/boot/boot.sh, back.sh: the session and the way back.
  • src/boot/hsboot.c, menu.c, menu.h, bootdraw.h: the menu, splash screens and entry parsing.
  • src/boot/hs-menukey.c: the SHIFT+STOP shim.
  • docs/IMPLEMENTING.md: how to add an OS entry and how to ship a loader-only card.
  • src/hw.h, src/font.h: panel (fb or DRM, plus rawmidi) access and the font.
  • src/display/: DRM display for firmware 1.4. src/os/: theme headers the screens draw with.
  • build.sh, tools/make_card.py: build, check and package the loader-only card.
  • tools/render_menu.c, render_menu.sh: draw the screens in docs/screens/.
  • src/boot/check_menu.c, check-hs-os.sh, tests/check-menukey.sh: checks.

Build

sh build.sh check                       # aarch64 Linux (or CC=<cross gcc>, without `check`)
python3 tools/make_card.py --layout 1.3 --theme records
python3 tools/make_card.py --layout 1.4
python3 tools/make_card.py --layout 1.4 --theme carousel
python3 tools/make_card.py --layout 1.4 --theme records
python3 tools/make_card.py --layout 1.4 --theme sdcard

See docs/IMPLEMENTING.md.

Status

  • Source is the boot code from the D.S.B Boot card (feat/dsb-boot, commit 3831616), which ran on firmware 1.3 hardware on 19 Nov 2026.
  • This standalone repo builds and passes its checks in a Debian bookworm aarch64 container.
  • First hardware run: 26 Nov 2026, MPC Sample, firmware 1.4, main at 2eab979, 1.4 card layout plus one dummy test entry.
    • Passed: Akai's autorun prompt, the menu on screen (DRM path, systemd-run start), a native entry that ran and exited 102 back to the menu, and Stock.
    • The 5 s countdown did not run on the first boot. The menu now ignores zero encoder steps and pad touches under velocity 12, and logs the message that stops the countdown. Retested the same day with that change: the countdown timed out and started the test entry. The original trigger was never logged, so the cause is likely, not proven.
    • Not tested: SHIFT+STOP, an unchanged OS release folder, the pin and crash fallbacks.
  • The 1.3.0.12 firmware runner, framebuffer, virtual panel, theme switch and automatic Stock recovery were exercised in Virtual MPC Sample. The standalone 1.3 packages are developer previews and still need a physical-device pass.
  • Classic and Carousel loaded on firmware 1.4.0.8 and returned to Stock automatically after two test-entry failures.
  • On firmware 1.4.0.8 the integrated D.S.B menu shared its SD card with a Mac, accepted a Mac eject, remounted the card and displayed the picker again. The test used scripted selection and confirmation.
  • The Records and SD Card ZIPs include the hsrecords graphical picker. Classic and Carousel use hsboot.
  • back.sh knows how to stop a few specific OSes (stock-app based, HS Tools, MPC Simple). An OS with other processes should exit 102 itself, or add its process to back.sh.
  • The menu and splash screens carry Henry Skillz branding (bootdraw.h, src/os/).

MIT licence for the code: see LICENSE and NOTICE.txt. The Henry Skillz, D.S.B and Drums Sample Bass names and artwork are reserved.

Recent releases

  • v0.1.0-preview.7 HS Boot Loader 0.1.0 Developer Preview 7 Nov 30, 2026
    Release on GitHub 
    Release notes

    Download availability (30 November 2026): ZIP downloads from this release are temporarily withheld pending distribution review. These notes are retained for reference.

    This developer preview opens the picker before hashing the stock firmware or staging the return-to-menu helper. Pick an OS to check the firmware and any checksums supplied for that entry, then start it. Community OS packages handle their own startup. The release includes the menu and artwork and starts with an empty OS folder for your own downloads.

    Choose the ZIP for your Sample:

    • 1.3.0.12 uses the autorun/ folder on the card.
    • 1.4.0.7 and 1.4.0.8 use the files at the card root and require Developer Mode and Akai’s autorun confirmation.

    Records and SD Card each come in Illustrated and Official editions. Both let you switch themes with SHIFT + encoder. Classic and Carousel are also available. See the setup and cover instructions and verify your ZIP against SHA256SUMS.txt.

    The automated boot checks confirmed that the picker runs before the stock hash, a mismatched OS pin is rejected, and Stock fallback works. Both package layouts passed validation. Physical-device timings from the integrated D.S.B card do not apply to this standalone release. This preview has not been retested on physical firmware 1.3 or 1.4 hardware.

  • v0.1.0-preview.6 HS Boot Loader 0.1.0 Developer Preview 6 Nov 30, 2026
    Release on GitHub 
    Release notes

    Records and SD Card load cover artwork as it comes into view and reuse decoded covers until the menu closes. The Records renderer uses squared distances for disk and label boundaries.

    On a physical MPC Sample, with 23 entries and the artwork read from RAM, median first-draw CPU time across five runs fell from 247 ms to 65 ms in Records and from 244 ms to 42 ms in SD Card. Only five covers decode before the first frame. Warm Records frames fell from 6.0 ms to 3.3 ms of CPU time per frame. These are picker timings and exclude firmware startup, SD I/O and display transfer.

    The repository page shows the current illustrated and Official menu previews. The release includes twelve ZIPs for firmware 1.3.0.12 and 1.4.0.7/1.4.0.8. See Preview 2 for the firmware and hardware test coverage.

  • v0.1.0-preview.5 HS Boot Loader 0.1.0 Developer Preview 5 Nov 30, 2026
    Release on GitHub 
    Release notes

    Official edition

    Choose a records-official or sdcard-official ZIP for your stock firmware. These editions include artwork from the creators of all 21 projects in the cover catalogue, with credits included. The official flat D.S.B wordmark is the default D.S.B cover, and the supplied neon red emblem is included as an alternate. The standard Records and SD Card ZIPs use the illustrated set.

    Use the setup guide for the 1.3.0.12 and 1.4.0.7/1.4.0.8 card layouts and Change an OS cover for PNG filenames and placement.

    The ZIPs contain the loader and artwork. Download OS software from its creator and check their firmware requirements. The 1.3 packages have emulator coverage. See Preview 2 for hardware test notes.

Something wrong or missing?

Suggest an edit on GitHub — accepted changes credit you as a contributor.