Does u-boot run in RAM or in the boot device ?

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

Does u-boot run in RAM or in the boot device ?

2,610件の閲覧回数
rans
Senior Contributor I

Hello,

I try to get better understanding of u-boot initialization.

From my reading, it seems that there are 2 methods of boot:

1. boot the u-boot.imx from the device boot

2. boot spl which initialize ddr, and then load u-boot from the boot device (into DDR?) ?

As to (1) option above, is it that u-boot runs in the boot device or in RAM ?

Another question:

what's the purpose of pmic and rtc initalization (with i2c) ?

Why can't kernel do that ?

Thank you,

Ran

0 件の賞賛
返信
3 返答(返信)

1,933件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Ran

you are right, there are two uboot versions: directly run uboot and two steps process,
first "spl" small loader then it initializes chip peripherals and run remaining uboot.

Purpose of uboot pmic and rtc initalization (with i2c) is to prepare necessary pmic
voltages for running linux. It is convenient to do this in uboot, not kernel, so any kernel image
could be portable and be able to run on different uboot versions/boards,

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

0 件の賞賛
返信

1,933件の閲覧回数
rans
Senior Contributor I

Hello Igor,

So, in imx6 there is no "early u-boot", but only one u-boot , Right ?

Does it run from RAM ? If so, who initialized RAM before u-boot was loaded to RAM ?

Thanks,

ranran

0 件の賞賛
返信

1,933件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Ran

early initialization is done in ROM using Device Configuration Data (DCD),

described in Boot Chapter of Reference Manual.

Best regards
igor

0 件の賞賛
返信