linux簡寫
DT device tree
FDT flattened device tree
OF open firmware
DTS device tree source
DTSI device tree source include
DTB device tree blob
DTC device tree compiler
設備樹屬性獲取函數頭文件 include/linux/of.h
struct device_node {
.....
.....
}
獲取屬性參數的函數
struct property *of_find_property( .... )
linux的GPIO系統參考文檔 Documentation/devicetree/bindings/gpio/gpio.txt
參考內容
example
node{
enable-gpios=<&qe_pio_e 18 GPIO_ACTIVE_HIGH>
};
設備樹節點,可以互相包含,互相也可以引用----"&" 引用符號 表示引用
設備樹的節點 "xxx : xxx"表示這個節點可以引用
18 表示gpio 在bank中引用
GPIO_ACTIVE_HIGH表示高電平
pinctrl文檔
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
編譯
內核編譯(make)之後會生成兩個文件,一個Image,一個zImage,其中Image爲內 核映像文件,而zImage爲內核的一種映像壓縮文件,Image大約爲4M,而zImage不到2M。 那麼uImage又是什麼的?它是uboot專用的映像文件,它是在zImage之前加上一個長度爲64字節的“頭”,說明這個內核的版本、加載位置、生成時間、大小等信息