Skip to content

fix(o3p): update adsp firmware to the Portal battery profile - #976

Open
endikag wants to merge 1 commit into
armada-os:mainfrom
endikag:o3p-adsp-battery-profile
Open

endikag wants to merge 1 commit into
armada-os:mainfrom
endikag:o3p-adsp-battery-profile

Conversation

@endikag

@endikag endikag commented Nov 29, 2026

Copy link
Copy Markdown

The ADSP firmware added in cf984e4 carries the Odin 3 battery profile
(8055207_QUECTEL_LIVESTREAMING_8000MAH_..._SEP7TH2025). On the Portal this makes the
battery stop charging at 4.4 V, report ~92% real charge as 100%, and use 7.8 Ah as the
design capacity.

This replaces adsp.mbn and adsp_dtb.mbn with the firmware the stock Android build
(20261104) actually loads. AYN ships it in /vendor/firmware (split .mdt/.bNN), which
Android searches before /vendor/firmware_mnt/image. The copy in the modem partition is
still the old one. The files were squashed to single .mbn and all segment hashes
verified against the hash segment.

Tested on an Odin 3 Portal (Armada 20261109.dfed5d6), loading the new firmware at boot:

before after
model_name ..._8000MAH_..._SEP7TH2025 8569960_QUECTEL_SH89BD_X7G2_9130MAH_..._JUN29TH2026
charge_full_design 7838000 9281000
voltage_max 4400000 4500000
constant_charge_current 16000000 (max 16000000) 7200000 (max 13000000)

The values now match what stock Android reports. ADSP boots, audio sinks and battery
reporting work.

The new firmware also drops the 16 A charge current ceiling, which may fix #940.
Charging behaviour has not been tested yet.

Fixes #975

Investigation, firmware extraction and description co-edited with Claude (Anthropic).

@endikag
endikag force-pushed the o3p-adsp-battery-profile branch from e04d4d0 to 46eecce Compare December 1, 2026 07:09
@endikag

endikag commented Dec 1, 2026

Copy link
Copy Markdown
Author

CI failed because the SSC data for the board is tied to the ADSP firmware hash
(ERROR: .../ayn-odin-3-portal/SOURCE was captured with a different .../adsp.mbn).

I recaptured packages/armada-ssc/data/ayn-odin-3-portal.tar.gz with capture.sh on the
Portal while the ADSP was running the new firmware from /usr/lib/firmware (vendor build
20261105) and folded it into the same commit, rebased on current main.

Compared to the previous capture, only SOURCE and six sns_ccd_* registry UUIDs differ.
The island mode patch still applies. Gyro and accelerometer keep working with the new
firmware.

Charging: with a 9 V PD charger it charged 20% → 62% in an hour, peaking at ~21.5 W into
the battery. That charger never offers the 16-20 V PPS levels where #940 shows up, so I
could not confirm whether this also fixes #940.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant