You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Targeted HardwarephyBOARD-Zeta (i.MX7)
Targeted SoftwarePD18.1.1
Date

 


Summary


This is a summary of the how to.

Step-by-step guide


u-boot

To change the serial console for u-boot, you'll need to modify the CONFIG_CONS_INDEX and CONFIG_MXC_UART_BASE definitions in the u-boot source.

Change CONFIG_CONS_INDEX to indicate the index of the UART that is desired. In this case, we will change it from 5 to 1:

Configured for UART5
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
#undef CONFIG_CONS_INDEX
#define CONFIG_CONS_INDEX 5
#define CONFIG_BAUDRATE 115200
Configured for UART1
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
#undef CONFIG_CONS_INDEX
#define CONFIG_CONS_INDEX 1
#define CONFIG_BAUDRATE 115200


Change CONFIG_MXC_UART_BASE to indicate the UART base address of the UART that is desired. In this case, we will change it from 5 to 1:

Configured for UART5
#define CONFIG_MXC_UART_BASE        UART5_IPS_BASE_ADDR
Configured for UART1
#define CONFIG_MXC_UART_BASE        UART1_IPS_BASE_ADDR


Verify the desired UART pins are muxed correctly in u-boot:

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart1>;
	assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
	assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
	status = "okay";
};


Linux

Change the SERIAL_CONSOLE to indicate the desired 'ttymxc' device in the imx7d_phyboard_zeta_001 machine configuraiton. In this case, we will change it from a 4 to a 0:

Configured for UART5
SERIAL_CONSOLE = "115200 ttymxc4"


Configured for UART1
SERIAL_CONSOLE = "115200 ttymxc0"


You'll also want to verify the desired UART pins are muxed in your device tree:

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart1>;
	assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
	assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
	status = "okay";
};


There is no content with the specified labels

  • No labels