Skip to content

devices: the iPad mini 3 gets Wi-Fi and Bluetooth firmware, and its speakers work - #458

Merged
henrikklee merged 2 commits into
OrchardLinux:mainfrom
en3r0:devices/j85m-wifi-bluetooth
Dec 2, 2026
Merged

henrikklee merged 2 commits into
OrchardLinux:mainfrom
en3r0:devices/j85m-wifi-bluetooth

Conversation

@en3r0

@en3r0 en3r0 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What

The J85M's Wi-Fi and Bluetooth firmware, which docs/devices/j85m.md said iOS 12.5.8 doesn't ship. It does: usr/share/firmware/wifi/4324b5/villardA/B/C.trx plus villarda/b/c-{u-kk,m-mt}.txt are in the pinned restore image (orchard fw ls j85m --type peripheral --image OS /usr/share/firmware/wifi/4324b5).

  • devices/j85m/firmware.json: builds brcmfmac43241-j85m-usb.bin (trx-add-nvram@1, villardA.trx + villarda-u-kk.txt) and BCM.apple,j85m.hcd (bluetool-hcd@1; the output hash is the same as the J85's, so the J85M's BlueTool carries the same patch).
  • devices/j85m/device.toml: wifi, bluetooth_audio and audio_output become working; bluetooth_input stays untested.
  • docs/compatibility.md, docs/devices/j85m.md: regenerated.

Independent of #448 (different lines, no shared files besides the generated docs).

Testing (one iPad4,7, installed Omarchy A 0.4.6, 2026-12-02)

Seen on the device:

  • orchard fw build j85m --type peripheral reproduces both files from the pinned IPSW with the recipe's hashes.

  • Wi-Fi: with the firmware in /lib/firmware/brcm, brcmfmac started it (Firmware: BCM4324/1 wl0 ... version 6.46.79), wlan0 appeared, a scan listed many networks on 2.4 and 5 GHz, and NetworkManager joined a WPA2 network, got DHCP and pinged 1.1.1.1 through wlan0: 3 of 3, about 21 ms.

  • Bluetooth: with the patch installed, hci0 reported BCM4324B5 'brcm/BCM.apple,j85m.hcd' Patch, then build 1373 (SYRH USI). A pair, trust and connect to a set of earbuds worked, an A2DP sink appeared in WirePlumber, and a 3 s 440 Hz tone played with pw-play was heard by the owner.

  • Speakers: through PipeWire at 100% volume, a 600 Hz tone on the left channel only, then on the right only, came from the left then the right speaker (the owner covered one to tell them apart). Level not measured; the earlier "silent" result at 50% volume is unexplained.

Not tested, not claimed:

  • Variants B and C (A was chosen first and worked; which one a given unit needs is not known, and the Wi-Fi node exposes no hint).
  • The m-mt (Murata) NVRAM files, and the -MUR patch file the J85 also builds.
  • Bluetooth HID, long A2DP playback, WPA3 or enterprise networks, and Wi-Fi after suspend.
  • The firmware was copied to the device by hand and the radio bound by hand (hsic_bind=1, bind 1-1:1.0; BT by rebinding serial0-0); a cold boot with the firmware baked into the image was not run.

Update: accelerometer (M7)

accelerometer and gyroscope are now working. The M7 never booted because the D2089's 32 kHz clock output (register 0x400) was off ("PMU 32kclk is not working"). The fix is OrchardLinux/linux#108. Seen on the J85M: a kernel with #108 RAM-booted by the ibss route, with no module option, brought oscar-clk32 up, the M7 reported its firmware, and in_accel read about 1 g flat; on the installed system, the same register written by a debug module made the screen rotate to landscape. The published kernel does not have #108 yet.

After a cold boot of the installed Omarchy A with #108 (kernel updated in place), the M7 came up by itself and Wi-Fi joined on its own; hand-turning the iPad swung the gyro readings by about 1e7 against about 1e4 at rest and moved the compass heading through 223 degrees (units and calibration not checked). The earbuds had to be paired again after that boot (Bluetooth audio then worked).

Charging: charging is now working: on the laptop's 500 mA port with the screen off the battery read Charging at +27 mA; with the screen on it discharged at about 800 mA. A wall charger, charge to full and termination were not tried; charging_control stays untested.

Tests: bin/orchard python -m unittest discover -s tests: 506 tests, OK.

CHANGELOG: not changed in this PR.

🤖 Generated with Claude Code

en3r0 and others added 2 commits December 2, 2026 13:54
The J85M's restore image does ship its Wi-Fi files: villardA/B/C.trx and
the villarda/b/c NVRAM texts under usr/share/firmware/wifi/4324b5. The
recipe builds brcmfmac43241-j85m-usb.bin from villardA.trx with
villarda-u-kk.txt, and BCM.apple,j85m.hcd from BlueTool (same patch hash as
the J85). wifi and bluetooth_audio are working, as seen on one iPad4,7;
bluetooth_input stays untested.

Assisted-by: LLM
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: en3r0 <en3r0.x@gmail.com>
Both CS35L19 speakers of one iPad4,7 played a tone, the left channel only
and then the right only, in the right order (the owner covered one speaker
to tell them apart), through PipeWire at 100% volume on installed Omarchy A.

Assisted-by: LLM
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: en3r0 <en3r0.x@gmail.com>
@en3r0 en3r0 changed the title devices: the iPad mini 3 gets Wi-Fi and Bluetooth firmware from its IPSW devices: the iPad mini 3 gets Wi-Fi and Bluetooth firmware, and its speakers work Dec 2, 2026
@henrikklee
henrikklee merged commit 34b2015 into OrchardLinux:main Dec 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants