summaryrefslogtreecommitdiff
path: root/hikey/BoardConfig.mk
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-03-28 22:44:07 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-03-29 08:33:38 +0800
commitdb3edcac02c10817ee97944118986b76630db34c (patch)
treec45078ce57747f035630cc40f5b1323282c8ef58 /hikey/BoardConfig.mk
parent5e2670e4bc20998d1e690a5cf1f99ba040907de1 (diff)
downloadhikey-db3edcac02c10817ee97944118986b76630db34c.tar.gz
hikey: turn on printk.devkmsg for 4.9 kernel
With 4.9 kernel, ratelimit is default for kernel messages, so we would not see message printed from userspace like following: init: starting service 'surfaceflinger'... The information like this is necessary for us to know the status of android boot during development, so turn on printk.devkmsg from the boot parameters. kernel documentation is here: https://android.googlesource.com/kernel/hikey-linaro/+/android-hikey-linaro-4.9/Documentation/kernel-parameters.txt#3273 Test: manually with hikey Change-Id: Ib0ec7a311129108a14478c707564309ae10b390d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'hikey/BoardConfig.mk')
-rw-r--r--hikey/BoardConfig.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/hikey/BoardConfig.mk b/hikey/BoardConfig.mk
index d10a51cd..f4529901 100644
--- a/hikey/BoardConfig.mk
+++ b/hikey/BoardConfig.mk
@@ -7,6 +7,10 @@ else
BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
endif
+## printk.devkmsg only has meaning for kernel 4.9 and later
+## it would be ignored by kernel 4.1 and kernel 4.4
+BOARD_KERNEL_CMDLINE += printk.devkmsg=on
+
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
ifeq ($(TARGET_USERDATAIMAGE_4GB), true)
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776