Hi @AndyCap
sorry but I’m late at work today.
These are the first things you need to check in order to have hmi-widgets distributed
The feature has two parts, and both have to be in your build. You can check each one.
1. mod-ui reads the drop-ins
Commit: Merge hardware descriptor drop-ins · sejerpz/mod-ui@f9d79bb · GitHub
mod-ui loads the descriptor MOD ships (/etc/mod-hardware-descriptor.json). Then it merges every *.json in /etc/mod-hardware-descriptor.d/ over it, in alphabetical order:
- top-level keys replace the ones in the descriptor;
actuatorsare merged byuri.
To check that your mod-ui has it:
git -C mod-ui merge-base --is-ancestor f9d79bbc HEAD && echo OK
grep -n HARDWARE_DESC_DIR mod-ui/mod/settings.py
The drop-in folder comes from MOD_HARDWARE_DESC_DIR. If that is not set, it is the descriptor file name with .d in place of .json. So if your unit sets MOD_HARDWARE_DESC_FILE to another path, the folder changes too.
2. create-image copies the files into the image
Commits:
- add dwarf hardware widgets descriptors · sejerpz/alabs-mod-custom-images@3c15bb6 · GitHub (the copy step in
create-image) - Update the hardware descriptors of the Dwarf and the Duo X · sejerpz/alabs-mod-custom-images@228b929 · GitHub (the Dwarf and Duo X JSON files)
create-image installs hardware-descriptor.d/<platform>/*.json (e.g. hardware-descriptor.d/moddwarf-new/) into /etc/mod-hardware-descriptor.d/ of the image, as root, mode 644. The folder must be named exactly after the platform you pass to the script (moddwarf-new, modduox-new). If the folder is missing, the step is skipped without an error. So also check for the line Copying hardware descriptor drop-ins in the build output.
To check the generated image (the outer tar holds the root filesystem image):
mkdir /tmp/img && tar xf images/moddwarf/<image>.tar -C /tmp/img
ls /tmp/img
# mount or extract the rootfs you find there, then:
ls -l <rootfs>/etc/mod-hardware-descriptor.d/
And on the device:
ls -l /etc/mod-hardware-descriptor.d/
systemctl cat mod-ui | grep -i HARDWARE_DESC
If the files are on the device but nothing changes, then mod-ui is missing the commit in point 1, or it is reading another folder. If they are not in the image, the build is missing the commits in point 2, or the platform folder name is wrong.
Both parts are in the stls19 tag of both repos, so building from that tag is the quickest way to rule out a missing commit.
Santa Claude ![]()
Ciao!