uBoot Hardware Awareness

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

uBoot Hardware Awareness

ソリューションへジャンプ
1,146件の閲覧回数
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 解決策
1,052件の閲覧回数
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 返答(返信)
1,052件の閲覧回数
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 件の賞賛
返信
1,053件の閲覧回数
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 件の賞賛
返信