Not able to bring up the Ethernet interface

Hi,

I have “VisionFive2 RISC-V Single Board Computer, StarFive JH7110 Processor”, with below software version

==============================================

user@starfive:~$ cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux bookworm/sid”
NAME=“Debian GNU/Linux”
VERSION_CODENAME=bookworm
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=" Debian -- User Support "
BUG_REPORT_URL=“https://bugs.debian.org/
BUILD_ID=40
user@starfive:~$
user@starfive:~$
user@starfive:~$ uname -a
Linux starfive 5.15.0-starfive #1 SMP Wed Aug 23 11:18:20 CST 2023 riscv64 GNU/Linux

================================================================

I am not able to bring up the Ethernet interface on it as ifconfig and other commands are not found.

Please let me know any input on this as I need to connect this board to router to get connected on to Internet via Ethernet.

Thank you !!!

That looks like an old enough image.

Taking inspiration from this post from 2023 for a static IPv4 address I would probably try something like this:

sudo nmcli device
sudo nmcli device show
sudo nmcli con add type ethernet con-name myrouter-static-eth ifname end0 ip4 192.168.0.100/24 gw4 192.168.0.1
sudo nmcli con mod myrouter-static-eth ipv4.dns "1.1.1.1,8.8.8.8,9.9.9.9,208.67.222.222"
sudo nmcli con up myrouter-static-eth
sudo nmcli device show

I think that the older images used end0 and end1 instead of eth0 and eth1 (you can probably confirm that with sudo nmcli device). The commands I gave above are more of a general gist of what you might need to do (for a static IP) than the exact details for your specific case. If you already know how to use ifconfig, you should be able to workout how to use the network manager command line interface.

1 Like

I guess from here that you are using StarFive Debian, probably a version from before 2024. Its latest version is Debian 202510, maybe you can try flashing the new version.

The new version is on the left side here. Debian 202510 requires using the new U-Boot SPL.

I thought about it again, Debian now doesn’t use ifconfig to set up the network by default; you should use tools like ip add or nmtui.

1 Like

Thank you very much for your valuable input.

1 Like

Thank you very much for your valuable input.

1 Like

root@starfive:~# nmcli device status
DEVICE TYPE STATE CONNECTION
end0 ethernet connected Wired connection 1
end1 ethernet unavailable –
sit0 iptunnel unmanaged –
lo loopback unmanaged –
root@starfive:~#

root@starfive:~# nmcli connection modify end0 ipv4.method auto

root@starfive:~# nmcli connection up end0

root@starfive:~# ping google.com
PING google.com(lcmaaa-av-in-x0e.1e100.net (2404:6800:4007:83d::200e)) 56 data bytes
64 bytes from lcmaaa-av-in-x0e.1e100.net (2404:6800:4007:83d::200e): icmp_seq=1 ttl=117 time=7.78 ms
64 bytes from lcmaaa-av-in-x0e.1e100.net (2404:6800:4007:83d::200e): icmp_seq=2 ttl=117 time=7.76 ms
64 bytes from lcmaaa-av-in-x0e.1e100.net (2404:6800:4007:83d::200e): icmp_seq=3 ttl=117 time=7.76 ms

2 Likes