Fix ethernet interface following ASRock B450M-HDV’s UEFI update on Linux

I own an ASRock B450M-HDV for my home server, it was cheap. It’s currently paired with a Ryzen 3 2200G, but will be getting a Ryzen 5 5600G very quickly.

But to get a more recent CPU I need to update my UEFI from version 1.20 to 4.40. This is great because this means that my home server built cheap can properly evolve and extend its lifespan by a bit.

Symptom

After an UEFI update I always login and attempt to ping 8.8.8.8 but it wouldn’t reach.

No entry for the NIC exists within the UEFI but it is detected:

senpaisilver:~$ sudo lshw -C network
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 15
       serial: 01:23:45:67:89:AB
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:36 ioport:f000(size=256) memory:fcd04000-fcd04fff memory:fcd00000-fcd03fff

Resolving the solution

This is a walk in the part, when querying the NICs I need to get the logical name:

senpaisilver:~$ sudo lshw -C network | grep "logical name:"
logical name: enp7s0

In my case I’m interested in the enp7s0, this will be the string I will have to update in my netplan. In my case there’s only one netplan /etc/netplan/ which is 50-cloud-init.yaml (may differ on other installations).

In that file we need to copy the logical name in the ethernets section like so:

network:
    ethernets:
        enp7s0:
            dhcp4: true
    version: 2

Save and then run the following commands to enable the new netplan:

sudo netplan generate
sudo netplan apply

If everything works you should be able to reach the internet, otherwise try rebooting.

Why update the CPU?

I’m been having issues with slow encoding and to be honest the Ryzen 3 2200G was a low cost way of getting started, I need more power and I’ll probably update the SSD to a proper NVMe PCI-E 3.0 one if the need arises.

But by the end of the day I need more CPU performance and I’ll be need more RAM too for a PhotoPrism instance too. Maybe it would be a great moment to properly setup a Grafana dashboard too since I already have most of the docker compose file ready.

So much to do… So much to do…

Update 2022/01/08

I received the Ryzen 5 5600G and proceeded to install it, after working for a few minutes the screen would turn off and sleep. The reset and power buttons wouldn’t register at all, the ethernet would cut off meaning I had no other option than to pull the plug (or use the PSU’s switch).

Continue reading Fix ethernet interface following ASRock B450M-HDV’s UEFI update on Linux

Beef PC

It’s upgrade time and starting today I’ll be rocking a new build.

Old parts

My 2017 desktop has some very old parts dating back to 2011 and 2012. Only the GPU dates back to 2017 and I’ve add some SSD drives last year.

The old parts are:

  • Intel i7 3770K @3.50GHz with 4 cores;
  • 4 times 4GB Corsair Vengeance 1866MHz;
  • Gigabyte GTX 1080 8GB (the newest);
  • Asus Sabertooth P67;
  • Cooler Master HAF-X.

It has also two Samsung 860 SATA SSDs and a 2TB Seagate Barracuda spinning rust drive.

New parts

First of all to get started I’m only swapping the CPU (+ cooler), motherboard and RAM. I’ll be adding two NVMe PCI-E 4.0 SSDs to the lot too.

I’m now rocking:

  • AMD Ryzen 9 5900X @3.7/4.8GHz with 12 cores;
  • 2 times 16GB Corsair Vengeance LPX 3600MHz CL18;
  • Asus TUF Gaming X570-PRO;
  • 2 times 1TB Samsung SSD 980 Pro M.2 PCI-E 4.0 NVMe;
  • Be quiet! Silent Base 802;
  • NVidia RTX 3080Ti.

I’m still shaking because of the price and the sheer excitement I’m getting out of building such a beast. More the excitement actually than the price.

The beef PC

Right now it’s what I’d call the beef PC, even though it’s not overpowered GPU wise and the RAM could be increased to 64GB or even 128GB, I love it the way it is.

I know the DDR5 is going to be a thing, probably next year and we are already talking about PCI-E 5.0 but for now I have a good upgrade and it’s worth it.
I could wait but if I did wait what guarantees would I get that my previous hardware would still perform well enough?
Would the jump in performance and possible launch issues be worth it ?

A platform’s maturity counts very much for me. I believe I’m not missing on much right now.

With that said I’m leaving you to the reference that made me call this PC the Beef PC:

Check out 2ManySnacks’ channel, great content, the featured image is part of that video.

Update 13-06-2022

I GOT AN RTX 3080TI NOW!!!!!