QEMU Device Tree 基礎規範

2021-10-23 17:36:36 字數 1723 閱讀 3985

通用屬性

裝置屬性

dtb

;

};/* pl011串列埠晶元資訊 */

pl011@9000000 ;

};

;

};

pl011@9000000 ;

};

1. root節點,邏輯圖中可以用 / 表示

2. root節點的屬性,鍵值對

3. root節點的子節點,邏輯圖中可以用/gpio-keys表示

4. gpio-keys節點的子節點,邏輯圖中可以用/gpio-keys/poweroff表示

5. root節點的子節點,邏輯圖中用/pl011@9000000表示

node-name:節點名

unit-address:節點裝置位址,可選,如果節點描述的裝置占用了父節點匯流排的位址空間,可以用這個位址表示空間的起始位址。unit-address的值必須和reg屬性的第乙個位址相同。

屬性名,可以是乙個單詞,可以用隔開的單詞組合。用於表示某個廠商定義的的屬性,比如linux,code;linux,initrd-start 等等。

屬性值,可以有不同型別的屬性值,可以是位址,字串,陣列,節點引用等。

}

;

}

header: 用於描述整個dtb二進位制檔案的布局,並存放其它元資料在dtb檔案中的偏移。

memory_reservation_block: 預留記憶體塊,當dtb被載入到記憶體時,這段區間對應記憶體被保留用作特殊目的,不可被訪問。

struct_block: 裝置樹結構塊,存放裝置樹的具體內容,結構塊由多個特殊token開頭的資料組成,是裝置樹存放資料主要區間。

struct fdt_header ;
1. magic: 魔數

2. totalsize: 總長度,1mb

3. off_dt_struct: 結構塊在dtb檔案的偏移,0x40

4. off_dt_strings: todo

5. off_mem_rsvmap: 記憶體預留塊在檔案的偏移,0x30

6. version: dtb版本號,17

7. last_comp_version: todo

8. boot_cpuid_phys: todo

9. size_dt_strings: todo

10. size_dt_struct;: 結構塊大小,0x1c54(7252bytes)

fdt_begin_node(0x00000001):裝置樹節點資訊開始標記。

fdt_end_node(0x00000002):裝置樹節點資訊結束標記。fdt_begin_nodefdt_end_node之間可以有多個屬性資訊。

fdt_prop(0x00000003):節點屬性開始標記。它位於fdt_begin_nodefdt_end_node之間。

fdt_nop(0x00000004):佔位標記。

fdt_end(0x00000009):structure block結束標記。

struct

Optimized Purchasing基礎知識

pr的三要素 物料 數量 採購日期 日期是會影響價錢的 blanket po fo框架訂單。a 成本中心,i 限制 專案的限制標籤 miro支票不管數量,從帳戶分配輸入金額。產生pr三種 me51n,me25,mrp 產生po四種 me21n,me25,me57,me59n evo 物料管理 採購 ...

Phabricator Arcanist基本用法

git clone git git clone git 獲取到arcanist的原始碼後,進行相關配置 開啟.bash profile open e bash profile在環境變數中新增 export path path somewhere arcanist bin 命令列中輸入arc命令檢視是...

HttpServletResponse基本功能

request是請求物件,而response是響應物件。response物件的功能分為以下四種 設定響應頭資訊 addheader refresh 5 url x 傳送狀態碼 senderror 404 設定響應正文 getwriter print fdsfdsa 重定向 sendredirect ...