kpark3469@xxxxxxxxx writes:The earlycon and the earlyprintk are scattered and used in many architectures.
From: Sahara <keun-o.park@xxxxxxxxxxxxx>Hmm, the initial "earlycon" hack slipped in when I wasn't looking.
Although there are many obs_kernel_param and its names are
earlyprintk and also EARLY_PRINTK is also enabled, we could not
see the early_printk output properly until now. This patch
considers earlycon as well as earlyprintk.
I don't think we should extend it.
Why not make the thing(s) you want early_param()s?
Cheers,
Rusty.
--- a/init/main.c
+++ b/init/main.c
@@ -426,7 +426,8 @@ static int __init do_early_param(char *param, char *val, const char *unused)
for (p = __setup_start; p < __setup_end; p++) {
if ((p->early && parameq(param, p->str)) ||
(strcmp(param, "console") == 0 &&
- strcmp(p->str, "earlycon") == 0)
+ ((strcmp(p->str, "earlycon") == 0) ||
+ (strcmp(p->str, "earlyprintk") == 0)))
) {
if (p->setup_func(val) != 0)
pr_warn("Malformed early option '%s'\n", param);
--
1.7.9.5