Skip to content

configs: apple: build every Apple machine from apple_m1_defconfig (-36) - #60

Draft
RyanTheTide wants to merge 1 commit into
aurora-wipfrom
deadweight/one-apple-defconfig
Draft

RyanTheTide wants to merge 1 commit into
aurora-wipfrom
deadweight/one-apple-defconfig

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

There are two Apple defconfigs. apple_m1_defconfig is what Fedora, ALARM, NixOS and the installer build for every Mac. apple_j873_defconfig (2d307fa, 067309c) is a second configuration for the first M6 (T8152) RAM boots, and only this repo's release job builds it. The T8152 support it needs is already runtime code in arch/arm/mach-apple/board.c that every apple_m1 build carries: the T8152 memory map, skipping the unported ANS/NVMe probe, and the DockChannel console (APPLE_DOCKCHANNEL_SERIAL=y in both). apple_m1_defconfig has every driver option the J873 config has. A per-machine configuration goes against building every supported Mac from one config.

Change

Remove apple_j873_defconfig, build and package apple_m1 only in CI and tools/aurora_release.py, and update j873g.rst, RELEASING.md and MAINTAINERS. Net: -36 lines.

What the J873 config set differently, and why no separate build is needed:

J873 setting apple_m1 why it can go
BOOTDELAY=-1, BOOTCOMMAND="echo J873g RAM boot ready" BOOTDELAY=0, bootflow scan -b NVMe isn't probed on T8152 (board.c), so the scan finds no ESP and U-Boot stops at the prompt. The loader can still force -1 with /config/bootdelay in the DT (common/autoboot.c reads it).
EFI_VARIABLE_NO_STORE=y file store on the ESP with no ESP on T8152 there is nothing to store to
SYS_BOOTM_LEN=0x40000000 0x800000 only bootm reads it; the J873g flow in j873g.rst is booti of an uncompressed Image
CMD_BOOTEFI_HELLO, CMD_EFIDEBUG not set debug commands
lacks NR_DRAM_BANKS=16, SYS_FDT_PAD, SPI/MTP keyboard, APPLE_J713_FDT, USB_XHCI_PCI, USB_KEYBOARD, BOOTSTAGE*, VIDEO_QUIET_BOOT set apple_m1 is the superset. The keyboard and J713 code acts only on matching compatibles.

Testing

  • apple_m1_defconfig with WERROR cross-builds cleanly on aurora-wip (u-boot-nodtb.bin 763216 bytes, 0 warnings). This branch doesn't change any C file.
  • The new apple.yml step and aurora_release.py parse; this PR's CI run packages apple_m1.

Still to run

A J873g row, needed before merge: RAM-load the apple_m1 u-boot-nodtb.bin with the aura FDT as j873g.rst describes. Expected: banner and prompt on DockChannel and on the USB-C framebuffer, no NVMe probe, the boot scan ends at the prompt, no EFI variable write errors, and booti into Linux with simplefb. We don't have a J873g in the lab, so this needs the J873g owner.

Evidence: who builds which config
consumer file config
alarm-aurora packages/uboot-aurora/PKGBUILD apple_m1_defconfig
fedora-aurora packages/uboot-aurora/uboot-aurora.spec (+ f45) apple_m1_defconfig
nixos-aurora sources.json + stage2/bootchain.py (/usr/share/uboot/apple_m1/u-boot-nodtb.bin) apple_m1
aurora-installer .github/workflows/uefi-only-build.yaml apple_m1_defconfig

apple_j873_defconfig appears in no repository except this one: in .github/workflows/apple.yml and tools/aurora_release.py. The release assets it fed were never published: the v0.1.0 release (2026-10-13) is still a draft, and no consumer downloads U-Boot release files.

Open PRs #56 and #53 also edit doc/board/apple/j873g.rst. The hunks here are small and rebase on either.

apple_j873_defconfig (2d307fa, 067309c) was a second
configuration for the first M6 (T8152) RAM boots. The T8152 support it
needs is runtime code in mach-apple/board.c that every apple_m1 build
already carries: the T8152 memory map, skipping the unported ANS/NVMe
probe, and the DockChannel console. apple_m1_defconfig is a superset of
its drivers, and the distributions and the installer only ever build
apple_m1; only this repo's release job built apple_j873.

What the J873 config set differently does not need a separate build:
- BOOTDELAY=-1 and an echo BOOTCOMMAND: with NVMe skipped on T8152 the
  boot scan finds no ESP and U-Boot stops at the prompt anyway, and the
  loader can still pass bootdelay=-1 in the DT.
- EFI_VARIABLE_NO_STORE: with no ESP there is nothing to store to.
- SYS_BOOTM_LEN=1 GiB: only bootm reads it; the documented J873g flow
  is booti of an uncompressed Image.
- CMD_BOOTEFI_HELLO and CMD_EFIDEBUG: debug commands.

Remove the configuration and build and package apple_m1 only.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Looks good; approve once the J873g row has run.

The apple_m1 config is a superset of the J873 one apart from the six symbols in the table. I diffed the two defconfigs, and the T8152 handling is runtime code: the map at board.c:1223, and asahi_esp_devpart() returning empty at :1392. The commit carries only a human Signed-off-by, and CI packages apple_m1.

  1. The table leaves out one change that matters on a J873g. apple_m1 sets USE_PREBOOT=y, and apple_typec_late_init() (board.c:1676) keeps preboot as usb start on any machine without a built-in keyboard, which includes the J873g. With BOOTDELAY=0, bootflow scan -b also hunts usb (boot_targets stays nvme usb on that path). The old config never touched USB unless someone typed it. Now every J873g boot starts USB on a SoC whose USB j873g.rst calls unqualified. That is harmless only if the handoff FDT leaves the USB nodes disabled, as the doc asks. Add a row to the table for it, and make the doc say that a FDT with USB enabled now gets USB started at boot.
  2. Nit: doc/board/apple/j873g.rst:8 is now 131 columns. Rewrap it like the rest of the file.

#56 and #53 also edit j873g.rst, and #56's Testing names apple_j873_defconfig. Whichever lands second needs a rebase.

HW row: J873g owner, RAM-loading the apple_m1 u-boot-nodtb.bin from this head with the aura FDT, as j873g.rst describes:

  • banner and prompt on DockChannel and the USB-C framebuffer;
  • printenv preboot bootdelay boot_targets captured;
  • no NVMe probe and no USB controller probed;
  • the boot scan ends at the prompt with no EFI variable errors;
  • booti into Linux with simplefb, as in the existing qualification run.

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