2017-10-05 105 views
0

我想編譯一個覆蓋層並將其用於研究目的,但我無法編譯覆蓋層。 比如我花了一個示例設備樹覆蓋從德里克·莫洛伊博客設備樹編譯器拋出錯誤dtc:無效選項 - '@'

git clone git://github.com/derekmolloy/boneDeviceTree.git 

,現在我有一個名稱的覆蓋目錄。在那裏有一個腳本構建是否有這個覆蓋的編譯命令。 這是命令內建立

#!/bin/bash 

echo "Compiling the overlay from .dts to .dtbo" 

dtc -O dtb -o DM-GPIO-Test-00A0.dtbo -b 0 [email protected] DM-GPIO-Test.dts 

DM-GPIO-Test.dts文件是源覆蓋文件和DM-GPIO試驗00A0.dtbo是輸出。

現在,如果我運行此腳本,我得到這個消息

./build 
Compiling the overlay from .dts to .dtbo 
dtc: invalid option -- '@' 
Usage: dtc [options] <input file> 

Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv] 
    -q, --quiet     
    Quiet: -q suppress warnings, -qq errors, -qqq all 
    -I, --in-format <arg>  
    Input formats are: 
     dts - device tree source text 
     dtb - device tree blob 
     fs - /proc/device-tree style directory 
    -o, --out <arg>    
    Output file 
    -O, --out-format <arg>  
    Output formats are: 
     dts - device tree source text 
     dtb - device tree blob 
     asm - assembler source 
    -V, --out-version <arg>  
    Blob version to produce, defaults to %d (for dtb and asm output) 
    -d, --out-dependency <arg> 
    Output dependency file 
    -R, --reserve <arg>   
    tMake space for <number> reserve map entries (for dtb and asm output) 
    -S, --space <arg>   
    Make the blob at least <bytes> long (extra space) 
    -p, --pad <arg>    
    Add padding to the blob of <bytes> long (extra space) 
    -b, --boot-cpu <arg>  
    Set the physical boot cpu 
    -f, --force     
    Try to produce output even if the input tree has errors 
    -i, --include <arg>   
    Add a path to search for include files 
    -s, --sort     
    Sort nodes and properties before outputting (useful for comparing trees) 
    -H, --phandle <arg>   
    Valid phandle formats are: 
     legacy - "linux,phandle" properties only 
     epapr - "phandle" properties only 
     both - Both "linux,phandle" and "phandle" properties 
    -W, --warning <arg>   
    Enable/disable warnings (prefix with "no-") 
    -E, --error <arg>   
    Enable/disable errors (prefix with "no-") 
    -h, --help     
    Print this help and exit 
    -v, --version    
    Print version and exit 

Error: unknown option 

我沒有發佈此command.My系統之前安裝設備樹編譯器的Ubuntu 14.04,64位。 這裏有什麼問題?

+1

直到dtc版本1.4.3才添加了疊加功能。 –

回答

0

在Ubuntu 14.04 做到這一點得到正確的DTC內核3.8,

wget https://raw.githubusercontent.com/RobertCNelson/boot-scripts/master/tools/dtc/dtc-3.8.x.sh 
chmod +x dtc-3.8.x.sh 
./dtc-3.8.x.sh 

現在編譯,這個錯誤應該消失。