kernel cmdline add location

1. Kernel's cmdline add location

BoardConfig.mk

For us, generally modify BoardConfig.mk
BoardConfig.mk

BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 loop.max_part=7 cgroup.memory=nokmem,nosocket reboot=panic_warm

build/core/Makefile

vim build/core/Makefile

INTERNAL_KERNEL_CMDLINE := $(strip $(BOARD_KERNEL_CMDLINE) buildvariant=$(TARGET_BUILD_VARIANT) $(VERITY_KEYID))
ifdef INTERNAL_KERNEL_CMDLINE
INTERNAL_BOOTIMAGE_ARGS += --cmdline "$(INTERNAL_KERNEL_CMDLINE)"

More references to reform:
https://blog.csdn.net/weixin_42135087/article/details/103365472

You can use Boot config

https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig?hl=zh-cn
https://android.googlesource.com/device/google/cuttlefish/+/70e6a3f2434529698dc831471a1a7b675cb87cc3

Guess you like

Origin blog.csdn.net/weixin_40557160/article/details/129798793