-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No overlays are shown #344
Comments
Hey @MMinga !Looks like it's your first time interacting with Armbian here on GitHub. Welcome and thank you for taking the time to report an issue ❤️. Don't forget to star ⭐ the repo. |
On Orange Pi Zero V1 after update & upgrade when selecting Manage oerlays from armbian-config not see my selected modules in overlays= in armbianEnv.txt so I selected again but still added overlay_prefix to modules in overlays= and after reboot no modules loaded. When removing manually overlay prefix form names modules in overlaus= all works v25.2 rolling for Orange Pi Zero running Armbian Linux 6.6.72-current-sunxi cat /boot/armbianEnv.txt tree /boot/dtb/ 2 directories, 241 files |
armbian-config was that if there is overlay_prefix= in armbianEnv.txt then the list of device modules was shown only for those that have overlay_prefix and not as currently all modules are shown for different platforms e.g. for OZPI I see suni8i-h3- sun4i-a10 etc. which is less readable. If only those that have overlay_prefix in rambianEnv.txt were shown as it used to be it is more readable but this is just a small suggestion from the user's point of view |
Hm in result: tree /boot/dtb/ I see only ├── sun8i-h3-orangepi-2.dtb but not exit sun8i-h3-orangepi-zero.dtb ??? for Ornage Pi Zero v1 is used sun8i-h3-zeropi.dtb ??? |
It look OZPI v1 use sun8i-h3-orangepi-zero-plus2.dtb ? |
No on my system it does not work:
1 directory, 87 files |
@The-going Do you have any idea what we messed up here? |
Incorrect prefix. |
I assume this is user error? I just want to make sure our part (build framework) and armbian-config works well? |
But I have on my Orange Pi Zero V1 overlay_prefix=sun8i-h3 and when is added overlay prefix in overlays modules not loaded |
We do not list the overlay prefix in any download script. This is user error. |
uname -r |
uname -r |
I sent my all information yesterday: #344 (comment) |
I use image https://www.armbian.com/orange-pi-zero/ Minimal/IOT images with Armbian Linux v6.6 Build Date: Jan 23, 2025 which updated |
Valid:
Name DTBO: ${overlay_prefix}-${overlay_file}.dtbo |
Yes, when no exist overly prefix in overlays is all working but armbian-config when I manage Overlays added overlay prefix to overlays |
@igorpecovnik This looks like an error in the armbian config script. |
I and others wrote about this at: #360 |
Similar problem with latest armbian-config NG exist on Orange Pi Zero 3 with Bookworm Armbian Image which is updated and armbian-config add overlay prefix to overlays which causes modules not to load, I must have to manually remove overly prefix in amrbianEnv.txt |
Am I blind, but I don't see any problems here. Prefix is not touched - it has to set right at build time. https://github.com/armbian/configng/blob/main/tools/modules/system/manage_dtoverlays.sh#L48-L50 |
Okay, I'll take a look tonight. |
Corrected but also the overlays are not shown. `/boot/dtb/ 1 directory, 87 files ` |
Probably because you manually added es90x8q2m-dac which does not exists? |
Valid:
overlays=name1 name2 name3 name4 |
Hi, old armbin-config not NG when we go to select hardware show as all modules where names was without overlay_prefix and show only modules which has overlay prefix. When we select modules and SAVE in armbianEnv.txt overlyas= was with overlays prefix. The armbian-congig NG new when we select SYS210 "Manage device tree overlays" show all modules where names included overlay prefix so I suppose for this reason when we select modules and SAVE in armbiaEnv.txt in overlays= are saved modules with overlay prefix for example sun8i-h3-analog-code but shuld be with overlay prefix |
According code: https://github.com/armbian/configng/blob/main/tools/modules/system/manage_dtoverlays.sh#L48-L50
simple test if name is sun8i-h3-analog-codec result this code: echo sun8i-h3-analog-codec |sed 's/"//g' so this name is stored in armbianEnv.txt but I suppose should be analog-codec |
Look on old armbian-config: https://github.com/armbian/config/blob/473f9990fe722bc7fa2c77795f50dea3118708ff/debian-config-jobs#L1210 For me when i armbian-config NG should be prepared list of overlays similar and should be display only overlays which has overla_prefix in name overlay but I am not programs |
When I use code with old armbian-config to prepare list of overlay def_overlays=$(ls -1 ${OVERLAYDIR}/${overlay_prefix}.dtbo | sed 's/^.('${overlay_prefix}'.*)/\1/g' | sed 's/'${overlay_prefix}'-//g' | sed 's/.dtbo//g') result for overlay_prefix=sun8i-h3 ls -1 /boot/dtb/overlay/sun8i-h3*.dtbo | sed 's/^.('sun8i-h3'.)/\1/g' | sed 's/'sun8i-h3'-//g' | sed 's/.dtbo//g' so we have overlays names without overlay prefix and displayed only for sun8i-h3 |
In new armbian-config list of overlays is created
so result this code is ls -1 /boot/dtb/overlay/*.dtbo | sed "s#^/boot/dtb/overlay/##" | sed 's/.dtbo//g' | grep -E "$BOOT_SOC|$BOARD" | tr '\n' ' ' long list all overlays which we see in menu overlays in armbian-config, I am not sure about grep -E "$BOOT_SOC|$BOARD" where is defined |
Thank you for help. I think this is it, but need more testing: #393 |
Ok no problem, it looks like new armbian-config not use overlay_prefix= from amrmbianEnv.txt which help to reduce displayed overlays to manage and strip this name in overlays. If you create new version armbin-config I will be check. Regards |
Ah I see variable $BOARD_SOC and $BOARD is coming from /etc/armbian-image-release but on Orange Pi Zero BOARD_SOC is empty and BOARD is orangepizro but it is not match in names in overlays so old method which used overlay_prefox form amrmbianEnv.txt works quite good according to doc ArmBian: https://docs.armbian.com/User-Guide_Armbian_overlays/ if [[ -n "${BOOT_SOC}" ]]; then |
This should be fixed now, closing. Reopen in case of troubles. |
What happened?
There is now possibilty to change settings when nothing is shown.
How to reproduce?
no description needed it never has shown devices.
On which host OS are you running the build script and observing this problem?
Ubuntu 22.04 Jammy
Code of Conduct
The text was updated successfully, but these errors were encountered: