Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to know what labels are available to reference in user-provided overlays?

Featured Replies

I am trying to convert this dts file into a user-provided overlay. I have a work-in-progress, but I'm running into the issue that some labels seem not available to reference with the "&" operator.

 

Specifically - the uart2 label seems not possible to reference.  Maybe there are more compile errors in my code, but dtc only gives errors one by one...

 

I tried decompiling the current device tree using

dtc -I fs -O dts /sys/firmware/devicetree/base

There the uart2 label seems missing in that output. I tried whether creating an alias for the path found in the current device tree, but that also didn't help:

uart2 = "/soc/serial@1c28800";

 

The compile error I got is this:

nanopineo:overlay:% dtc -@ -q -I dts -O dtb -o test.dtbo ./overlay.dts
test.dtbo: ERROR (path_references): Reference to non-existent node or label "uart2"

ERROR: Input tree has errors, aborting (use -f to force output)

 

I am wondering these things:

- how to know what labels are available to reference?

- the source of the precompiled uart2 overlay seems to reference &uart2, why can't I reference it from a user-provided overlay?

- if the uart2 label is lost in compilation, how can I write a user-provided overlay for uart2?

 

Link to file I'm trying to convert to an overlay

Link to my work in progress

Device: NanoPi Neo

Distribution: Armbian Bionic

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.