Hi NXP Team,
I'm upgrading U-boot on LS10121A-TWR to lf_v2024.04 ( from https://github.com/nxp-qoriq/u-boot.git)
I'm facing an issue with Uboot console not working when LPUART1 is used . Uboot console is flooded with junk data. I'm using the same rcw_1000.bin which works with the old "U-Boot 2016.09." , on LPUART1
Ex:-
▒▒Tt▒n▒▒
#▒▒Xjx▒P
`▒P▒+c▒-▒▒h▒j▒▒絁▒Ѫ▒4tʡ▒tʡ▒t
However, if LPUART0 is set as stdout-path , then UBoot console output works perfectly.
Ex:-
U-Boot 2024.04 (Oct 03 2025 - 17:23:45 +1000)
CPU: Freescale LayerScape LS1020E, Version: 2.0, (0x87081020)
Clock Configuration:
CPU0(ARMV7):1000 MHz,
Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 60000000 00407900 e0025a00 21046000
00000020: 00000000 00000000 00000000 09230800
00000030: 00000100 5084d540 00000000 00000000
Model: LS1021A TWR Board
Board: LS1021ATWR
CPLD: Vfb.fb
PCBA: Vfb.0
VBank: 1
DRAM: 1 GiB
Attached the dts and rcw patches. The attached RCW patch works correctly with U-Boot 2016.09 version. The RCW patch is applied on top of the below commit
commit 43c79c98d706a13572864bb4554df78c4fc24fe7 (HEAD, tag: LSDK-17.09-update-103017)
rcw: ls1088aqds: Add RCW PBL_QSPI_1600_700_2100_0x15_0x0d.bin
Below are the steps used to construct a unified [ rcw + uboot ] image.
cp rcw_1000.bin u-boot-new.bin
truncate -s 1M u-boot-new.bin
cat u-boot.bin >> u-boot-new.bin
Can you please guide me how to get the LPUART1 working.
Thanks
Sai Chaithanya
已解决! 转到解答。
Hello,
You are correct,
Junk characters on the console typically indicate baud rate mismatches, which are often caused by incorrect clock sources or frequencies.
Since LPUART0 works fine, and both nodes are similar except for the clock source, this strongly points to a clocking issue for LPUART1.
Regards.
Hi Oswalag,
Thanks for the response.
There's no change w.r.t node name and address between 2016.09 and 2024.04. The difference is seen in the clock field only for both lpuart0 and lpuart1. However, lpuart0 works without any issues.
Do you suspect any issue w.r.t clock ?
Uboot-2024.04 -
lpuart1: serial@2960000 {
compatible = "fsl,ls1021a-lpuart";
reg = <0x2960000 0x1000>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clockgen 4 1>;
clock-names = "ipg";
status = "disabled";
};
U-boot-2016.09 -
lpuart1: serial@2960000 {
compatible = "fsl,ls1021a-lpuart";
reg = <0x2960000 0x1000>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&platform_clk 1>;
clock-names = "ipg";
status = "disabled";
};
Thanks
Sai Chaithanya
Hello,
You are correct,
Junk characters on the console typically indicate baud rate mismatches, which are often caused by incorrect clock sources or frequencies.
Since LPUART0 works fine, and both nodes are similar except for the clock source, this strongly points to a clocking issue for LPUART1.
Regards.