Have you experienced problems with accessing network card on P550 when running firmware release 2024.11.00-HFP550? We observed such issues compared to version 2024.09.00-HFP550 , which works fine. Not sure if that is related to the way how we built 2024.11.00-HFP550 using Yocto, or is it specific to the board we have, or there is some software/configuration issue with 2024.11.00. Unfortunately, we did not have possibility to dig it further.
Hi @gdhh,
If you are using any external network card then could you provide more details about the network card you’re using?
If you have issue with inbuilt ethernet adaptor then can you please check the MAC of the ethernet adaptor using below command.
ip link show <interface>
Replace <interface>
with the adapter’s name (e.g., eth0
or enp0s3
). The MAC address is listed as link/ether
followed by the address.
If the MAC address appears as 0 or is blank, please let us know.
RahulMoorkoth. We are only using the internal (inbuilt) ethernet adaptor. The MAC address is valid, not blank or zero. checked via the MCU console, not with a linux command. We went to a functional (different) release so we could continue our work. If there is some test you would like us to run, let us know. If you would like us to do some testing on a failing release let us know. Thanks.
We may have a related issue.
On our Premier P550 board, with the most recent preinstalled Ubuntu 24, we are seeing duplicated and invalid MAC addresses “8c:00:00:00:00:00” on the built-in Ethernet interfaces end0 and end1. In comparison, the Apple USB Ethernet adapter enx804971111a8a has a valid MAC address.
$ 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: end0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 8c:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 8c:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
5: enx804971111a8a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 80:49:71:11:1a:8a brd ff:ff:ff:ff:ff:ff
Ubuntu 24 version
$ uname -a
Linux risc-machine-2 6.6.21-10-premier #7 SMP PREEMPT_DYNAMIC Fri Jan 24 22:28:13 UTC 2025 riscv64 riscv64 riscv64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
Is there some way to reset our end0 and end1 to use unique and valid MAC addresses?
Thanks,
Matthew
@mmunm AFAIK, the MAC addresses are set at u-boot phase. u-boot reads the AT24 EEPROM and get the MAC addresses at offset 0x72 and 0x78. These addresses then got assigned ethaddr
and eth1addr
. Later, before hand off to grub or linux kernel, these address will be embedded into the device-tree, as the local-mac-address
property of the 2 ethernet gmac. You may want to first check those variables during u-boot phase.
@mmunm Some boards have an incorrectly written MAC address in the EEPROM. We plan to release a software utility to write the correct MAC address. In the meantime, you can set a random MAC address using the microcontroller’s CLI, as described on page 16 of premier-p550-mcu-user-manual
@mmunm, you can use the instructions that @RahulMoorkoth as pointed to and program MAC-IDs that are printed on the stickers on the board. If this board was purchased recently then it might have an issue with the MAC-IDs programmed in it and we will formally provide instructions in a few days.
@Raza @RahulMoorkoth @ganboing : thank you all for your replies. I will hold on for the software utility to come out, and meanwhile use a PCIe network adapter.
I just fired up my p550 today and it appears to have the mac address problem (all three are ‘8c:00:00:00:00:00’). I don’t see anything about setting mac addresses in the linked mcu manual (on physical or logical page 16).
Using the mcu’s ‘setmac’ command (via serial terminal) did get MACs set (although the MCU’s mac address wasn’t set by using index 0, 1 or 2, for some reason, it remains at the bad one).
Other observations:
- The username/password in the getting started guide isn’t correct (it’s actually ubuntu/ubuntu)
- This ubuntu image also doesn’t DHCP by default, which is really unusual
@washley, it is strange that the MCU’s MAC address did not change, have you tried completely power-cycling the board after making the change?
The username/password in the “getting started guide” was for Yocto as Ubuntu for HiFive Premier P550 board had not come out at the time. We will update the getting started guide in this regard.
I am surprised that the board does not automatically get an IP address under Ubuntu. We have checked the board in a few different network environments and it was allocated an IP address. We will explore this further internally.
Hi @washley ,
We have not observed any DHCP malfunction issues on the Ubuntu system. It is recommended to first check if DHCP works properly in U-Boot, with the following steps:
-
Enter U-Boot Environment
After powering on the device for a few seconds, press any key to enter U-Boot. -
Verify MAC Addresses
Input printenv and check if the MAC addresses for ethaddr and eth1addr match those printed on the device’s hardware label. -
Test DHCP Client
Input dhcp and wait a few seconds. If successful, it will return:
-
Check Ubuntu System IP
If the IP is correctly assigned, input boot to enter the Ubuntu system and verify if the IP is obtained.
Thanks.
Thanks for the replies.
I am currently out of town, but next week I’ll try to get the p550 hooked back up and re-check everything. The MAC address update for the MCU might indeed be due to not doing a complete power cycle.
After fixing the mac addresses in the ec, the pre-installed ubuntu did use DHCP. This might have been a fluke, or might have been related to the all-zeros mac address.