You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

内核编译完成后,设备树二进制文件的输出位置及是否在zImage中?

Hey there! Let's tackle your two kernel-related questions one by one:

1. Where are Device Tree Binaries (DTBs) located after kernel compilation?

Once your kernel build completes, the compiled DTB files live in the architecture-specific boot DTS directory within your kernel source tree.

  • For ARM systems: Look under arch/arm/boot/dts/
  • For ARM64 systems: Check arch/arm64/boot/dts/
  • For other architectures (like PowerPC), the path follows the same pattern: arch/[arch-name]/boot/dts/

Within that directory, you'll often find subdirectories grouped by SoC or board family (e.g., broadcom/ for Raspberry Pi boards, ti/ for Texas Instruments chips) where the actual .dtb files are stored.

2. Are compiled DTBs included in zImage?

Nope, by default the compiled DTBs are not embedded inside the zImage.

The zImage is strictly the compressed kernel executable. DTBs are standalone binary files that need to be loaded independently during the boot process—usually by a bootloader like U-Boot, or by the device's firmware.

That said, it's possible to create combined images (like a zImage-dtb file or a Flattened Image Tree/FIT image) that package the kernel and DTB together. But this is an optional step; you'd need to explicitly configure or build these combined images separately, as it's not the default kernel build behavior.


内容的提问来源于stack exchange,提问作者Dimitrius J

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 06:22:32