设备树

dts:device tree source

dtc
dtc:device tree compiler

# dtc -help
Usage:
    dtc [options] <input file>

Options:
    -h
        This help text
    -q
        Quiet: -q suppress warnings, -qq errors, -qqq all
    -I <input format>
        Input formats are:
            dts - device tree source text
            dtb - device tree blob
            fs - /proc/device-tree style directory
    -o <output file>
    -O <output format>
        Output formats are:
            dts - device tree source text
            dtb - device tree blob
            asm - assembler source
    -V <output version>
        Blob version to produce, defaults to 17 (relevant for dtb
        and asm output only)
    -d <output dependency file>
    -R <number>
        Make space for <number> reserve map entries (relevant for 
        dtb and asm output only)
    -S <bytes>
        Make the blob at least <bytes> long (extra space)
    -p <bytes>
        Add padding to the blob of <bytes> long (extra space)
    -b <number>
        Set the physical boot cpu
    -f
        Force - try to produce output even if the input tree has errors
    -s
        Sort nodes and properties before outputting (only useful for
        comparing trees)
    -v
        Print DTC version and exit
    -H <phandle format>
        phandle formats are:
            legacy - "linux,phandle" properties only
            epapr - "phandle" properties only
            both - Both "linux,phandle" and "phandle" properties

举例
dtb:device tree blob

# dtc -I dts -O dtb -o dest.dtb src.dts

dtc将dts编译成二进制格式dtb
bootloader在引导kernel的过程中,会先读取该dtb到内存

dtb地址设置

# fdt addr xxx //内存地址
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值