Closed MitchGaines closed 2 years ago
I ended up applying the following patches to u-boot in order to disable serial output. These are adapted from another thread I found on a similar topic.
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index ff69607d3c..59666d673d 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -520,3 +520,10 @@ int ft_board_setup(void *blob, struct bd_info *bd)
return 0;
}
+
+int board_early_init_f(void)
+{
+ gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE);
+ return 0;
+}
+
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index 4c5c1ac31f..bb9009800d 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -176,5 +176,10 @@
ENV_MEM_LAYOUT_SETTINGS \
BOOTENV
+#define CONFIG_SILENT_U_BOOT_ONLY
+#define CONFIG_DISABLE_CONSOLE
+#define CONFIG_SILENT_CONSOLE
+#define CONFIG_SYS_DEVICE_NULLDEV
+#define CONFIG_BOARD_EARLY_INIT_F 1
#endif
This solves my problem in the immediate term. Unfortunately, I lose u-boot debug capability.
As stated in my update to the OP, I was able to move kernel output to another serial port.
Going to go ahead and close this as at this point, I'm not sure its a meta-raspberrypi issue. Should probably be something more easily configurable in u-boot.
Description Hi there, I have an RPi CM4 running dunfell. I am attempting to change the serial debug interface that the system writes to. The reason for this is because I have a device that must use the UART0 interface and the boot is being interrupted (at u-boot) by the device on this interface. I would like to move all console output to the UART3 interface. However, changing the
SERIAL_CONSOLES
variable in mymachine.conf
does not seem to do the trick.Steps to reproduce the issue:
SERIAL_CONSOLES
variable in the machine.conf toSERIAL_CONSOLES = "115200;ttyS3"
screen
or some other serial monitoring softwareDescribe the results you received: No output was sent to the UART3 interface. I hooked up to UART0 again and all console output was still sent there.
Describe the results you expected: I expected all u-boot and kernel output to be output on the UART3 interface.
Additional details (revisions used, host distro, etc.):
dunfell
Additional things I've tried
cmdline.txt
fromconsole=serial0,115200
toconsole=serial3,115200
I created the following patch, to no avail