Skip to content

AUDIO_KIT: Bluetooth Receiver's libraries frozen, a 152 KB filesystem - #695

Merged
bdbarnett merged 2 commits into
mainfrom
audio-kit-btreceiver
Nov 25, 2026
Merged

bdbarnett merged 2 commits into
mainfrom
audio-kit-btreceiver

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

The ESP32 Audio Kit's firmware now freezes the app libraries Bluetooth Receiver imports: appkit, touchkit, controlkit, deskkit and spectrum. It is the only build that freezes app libraries. As files, they and the app don't fit beside the firmware on the kit's 4 MB. The app itself and the board config still install with omip.

To make room:

  • LVGL's 24, 32 and 40 px Montserrat fonts are left out of this variant (mpconfigvariant.cmake).
  • modules/omnipython takes a leave_out option, and the kit leaves hmilink, medialink, mp4mux and usb_hid out of the omnipython package. bledev is frozen through the same path, because its require("omnipython") would otherwise freeze the whole package a second time.
  • The app slot shrinks to 0x3C4000 (the image is 0x3BF760), and the filesystem grows from 96 KB to 152 KB.

leave_out also freezes an _omip_left_out module naming what it left out. omip ≥ the next omnipython release reads it and doesn't copy those modules, or the rest of the package, onto the filesystem (PyDevices/omnipython#844). Until the library pin moves past that release, an omip install on the kit copies the omnipython package into /lib and runs out of room.

How each step came out:

Step Image Result
Libraries frozen, fonts in 4,125,424 bytes doesn't fit any slot that leaves a filesystem
Fonts out 3,980,496 bytes fits, but the 96 KB filesystem can't hold the app, config and settings
Four omnipython modules out, 152 KB filesystem 3,929,952 bytes fits, 18 KB to spare

The step-3 image was flashed to a kit (erase, then the whole image). It boots, joins Wi-Fi and starts WebREPL. Bluetooth Receiver isn't installed on it yet (see above).

Tests: test_build_mp (141 pass, with the AUDIO_KIT table updated) and test_freeze_list (a new case for leave_out and the marker, which fails without the change).

…esystem to 152 KB

The kit freezes appkit, touchkit, controlkit, deskkit and spectrum, leaves
hmilink, medialink, mp4mux and usb_hid out of the omnipython package and
LVGL's 24/32/40 px fonts out of the image. The app slot shrinks to 0x3C4000
(the image is 0x3BF760) and the filesystem grows from 96 KB to 152 KB, which
holds the board config, Bluetooth Receiver and its settings.

modules/omnipython takes a leave_out option for this.
…left out

omip then counts those modules as there and doesn't copy them, or the rest
of the package, onto the filesystem the variant made room in.
@bdbarnett
bdbarnett merged commit 0e14dc7 into main Nov 25, 2026
13 checks passed
@bdbarnett
bdbarnett deleted the audio-kit-btreceiver branch November 25, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant