Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:defining-firmware-partitions [2019/02/12 22:30] – jeff | 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 ===== | + | ====== Device Tree Usage in OpenWrt |
| Current development (2019) uses kernel based on Device Tree (DT) files (.dts, .dtsi, .dtb) rather than the older " | Current development (2019) uses kernel based on Device Tree (DT) files (.dts, .dtsi, .dtb) rather than the older " | ||
| Line 5: | Line 5: | ||
| This page tries to pull together some of the knowledge about DT usage and conventions used by the OpenWrt project. | This page tries to pull together some of the knowledge about DT usage and conventions used by the OpenWrt project. | ||
| - | ==== References ==== | + | ===== References |
| * https:// | * https:// | ||
| Line 17: | Line 17: | ||
| * https:// | * https:// | ||
| - | ==== General ==== | + | ===== General |
| - | Use tab indentation | + | Use c-style ''# |
| - | While upstream, architecture-specific .dtsi files //may// remain stable (such as '' | + | If possible, license the content |
| + | 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 '' | Partition nodes should be named '' | ||
| Line 33: | Line 36: | ||
| The MTD labels of " | The MTD labels of " | ||
| - | See below on supplying the proper " | + | See below on supplying the proper " |
| <WRAP center round info 80%> | <WRAP center round info 80%> | ||
| Line 46: | 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\\ | ||