i.MX8ULP change U-boot debug terminal to LPUART7

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8ULP change U-boot debug terminal to LPUART7

跳至解决方案
391 次查看
jc3
Contributor I

Hello,

I have a board that is very similar to the imx8ulp-evk, but I am having some trouble switching the debug terminal from LPUART5 to LPUART7. I've referenced this post https://community.nxp.com/t5/i-MX-Processors/iMX8ULP-change-u-boot-serial-console-from-UART5-to-UART... and made the following changes:

  • For imx-atf plat/imx/imx8ulp/include/platform_def.h added #define IMX_LPUART7_BASE U(0x29870000) and changed #define IMX_LPUART_BASE to be IMX_LPUART7_BASE.
  • In my local.conf added the line ATF_BOOT_UART_BASE = "0x29870000"
  • In meta-freescale/conf/machine/include/imx8ulp-evk.inc changed SERIAL_CONSOLES = "115200;ttyLP1" to be SERIAL_CONSOLES = "115200;ttyLP3"
  • For U-boot include/configs/imx8ulp_evk.h changed console=ttyLP1 to console=ttyLP3
  • For U-boot device tree imx8ulp-evk.dts:
    • Changed stdout-path to be &lpuart7
    • In bootargs changed console=ttyLP1 to console=ttyLP3
    • Enabled lpuart7
    • Created a pin group for lpuart7 that muxes PTE14 and PTE15 to LPUART7 TX and RX with configurations 0x3
    • Kept lpuart5 enabled but removed the pin group
  • In imx8ulp-evk-u-boot.dtsi, changed &pinctrl_lpuart5 and &lpuart5 to be &pinctrl_lpuart7 and &lpuart7
  • In the U-boot config, I've also set:
    • CONFIG_SPL_LOG=y
    • CONFIG_SPL_LOG_MAX_LEVEL=9
    • CONFIG_SPL_LOG_CONSOLE=y

However, I'm still not seeing anything on LPUART7. Any thoughts on what I am missing?

标签 (1)
0 项奖励
回复
1 解答
360 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The only change that I see that you are missing would be changing the definition on uboot here:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/include/asm/arch-imx8ulp/imx-regs.h#L...

Unless I miss it in your post, please try to change this as well.

Best regards/Saludos,
Aldo.

在原帖中查看解决方案

2 回复数
361 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The only change that I see that you are missing would be changing the definition on uboot here:
https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/include/asm/arch-imx8ulp/imx-regs.h#L...

Unless I miss it in your post, please try to change this as well.

Best regards/Saludos,
Aldo.

335 次查看
jc3
Contributor I

Thanks that fixed it!