Hi team,
I'm trying to boot a board which uses LPUART8 as console but LPUART1 default console in i.MX93 EVK kit. So I had done the changes in u-boot dts, linux-imx dts,imx93_evk.c and imx93_evk.h.
But unable to watch serial logs and same I checked using EVK kit J1001 header pin32&33 which are ALT modes of LPUART8. This configuration also doesn't work. Please let me know the changes need to be applied and also let me know the path.
Thanks
Robbi
Thanks @AldoG ,
For the response, i.MX93 EVK uses LPUART1 as default console port, but as my custom board is configured for LPUART8. I need to change my console from LPUART1 to LPUART8 and check in Header J1001. For that the modifications I had done:
u-boot-imx:
linux-imx:
Added lpuart8 node and disabled lpuart1 along with iomux.
imx-atf:
changed IMX_LPUART_BASE U(0x426a0000) from U(0x44380000) in /include/platform_def.h file.
meta-fresscale:
changed SERIAL_CONSOLES = "115200;ttyLP7" in /conf/machine/imx93-11x11-lpddr4x-evk.conf which includes header /conf/machine/include/imx93-evk.inc file.
optee-os:
changed set(CFG_UART_BASE UART1_BASE) to set(CFG_UART_BASE UART8_BASE).
For more info add zip folder which contains images of changes done. Please go through it and let me know update.
Thanks
Robbi
Thanks
Robbi
Hello,
All your changes are correct, you're missing some configuration for the clock to be enabled on the peripheral, since at boot time this is not being on by default.
at /arch/arm/mach-imx/imx9/native/clock.c
in mxc_get_clock(enum mxc_clock clk) function add:
return ccm_clk_root_get_rate(LPUART8_CLK_ROOT);
in void init_uart_clk(u32 index) function add:
case LPUART8_CLK_ROOT:
/* 24M */
ccm_lpcg_on(CCGR_URT8, false);
ccm_clk_root_cfg(LPUART8_CLK_ROOT, OSC_24M_CLK, 1);
ccm_lpcg_on(CCGR_URT8, true);
break;
Also at /board/freescale/imx93_evk/imx93_evk.c
in function int board_early_init_f(void) add:
init_uart_clk(LPUART8_CLK_ROOT);
This changes have been made and tested by a colleague and are working correctly on the EVK.
Best regards/Saludos,
Aldo.
Hello,
Glad that it is working now, regarding image compatibility I would say no, since even if the processor is practically a downgrade of the other it would require to create your own image for the i.MX91 but you may reuse almost all of your changes.
Best regards/Saludos,
Aldo.