Draft
Fix NanoPC-T6 USB-C serial console: built-in driver + clock/power workarounds#3
Conversation
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix kernel console access on USB C port
Fix USB-C serial console: use ttyS2 with earlycon+keep_bootcon instead of broken FIQ debugger
Feb 11, 2026
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix USB-C serial console: use ttyS2 with earlycon+keep_bootcon instead of broken FIQ debugger
Fix USB-C serial console on NanoPC-T6: use ttyS2 with earlycon+keep_bootcon
Feb 11, 2026
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix USB-C serial console on NanoPC-T6: use ttyS2 with earlycon+keep_bootcon
Fix USB-C serial console on NanoPC-T6: prevent UART2 clock gating during boot
Feb 12, 2026
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix USB-C serial console on NanoPC-T6: prevent UART2 clock gating during boot
Fix NanoPC-T6 USB-C serial console: built-in driver + clock/power workarounds
Feb 13, 2026
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.
Earlycon output works on the USB-C debug port (UART2 @
0xfeb50000) but the kernel goes silent after ~1s. ThettyS2console never registers because the 8250 DesignWare driver isn't available early enough, and clock/power gating kills the UART hardware before the driver probes.Changes
Force serial driver stack built-in —
SERIAL_8250_DW,SERIAL_8250_CONSOLE,SERIAL_OF_PLATFORM,SERIAL_EARLYCONas=yviaextraStructuredConfig. The rockchip flake's kernel inherits NixOSlinux_latestdefaults which may have these as modules.Prevent UART2 clock/power gating —
clk_ignore_unusedandpd_ignore_unusedkernel params stop the clock framework from gatingSCLK_UART2/PCLK_UART2before the driver claims them.Bridge earlycon → ttyS2 handoff —
keep_bootconkeeps the boot console active alongside the real console so no output is lost during transition.Enable serial getty —
serial-getty@ttyS2for interactive login on the debug port.Remove FIQ debugger backport — the vendor FIQ debugger driver doesn't compile against mainline 6.18; use standard
ttyS2instead ofttyFIQ0.Restore DT patch to upstream-compatible state — removed FIQ debugger DT node and uart2 disable; uart2 stays enabled per upstream NanoPC-T6 DTS with
uart2m0_xferpinctrl.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.