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>
This commit is contained in:
schwar3kat
2026-01-03 16:59:53 +13:00
committed by GitHub
parent 504ccc45d2
commit b003d6c675

View File

@@ -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
}