Repository navigation
configs: apple_m1: boot without a serial console - #17
Merged
Merged
Conversation
Apple Macs have no debug UART that U-Boot can rely on. The serial ports in the tree m1n1 hands over are optional: the J616s device trees from linux integration/aurora disable both the s5l UART and the DockChannel UART. REQUIRE_SERIAL_CONSOLE (default y) then makes U-Boot panic with "No serial driver found" before it prints anything, so a Stage 2 built with such a tree stopped after m1n1's logo: no USB, no network, GRUB never ran, and the PMU panic counter read 1. Disable REQUIRE_SERIAL_CONSOLE, as its help text advises for boards with no debug serial port. U-Boot runs without a console when the tree has none and keeps using the UART when one is described. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Scope: this only changes what happens when the tree has no serial device. The Neo shares this U-Boot and its tree keeps its UART, so the Neo boots exactly as before. The gate is J616s ESP-chain boots: untethered through the installed Stage 1, then warm and cold reboots. |
Contributor
Author
|
Untethered J616s results with this U-Boot (Stage 2 b4e62e9e: m1n1 1bf9ec57, the integration/aurora J616s tree with both UARTs disabled, U-Boot 2a03f0c). The chain runs from the installed Stage 1 through the AURORA ESP Stage 2, U-Boot and GRUB to 7.3.0-aurora-j616s-aoplid2.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
U-Boot panicked with "No serial driver found" before printing anything when m1n1's tree described no usable UART. The J616s trees from linux integration/aurora disable both the s5l UART and the DockChannel UART, so a Stage 2 carrying them stopped right after m1n1's logo: no USB, no network, GRUB never ran, and the PMU panic counter read 1.
CONFIG_REQUIRE_SERIAL_CONSOLEdefaults to y. Its help text says to turn it off on boards with no debug serial port, which is every Mac. This disables it inapple_m1_defconfig. U-Boot then runs without a console when the tree has none, and still uses the UART when one is described.Testing on the J616s, the ESP chain driven by a RAM-vectored Stage 1 that loads a side-file Stage 2, with KIS captured:
Over the tether, U-Boot with the batch5 tree boots with both m1n1 32e60029 and 1bf9ec57. The hang only happened with no serial device in the tree.
Build:
apple_m1_defconfig,NR_DRAM_BANKS=16, aarch64-linux-gnu, no warnings. The untethered J616s boot with this U-Boot is next.🤖 Generated with Claude Code