Skip to content

Commit 007b120

Browse files
author
Logan Blyth
committed
device tree blog
1 parent c0ba562 commit 007b120

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

_posts/2024-06-05-Device-Tree.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Getting dtbs_check Working"
3+
categories:
4+
- Blog
5+
tags:
6+
- Kernel Builds
7+
- Embedded
8+
- Device Tree
9+
- Cross Compile
10+
---
11+
# Just a Quick Note for Myself
12+
I have off and on been working on getting a device tree files submitted for a Solid Run board that I own. I would like to have an easier time running OpenWrt on the board. Uptreaming for the win.
13+
14+
I had a [well short attempt](https://lore.kernel.org/linux-devicetree/[email protected]/) to add the device tree file as it came from Solid Run. So after working out the small naming problems I decided I want to try to use the `dtbs_check` functionality in the kernel makefile. In case I don't get this merged upstream I want to document how to get this check running:
15+
16+
1. Get the kernel source tree
17+
2. `make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 KBUILD_OUTPUT=out/ defconfig`
18+
3. `make CHECK_DTBS=y marvell/cn9130-cf-pro.dtb`
19+
20+
21+
# Links for later
22+
* [Devicetree names](https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation)
23+
* [Linaro Blog](https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/)

0 commit comments

Comments
 (0)