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

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

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

2,603 次查看
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,926 次查看
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,926 次查看
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,926 次查看
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 项奖励
回复