Upgrade to 13.2

Hello All

I have been using freebsd 13.1 for the past year or so. Have decided to upgrade the system to 13.2. Have followed the instruction on the freebsd manual (chapter 26). All went good and well i thought. I did restart the system and was able to start X (via startx) if i am not mistaken. But now i am getting this panic from radeon.

Any ideas?
 

Attachments

  • Resize_20230826_174424_4600.jpg
    Resize_20230826_174424_4600.jpg
    679.1 KB · Views: 176
And for some reason it is loading bonaire and tahiti.
 

Attachments

  • Resize_20230827_074526_6567.jpg
    Resize_20230827_074526_6567.jpg
    488.3 KB · Views: 109
After the upgrade of the Kernel you should rebuild/upgrade all kernel modules. I personally disable the loading of all software and modules in rc.conf and loader.conf before the first reboot with the new kernel so i can reinstall and rebuild them after the reboot. This way i eliminate the risk of some old module to cause kernel panic with the new kernel.
 
After the upgrade of the Kernel you should rebuild/upgrade all kernel modules. I personally disable the loading of all software and modules in rc.conf and loader.conf before the first reboot with the new kernel so i can reinstall and rebuild them after the reboot. This way i eliminate the risk of some old module to cause kernel panic with the new kernel.
I really do not know at this point if this will work. I disabled everything in rc.conf, and loader.conf. I also disabled linux filesystem mounts for the linux emulation layer which i had in there.

Then i rebooted.

What should i do to rebuild and reinstall all the software and modules (these are the packages i think you are talking about). Should this be pkg upgrade or pkg-static upgrade -f?
 
There's two types of drivers. Those which are installed via pkg/ports need to be rebuild if you are using ports or upgraded via pkg if you are using packages.
After upgrade just force reinstalling all packages or rebuild all ports depending of what you are using.

Fetch the 13.2-Release
freebsd-update upgrade -r 13.2-RELEASE
Install 13.2-Release kernel
freebsd-update install
shutdown -r now
Install 13.2-Release userland
freebsd-update install
shutdown -r now
Force rebuild all installed userland apps and drivers
pkg autoremove
pkg upgrade -f
shutdown -r now
Check if anything else need to be installed or cleanup old libs
freebsd-update install
Normally it should say that there's nothing else to be installed.
 
There's two types of drivers. Those which are installed via pkg/ports need to be rebuild if you are using ports or upgraded via pkg if you are using packages.
After upgrade just force reinstalling all packages or rebuild all ports depending of what you are using.

Fetch the 13.2-Release
freebsd-update upgrade -r 13.2-RELEASE
Install 13.2-Release kernel
freebsd-update install
shutdown -r now
Install 13.2-Release userland
freebsd-update install
shutdown -r now
Force rebuild all installed userland apps and drivers
pkg autoremove
pkg upgrade -f
shutdown -r now
Check if anything else need to be installed or cleanup old libs
freebsd-update install
Normally it should say that there's nothing else to be installed.
It said that there os nothing to do after the first two cmd's. The feeebsd version shows for -r -u and -k options the same version which is 13.2.

So i am upgrading the packages. I disabled the kernel modules in the rc.conf by the way. And am doing these in the console.

After the pkg upgrade, have restarted the system.

It generates a panic again.
 
Here is one more thing. I created a configuration using Xorg - configure. Using the generated xorg config file i tried to run xorg usin Xorg -config xorg.cfg. I cannot start Xorg either.

The above kernel panic happens when i try to start X using startx. But the driver is initialized, and both my laptop screen and my monitor, connected to the laptop, display the console.

The weird thing is this. The tahiti, and bonaire files are loaded when loading the radeonkms kernel module, as you can see in the second message i have send above. These files were not loading prior to the upgrade.
 

Attachments

  • Resize_20230827_155511_1127.jpg
    Resize_20230827_155511_1127.jpg
    506.5 KB · Views: 104
Maybe you are using the wrong driver for the video card.
I have a r7 m265 radeon card. Which has oland and kaveri devices. I was able to use the amdgpu kernel module briefly on 13.1. Then could not load the driver after package upgrades.

When i try to use amdgpu as the kernel module in rc.conf, the boot freezes when loading the kernel module. It displays a line of colored pixels on the right hand corner of the laptop screen.

How would you use the amdgpu kernel module?
 
Can you show the output of cat /etc/rc.conf | grep -i kld_list

Looking at AMD Radeon R7 M265, this is a mobile/laptop graphics chip that is pretty old ("launched on January 9th, 2014"); I cannot find a specific mention of FreeBSD support for that chip. After installing graphics/drm-kmod/, did you ever try using in /etc/rc.conf:
Code:
kld_list="radeonkms"

Edit: sorry I missed your use of radeonkms mentioned earlier in the thread.
 
Attach your /var/log/Xorg.0.log file
Can you show the output of cat /etc/rc.conf | grep -i kld_list

Looking at AMD Radeon R7 M265, this is a mobile/laptop graphics chip that is pretty old ("launched on January 9th, 2014"); I cannot find a specific mention of FreeBSD support for that chip. After installing graphics/drm-kmod/, did you ever try using in /etc/rc.conf:
Code:
kld_list="radeonkms"

Edit: sorry I missed your use of radeonkms mentioned earlier in the thread.
I was using such a line prior to the os upgrade

kld-list="radeonkms fusefs"

I do not remember why i was using fusefs for. Even if i remove that, it does not make a difference.

I have ttm added in the kld-list that is "ttm radeonkms fusefs". I tried everything, removing ttm and fusefs. No use.
 
Attach your /var/log/Xorg.0.log file
I dont have a recent version. It is from 17:54. This is when i was toying with Xorg -configure creating xorg.config file to run. The system generated kernel panic and the panic is in radeon_ttm_fault function, shown in the first message image.
 
Thanks, yes, I also saw you reported here that radeonkms for your R7 M265 worked for you in 13.1. That means that the driver belonged to the "old set" of supported graphics AMD cards in the graphics/drm-kmod; thus, by implication, not working with amdgpu:
The drm-510-kmod port can be enabled for amdgpu (for AMD
GPUs starting with the HD7000 series / Tahiti) or i915kms (for Intel
APUs starting with HD3000 / Sandy Bridge) through kld_list in
/etc/rc.conf. radeonkms for older AMD GPUs can be loaded and there are
some positive reports if EFI boot is NOT enabled (similar to amdgpu).

I find it unlikely that with 13.2-RELEASE the driver from graphics/drm-kmod for your card would have been moved (i.e "promoted") to the "newer set" and therefore would need kld_list="amdgpu" instead.
 
I dont have a recent version. It is from 17:54. This is when i was toying with Xorg -configure creating xorg.config file to run. The system generated kernel panic and the panic is in radeon_ttm_fault function, shown in the first message image.
I don't see anything attached.

Just to be sure, please give the output of freebsd-version -kru
 
Thanks, yes, I also saw you reported here that radeonkms for your R7 M265 worked for you in 13.1. That means that the driver belonged to the "old set" of supported graphics AMD cards in the graphics/drm-kmod; thus, by implication, not working with amdgpu:


I find it unlikely that with 13.2-RELEASE the driver from graphics/drm-kmod for your card would have been moved (i.e "promoted") to the "newer set" and therefore would need kld_list="amdgpu" instead.
It imports firmware fules for tahiti and bonaire. This is new in this release.

For a brief period i was able to use amdgpu witj 13.1. Bit then the package drm-fbsd something was removed, then i was able to uae radeonkms from that point. With radeonkms boaire/tahiti firmware files were not being incluses. I do not remember these being included at least.

What can i do to use X with freebsd 13.2?
 
Back
Top