Jump to content

Device tree overlay related


lionz

Recommended Posts

I am digging in my orangipi board (OPi Zero H2+) again, and have come across some questions relating to device tree overlay.

 

Eventually, aim is to activate a hardware component of my board, and I think I have the right option found. Problems are currently with compiling and applying the overlay.

 

From the basics upwards:

 

1. Is there a way to know which overlay (of the many listed in /boot/dtb/*) is actually used during boot process? For example, I know I have a board with a H2+ soc, but my armbianEnv.txt says "overlay_prefix=sun8i-h3". In any case, even this prefix cannot be the full information, since in /boot/dtb/ there are overlays for 18 different sun8i-h3 boards. Clearly, uname only refers to the kernel, i.e. does not state the board.

 

2. My immediately latest challenge was then to compile an overlay fragment. I followed instructions from [1],

but (upon other errors) got a Syntax error from a "dtc -I dts -O dtb .." call. I used an overlay along the lines of [2]. Posting the code in follow up.

 

Thanks for help.

 

[1] https://docs.armbian.com/User-Guide_Allwinner_overlays/

 

[2] https://github.com/armbian/sunxi-DT-overlays/blob/master/examples

 

Link to comment
Share on other sites

There is easier approach. This below is common for all H2/H3 boards but not all boards have easy access to all functions.

 

armbian-config -> system -> hardware

 

There (armbian-config) is also full featured DTB editor in there for advanced hacking which automatically decompile / compile device tree blob.

 

hwconfig.png

Link to comment
Share on other sites

Hello Igor,

 

with the knowledge of the correct "base" overlay file, I ventured into directly editing this (dts) file and recompiling that worked (as has it worked already months ago).

 

This hurdle was thus in fact overcome (I guess the now built-in DT editor in armbian-config does this decompiling and compiling as well.). I leave the route using the user overlays for now.

 

The actual issue was to get the micro-USB port to work, and this - inspite of the above - is still not yet resolved. I'll post it in a separate topic.

 

 

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines