Tool/software:
Our custom board will use UART6 as a serial console.
Since the board is not yet complete, we are experimenting with VAR-SOM-AM62.
We have modified the DTS of the linux-kernel as follows:
diff --git a/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts b/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts index 9ea7118de8c0..94e05c2933cd 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts @@ -47,8 +47,8 @@ backlight: backlight { }; chosen { - stdout-path = "serial0:115200n8"; - bootargs = "console=ttyS0,115200n8 earlycon=ns16550a,mmio32,0x02800000"; + stdout-path = "serial6:115200n8"; + bootargs = "console=ttyS6,115200n8 earlycon=ns16550a,mmio32,0x02860000"; }; clk_ov5640_fixed: clock {
we have created bbapend file at meta-variscite-bsp-ti/recipes-kernel/linux/linux-variscite_%.bbappend as follows:
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append = " \
file://am62-thermo-debug-port.patch \
"
python do_display_banner() {
bb.plain("***********************************************");
bb.plain("* *");
bb.plain("* Applying Change Serial Console patches *");
bb.plain("* *");
bb.plain("***********************************************");
}
addtask display_banner before do_patch
we can verify patches while building:
Also, verified dtb file included in wic image:
fdtdump k3-am625-var-som-symphony.dtb > test.txt
we also tried with some other changes:
References:
- https://variwiki.com/index.php?title=VAR-SOM-AM62_Yocto&release=am62-yocto-kirkstone-6.1.83_09.02.01.10-v1.1
- https://variwiki.com/index.php?title=AM62_UART&release=am62-yocto-kirkstone-6.1.83_09.02.01.10-v1.1
- https://variwiki.com/index.php?title=Yocto_Customizing_Linux_kernel_AM62&release=am62-yocto-kirkstone-6.1.83_09.02.01.10-v1.1