首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >fdt_addr和fdt_addr_r在uboot中的区别?

fdt_addr和fdt_addr_r在uboot中的区别?
EN

Stack Overflow用户
提问于 2021-12-22 08:53:49
回答 1查看 1.1K关注 0票数 2

几周来,我一直致力于在64位RPi4上实现u引导。我最后一个错误是,在boot.cmd ->中引导内核时,我使用的是变量fdt_addr_r,而不是fdt_addr

有人知道fdt_addrfdt_addr_r变量之间的区别吗?为什么在加载dtb时我们使用fdt_addr_r?为什么我们在引导内核时使用fdt_addr

谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-01-06 16:02:32

fdt_addr_r给出fdt在内存中的位置,图像将被加载到内存中,fdt_addr给出fdt在Flash中的地址。

代码语言:javascript
运行
复制
The following image location variables contain the location of images
used in booting. The "Image" column gives the role of the image and is
not an environment variable name. The other columns are environment
variable names. "File Name" gives the name of the file on a TFTP
server, "RAM Address" gives the location in RAM the image will be
loaded to, and "Flash Location" gives the image's address in NOR
flash or offset in NAND flash.

*Note* - these variables don't have to be defined for all boards, some
boards currently use other variables for these purposes, and some
boards use these variables for other purposes.

Image            File Name       RAM Address       Flash Location
-----            ---------       -----------       --------------
u-boot           u-boot          u-boot_addr_r     u-boot_addr
Linux kernel     bootfile        kernel_addr_r     kernel_addr
device tree blob fdtfile         fdt_addr_r        fdt_addr
ramdisk          ramdiskfile     ramdisk_addr_r    ramdisk_addr

来源:https://source.denx.de/u-boot/u-boot/-/blob/master/README#L3211

FDT是由RPi第一阶段引导加载器编写的。此FDT的地址存储在变量${fdt_addr}中。

来源:https://elinux.org/RPi_U-Boot#Booting_from_an_SD_card

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70446412

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档