Skip to content

arm: apple: boot any T8152 board from RAM, not only the J873g - #56

Draft
RyanTheTide wants to merge 1 commit into
aurora-wipfrom
sweep/apple-t8152-any-board
Draft

RyanTheTide wants to merge 1 commit into
aurora-wipfrom
sweep/apple-t8152-any-board

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

build_mem_map() picks the T8152 map only when the root is compatible with apple,t8152 and apple,j873g. The map holds the SoC's DockChannel aperture plus the RAM and framebuffer from the boot loader's FDT, and none of that depends on the board. On every other T8152 board, U-Boot panics with "Unsupported SoC" before the console comes up.

This picks the map from the SoC compatible alone, the same way as for every other SoC, and updates doc/board/apple/j873g.rst to match. Nothing else changes: the storage-free RAM boot and the ESP-probe skip were already keyed on apple,t8152.

Original target: 2d307fa by Acelogic.

Tests

  • apple_j873_defconfig, GCC 16.1 aarch64: builds with no warnings.
  • test/py/tests/test_apple_*.py with --noconftest: all pass.

Hardware rows owed (draft until done)

  • J873g: RAM boot to the U-Boot prompt over the DockChannel UART, expected unchanged.
  • One other T8152 board, e.g. a J804, with an FDT that follows j873g.rst: it should now reach the prompt instead of panicking.

The T8152 MMU map holds the SoC's DockChannel aperture and the RAM the
boot loader describes. Neither depends on the board, but the map was
picked only when the root was also compatible with apple,j873g. On any
other T8152 board U-Boot panicked with "Unsupported SoC". Select the map
from the SoC compatible alone, as for every other SoC.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 1.

The change is correct. The T8152 map (board.c:1001-1022) holds only the SoC's DockChannel aperture, plus RAM and framebuffer entries filled from the loader's FDT. Nothing in it depends on the board, and dropping apple,j873g from the selection (:1223) matches how every other SoC is picked. The only other T8152 code, the ESP-probe skip at :1391, was already keyed on the SoC. A J873g root is also apple,t8152, so the J873g path is unchanged.

  1. Commit d9ae796 has no Signed-off-by and carries Co-Authored-By: Claude Opus 5.5. It needs the author's Signed-off-by and no agent trailer.

#58 moves this selection into apple_soc_mem_map(), #54 renames the table to t8152_io_map, and #60 removes apple_j873_defconfig, which this PR's Testing and doc still name (j873g.rst:7). Whichever lands later needs a rebase, and the doc should then say apple_m1_defconfig.

HW row: J873g RAM boot of this head to the U-Boot prompt over DockChannel, unchanged. If an owner has a second T8152 board, the same boot there reaching the prompt instead of "Unsupported SoC". The second board is not needed to merge.

Assisted-by: LLM (Claude:Opus 5.5)

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.

1 participant