From 1e8364a5ba7d9a5f5ef40b862c342b18d6c1d310 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 18 Jan 2023 14:35:31 +0100 Subject: rpi4: fix serial console output --- package/bcm28xx-bootloader/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'package/bcm28xx-bootloader') diff --git a/package/bcm28xx-bootloader/Makefile b/package/bcm28xx-bootloader/Makefile index 2a2b83b4f..da3d8622f 100644 --- a/package/bcm28xx-bootloader/Makefile +++ b/package/bcm28xx-bootloader/Makefile @@ -38,6 +38,14 @@ INSTALL_STYLE:= manual do-install: $(INSTALL_DIR) $(IDIR_BCM28XX_BOOTLOADER)/boot $(CP) $(WRKBUILD)/boot/bootcode.bin $(IDIR_BCM28XX_BOOTLOADER)/boot/ +ifeq ($(ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY),y) + printf "console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" > \ + $(IDIR_BCM28XX_BOOTLOADER)/boot/cmdline.txt +endif +ifeq ($(ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY),y) + printf "console=tty0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" > \ + $(IDIR_BCM28XX_BOOTLOADER)/boot/cmdline.txt +endif printf "kernel=kernel\n" > $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt printf "dtparam=audio,i2s,spi,i2c\n" >> \ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt @@ -104,6 +112,10 @@ ifeq ($(ADK_TARGET_HARDWARE_RPI3_SERIAL),y) printf "enable_uart=1\n" >> \ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt endif +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI4),y) + printf "enable_uart=1\n" >> \ + $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt +endif ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3_64)$(ADK_TARGET_SYSTEM_RASPBERRY_PI4_64),y) printf "arm_control=0x200\n" >> \ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt -- cgit v1.2.3