Reduce debug message on UART console 02/30702/6
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 22 Dec 2024 15:39:10 +0000 (00:39 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 10 Jan 2025 10:55:29 +0000 (10:55 +0000)
The VisionFive2 board enables debug option in bootargs.
As a result,  many systemd jounal log output to serial console.
It's too noisy for debugging.

This patch remove debug and unnessesally option from bootargs.

Bug-AGL: SPEC-5328

Change-Id: Iea51dda267f2b1000381e3cd04b62691b308b4db
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30702
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt [new file with mode: 0644]
meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive_%.bbappend [new file with mode: 0644]

diff --git a/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt b/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive/uEnv-visionfive2.txt
new file mode 100644 (file)
index 0000000..dac31bf
--- /dev/null
@@ -0,0 +1,22 @@
+# This is the sample jh7110_uEnv.txt file for starfive visionfive U-boot
+# The current convention (SUBJECT TO CHANGE) is that this file
+# will be loaded from the third partition on the
+# MMC card.
+#devnum=1
+partnum=3
+
+# The FIT file to boot from
+fitfile=fitImage
+
+# for debugging boot
+bootargs_ext=if test ${devnum} = 0; then setenv bootargs "console=ttyS0,115200 rootwait root=/dev/mmcblk0p4"; else setenv bootargs "console=ttyS0,115200 rootwait root=/dev/mmcblk1p4"; fi;
+
+# for addr info
+fileaddr=0xa0000000
+fdtaddr=0x46000000
+# boot Linux flat or compressed 'Image' stored at 'kernel_addr_r'
+kernel_addr_r=0x40200000
+
+bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
+
+boot2=run bootargs_ext; mmc dev ${devnum}; fatload mmc ${devnum}:${partnum} ${fileaddr} ${fitfile}; bootm ${fileaddr}
\ No newline at end of file
diff --git a/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive_%.bbappend b/meta-agl-bsp/riscv-layer/recipes-bsp/u-boot/u-boot-starfive_%.bbappend
new file mode 100644 (file)
index 0000000..8dead12
--- /dev/null
@@ -0,0 +1 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-starfive:"