Solved [Realtek gigabyte card] upgrading to R15.0

Hi, my workstation has a realtek card which works with the Realtek-RE-kmod.
If I run freebsd-update install do I have to install manually the realtek driver ?
 
I would say no.
The change you need before you do the upgrade is to disable the Realtek-KMOD network driver in rc.conf or /boot/loader.conf.

That way system has inet to do upgrade then on first reboot for upgrade the new module (from base) should load and then you need to add rc.conf settings for it as interface name shows up in
pciconf -lv.

But I would do the whole upgrade//reboot//reboot cycle before worrying about the new driver settings in rc.conf.
All files will be downloaded at beginning so inet is not needed further. Just reboots for kernel/userland.
Just disable Realtek-KMOD driver setting before running freebsd-update -r.

The interface name will likely be the same. You do not want to load the Realtek-KMOD after first reboot. FreeBSD 15.0-RELEASE will automatically load the new module.
You just need to enable it with rc.conf. Do not load anything Realtek with kld_list="" on 15-RELEASE.
ifconfig_re0="${WHATEVER OPTIONS YOU USE. STATIC OR DHCP}"
 
The third phase of upgrading to 15-RELEASE will be force upgrade all packages. Don't worry that the Reltek-KMOD package will be present and upgraded.
It can be deleted after all the maintenance. Just eliminate the KMOD module from loading up is enough.
 
OK if you look at the port /net/realtek-re-kmod these are the settings that need fixing:
Delete these settings before upgrading:
/boot/loader.conf
Code:
if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"

To add interface for DHCP services AFTER the upgrade:
/etc/rc.conf
Code:
ifconfig_re0="DHCP"
I am assuming a single Realtek Interface here. If more interfaces exist please adjust interface names.
 
I was just thinking this through. For "Phase3" Forced Upgrading All Packages you will need to have internet connection.

So add your new settings to /etc/rc.conf early in the upgrade//reboot process.
Perhaps best to do when removing Realtek-KMOD settings right before the freebsd-update command.
 
I would suggest trying something like env ABI=FreeBSD:15:amd64 pkg fetch realtek-re-kmod before starting the upgrade and save that package somewhere safe. The entire freebsd-update install stages can be done 'offline' but you're going to have a problem with your currently installed Realtek driver once you replace the kernel with the 15.0 version. That driver was built for an older version and will likely fail to load on the new version. It'll get you in a chicken and egg situation. You can use the 'old' pkg-static(8) to reinstall that kernel module (for 15.0) you saved earlier.
 
Update: I made the jump today and my realtek kdernel driver was updated as wel without problem.
I'm actually running to another problem (plasma not working, but startx and startlxqt-wayland (+ labcwl) work flawlessly
 
Back
Top