Created attachment 243578 [details] dmesg.boot I built my desktop with the following components: cpu: AMD Ryzen 9 7900 (65w power dissipation, does not require liquid cooler) motherboard: Gigabyte B650 AORUS ELITE AX memory: Corsair, 32 GB (16 GB x 2) storage: SSD, Gigabyte 1 TB psu: Corsair RM850e, 850 w case: Corsair 4000D mid-tower UEFI BIOS F7a (Gigabyte BIOS update is a zip file good for any OS) OS: FreeBSD 13.2 When installing the OS, the installer did not configure IPv4 and IPv6 because there's no network driver. On the motherboard, there's RTL 8125BG chip. I went to the following URL: https://www.realtek.com/en/component/zoo/category/network-interface-controllers- 10-100-1000m-gigabit-ethernet-pci-express-software and downloaded the RTL 8125BG driver (rtl_bsd_drv_v198.00.tgz) for FreeBSD. I followed the instructions in Readme.txt. root@seagull:/boot/kernel # pwd /boot/kernel root@seagull:/boot/kernel # ls -l | grep if_re -r-xr-xr-x 1 root wheel 1044640 Jul 21 14:15 if_re.ko root@seagull:/boot/kernel # root@seagull:/boot/kernel # grep if_re /boot/loader.conf if_re_load="YES" root@seagull:/boot/kernel # Now, the network is working fine. The following lines are just FYI. They are not related to the above bug. The audio chip on the motherboard is Realtek ALC897. root@seagull:~ # grep hda /boot/loader.conf snd_hda_load="YES" root@seagull:~ # grep hdac /boot/device.hints hint.hdac.1.cad0.nid20.config="as=1" hint.hdac.1.cad0.nid27.config="as=1 seq=15" root@seagull:~ # The two monitor speakers and the headphone are working fine. For the video: root@seagull:~ # pkg install drm-510-kmod-5.10.163_7 root@seagull:~ # root@seagull:~ # grep amdgpu /etc/rc.conf kld_list="amdgpu" root@seagull:~ # id root uid=0(root) gid=0(wheel) groups=0(wheel),5(operator),44(video) root@seagull:~ # cat /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf Section "Device" Identifier "Device0" Driver "scfb" EndSection root@seagull:~ # Xorg is working fine. I'm not a gamer.
The RTL8125 driver is available as a port and package (net/realtek-re-kmod, realtek-re-kmod), it is based on the driver sources provided by Realtek. This driver is based on a very old version of the driver in FreeBSD, it lacks support for features that have been introduced into FreeBSD since the date when Realtek created its fork (e.g. NETMAP, generic PHY support). The advantage of the Realtek driver is that it provides some 30 device specific firmware patches that work around the bugs of each supported chip. I had started to merge the RTL8125 specific functionality into the FreeBSD driver, 3 years ago, but have given up since Realtek considers programming information for their chips confidential and the example drivers did not contain all information required for integration into if_re and the generic PHY driver.
The CPU AMD Ryzen 9 7900 was launched in January 2023. The motherboard Gigabyte B650 Aorus Elite AX was launched in March 2023. Yet, if_re.ko that comes with FreeBSD 13.2 distribution does not work with these components. I built my old PC in 2012. I want a new desktop with the latest components. I do not want to use an old PC because if_re.ko does not support new components. I spent a lot of time and money to find new PC components to work with FreeBSD. Anyway, I can live with that. I can manually install the network driver. I'm new to FreeBSD. I need to learn ZFS and other things...
Forgot to mention that Realtek driver package contains if_re.c and if_re.h. So, the source code for the driver is available.
Sounds rather like a port problem, hence the update.
ale@: can you work with the submitter to see if net/realtek-re-kmod will solve their problem?
(In reply to Mark Linimon from comment #5) As far as I can see he said in the first comment that the driver downloaded from the realtek website fixed his issue, so the net/realtek-re-kmod port will surely fix it, too, there's no need to manually build and replace the driver.