U-Boot Environmental Variables

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

U-Boot Environmental Variables

1,595 次查看
ShaneKaiser
Contributor II

Hello Everyone,

I have a question regarding a U-Boot environment variable:

loadaddr=70800000

mmc read ${loadaddr} 0x800 0x1800; bootm

What exactly is the mmc command doing here? How does one come up with loadaddr=70800000?

From what I understand U-Boot will read data from the sd card at 2048*512=1MB (starting location of uImage on the sd card) and keep reading for 6144*512=3MB (the size of the kernel) and take this data and copy it to address 0x70800000 in memory? So U-Boot is installing the kernel at the memory address 0x70800000?

标签 (1)
0 项奖励
回复
3 回复数

1,475 次查看
Yuri
NXP Employee
NXP Employee

I am not sure if kernel decompressor  is position independent, it may be build to use absolute addresses (0x70800000).  

0 项奖励
回复

1,475 次查看
ShaneKaiser
Contributor II

Thanks for the response Yuri.

Why the memory address 0x70800000? I have noticed some people use other memory addresses. What is the thinking here?

0 项奖励
回复

1,475 次查看
Yuri
NXP Employee
NXP Employee

You are right.


0 项奖励
回复