From 542cb53e9d0e32328b644b2f9803a2b75e5c4671 Mon Sep 17 00:00:00 2001 From: Sameer Nanda Date: Wed, 22 Aug 2012 16:11:12 -0700 Subject: [PATCH] build_kernel_image: modify console, loglevel and quiet kernel options Three related changes to kernel command line: 1. quiet kernel command line option is redundant with loglevel option since quiet sets the loglevel to 4 but it is immediately overriden by the loglevel option. Remove quiet option. 2. with loglevel set to 0 in the kernel command line, pstore console doesn't work most of the time. This is because all printk's with level lower than that don't make it to the console drivers. Set loglevel to 7. 3. console=tty2 doesn't do what we want since the early boot and shutdown messages with appropriate message log level are still visible on screen. Set console to empty. BUG=chrome-os-partner:12780 TEST=1. boot system and ensure that no kernel log messages appear on screen. Then do a warm reboot and check that /dev/pstore/console-ramoops file contains kernel log messages from the previous boot. 2. run bootperf test and ensure there are no boot time regressions. Change-Id: Id1348c30d6aa3d818bae3259e748bf7100bf9c51 Reviewed-on: https://gerrit.chromium.org/gerrit/31180 Reviewed-by: Mandeep Singh Baines Reviewed-by: Olof Johansson Commit-Ready: Sameer Nanda Tested-by: Sameer Nanda --- build_kernel_image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build_kernel_image.sh b/build_kernel_image.sh index 11e59454ce..08d51b1f64 100755 --- a/build_kernel_image.sh +++ b/build_kernel_image.sh @@ -133,9 +133,8 @@ info "Emitted cross-platform boot params to ${FLAGS_working_dir}/boot.config" # Add common boot options first. cat < "${FLAGS_working_dir}/config.txt" -quiet -loglevel=0 -console=tty2 +loglevel=7 +console= init=/sbin/init cros_secure EOF