Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Device Tree • Change when HAT overlay is applied

$
0
0
I have an off the shelf bit of kit based on the CM 3+ that uses the HAT overlay to set the MAC address for two LAN9512s. It does this by using a custom `device_tree` in config.txt that includes the two LAN9512's. This means that the HAT overlay can successfully be merged with this custom device_tree.

I'm hoping to change that slightly to use the original raspberry pi device tree from raspberrypi/firmware + a custom overlay to define the two LAN9512's but this means that when the HAT overlay is applied the LAN9512 targets don't exist year.

Is it possible to change when the bootloader applies the HAT overlay based on some custom `config.txt`?

Basically I want the overlay apply order to be:

Code:

device_treeoverlay_with_lan9512hat_overlay
whereas currently it's:

Code:

device_treehat_overlay # fails because the targets don't existoverlay_with_lan9512

Statistics: Posted by mnbbrown — Wed Feb 21, 2024 5:37 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles