Hi NXP,
I'm struggling with the change of uart console port. I want to change from uart2 to uart4.
I saw that there are some questions about it and tried the answers proposed but none of them works.
https://community.nxp.com/t5/Blogs/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938#M40
I'm using the IMX8MP-LPDDR4-EVK board only with Yocto Linux. I have done the modifications with patch files (in attachments) following others answers. I'm using the 5.15.72-2.2.0 imx manifest.
I build only the imx-image-core. It works like a charm without modifications but as I said I want to switch uart (needed in our custom board) and that kind of work but the board does not boot.
Here is what I did:
- build a clean image using imx-docker with manifest 5.15.71-2.2.0
- then create my own /sources/meta-folder with my /recipes-bsp/imx-atf & /recipes-bsp/u-boot, recipes-kernel/linux-imx
- added all config files + bbappend + files/modifs.patch
- then force compilation with bitbake imx-atf, bitbake u-boot, bitbake linux-imx
- then recreate a new *.wic.zst file with bitbake imx-image-core
everything goes well and the SDcard is flashed correctly. When I power on the board, the UART port as changed and I can see the image in attachment but the boot process stops here...
What am I missing ?
Thanks for your reply.
已解决! 转到解答。
Hi,
Found the issue. Need to modify meta-freescale/conf/machine/include/imx-base.inc :
SOC_ATF_BOOT_UART_BASE:mx8m-generic-bsp = "0x30a60000"
and imx8mp-evk.inc :
SERIAL_CONSOLES = "115200;ttymxc3"
Thanks,
J.
Hi,
Found the issue. Need to modify meta-freescale/conf/machine/include/imx-base.inc :
SOC_ATF_BOOT_UART_BASE:mx8m-generic-bsp = "0x30a60000"
and imx8mp-evk.inc :
SERIAL_CONSOLES = "115200;ttymxc3"
Thanks,
J.
Hello,
Most of your changes looks correct, in you Linux patch I see that you made changes to 3 device tree files so I would like to know exactly which dts are you using for your test?
is it audio board dts or jailhouse dual linux dts?
Best regards,
Aldo.
Hi Aldo,
Thanks for your reply,
I'm not using the audio, I basically changed most uart inside imx8mpxxx.dtb as nothing works...
Trying to just have a simple Yocto Linux booting with UART4.
Best Regards,
J.