Flattened Device Tree Blob

网络服务(1)——uboot设置tftp 配置tftp server 安装服务器、客户端和守护进程 sudo apt-get install tftp-hpa tftpd-hpa xinetd 服务器配置 首先,在根目录下建一个tftpboot,并把属性改成任意用户可读写: # cd / # sudo mkdir tftpboot # sudo chmod 777 tftpboot 然后,进入目录/etc/xinetd.d/,并在其中新建文件tftp,把指定的内容加入到tftp文件中: # cd /etc/xinetd.d/ # sudo vim 阅读详情
    Linux kernel expects certain information on the hardware that it runs on. For kernels compiled with ARCH=powerpc,the flattened device tree is the only supported way of booting ARCH=powerpc kernels on non Open Firmware machines,this information has the form of a device tree, which is based on the Open Firmware specification. Bootloaders like U-Boot that do not implement the Open Firmware API, are expected to pass to the kernel a binary form of the flattened device tree, commonly referred to as FDT blob or simply the blob.

   On systems with open firmware, the boot is separated into two phases.In the first phase, OF is still active.
The kernel is not based at physical address 0, and can do OF client calls. In the second phase,
the kernel is based at physical address 0 and OF's memory has been reclaimed by the kernel.
The flattened device tree is the main data structure that is passed from the first phase to the second.
One of the first things that the second phase does is to expand the flattened device tree into the
normal in-kernel device tree representation (a tree of struct device_node).
 

 http://ozlabs.org/pipermail/linuxppc-dev/2005-August/019362.html
-----------------------------------------------------------------------
At OLS I discussed the idea of merging the ppc32 and ppc64
architectures in the Linux kernel with various ppc32 and ppc64 kernel
hackers and users. There was broad agreement that this would be a
good thing to do, so we are going to go ahead and do it.

The plan is to create include/asm-powerpc and arch/powerpc directories
for the merged architecture and move stuff in there as it gets
merged. The existing ppc32 and ppc64 directories will stay around
until they are no longer useful. The intention is not to break
anything that currently works; however, we do not plan to move unused
and unmaintained platforms into the merged architecture.

The advantage of merging is that it will reduce the maintenance effort
and reduce the instances where a common bug gets fixed in one
architecture but not the other. It will also make it easier to
support 64-bit embedded systems as they become more common.

I don't see the merge as changing the actual code that gets executed
on any given platform very much, except in one respect: we are going
to standardize on a flattened device tree as the way that information
about the platform gets passed from the boot loader to the kernel.

Comments? Flames? :)

Paul.

-----------------------------------------------------------------------
>>>> I don't see the merge as changing the actual code that gets executed
>>>> on any given platform very much, except in one respect: we are going
>>>> to standardize on a flattened device tree as the way that
>>>> information
>>>> about the platform gets passed from the boot loader to the kernel.
>
> ^^^^^^^^^^^^^^^^^^^^^***********^^^^^^^^******^

Yes, and that is exactly what I do not want. We are not going
to require OF implementations that do not need yaboot or similar
to pass a flattened device tree to the kernel, eh? Also, there
is no reason why something like yaboot (with an OF still running
underneath) should have to care about anything device-tree related
at all; the OS can just as easily ask the OF itself.


Segher

-----------------------------------------------------------------------

Segher Boessenkool writes:

> Yes, and that is exactly what I do not want. We are not going
> to require OF implementations that do not need yaboot or similar
> to pass a flattened device tree to the kernel, eh? Also, there
> is no reason why something like yaboot (with an OF still running
> underneath) should have to care about anything device-tree related
> at all; the OS can just as easily ask the OF itself.

For now the kernel will cope with either having an OF client interface
entry point or a flattened device tree passed to it. In the future we
intend to move all the OF client calls into the zImage wrapper and
have the zImage wrapper pass the flattened device tree to the kernel
proper. That will be much cleaner because we will be able to get rid
of all of the dodgy RELOC stuff in prom_init.c.

It is already the case (and has always been the case) that you can't
boot a vmlinux image directly from OF - there is always either or both
of yaboot or a zImage wrapper in between anyway.



Paul.


-----------------------------------------------------------------------

http://ozlabs.org/pipermail/linuxppc-dev/2005-August/019408.html
Device Tree (二) - dtb格式 dtb的文件格式 阅读详情

相关推荐

Python抓取摄像头图像,进行AI识别(一)

本文介绍了如何用Python获取海康威视摄像头的图像并进行AI识别。主要内容包括:1)准备工作,包括摄像头IP设置和密码重置方法;2)使用Python的Requests库通过ISAPI接口获取实时图像;3)示例代码展示如何保存摄像头图像。整个过程为后续AI图像识别提供了基础,通过简单的Python代码即可实现专业监控设备的图像采集功能。

Hahafantuan的博客 1520

linux移植 id,linux-4.3 简易移植 (续)

,OK210 # nand infoDevice 0: nand0, sector size 512 KiBPage size 4096 bOOB size 224 bErase size 524288 bsubpagesize 1024 boptions 0x 11000bbt options 0x 0OK210 #现在修正好了。...

weixin_33740713的博客 1167

SAP接口错误查询日志

随着数字经济的迅速发展,企业数字化转型不在只追求“业财一体化”,而是在业务端也想要进行更为精细化的管理,所以很多企业在SAP ERP的基础上,集成更多垂直领域更精细的外围系统,比如销售CRM系统,采购SRM系统,生产MES系统等等,琳琅满目的产品,那对SAP实施来说,系统集成过程中,接口的一些报错查询能力必不可少,今天我们就介绍一下,SAP和CRM系统集成中接口常见的报错。

weixin_43657667的博客 2072

内核启动卡在 Starting kernel ...

  一、有时log是这样的 Card did not respond to voltage select! 9889800 bytes read in 237 ms (39.8 MiB/s) 70155 bytes read in 5 ms (13.4 MiB/s) ## Flattened Device Tree blob at 48000000 Booting using the fdt blob at 0x48000000 Using Device Tree in place at 0000

shenlong1356的博客 5426

数据库迁移策略实战:MySQL到PostgreSQL

数据库迁移是一项复杂且细致的任务,需要充分的准备工作、合适的迁移策略和严格的验证与优化步骤。通过选择合适的迁移工具、进行手动迁移和应用程序适配、以及迁移后的验证与优化,可以确保数据迁移的成功和业务的连续性。希望本文的分享能够为大家在MySQL到PostgreSQL的数据库迁移实战中提供一些有用的参考和启示。

shejizuopin的博客 1742

用Seurat和ComplexHeatmap绘制单细胞marker基因热图:从数据处理到可视化全流程

本文详细介绍了使用Seurat和ComplexHeatmap绘制单细胞marker基因热图的全流程,涵盖从数据处理、基因筛选、平均表达矩阵计算到高级可视化与注释添加。重点解析了如何利用ComplexHeatmap生成发表级热图,并整合热词信息,解决单细胞数据可视化中的常见问题,提升科研图表质量。

weixin_29048775的博客 540

使用设备树启动内核

1、使uboot支持设备树,配置CONFIG_OF_LIBFDT,编译。编译出错,问题:boot_relocate_fdt未定义 错误解决:配置CONFIG_SYS_BOOTMAPSZ,重新编译即可 -------------------------------------------------------------------------- 2、启动uboot,把生成的dtb下载到开发

Lidroid的博客 5914

服务器被攻击植入挖矿病毒,CPU占用高问题排查处理(.systemd-service.sh)

客户服务器遭攻击,部署的应用服务经常性被停止,服务器CPU占用居高不下,top查看如下: 可以看到第一个bash任务,占用cpu近400%,非正常的应用程序和脚本任务,多半是被植入了木马信息。 查看该进程的符号连接,发现已经是被删除的状态 /usr/bin/-bash (deleted),无法查看其启动程序的信息 查看定时任务:cat /etc/crontab,发现都是正常的应用程序定时脚本 又用 crontab -l 查看了一下,发现了异常定时任务如下,同top里的异常任务一致...

gottst0113的博客 2125

海思hi3520dv400 kernel分析(3)——设备树支持

概念: FDT:Flattened Device Tree (扁平设备树)是一种数据结构,用来描述设备的硬件配置信息,它源自开放固件使用的设备树格式。 DTS:Device tree source(设备树源)是一个文本文件,以人类可读的形式描述了计算机系统的硬件资源 DTB:Device tree blob 它是由DTS文本文件编译生成的二进制文件 设备树的引入是为了解决linux kern.........

Biao 4536

使用Mask2Former和X-Decoder训练自定义数据集及结果复现报告

本报告记录了使用MMDetection框架中的Mask2Former和X-Decoder模型在自定义数据集上的训练过程。报告包含环境配置、数据集准备、模型训练与优化(解决了Mask2Former的PQ值异常问题)、性能评估等关键环节。详细展示了从数据集转换(将客户提供的COCO格式数据适配MMDetection框架)、配置文件修改、到最终模型训练和评估的全流程。特别针对Mask2Former训练中的PQ值异常问题提供了解决方案,并对比了两种模型在自定义数据集上的表现。报告还包含完整的代码实现和技术细节。

huanghm88的专栏 1122

手把手教你学simulink实例--基于Simulink的航空航天器飞行轨迹规划与仿真详细介绍

航空航天器飞行轨迹规划是实现高效、安全和精确飞行的关键技术。通过Simulink进行航空航天器飞行轨迹规划与仿真,可以验证控制算法的有效性、优化飞行路径,并降低开发成本。以下是如何在MATLAB和Simulink中设计并仿真一个航空航天器飞行轨迹规划系统的详细步骤。通过上述步骤,我们成功设计并实现了基于Simulink的航空航天器飞行轨迹规划与仿真系统。该系统能够根据实时环境变化动态调整飞行轨迹,从而提高飞行效率、降低燃料消耗并提升安全性。

MHD0815的博客 395

内核3.x版本之后设备树(device tree)机制

1.    ARM Device Tree起源 Linus Torvalds在2011年3月17日的ARM Linux邮件列表宣称“this whole ARM thing is a f*cking pain in the ass”,引发ARM Linux社区的地震,随后ARM社区进行了一系列的重大修正。在过去的ARM Linux中,arch/arm/plat-xxx和arch/arm/mach

wdsfup的专栏 4275

如何在Dify中安装运行pandas、numpy库(离线、在线均支持,可提供远程指导)

pandas和numpy这两个库是数据科学和数据分析中经常使用的工具包,原生的Dify无法直接使用这两个库,需要手动安装后才可以使用。本文将介绍如何在Dify中安装pandas和numpy,并在代码执行节点中运行使用pandas和numpy。Dify的代码执行节点中的python逻辑,实际是运行在Dify沙盒中的,因此我们在沙盒中安装pandas和numpy就可以了。如果您有在Dify中添加pandas、numpy的应用需求,欢迎关注作者进行交流。

litlit023的专栏 5643

ARM Linux 3.x的设备树(Device Tree)

ARM Linux 3.x的设备树(Device Tree)

ivy_reny的专栏 981

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

Device Tree(二):基本概念

Device Tree(二):基本概念 http://www.wowotech.net/device_model/dt_basic_concept.html 一、前言 一些背景知识(例如:为何要引入Device Tree,这个机制是用来解决什么问题的)请参考引入Device Tree的原因,本文主要是介绍Device Tree的基础概念。 简单的说,如果要使用Dev...

zjy900507的博客 330

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

linux内核 tftp启动,请问为什么用uboot的 tftp命令下载kernel,启动后无打印信息?应该如何解决?...

本帖最后由 一只耳朵怪 于 2018-6-20 16:03 编辑kernel: linux-3.14.43platform:AM437X问题:用uboot的 tftp命令下载kernel,启动后无打印信息tftp操作步骤:step1: tftp 0x82000000 uImagestep2: tftp 0x83000000 am437x-gp-easyevm.dtbstep3: bootm 0x8...

weixin_31915631的博客 478

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

Linux 设备树(Device Tree)概览

本文是一份系统化的 Linux 设备树(Device Tree)学习与实践指南,覆盖从硬件描述思想、语法规范、内核解析机制到驱动开发实战的完整知识体系。

smallerxuan的博客 6962

linux内核设备树及编译

原文地址::https://blog.csdn.net/u014650722/article/details/79076352 相关文章 1、设备树文件结构与内核对设备树的解析过程 ----https://www.sohu.com/a/256552889_654301 2、linux kernel下指定要编译的设备树 设备树与内核一起编译----https://www.cnblogs.com...

xqhrs232的专栏 909

内核与根文件系统镜像制作

压缩 uboot支持启动压缩镜像,这样节省Flash空间。压缩方式有两种,在arm32上,编译内核自动生成zImage,但arm64没有,需要手动压缩。 gzip -9 Image 打包 uboot mkimage工具 itb its 制作fit image...

黑客三遍猪 3730

uboot中fdt命令的使用

转载:https://blog.csdn.net/voice_shen/article/details/7441894 依linux community的要求,从linux-3.5后,新提交的code必须对devicetree进行支持。下面介绍如何使u-boot支持devicetree,以及fdt命令的使用。 1.u-boot对fdt(flattened device tree...

weixin_30546933的博客 409

ARM Linux 3.x的设备树(Device Tree)【转】

转自:http://blog.csdn.net/21cnbao/article/details/8457546 版权声明:本文为博主原创文章,未经博主允许不得转载。   目录(?)[-] ARM Device Tree起源 Device Tree组成和结构 DTS device tree source DTC device tree compiler Devic...

weixin_34319640的博客 100

嵌入式Linux--U-Boot(三)Boot命令使用

目录 介绍 1 、bootz 命令 bootz启动Linux 1、tft启动 1、设置开发板网络设置 2、ping虚拟机(tft服务器) 3、tft下载zImage 4、tft下载设备树 2、emmc启动Linux 2 、bootm 命令 3 、boot 命令 介绍  uboot 的本质工作是引导 Linux,所以 uboot 肯定有相关的 boot(引导)命令来启动 Linux。 常用的跟 boot 有关的命令有: bootz bo.

1344

OpenBMC启动流程全解析:从芯片上电到服务就绪的底层原理与实践

嵌入式Linux系统启动是一个从底层硬件初始化到上层应用服务就绪的精密过程,其核心在于引导加载程序、内核与文件系统的协同。以U-Boot为代表的引导加载程序负责初始化硬件、加载内核与设备树,而设备树作为硬件描述文件,是连接固件与操作系统的关键桥梁。这种启动链设计对于系统可靠性、安全启动和快速恢复至关重要,尤其在服务器带外管理场景中,它确保了基板管理控制器(BMC)的稳定运行。OpenBMC作为开源BMC固件的典型代表,其启动过程完美诠释了这一技术栈,涉及SPL阶段的内存初始化、U-Boot的环境变量配置、内

weixin_30791095的博客 352
上一篇: PowerPC
下一篇: Power-on self-test
gr1x
博客等级 码龄22年 3粉丝 23原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值