We are about to manufacture a first spin of a custom imx6ul board, based on the EVK's design. Our design differs that we have our debug port on UART3 instead of UART1 on the EVK. We need to change this in u-boot and in the Linux kernel, to be able to see that our boards are alive. How do we go about doing this?
The following files (downloaded from NXP/Freescales git) are used:
uboot-imx-rel_imx_4.1.15_2.1.0_ga
rel_imx_4.1.15_2.0.0_ga
The other thing is that our hardware designer has used i.MX Pins Tool 2.0 to generate iomux config files that needs to be a part of the bulds. We would like to configure our kernel for further development, but initially set some GPIO's using u-boot. How can we do this?
Information found is for other boards and endless searching in the forums have not been succesful, please help.
Many thanks
Thank you for your response.
I have changed uboot/include/configs/mx6ul_14x14_evk.h to
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART3_BASE
and replaced every "ttymxc0" in the file.
I am building uboot-imx-rel_imx_4.1.15_2.1.0_ga from source with make distclean / make mx6ul-14x14-evk_defconfig
The output from UART1 stops, but i can't see any activity on UART3.
please check if uart3 clock is enabled in CCM_CCGR1 register.
Best regards
igor
Hi Per
please refer to attached Porting Guide Chapter 1 Porting U-Boot.
For different uart example one can look at uart4 i.MX6Q Sabre AI :
linux imx6qdl-sabreauto.dtsi and uboot/include/configs/mx6qsabreauto.h :
#define CONFIG_MXC_UART_BASE UART4_BASE
#define CONFIG_CONSOLE_DEV "ttymxc3"
GPIOs can be set in uboot/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you for your quick answer. However, i cannot make it work.
uboot/include/configs/mx6qsabreauto.h does have:
#define CONFIG_MXC_UART_BASE UART4_BASE
#define CONFIG_CONSOLE_DEV "ttymxc3"
uboot/include/configs/mx6ul_14x14_evk.h does have:
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART1_BASE
The inconsistency makes me confused. Should i put (in mx6_14x14_evk.h):
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART3_BASE
#define CONFIG_CONSOLE_DEV "ttymxc2"
for UART3 to be configured as debug port?
yes these changes are right for for uart3 to be configured as debug port.
Also please change kernel boot parameter: console=ttymxc2,115200
~igor
Is there any other configuration (in other files) that needs to be made in u-boot? How about the kernel?
Many thanks!