Jump to content

[Armbian build PR] - nanopir5s: add friendly interface names and enable front LEDS


Recommended Posts

Posted

Description

Created udev config for renaming interfaces to WAN, LAN1, LAN2

Created device tree overlay rockchip-nanopi-r5s-leds for enabling front panel status LED's for NICs. enabled by default

How Has This Been Tested?

Built image. Leds work when cable plugged in. interface names are friendly

root@nanopi-r5s:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 12:ad:f7:2a:2f:a3 brd ff:ff:ff:ff:ff:ff
    altname end0
3: lan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether c2:3b:8d:34:73:49 brd ff:ff:ff:ff:ff:ff
    altname enp1s0
4: lan2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether a6:5c:a3:ad:4c:33 brd ff:ff:ff:ff:ff:ff
    altname enP1p1s0
``


# Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] Any dependent changes have been merged and published in downstream modules

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines