Upgrade 14.1 to 14.3 - remaining issues: ethernet, video, crashes etc

FreeBSD newbie here.

I installed FreeBSD version 14.1 about a year ago and after getting the system usable for network and video I haven't used the system much due to other tasks etc.

About a month ago I upgraded my system to version 14.3 and wanted to see if some issues have progressed much since the 14.1 release.

On 14.1 I had a couple of issues relating to:
(1) the ethernet driver for the Realtek RTL8125 ethernet NIC
(2) the AMDGPU Raphael iGPU built into the CPU (AMD Ryzen 9 7900 CPU) - driver wasn't available so had to use SCFP instead.

These 2 issues were mostly resolved in the following post:

However, there were outstanding issues with these 2 workarounds:
1. RTL8125 - keeps losing connection, requires running /etc/netstart after connection loss.
2. The AMDGPU Raphael driver wasn't available, necessitating use of SCFB driver.

Does anyone know if (1) the RTL8125 driver has become stable yet and (2) if an AMDGPU Raphael driver exists yet and is it stable?

An additional issue after upgrading to 14.3 is that the system crashed when dragging over text in the chromium browser, and it just rebooted spontaneously today whilst I was away from the system - I returned to see the boot screen to my dismay.

I would like to make FreeBSD my daily driver as I want to make the system boot from a mirrrored ZFS boot environment, so I would like to resolve these issues if possible.

As a final note, I am not 100% sure that I have updated my system from 14.1 to 14.3 correctly so any help checking this would be appreciated.
 
Try net/realtek-re-kmod198.

There is no description of how to upgrade, but if you used freebsd-update(8), try freebsd-update IDS.
Note: It will take some time.

Thanks for those links.

I tried installing the port but hit an error seemingly due to a make target conflict:
Code:
realtek-re-kmod-1100.00 (installs files into the same place).  Problematic file: /boot/modules/if_re.ko

Here is the reduced install log:

Code:
root@freebsd:/usr/ports/net/realtek-re-kmod198 # make install clean
...
===>  Staging for realtek-re-kmod198-198.00
===>   Generating temporary packing list
install -T release -o root -g wheel -m 444   if_re.ko /usr/ports/net/realtek-re-kmod198/work/stage/boot/modules/
====> Compressing man pages (compress-man)
===>  Installing for realtek-re-kmod198-198.00
===>  Checking if realtek-re-kmod198 is already installed
===>   Registering installation for realtek-re-kmod198-198.00
Installing realtek-re-kmod198-198.00...
pkg-static: realtek-re-kmod198-198.00 conflicts with realtek-re-kmod-1100.00 (installs files into the same place).  Problematic file: /boot/modules/if_re.ko
*** Error code 1

Stop.
make: stopped in /usr/ports/net/realtek-re-kmod198
root@freebsd:/usr/ports/net/realtek-re-kmod198 #

If I have the v198 driver port installed then I suppose I will no longer require the realtek-re-kmod-1100.00 driver port,
so is the fix to (1) simply delete the /usr/ports/net/realtek-re-kmod directory and then (2) reinstall the 198 port,
or is there something else required? (newbie here lol). Once I get this ethernet driver installed and working I will have to RTFM
the Ports section of the FreeBSD handbook :)

Code:
root@freebsd:/usr/ports/net # ls -l realtek*
realtek-re-kmod:
total 18
-rw-r--r--  1 root wheel 458 May 31  2024 Makefile
-rw-r--r--  1 root wheel 213 May 31  2024 distinfo
-rw-r--r--  1 root wheel 963 May 31  2024 pkg-descr
-rw-r--r--  1 root wheel 738 May 31  2024 pkg-message

realtek-re-kmod198:
total 27
-rw-r--r--  1 root wheel 446 May 31  2024 Makefile
-rw-r--r--  1 root wheel 213 May 31  2024 distinfo
-rw-r--r--  1 root wheel 941 May 31  2024 pkg-descr
-rw-r--r--  1 root wheel 612 May 31  2024 pkg-message
drwxr-xr-x  5 root wheel  16 Aug 28 20:04 work
root@freebsd:/usr/ports/net #


Finally, once the 198 port installs correctly, am I correct in thinking I need
the following in /etc/rc.conf ?:

Code:
  ifconfig_re0="DHCP -rxcsum -txcsum"
  ifconfig_re0_ipv6="inet6 accept_rtadv -rxcsum6 -txcsum6"

and the following in /boot/loader.conf:

Code:
  if_re_load="YES"
  if_re_name="/boot/modules/if_re.ko"
 
Install more stable ethernet driver, first uninstall old realtek ethernet driver (RTL8125)

I found the way to remove the old realtek driver and install the new version 198 driver:

Uninstall the old driver to eliminate the make target conflict (/boot/modules/if_re.ko) :

Code:
# cd /usr/ports/net/realtek-re-kmod
# make deinstall

Install the version 198 driver:

Code:
# cd /usr/ports/net/realtek-re-kmod198
# make install clean

===>  Installing for realtek-re-kmod198-198.00
===>  Checking if realtek-re-kmod198 is already installed
===>   Registering installation for realtek-re-kmod198-198.00
Installing realtek-re-kmod198-198.00...
Add the following lines to your /boot/loader.conf
to override the built-in FreeBSD re(4) driver.

if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"

By default, the size of allocated mbufs is enough
to receive the largest Ethernet frame supported
by the card.  If your memory is highly fragmented,
trying to allocate contiguous pages (more than
4096 bytes) may result in driver hangs.
For this reason the value is tunable at boot time,
e.g. if you don't need Jumbo frames you can lower
the memory requirements and avoid this issue with:

hw.re.max_rx_mbuf_sz="2048"

===>  Cleaning for realtek-re-kmod198-198.00

I also added the -txcsum etc flags to /etc/rc.conf as in my earlier post.

So far it seems stable.

And I learned something about Ports in the process :)
 
Shortly after installing the version 198 port I decided to do an update/upgrade:

Code:
# pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.

# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (147 candidates): 100%
Processing candidates (147 candidates): 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    realtek-re-kmod198: 198.00 -> 198.00.1402000

Number of packages to be upgraded: 1

102 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching realtek-re-kmod198-198.00.1402000.pkg: 100%  102 KiB 104.5kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Upgrading realtek-re-kmod198 from 198.00 to 198.00.1402000...
[1/1] Extracting realtek-re-kmod198-198.00.1402000: 100%

If my understanding is correct, when I did the
Code:
make install clean
for the version 198 port, this built the target (/boot/modules/if_re.ko).
It also registered 'realtek-re-kmod198' as a package with version '198.00'?

Then when I did the
Code:
pkg update/upgrade
a newer version (198.00.1402000) of
package 'realtek-re-kmod198' was found and installed.

Is my understanding correct?
 
Hello OP,
I'm facing the same Reaktek and GPU issue, and here I am.

From your description, I just tried to verify if the driver is available in the pkg, and they are:
```
pkg search realtek
realtek-re-kmod-1100.00.1402000_1 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod198-198.00.1402000 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod-1100.00.1403000_1 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod198-198.00.1403000 Kernel driver for Realtek PCIe Ethernet Controllers
```
Maybe you can just remove the ports and install directly from pkg?

Maybe I'm wrong, I'm a new FreeBSD user, just one week.
 
Ah, I forgot.
Tks for the thread, the pkg driver `realtek-re-kmod198-198` works for me.

I added these lines in the /boot/loader.conf, as suggested during the pkg installation
```
if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
```

I added this line in my rc.conf, to automatically get DHCP
```
ifconfig_re0="DHCP"
```
 
Hello OP,
I'm facing the same Reaktek and GPU issue, and here I am.

From your description, I just tried to verify if the driver is available in the pkg, and they are:
```
pkg search realtek
realtek-re-kmod-1100.00.1402000_1 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod198-198.00.1402000 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod-1100.00.1403000_1 Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod198-198.00.1403000 Kernel driver for Realtek PCIe Ethernet Controllers
```
Maybe you can just remove the ports and install directly from pkg?

Maybe I'm wrong, I'm a new FreeBSD user, just one week.

Hi there, glad you got version 198 of the driver working.

Your suggestion to use pkg to remove and install the right version could well work - looks like it should.

I took the ports approach as it was mentioned in the reply I received and I am a FreeBSD newbie so I don't know my way around the system well enough yet.

Anyway, this version seems to be stable so far, so it's a good result!

Let me know if you see any network connectivity issues with this version and I will post any issues found here too.
 
Back
Top