dtb

在kernel build目录下的scripts/dtc/dtc,会生成用于build dts的tool dtc,可以通过下面的数据
将dtb 反汇编成dts
./scripts/dtc/dtc  -I dtb -O dts arch/arm64/boot/dts/soc/soc.dtb > ~a.dts

在kernel的proc 目录下会存在config.gz,可以同下面的命令将kernel config dump 出来.
zcat config.gz > /config

cat /config


这条命令可以查看hello 这个程序跑在哪个cpu上.

ps -o pid,psr,comm -xH |grep hello

### MfgTool DTB Usage and Configuration MfgTool, commonly used for programming and configuring embedded devices such as those based on NXP i.MX processors, supports Device Tree Binary (DTB) files during the boot process. A device tree binary file describes hardware components connected to a processor or SoC without requiring changes to the operating system source code. For mfgtool operations involving DTBs: A bootloader must place a device tree image (dtb) into system RAM at an address aligned to 64 bits and initialize this memory region with necessary boot parameters[^2]. This preparation ensures that when the kernel starts executing, it can locate the start marker `0xd00dfeed` within the provided dtb location to confirm presence of valid device tree information rather than expecting traditional tagged lists. Incorporating these principles into practical use cases through mfgtool involves specifying paths to appropriate .dtb files alongside other required binaries like u-boot images or Linux kernels via configuration scripts tailored specifically towards target platforms supported by mfgtool. To configure mfgTool correctly for using custom-built DTBs: Ensure the generated `.dtb` file matches exactly what was compiled from corresponding dts sources intended for your specific board setup. Place this file along with any additional resources needed during flashing processes inside designated directories referenced within project settings files utilized by mfgtool. Below demonstrates how one might structure commands related to loading both U-Boot SPL/UBOOT plus associated DTB while ensuring alignment requirements are met before handing control over to subsequent stages after power-on reset sequence completes successfully. ```bash # Example command line arguments passed to mfgtool mfgtool --fdt=my_custom_board.dtb \ --loadaddr=<physical_address_for_dtb> ``` This script snippet assumes existence of precompiled artifacts (`U_BOOT_SPL`, `uImage`) together with properly constructed device tree blob named `my_custom_board.dtb`. Adjust `<physical_address_for_dtb>` according to actual platform specifications regarding where in physical address space the dtb should reside upon being loaded into RAM prior to invocation of next stage loaders. --related questions-- 1. How does one compile DTS files into DTB format suitable for deployment? 2. What tools besides mfgtool offer similar functionality concerning firmware updates incorporating DTBs? 3. Can you provide examples demonstrating integration between Yocto Project builds and mfgtool workflows including handling of DTBs? 4. Are there best practices recommended when modifying existing device trees versus creating entirely new ones?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值