Failed to load module "ati" (module does not exist, 0)

Thanks, I don't quite understand: normal booting without kld_list="amdgpu" in rc.conf should be fine, correct?

Anyhow, unless someone else comes up with an idea to get drm-61-kmod going, I suggest you try graphics/drm-515-kmod/ instead. So, pkg del drm-61-kmod, remove kld_list from rc.conf, at least the entry "amdgpu"; build and install drm-515-kmod and see what you get with kldload amdgpu then and dmesg -a afterwards. If that works out ok, try startx and see what Xfce does.
 
Thanks, I don't quite understand: normal booting without kld_list="amdgpu" in rc.conf should be fine, correct?
Also, the futher I go into this, then the more I don't seem to understand as well. At any rate, I seem to have amdgpu listed on the very bottom line of my rc.conf file. Not sure if this is useful information, but I thought that I should include it below.
Code:
syslogd_flags="-ss"
hostname="RB_HP_FreeBSD_2"
keymap="us.kbd"
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
create_args_wlan0="country US regdomain FCC"
sshd_enable="YES"
# autofs_enable="Yes"
moused_enable="YES"
devfs_system_ruleset="localrules"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
# kld-list="list amdgpu"
# kld_list="radeonkms amdgpu"
# kld_list="boot/modules/radeonkms.ko"
# kld_list="radeonkms"
# kld_list="radeonkms"
# kld_list="/boot/modules/amdgpu.ko"
dbus_enable="YES"
sddm_enable="YES"
# amd_enable=YES
# amd_flags="-a /.amd_mnt -c 10 -w 2 -l syslog /host /etc/amd.map"
# power settings
powerd_enable="YES"
powerd_flags="-a hiadaptive -b adaptive"
performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"
# kld_list="boot/modules/radeonkms.ko"
kld_list="amdgpu"
 
Also, the futher I go into this, then the more I don't seem to understand as well.
We all started somewhere. The line kld_list="amdgpu" in rc.conf means that the (kernel) module amdgpu.ko wil be "kld-loaded" on start up automatically. To get a better understanding of might have gone wrong where, one can forego that option and just start without that and, from your command line after booting has finished, try manually loading it by means of kldload amdgpu. Hope this helps.

P.S. When set in rc.conf you can check afterwards if kld_list got the intended value, like:
Code:
 % sysrc kld_list
kld_list: amdgpu
 
Another thing to note is that modules in kld_list are only loaded when the system goes multi-user so you should be able to boot in single user mode and stay up.
 
one can forego that option and just start without that
Just to make certain I understand correctly, if I edit /etc/rc.conf, and put a # at the beginning of that line, then the system will ignore it and not load it? Then after I reboot into option 1. Mutiluser mode, I can try running
Code:
kldload amdgpu
manually, is that correct? Next, I should check to see if it is loaded correctly by running
Code:
kld_list
.

Assuming that the above works correctly could I then use
Code:
startxfce
or
Code:
startx
to launch Xfce?

I'm sorry to ask so many repetitive questions, and I realize that I'm probably asking for way too much hand holding in this process. If I cannot figure this out in a few more days, then I'm thinking that I should restore Kubuntu to my laptop, and then I find an old harddrive to put into my desktop and maybe I will give Freebsd a shot there and see what happens.
 
Below is a picture of my laptop screen rebooting following kldload.

View attachment 20324
This is because the sources you fetched (via git clone) are not the same that were used to build your FreeBSD NN-RELEASE.

You shouldn't need to rebuild your system to get graphics working.

To recover from this,

1. Interrupt the loader by hitting the space bar.
2. Boot single user state and move the following /boot/modules files from /boot/modules into some other directory the kernel won't look at:

/boot/modules/amdgpu.ko
/boot/modules/dmabuf.ko
/boot/modules/drm.ko
/boot/modules/i915kms.ko
/boot/modules/linuxkpi_video.ko
/boot/modules/radeonkms.ko
/boot/modules/ttm.ko

Reboot.

If that fails you will need to get into a loader prompt, unload the kernel and all modules, the unload command, and load /boot/kernel.old/kernel. Then boot.

You should have been able to pkg install drm-61-kmod and pkg install any xorg video drivers as well. If in doubt, install all of them, it's just a little disk space.
 
This is because the sources you fetched (via git clone) are not the same that were used to build your FreeBSD NN-RELEASE
Whoops. Alright, I will move the above files and reboot.

Also, after poking around on my own, I found the below information in my Xorg.0.log file.

Code:
[  1356.362]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[  1356.362] Current Operating System: FreeBSD RB_HP_FreeBSD_2 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64
[  1356.362] 
[  1356.362] Current version of pixman: 0.42.2
[  1356.362]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  1356.362] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1356.363] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep 13 21:00:27 2024
[  1356.363] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[  1356.363] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[  1356.364] Parse error on line 4 of section Device in file /usr/local/etc/X11/xorg.conf.d/amdgpu.conf
    This section must have an Identifier line.
[  1356.364] (EE) Problem parsing the config file
[  1356.364] (EE) Error parsing the config file
[  1356.364] (EE)
Fatal server error:
[  1356.364] (EE) no screens found(EE)
[  1356.364] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[  1356.365] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1356.365] (EE)
[  1356.365] (EE) Server terminated with error (1). Closing log file.
 
Whoops. Alright, I will move the above files and reboot.

Good stuff.

Also, after poking around on my own, I found the below information in my Xorg.0.log file.

Code:
[  1356.362]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[  1356.362] Current Operating System: FreeBSD RB_HP_FreeBSD_2 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64
[  1356.362]
[  1356.362] Current version of pixman: 0.42.2
[  1356.362]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  1356.362] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1356.363] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep 13 21:00:27 2024
[  1356.363] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[  1356.363] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[  1356.364] Parse error on line 4 of section Device in file /usr/local/etc/X11/xorg.conf.d/amdgpu.conf
    This section must have an Identifier line.
[  1356.364] (EE) Problem parsing the config file
[  1356.364] (EE) Error parsing the config file
[  1356.364] (EE)
Fatal server error:
[  1356.364] (EE) no screens found(EE)
[  1356.364] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[  1356.365] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1356.365] (EE)
[  1356.365] (EE) Server terminated with error (1). Closing log file.
Can you list your /usr/local/etc/X11/xorg.conf.d/amdgpu.conf, please? Line 4 is the problem.
 
Can you list your /usr/local/etc/X11/xorg.conf.d/amdgpu.conf, please? Line 4 is the problem.


Code:
Section "Device"
   Identifier "Card0"
   Driver     "amdgpu"
EndSection

I copied and pasted the contents of the above file from somewhere else on the Internet.
 
Here is a copy of my Xorg.0.log file, which I guess was generated this morning when I tried to run startx as root. I think that I didn't have the formatting of my amdgpu.conf file correct, so I removed some of the tab spaces in the mid section of the file, but still Xfce does not load when I try startx.

Code:
[    40.765]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[    40.765] Current Operating System: FreeBSD RB_HP_FreeBSD_2 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64
[    40.765] 
[    40.765] Current version of pixman: 0.42.2
[    40.765]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    40.765] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    40.765] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 14 10:08:08 2024
[    40.765] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    40.766] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    40.766] (==) No Layout section.  Using the first Screen section.
[    40.766] (==) No screen section available. Using defaults.
[    40.767] (**) |-->Screen "Default Screen Section" (0)
[    40.767] (**) |   |-->Monitor "<default monitor>"
[    40.768] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[    40.768] (**) |   |-->Device "Card0"
[    40.768] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    40.768] (**) Allowing byte-swapped clients
[    40.768] (==) Automatically adding devices
[    40.768] (==) Automatically enabling devices
[    40.768] (==) Automatically adding GPU devices
[    40.768] (==) Automatically binding GPU devices
[    40.768] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    40.768] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[    40.768] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    40.768] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    40.768] (II) Module ABI versions:
[    40.768]     X.Org ANSI C Emulation: 0.4
[    40.768]     X.Org Video Driver: 25.2
[    40.768]     X.Org XInput driver : 24.4
[    40.768]     X.Org Server Extension : 10.0
[    40.773] (--) PCI:*(0@0:1:0) 1002:9851:103c:82f6 rev 64, Mem @ 0xe0000000/268435456, 0xf0000000/8388608, 0xf0d00000/262144, I/O @ 0x00004000/256, BIOS @ 0x????????/65536
[    40.774] (II) LoadModule: "glx"
[    40.774] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    40.778] (II) Module glx: vendor="X.Org Foundation"
[    40.778]     compiled for 1.21.1.13, module version = 1.0.0
[    40.778]     ABI class: X.Org Server Extension, version 10.0
[    40.778] (II) LoadModule: "amdgpu"
[    40.778] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
[    40.780] (II) Module amdgpu: vendor="X.Org Foundation"
[    40.780]     compiled for 1.21.1.13, module version = 22.0.0
[    40.780]     Module class: X.Org Video Driver
[    40.780]     ABI class: X.Org Video Driver, version 25.2
[    40.780] (II) AMDGPU: Driver for AMD Radeon:
    All GPUs supported by the amdgpu kernel driver
[    40.780] (--) Using syscons driver with X support (version 2.0)
[    40.780] (--) using VT number 9

[    40.786] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[    40.786] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:00:01.0: No such file or directory
[    40.786] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    40.786] (EE) Screen 0 deleted because of no matching config section.
[    40.786] (II) UnloadModule: "amdgpu"
[    40.786] (EE) Device(s) detected, but none match those in the config file.
[    40.786] (EE)
Fatal server error:
[    40.787] (EE) no screens found(EE)
[    40.787] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[    40.787] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    40.787] (EE)
[    40.792] (EE) Server terminated with error (1). Closing log file.
 
Well, I think that it is time for me to recognize that I'm in way over my head, so this morning I restored my laptop's harddrive from a earlier backup image of Kubuntu.

I have to admit that I have a bad habbit of copying and pasting commands from my browser into my terminal, without really understanding what I'm doing, and I think that somewhere along the line I may have misconfigured a few things without realizing it. Or, maybe I just don't know enough about what I'm doing. Also, trying to install FreeBSD onto an older budget laptop probably wasn't my best choice. I like the idea of using FreeBSD as my daily driver, but I have to admit, I'm just not there yet.

I think that I will spend a while reading the handbook, and maybe some other materials, and then after that I will scrounge up a harddrive, and give it a try on my desktop.

I would like to thank everyone who tried to help me out with this, and I'm not giving up, I just need to learn a little bit more before my next attempt.

Thanks again.
 
Well here is an interesting update to this topic which might actually mean something.

The laptop I was using to experiment with FreeBSD is now once again running Kubuntu. However, after thinking it over, I decided to download GhostBSD, and to burn it to a USB thumbdrive, and then use that thumbdrive to boot my laptop.

As I was watching the boot messeges scroll by, I noticed that it reached a point where it displayed "loading amdgpu" and then immediately after that my laptop rebooted and went back to the BSD boot menu. Second time around I tried using safe mode, but that didn't make any difference, the system still rebooted anyway. Hmmm

So after that, I used the very same bootable USB thumbdrive to boot up my desktop, and it worked perfectly displaying a beautiful Xfce desktop.

It seems that there must be some unknown factor with laptop's graphic hardware, which just won't allow it to work with amdgpu. I'm not sure what this means, but it seems interesting.
 
You can do a bit of cleaning in your rc.conf:

# kld-list="list amdgpu"
... wrong syntax -> delete.

# kld_list="radeonkms amdgpu"
... it doesn't make sense to load both modules together -> delete.

# kld_list="boot/modules/radeonkms.ko"
# kld_list="/boot/modules/amdgpu.ko"
... it's unnecessary to specify the whole path of the module -> delete.

# kld_list="radeonkms"
# kld_list="radeonkms"
... you have the same line twice, delete one of them.

Now, if amdgpu doesn't work and causes the machine to reboot, what about radeonkms (which is the older driver)? Does it work? Try to boot with kld_list="radeonkms" enabled, without loading amdgpu.
 
Well, I don't know if I need to start an entirely new thread or not, but I finally found a spare hard drive to plug into my desktop, so that I could give FreeBSD a whirl on something other than my old laptop. The whole laptop thing didn't workout very well, but so far I'm very happy with what I've got on my desktop.

The process of installing FreeBSD onto my desktop went relatively smoothly, until I got to the part when I tried to install kde5. Apparently the partition I created for /usr was a little too small, I think that I originally gave it 9GB at first, but then I experimented by expanding /usr up to 30 GB, and after that the installation seemed to work smoothly. I included a screenshot of my disk usage, and I'm wondering why /usr is already using 14 GB of space. Is this normal?

Also, looks like FreeBSD isn't too happy with my cheap Cannon printer, but I will try and work on that more tomorrow. On the plus side, I see to be able to automatically mount and unmount USB thumb drives without having to make any changes to fstab, so that is good news.
 

Attachments

  • About_This_System_Desktop.jpg
    About_This_System_Desktop.jpg
    182.4 KB · Views: 11
  • Desktop.jpg
    Desktop.jpg
    1.1 MB · Views: 15
  • Disk_Usage.jpg
    Disk_Usage.jpg
    144.2 KB · Views: 18
Well, I got it to print without too much trouble, but it looks like there is no way that the SANE program is going to work with my scanner. Hmm....
 
Back
Top