Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inittab: fallback when multiple "console=" is detected #7

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

musashino205
Copy link
Contributor

This patch series is required for providing dmesg output support on "SERIAL" port (ttyATH1) in addition to "SERVICE" (ttyS0) on ELECOM WAB-I1750-PS.

example

bootargs: console=ttyATH1,115200n8 console=ttyS0,115200n8

  • current:

    • Linux (/dev/console): ttyS0
    • procd: ttyATH1
  • after changes:

    • Linux (/dev/console): ttyS0
    • procd: ttyS0 (from /dev/console)

Add offset support of key-value pairs to get_cmdline_val() for getting
multiple values of the same keys.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
Linux Kernel uses a console in the last "console=" parameter in bootargs
as /dev/console, so falllback to /dev/console or get_active_console()
when multiple "console=" parameter is found in bootargs, instead of
using the first console.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
@openwrt-bot openwrt-bot merged commit ca8c302 into openwrt:master Mar 25, 2024
1 check failed
@robimarko
Copy link

Thanks! Rebased on top of master and merged!

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.

3 participants