用于可视化 Linux 内核使用的设备树文件 (dtb) 的工具? [英] Tool to visualize the device tree file (dtb) used by the Linux kernel?

查看:35
本文介绍了用于可视化 Linux 内核使用的设备树文件 (dtb) 的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种工具,它可以以图形方式表示 linux 内核中使用的硬件设备树.我正在尝试了解特定 arm 芯片组的 linux 内核.这将是一个非常有用的工具.

I am looking for a tool which can graphically represent the hardware device tree used in linux kernel. I am trying to understand linux kernel for particular arm chipset. It would be a really useful tool to have.

推荐答案

您可以试试组件检查器工具.

它是 QorIQ 配置套件的一部分 这是 Eclipse 的插件.

It is part of QorIQ Configuration Suite which is a plugin for Eclipse.

下载在这里.(需要注册.免费下载.)

Download here. (Requires registration. Free to download.)

就我个人而言,因为我大部分时间都在 cmd 行上,并且非常沉迷于 vi,我发现只要 dts 正确缩进.

Personally as i am on the cmd-line most of the time, and quite addicted to vi, i find its built-in code folding capabilities are somewhat sufficient as long as the dts is properly indented.

设置热键命令以在 vi
中折叠/展开代码块通过在 .vimrc 中添加以下几行:

Setup hot-keys commands to fold/expand blocks of code in vi
by adding the following lines to .vimrc :

nnoremap <silent> <F5> zfa}<CR>
nnoremap <silent> <F6> zo<CR>

通过上述设置,要折叠块/节点,只需将光标移动到任何一行(标题除外)并点击 F5.要展开折叠的块/节点,请移至具有折叠标题的行并按 F6.

With the above setup, to fold a block/node, simply move the cursor onto any of its lines(except the title) and hit F5. To expand a folded block/node, move to the line with the folded title and hit F6.

这是 vi 中部分折叠的 dts 的样子.

Here is what a partially folded dts looks like in vi.

这篇关于用于可视化 Linux 内核使用的设备树文件 (dtb) 的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆