You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing a device tree overlay to enable the micro-USB port on an NanoPi Neo as USB host,
I found a small issue with armbian-config:
If have 2 .dtb files on my system which contain my board name nanopi-neo in the filename:
Nano$ ls -1 /boot/dtb/*nanopi-neo*
/boot/dtb/sun8i-h3-nanopi-neo-air.dtb
/boot/dtb/sun8i-h3-nanopi-neo.dtb
The code in /usr/lib/armbian-config/jobs.sh, which searches for the proper .dtb file, finds the wrong - first - file.
Which is sun8i-h3-nanopi-neo-air.dtb in my case.
for dtb in ${dtb_path}/*.dtb
do
if [[ $dtb == *"${board_name}"* ]]; then
used_dtb=$dtb
break
fi
done
I modified the if [[ ]]; then line to find the correct file:
for dtb in ${dtb_path}/*.dtb
do
if [[ $dtb == *"${board_name}.dtb" ]]; then
used_dtb=$dtb
break
fi
done
I'm not sure if the mask *<board name>.dtb can be applied generally, but it fixes the error and works in my case.
While testing a device tree overlay to enable the micro-USB port on an
NanoPi Neoas USB host,I found a small issue with armbian-config:
If have 2
.dtbfiles on my system which contain my board namenanopi-neoin the filename:The code in
/usr/lib/armbian-config/jobs.sh, which searches for the proper.dtbfile, finds the wrong - first - file.Which is
sun8i-h3-nanopi-neo-air.dtbin my case.I modified the
if [[ ]]; thenline to find the correct file:I'm not sure if the mask
*<board name>.dtbcan be applied generally, but it fixes the error and works in my case.