Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions config/boards/radxa-e54c.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -59,4 +59,19 @@ 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if systemd-network is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if systemd-network is used?

It's only NetworkManager that tries to initialize end1 by DHCP and causes boot issues.
The keyfile has no effect on systemd-network, but the images boot okay without network, and all interfaces can then be configured normally. This seems okay for minimal images where we can expect slightly more savvy Linux users anyway.

display_alert "$BOARD" "Creating Board Support Internal Switch Config" "info"
cat <<- EOF > "${destination}"/etc/NetworkManager/conf.d/99-unmanaged-devices.conf
[main]
plugins=ifconfig-rh,keyfile

[keyfile]
unmanaged-devices=interface-name:end1

EOF

if [[ $DESKTOP_ENVIRONMENT == gnome && $BRANCH == vendor ]]; then
sed -i "s/AutomaticLogin = \$RealUserName.*/AutomaticLogin = \$RealUserName\n\t\t\tWaylandEnable = false/" "${destination}"/usr/lib/armbian/armbian-firstlogin
fi
}