uBoot Hardware Awareness

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

uBoot Hardware Awareness

跳至解决方案
1,059 次查看
danielbujak
Contributor III

I'm trying to understand how uBoot knows where to find the necessary hardware and peripherals on the IMX6. For example, when I build the default image uBoot outputs over UART1, but is it possible to have default output on UART2, 3,.. etc. Is there something similar to the DTB that uBoot uses to know what hardware it has available?

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

Hi danielbujak

there is no dtb in uboot, typically some modifications can be set in

uboot/include/configs/board_name.h file. Other hardware changes are

manually entered in code, please also look at attached Porting Guide.

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
965 次查看
danielbujak
Contributor III

I found the changes required for the UART:

mx6ul_14x14_evk.h:

#define CONFIG_MXC_UART_BASE        UART2_BASE

and

mx6ul_14x14_evk.c:

static iomux_v3_cfg_t const uart2_pads[] = {
  MX6_PAD_NAND_DATA04__UART2_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
  MX6_PAD_NAND_DATA05__UART2_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
};

0 项奖励
回复
966 次查看
igorpadykov
NXP Employee
NXP Employee

Hi danielbujak

there is no dtb in uboot, typically some modifications can be set in

uboot/include/configs/board_name.h file. Other hardware changes are

manually entered in code, please also look at attached Porting Guide.

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

0 项奖励
回复