Changing The Boot console

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Changing The Boot console

ソリューションへジャンプ
2,070件の閲覧回数
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 解決策
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 返信
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!

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