Hi, I want to ask a dumb question. Please forgive my ignorance. How to change the command kernel command line parameter. BTW I am work on lineage-17.1 branch of your kernel repo.
I want to add the console=tty0 to kernel command line parameter. Till now, I've tried three way but none of them worked.
1. Modify the device/google/dragon/BoardConfig.mk.
BOARD_KERNEL_CMDLINE += console=tty0
2. Insert these line to kernel/google/tegra/arch/arm64/configs/lineageos_dragon_defconfig
CONFIG_CMDLINE="console=tty0"
CONFIG_CMDLINE_EXTEND=y
3. Modify the kernel/google/tegra/arch/arm64/boot/dts/tegra/tegra210-smaug.dtsi
C:
chosen {
#ifdef CONFIG_KASAN
bootargs = "cros_legacy console=ttyS0,115200n8 init=/init rw kgdboc=ttyS0 earlycon=uart8250,mmio32,0x70006000 ignore_loglevel=1 drm.atomic=1 firmware_class.path=/vendor/firmware kern_guid=%U no_console_suspend";
#else
bootargs = "cros_legacy console= init=/init rw ignore_loglevel=1 drm.atomic=1 firmware_class.path=/vendor/firmware kern_guid=%U no_console_suspend androidboot.selinux=permissive androidboot.hardware=dragon";
#endif
};
to
C:
chosen {
#ifdef CONFIG_KASAN
bootargs = "cros_legacy console=ttyS0,115200n8 init=/init rw kgdboc=ttyS0 earlycon=uart8250,mmio32,0x70006000 ignore_loglevel=1 drm.atomic=1 firmware_class.path=/vendor/firmware kern_guid=%U no_console_suspend";
#else
bootargs = "cros_legacy console=tty0 init=/init rw ignore_loglevel=1 drm.atomic=1 firmware_class.path=/vendor/firmware kern_guid=%U no_console_suspend androidboot.selinux=permissive androidboot.hardware=dragon";
#endif
};
But all I get is just this
[ 0.000000] Kernel command line: cros_secure
[email protected] cros_legacy
console= init=/init rw ignore_loglevel=1 drm.atomic=1 firmware_class.path=/vendor/firmware kern_guid=bc81152b-b527-4ab1-9cf1-c39104dffc12 no_console_suspend androidboot.selinux=permissive
As we can see, there is no value on console key. Am I do something wrong?