aboot: Add quiet to bootargs in case of FFBM
To speed up boot in case of FFBM mode disable kernel console info messages
Change-Id: I9dfffe9535222b63edffd83d66b6aec54c9460ed
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index f242b93..6959a16 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -90,6 +90,7 @@
static const char *emmc_cmdline = " androidboot.emmc=true";
static const char *usb_sn_cmdline = " androidboot.serialno=";
static const char *androidboot_mode = " androidboot.mode=";
+static const char *loglevel = " quiet";
static const char *battchg_pause = " androidboot.mode=charger";
static const char *auth_kernel = " androidboot.authorized_kernel=true";
@@ -215,6 +216,8 @@
if (boot_into_ffbm) {
cmdline_len += strlen(androidboot_mode);
cmdline_len += strlen(ffbm);
+ /* reduce kernel console messages to speed-up boot */
+ cmdline_len += strlen(loglevel);
} else if (target_pause_for_battery_charge()) {
pause_at_bootup = 1;
cmdline_len += strlen(battchg_pause);
@@ -298,6 +301,9 @@
src = ffbm;
if (have_cmdline) --dst;
while ((*dst++ = *src++));
+ src = loglevel;
+ if (have_cmdline) --dst;
+ while ((*dst++ = *src++));
} else if (pause_at_bootup) {
src = battchg_pause;
if (have_cmdline) --dst;