Changing The Boot console

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

Changing The Boot console

跳至解决方案
1,069 次查看
hrushinale
Contributor III

HI ,

                          I am  facing the problem related to serial console . The default console given for our board is at UART1 bu I change it to UART 2.For that I made the below changes in U-boot:

#define CONFIG_MXC_UART_BASE    UART2_BASE

#define CONFIG_CONSOLE_DEV        "ttymxc1"

also configured the UART in customboard.c file like

iomux_v3_cfg_t const uart2_pads[] = {

    MX6_PAD_SD3_DAT5__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),

    MX6_PAD_SD3_DAT4__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),

    MX6_PAD_SD3_CMD__UART2_RTS_B | MUX_PAD_CTRL(UART_PAD_CTRL),

    MX6_PAD_SD3_CLK__UART2_CTS_B | MUX_PAD_CTRL(UART_PAD_CTRL),

};

static void setup_iomux_uart(void)

{

    imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));

    imx_iomux_v3_setup_multiple_pads(uart2_pads, ARRAY_SIZE(uart2_pads));

}

int board_early_init_f(void)

{

    setup_iomux_uart();

}

After doing all these changes when we connect the board its showing garbage value.. But when kernel is loaded then its showing messages on UART2.Please Suggest the solution.

Regards,

hrushi

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
678 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Hrushi

one can debug it using attached Porting Guide

sect.1.4 Debugging, please check uboot/drivers/serial/serial_mxc.c

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
679 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Hrushi

one can debug it using attached Porting Guide

sect.1.4 Debugging, please check uboot/drivers/serial/serial_mxc.c

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------