Support for multiple (3) console= on kernel cmdline

Some targets, like Raspberry Pi, have both serial and HDMI console
enabled.  Depending on the order of arguments on the kernel cmdline
either one were selected the default 'stderr', which finit used.

This patch adds support for parsing the console= string(s) and
opening multiple outputs for system startup/progress.  In the
end, however, a getty still needs to be started on each of the
consoles to use.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-07 13:15:46 +01:00
1 parent 18359ef448
commit 3e8d63c29c
3 files changed
+67 -6

No files matched your search

+3
View File
@@ -89,6 +89,9 @@ static void parse_arg(char *arg, int *dbg)
if (string_compare(arg, "splash"))
splash = 1;
if (string_match(arg, "console="))
add_console(arg);
}
void conf_parse_cmdline(int argc, char *argv[])