Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docs:guide-developer:defining-firmware-partitions [2018/11/27 09:40] – created bobafetthotmail | docs:guide-developer:defining-firmware-partitions [2020/04/20 16:25] (current) – you still need mtd splitting, just not the original one karlp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Device Tree Usage in OpenWrt (DTS) ====== | ||
| + | |||
| + | Current development (2019) uses kernel based on Device Tree (DT) files (.dts, .dtsi, .dtb) rather than the older " | ||
| + | |||
| + | This page tries to pull together some of the knowledge about DT usage and conventions used by the OpenWrt project. | ||
| + | |||
| + | ===== References ===== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * Linux binding defintions, in source or online at https:// | ||
| + | * OpenWrt wiki on Defining software partitions in all DTS targets | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ===== General ===== | ||
| + | |||
| + | Use c-style ''# | ||
| + | |||
| + | If possible, license the content as '' | ||
| + | |||
| + | Use tab indentation -- see also https:// | ||
| + | |||
| + | While upstream, architecture-specific .dtsi files //may// remain stable (such as '' | ||
| + | |||
| + | |||
| ===== Defining software partitions in all DTS targets ===== | ===== Defining software partitions in all DTS targets ===== | ||
| + | |||
| + | Partition nodes should be named '' | ||
| + | |||
| + | Boot loader binaries, firmware, and configuration partitions (such as " | ||
| + | |||
| + | The MTD labels of " | ||
| + | |||
| + | See below on supplying the proper " | ||
| <WRAP center round info 80%> | <WRAP center round info 80%> | ||
| Line 12: | Line 49: | ||
| I'd like all DTS supported devices to use that " | I'd like all DTS supported devices to use that " | ||
| + | |||
| + | //Wiki note: This objective may be a challenge for dual-firmware units as the partition to be split will be different depending on which was selected by the boot loader.// | ||
| 1) Default uimage\\ | 1) Default uimage\\ | ||