From b003d6c675fa55f649e23a4f4cac7d103b94280d Mon Sep 17 00:00:00 2001 From: schwar3kat <61094841+schwar3kat@users.noreply.github.com> Date: Sat, 3 Jan 2026 16:59:53 +1300 Subject: [PATCH] Modify radxa-e54c board config to fix leds, network and Gnome desktop init. (#9111) * Modify radxa-e54c board config to fix leds, network and Gnome Modify led setup section to use new led device names Add a keyfile /etc/NetworkManager/conf.d/99-unmanaged-devices.conf to set the internal ethernet, end1, used to connect to the internal switch chip to unmanaged. This interface doesn't accept dhcp IP addresses and Network Manager attempts to connect it via dhcp causing errors. A vendor kernel build with Gnome desktop attempts to use Wayland unsuccessfully causing the desktop to take over 10 minutes to initialise eventually using X11. Modify the board /usr/lib/armbian/armbian-firstlogin file to set WaylandEnable = false if the build is for a vendor kernel with a Gnome desktop. * Update config/boards/radxa-e54c.conf Tested the suggestion and it works. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Removing the RedHat-specific plugin --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- config/boards/radxa-e54c.conf | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/config/boards/radxa-e54c.conf b/config/boards/radxa-e54c.conf index de080679fe..e858c8d949 100644 --- a/config/boards/radxa-e54c.conf +++ b/config/boards/radxa-e54c.conf @@ -21,7 +21,7 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() { link=1 tx=0 rx=1 - device_name=lan1@end1 + device_name=lan1 [/sys/class/leds/lan2-led] trigger=netdev @@ -30,7 +30,7 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() { link=1 tx=0 rx=1 - device_name=lan2@end1 + device_name=lan2 [/sys/class/leds/lan3-led] trigger=netdev @@ -39,7 +39,7 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() { link=1 tx=0 rx=1 - device_name=lan3@end1 + device_name=lan3 [/sys/class/leds/wan-led] trigger=netdev @@ -48,7 +48,7 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() { link=1 tx=0 rx=1 - device_name=wan@end1 + device_name=wan [/sys/class/leds/mmc0::] trigger=mmc0 @@ -59,4 +59,18 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() { brightness=0 invert=0 EOF + + # Internal Ethernet interface can't get an IP address and shouldn't be managed by NetworkManager so make it unmanaged. + display_alert "$BOARD" "Creating Board Support Internal Switch Config" "info" + cat <<- EOF > "${destination}"/etc/NetworkManager/conf.d/99-unmanaged-devices.conf + [main] + + [keyfile] + unmanaged-devices=interface-name:end1 + + EOF + + if [[ $DESKTOP_ENVIRONMENT == gnome && $BRANCH == vendor ]]; then + sed -i -e "/AutomaticLogin = \$RealUserName/a\\" -e $'\\t\\t\\tWaylandEnable = false' "${destination}"/usr/lib/armbian/armbian-firstlogin + fi }