tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: boothowto(9) options with Raspberry Pi
stephanwib%googlemail.com@localhost (Stephan) writes:
>Hello,
>I am re-asking this question here because I have not received a reply
>on port-arm@, surprisingly.
>I am doing some experimentation with the Raspberry Pi for which I have
>set up a serial connection to another computer. Now I=C2=B4d like to
>prevent certain drivers from being loaded at boot using the
>userconf(4) prompt. However, I wasn=C2=B4t able to find out how to pass the
>corresponding boothowto(9) parameter (-c) to the kernel (I tried
>several variants in cmdline.txt).
Nothing there....
This patch adds the missing boot options.
Index: sys/arch/arm/arm32/arm32_machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/arm32/arm32_machdep.c,v
retrieving revision 1.144
diff -p -u -r1.144 arm32_machdep.c
--- sys/arch/arm/arm32/arm32_machdep.c 28 Jul 2022 09:14:23 -0000 1.144
+++ sys/arch/arm/arm32/arm32_machdep.c 5 Oct 2022 12:25:52 -0000
@@ -575,6 +575,26 @@ parse_mi_bootargs(char *args)
|| get_bootconf_option(args, "-a", BOOTOPT_TYPE_BOOLEAN, &integer))
if (integer)
boothowto |= RB_ASKNAME;
+ if (get_bootconf_option(args, "userconf", BOOTOPT_TYPE_BOOLEAN, &integer)
+ || get_bootconf_option(args, "-c", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_USERCONF;
+ if (get_bootconf_option(args, "halt", BOOTOPT_TYPE_BOOLEAN, &integer)
+ || get_bootconf_option(args, "-b", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_HALT;
+ if (get_bootconf_option(args, "-1", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_MD1;
+ if (get_bootconf_option(args, "-2", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_MD2;
+ if (get_bootconf_option(args, "-3", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_MD3;
+ if (get_bootconf_option(args, "-4", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= RB_MD4;
/* if (get_bootconf_option(args, "nbuf", BOOTOPT_TYPE_INT, &integer))
bufpages = integer;*/
@@ -603,6 +623,10 @@ parse_mi_bootargs(char *args)
|| get_bootconf_option(args, "-x", BOOTOPT_TYPE_BOOLEAN, &integer))
if (integer)
boothowto |= AB_DEBUG;
+ if (get_bootconf_option(args, "silent", BOOTOPT_TYPE_BOOLEAN, &integer)
+ || get_bootconf_option(args, "-z", BOOTOPT_TYPE_BOOLEAN, &integer))
+ if (integer)
+ boothowto |= AB_SILENT;
}
#ifdef __HAVE_FAST_SOFTINTS
Home |
Main Index |
Thread Index |
Old Index