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

During the past few weeks I've been experimenting with FreeBSD 14.1 on an older HP Notebook (Model: 15-ba009dx Product: X7T78UA#ABA), and I have encountered an error which I cannot seem to resolve on my own.

After issuing the below command an error message is displayed which appears to indicate that my graphics driver is not loading (if I understand things correctly).

Command:
Code:
grep '(EE)' /var/log/Xorg.0.log

Output:
Code:
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    35.171] (EE) Failed to load module "ati" (module does not exist, 0)

Additionally, below is some information I found regarding my graphics hardware.

Code:
pciconf -lv|grep -B4 VGA
vgapci0@pci0:0:1:0:    class=0x030000 rev=0x40 hdr=0x00 vendor=0x1002 device=0x9851 subvendor=0x103c subdevice=0x82f6
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Mullins [Radeon R4/R5 Graphics]'
    class      = display
    subclass   = VGA

Code:
dmesg | grep video
vgapci0: Boot video device

Also, during the process of setting up Xfce, I used the below command inorder to install my graphics driver
Code:
# pkg install drm-kmod

Additionally, below is the entire content of my /etc/rc.conf file:
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"

As you can see, I've been having a lot of extra fun trying to test different configurations for my graphics, but no matter what I try, I always seem to end up with a system that is stuck in a boot loop, or an error message stating that stating "failed to load ati module, module does not exist". Well, the good thing is that I've gotten really good at using the installation media to mount my harddrive's root partition in order to make changes to the above rc.conf file.

I feel that the above problem is just beyond the grasp of my fingertips, and I'm wondering if my problem is at least partially due to the fact that I don't know if my graphics hardware is considered to be post-HD7000 or Tahiti, or is it pre-HD7000 or pre-Tahiti. I believe that my particular Notebook was manufactured in 2017, but I don't know how that relates to this issue.

Also, I've noticed that the following files are located within /boot/modules, should I be referencing one of these files in my rc.conf file?

Code:
amdgpu_mullins_ce_bin.ko
amdgpu_mullins_me_bin.ko
amdgpu_mullins_mec_bin.ko
amdgpu_mullins_pfp_bin.ko
amdgpu_mullins_rlc_bin.ko
amdgpu_mullins_sdma1_bin.ko
amdgpu_mullins_sdma_bin.ko
amdgpu_mullins_uvd_bin.ko
amdgpu_mullins_vce_bin.ko

Also, I'm not certain how the formatting is supposed to work in this forum, so I hope that I won't get to hard of a spanking if I've made a few mistakes.
 
Have you read these instructions? https://docs.freebsd.org/en/books/handbook/x11/

Look well how you have to set a X config file for your video hardware. I don't know why the ati(4) driver is requested.

You have only two drm related modules you can load. Try kldload at the command line as root in order to try to load one or the other. See if something is outputed as a result. You can verify the module is loaded with kldstat.
 
Have you read these instructions? https://docs.freebsd.org/en/books/handbook/x11/

Look well how you have to set a X config file for your video hardware. I don't know why the ati(4) driver is requested.

You have only two drm related modules you can load. Try kldload at the command line as root in order to try to load one or the other. See if something is outputed as a result. You can verify the module is loaded with kldstat.
I read it, but apparently I didn't understand it that well. I will go back and read it more carefully.
 
You can verify the module is loaded with kldstat.
Below is the result of kldstat, not sure what it means though.
Code:
root@RB_HP_FreeBSD_2:~ # kldstat
Id Refs Address                Size Name
 1   65 0xffffffff80200000  1f370e8 kernel
 2    1 0xffffffff82c30000   154ee8 radeonkms.ko
 3    2 0xffffffff82d85000    7c050 drm.ko
 4    1 0xffffffff82e02000     22b8 iic.ko
 5    3 0xffffffff82e05000     3080 linuxkpi_hdmi.ko
 6    3 0xffffffff82e09000     6350 dmabuf.ko
 7    3 0xffffffff82e10000     3378 lindebugfs.ko
 8    1 0xffffffff82e14000     b360 ttm.ko
 9    1 0xffffffff82e20000     4360 radeon_mullins_pfp_bin.ko
10    1 0xffffffff82e25000     4360 radeon_mullins_me_bin.ko
11    1 0xffffffff82e2a000     4360 radeon_mullins_ce_bin.ko
12    1 0xffffffff82e2f000     6360 radeon_mullins_mec_bin.ko
13    1 0xffffffff82e36000     49e0 radeon_mullins_rlc_bin.ko
14    1 0xffffffff82e3b000     3248 radeon_mullins_sdma_bin.ko
15    1 0xffffffff82e3f000    3ae10 radeon_bonaire_uvd_bin.ko
16    1 0xffffffff82e7a000    15288 radeon_BONAIRE_vce_bin.ko
17    1 0xffffffff82e90000     3390 acpi_wmi.ko
18    1 0xffffffff82e94000     9217 if_rtwn_pci.ko
19    1 0xffffffff82e9e000    19140 rtwn.ko
20    1 0xffffffff82eb8000     3220 intpm.ko
21    1 0xffffffff82ebc000     2178 smbus.ko

 
Unfortunately it is hard to distill the necessary information from the, otherwise pretty good, Handbook.

Looks like you have a good chance to get Kernel Mode Setting (KMS)**** working on your laptop.
For your laptop you need:
  1. a DRM-KMS driver like the kernel module amdgpu from graphics/drm-61-kmod (file: /boot/modules/amdgpu.ko) referenced by kld_list="amdgpu"*** in /etc/rc.conf
  2. an Xorg modesetting driver amdgpu(4) from x11-drivers/xf86-video-amdgpu (file: /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so) referenced by Driver "amdgpu"*** in a Section Device**.
  3. appropriate firmware as contained in graphics/gpu-firmware-amd-kmod
Apart from the firmware, for KMS to work in X you need #1 & #2: they function as a pair.

Your AMD A6-7310 APU with AMD Radeon R4 Graphics has GPU architecture codename MULLINS (see: AMD Radeon R4 Mobile Graphics and the output in your OP) and as stated at the link, from "Release Date: Jun 11th, 2014". Radeon HD 7000 series - Tahiti states there that it is from 2012. So, given these two dates:
I don't know if my graphics hardware is considered to be post-HD7000 or Tahiti, or is it pre-HD7000 or pre-Tahiti.
I'd say post-HD7000: try kld_list="amdgpu" in rc.conf

Mullins is explicitly mentioned as supported by amdgpu(4) contained in x11-drivers/xf86-video-amdgpu as stated in its port description:
Rich (BB code):
Description:
    This package contains the X.Org xf86-video-amdgpu driver.

    The amdgpu driver supports AMD Radeon chipsets: OLAND, HAINAN, TAHITI, PITCAIRN,
    VERDE, BONAIRE, KABINI, MULLINS, KAVERI, HAWAII, TOPAZ, TONGA, CARRIZO, FIJI,
    STONEY, POLARIS11, POLARIS10

    On FreeBSD requires amdgpu KMS driver from graphics/drm-kmod.

You need to build the port graphics/drm-61-kmod to create and install its package on your laptop (see: 4.5. Using the Ports Collection) instead of trying to use pkg install ... to install the package from the remote FreeBSD repository: drm-61-kmod as a package isn't available for 14.1 at the moment. This particular port happens to be suited only for 14.1-RELEASE onwards. During the 3 months overlap period of 14.0-RELEASE and 14.1-RELEASE all FreeBSD packages on the remote servers are build for 14.0 and not 14.1.* After the overlap period ends 14.0 is EOL (see: end of support for 14.0), and then 14.1-RELEASE is the only release version of the 14 branch that is supported and all packages are build against 14.1-RELEASE.

For better assessment of problems please attach the output of dmesg -a and Xorg.0.log (only the (EE) message line is just too terse). You can use nc(1), for example: cat /var/log/Xorg.0.log | nc termbin.com 9999 - post the resulting urls.

___
* For allmost all packages that doesn't matter because they are created for a whole branch like the 14.x branch; they work irrespective of a specific minor version of the same major version/branch—a specifc major branch shares the same Application Binary Interface (ABI). However, for very rare packages that contain kernel modules like /boot/modules/amdgpu.ko referenced as kld_list="amdgpu" it can really matter for what specific kernel (major.minor version in this case) they are built as they follow the Kernel Application Programming Interface (KAPI).

** "MULLINS" is supported by amdgpu(4). Try, as stated there, creating a specific Xorg conf file, for example /usr/local/etc/X11/xorg.conf.d/amdgpu.conf with (see also: 5.4.3. Video Cards):
Code:
Section "Device"
    Identifier "Card0"
    Driver     "amdgpu"
EndSection

*** To emphasize: there are two different files representing two drivers that each have a distinct function in the graphics stack; notably both are referenced by the same label amdgpu, which can be rather confusing.

**** The graphics stack contains many parts that should all work together. For further information about KMS, as opposed to User Mode Setting (UMS), see Kernel Mode Setting & Mode setting, and modesetting(4) & drm-kms(7)



Below is the result of kldstat, not sure what it means though. [...]
All those mullins kernel modules are probably chain kld-loaded automatically by the specified kernel module; in your case with as chosen setup:
kld_list="boot/modules/radeonkms.ko"
those are all mullins modules specifically needed by the radeonkms driver; but as mentioned you probably can use kld_list="amdgpu"
 
Looks like you have a good chance to get Kernel Mode Setting (KMS) working on your laptop.
For your laptop you need:
Thank you very much for the above information. I will give it a try in day or two, and will give an update post after my next attempt.
 
You need to build the port graphics/drm-61-kmod to create and install its package on your laptop

I'm pretty new to FreeBSD, so I'm going to have to learn some more about building a port. I'm wondering if working with ports is similar to working with tar.gz files in Linux? At any rate I will read up on this before I attempt anything else.

Sorry I missed this part before.
For better assessment of problems please attach the output of dmesg -a and Xorg.0.log (only the (EE) message line is just too terse). You can use nc(1), for example: cat /var/log/Xorg.0.log | nc termbin.com 9999 - post the resulting urls.

Code:
---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)
VT(efifb): resolution 1366x768
CPU: AMD A6-7310 APU with AMD Radeon R4 Graphics     (1996.34-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x730f01  Family=0x16  Model=0x30  Stepping=1
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x7ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1d4037ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,Topology,PNXC,DBE,PTSC,PL2I>
  Structured Extended Features=0x8<BMI1>
  XSAVE Features=0x1<XSAVEOPT>
  AMD Extended Feature Extensions ID EBX=0x1000<IBPB>
  SVM: (disabled in BIOS) NP,NRIP,AFlush,DAssist,NAsids=8
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 7186210816 (6853 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <HPQOEM SLIC-MPC>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0: MADT APIC ID 4 != hw id 0
ioapic1: MADT APIC ID 5 != hw id 0
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 2 3 1
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0x9f225000-0x9f22501e
smbios0: Version: 2.8, BCD Revision: 2.8
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
acpi0: <HPQOEM SLIC-MPC>
acpi0: Power Button (fixed)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.WLBU._STA.WLVD], AE_NOT_FOUND (20221020/psargs-503)
ACPI Error: Aborting method \134_SB.WLBU._STA due to previous error (AE_NOT_FOUND) (20221020/psparse-689)
cpu0: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 450
Event timer "HPET2" frequency 14318180 Hz quality 450
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0xe0000000-0xefffffff,0xf0000000-0xf07fffff,0xf0d00000-0xf0d3ffff irq 44 at device 1.0 on pci0
vgapci0: Boot video device
hdac0: <ATI Kabini HDA Controller> mem 0xf0d60000-0xf0d63fff irq 45 at device 1.1 on pci0
pcib1: <ACPI PCI-PCI bridge> irq 48 at device 2.1 on pci0
pcib2: <ACPI PCI-PCI bridge> irq 51 at device 2.4 on pci0
pci1: <ACPI PCI bus> on pcib2
pci1: <network> at device 0.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> irq 48 at device 2.5 on pci0
pci2: <ACPI PCI bus> on pcib3
re0: <RealTek 810xE PCIe 10/100baseTX> port 0x2000-0x20ff mem 0xf0b00000-0xf0b00fff,0xf0800000-0xf0803fff irq 40 at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x44800000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
rlphy0: <RTL8201E 10/100 media interface> PHY 1 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 3c:52:82:09:10:17
re0: netmap queues/slots: TX 1/256, RX 1/256
pci0: <encrypt/decrypt> at device 8.0 (no driver attached)
xhci0: <AMD FCH USB 3.0 controller> mem 0xf0d68000-0xf0d69fff irq 18 at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0: waiting for BIOS to give up control
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AMD Hudson-2 AHCI SATA controller> port 0x4118-0x411f,0x4124-0x4127,0x4110-0x4117,0x4120-0x4123,0x4100-0x410f mem 0xf0d6c000-0xf0d6c3ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ehci0: <AMD FCH USB 2.0 controller> mem 0xf0d6f000-0xf0d6f0ff irq 18 at device 18.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
ehci1: <AMD FCH USB 2.0 controller> mem 0xf0d6e000-0xf0d6e0ff irq 18 at device 19.0 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci1
usbus2: 480Mbps High Speed USB v2.0
hdac1: <AMD Hudson-2 HDA Controller> mem 0xf0d64000-0xf0d67fff irq 16 at device 20.2 on pci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
sdhci_pci0: <Generic SD HCI> mem 0xf0d6d000-0xf0d6d0ff irq 16 at device 20.7 on pci0
sdhci_pci0: 1 slot(s) allocated
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz0: _CRT value is absurd, ignored (226.9C)
acpi_tz1: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
driver bug: Unable to set devclass (class: atkbdc devname: (unknown))
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 15.0.
psm0: model Synaptics Touchpad, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounter "TSC" frequency 1996255387 Hz quality 1000
Timecounters tick every 1.000 msec
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
hdacc1: <Realtek ALC282 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC282 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC282 (Analog)> at nid 20 and 25 on hdaa1
pcm2: <Realtek ALC282 (Analog)> at nid 33 and 18 on hdaa1
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <ST1000LM049-2GH172 SDM1> ACS-3 ATA SATA 3.x device
ada0: Serial Number ZN90SFRG
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors)
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: <hp DVDRW GUD1N MD00> Removable CD-ROM SCSI device
cd0: Serial Number KMNH1NF4548
cd0: 150.000MB/s transfers (SATA 1.x, UDMA6, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
ugen0.1: <AMD XHCI root HUB> at usbus0
ugen2.1: <AMD EHCI root HUB> at usbus2
uhub0 on usbus2
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub1 on usbus0
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
Trying to mount root from ufs:/dev/ada0p2 [rw]...
ugen1.1: <AMD EHCI root HUB> at usbus1
uhub2 on usbus1
uhub2: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub1: 4 ports with 4 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus2
ugen1.2: <vendor 0x0438 product 0x7900> at usbus1
uhub3 on uhub2
uhub3: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus1
ugen2.2: <vendor 0x0438 product 0x7900> at usbus2
uhub4 on uhub0
uhub4: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus2
uhub3: 4 ports with 4 removable, self powered
uhub4: 4 ports with 4 removable, self powered
ugen2.3: <Generic HP Webcam> at usbus2
Setting hostuuid: e53de42b-8500-e711-b753-3c5282091017.
Setting hostid: 0x2c1005d3.
Starting file system checks:
/dev/ada0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0p2: clean, 232970551 free (69183 frags, 29112671 blocks, 0.0% fragmentation)
/dev/ada0p1: FILESYSTEM CLEAN; SKIPPING CHECKS
Mounting local filesystems:.
Loading kernel modules:
[drm] radeon kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] initializing kernel modesetting (MULLINS 0x1002:0x9851 0x103C:0x82F6 0x40).
[drm] doorbell mmio base: 0xF0000000
[drm] doorbell mmio size: 8388608
[drm ERROR :radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO
ATOM BIOS: AMD
drmn0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
drmn0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[drm] Detected VRAM RAM=1024M, BAR=256M
[drm] RAM width 128bits DDR
[drm] radeon: 1024M of VRAM memory ready
[drm] radeon: 2048M of GTT memory ready.
[drm] Loading mullins Microcode
drmn0: successfully loaded firmware image 'radeon/mullins_pfp.bin'
drmn0: successfully loaded firmware image 'radeon/mullins_me.bin'
drmn0: successfully loaded firmware image 'radeon/mullins_ce.bin'
drmn0: successfully loaded firmware image 'radeon/mullins_mec.bin'
drmn0: successfully loaded firmware image 'radeon/mullins_rlc.bin'
drmn0: successfully loaded firmware image 'radeon/mullins_sdma.bin'
[drm] Internal thermal controller without fan control
[drm] radeon: dpm initialized
drmn0: successfully loaded firmware image 'radeon/bonaire_uvd.bin'
[drm] Found UVD firmware Version: 1.64 Family ID: 9
drmn0: successfully loaded firmware image 'radeon/BONAIRE_vce.bin'
[drm] Found VCE firmware/feedback version 40.2.2 / 15!
[drm] GART: num cpu pages 524288, num gpu pages 524288
[drm] PCIE GART of 2048M enabled (table at 0x000000000030E000).
drmn0: WB enabled
drmn0: fence driver on ring 0 use gpu addr 0x0000000040000c00
drmn0: fence driver on ring 1 use gpu addr 0x0000000040000c04
drmn0: fence driver on ring 2 use gpu addr 0x0000000040000c08
drmn0: fence driver on ring 3 use gpu addr 0x0000000040000c0c
drmn0: fence driver on ring 4 use gpu addr 0x0000000040000c10
drmn0: fence driver on ring 5 use gpu addr 0x0000000000078d30
drmn0: fence driver on ring 6 use gpu addr 0x0000000040000c18
drmn0: fence driver on ring 7 use gpu addr 0x0000000040000c1c
drmn0: radeon: using MSI.
[drm] radeon: irq initialized.
[drm] ring test on 0 succeeded in 3 usecs
[drm] ring test on 1 succeeded in 2 usecs
[drm] ring test on 2 succeeded in 2 usecs
[drm] ring test on 3 succeeded in 4 usecs
[drm] ring test on 4 succeeded in 4 usecs
[drm] ring test on 5 succeeded in 1 usecs
[drm] UVD initialized successfully.
[drm] ring test on 6 succeeded in 19 usecs
[drm] ring test on 7 succeeded in 2 usecs
[drm] VCE initialized successfully.
[drm] ib test on ring 0 succeeded in 0 usecs
[drm] ib test on ring 1 succeeded in 0 usecs
[drm] ib test on ring 2 succeeded in 0 usecs
[drm] ib test on ring 3 succeeded in 0 usecs
[drm] ib test on ring 4 succeeded in 0 usecs
[drm] ib test on ring 5 succeeded
[drm] ib test on ring 6 succeeded
[drm] ib test on ring 7 succeeded
lkpi_iicbb0: <LinuxKPI I2CBB> on drmn0
iicbb0: <I2C bit-banging driver> on lkpi_iicbb0
iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
iic0: <I2C generic I/O> on iicbus0
lkpi_iicbb1: <LinuxKPI I2CBB> on drmn0
iicbb1: <I2C bit-banging driver> on lkpi_iicbb1
iicbus1: <Philips I2C bus> on iicbb1 addr 0xff
iic1: <I2C generic I/O> on iicbus1
lkpi_iicbb2: <LinuxKPI I2CBB> on drmn0
iicbb2: <I2C bit-banging driver> on lkpi_iicbb2
iicbus2: <Philips I2C bus> on iicbb2 addr 0xff
iic2: <I2C generic I/O> on iicbus2
lkpi_iicbb3: <LinuxKPI I2CBB> on drmn0
iicbb3: <I2C bit-banging driver> on lkpi_iicbb3
iicbus3: <Philips I2C bus> on iicbb3 addr 0xff
iic3: <I2C generic I/O> on iicbus3
lkpi_iicbb4: <LinuxKPI I2CBB> on drmn0
iicbb4: <I2C bit-banging driver> on lkpi_iicbb4
iicbus4: <Philips I2C bus> on iicbb4 addr 0xff
iic4: <I2C generic I/O> on iicbus4
lkpi_iicbb5: <LinuxKPI I2CBB> on drmn0
iicbb5: <I2C bit-banging driver> on lkpi_iicbb5
iicbus5: <Philips I2C bus> on iicbb5 addr 0xff
iic5: <I2C generic I/O> on iicbus5
lkpi_iicbb6: <LinuxKPI I2CBB> on drmn0
iicbb6: <I2C bit-banging driver> on lkpi_iicbb6
iicbus6: <Philips I2C bus> on iicbb6 addr 0xff
iic6: <I2C generic I/O> on iicbus6
lkpi_iicbb7: <LinuxKPI I2CBB> on drmn0
iicbb7: <I2C bit-banging driver> on lkpi_iicbb7
iicbus7: <Philips I2C bus> on iicbb7 addr 0xff
iic7: <I2C generic I/O> on iicbus7
lkpi_iic0: <LinuxKPI I2C> on drm1
iicbus8: <Philips I2C bus> on lkpi_iic0
iic8: <I2C generic I/O> on iicbus8
[drm] radeon atom DIG backlight initialized
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm]   eDP-1
[drm]   HPD1
[drm]   DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
[drm]   Encoders:
[drm]     LCD1: INTERNAL_UNIPHY
[drm] Connector 1:
[drm]   HDMI-A-1
[drm]   HPD2
[drm]   DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
[drm]   Encoders:
[drm]     DFP1: INTERNAL_UNIPHY
[drm] fb mappable at 0xE0731000
[drm] vram apper at 0xE0000000
[drm] size 4325376
[drm] fb depth is 24
[drm]    pitch is 5632
VT: Replacing driver "efifb" with new "fb".
start FB_INFO:
type=11 height=768 width=1366 depth=32
pbase=0xe0731000 vbase=0xfffff800e0731000
name=drmn0 flags=0x0 stride=5632 bpp=32
end FB_INFO
[drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0
Autoloading module: acpi_wmi
Autoloading module: if_rtwn_pci
Autoloading module: intpm
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
rtwn0: <Realtek RTL8188EE> port 0x3000-0x30ff mem 0xf0c00000-0xf0c03fff irq 36 at device 0.0 on pci1
rtwn0: MAC/BB RTL8188EE, RF 6052 1T1R
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: Embedded MOF found
ACPI: \134_SB.WMID.WQAB: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
driver bug: Unable to set devclass (class: ppc devname: (unknown))
Setting up harvesting: PURE_RDRAND,[CALLOUT],[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
Setting hostname: RB_HP_FreeBSD_2.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/perl5/5.36/mach/CORE /usr/local/lib/qt5 /usr/local/lib/qt6 /usr/local/lib/samba4 /usr/local/llvm15/lib /usr/local/share/chromium
32-bit compatibility ldconfig path: /usr/lib32 /usr/lib32
wlan0: Ethernet address: 28:56:5a:82:d7:63
Created wlan(4) interfaces: wlan0.
re0: link state changed to DOWN
lo0: link state changed to UP
Starting wpa_supplicant.
Starting Network: lo0 re0 wlan0.
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether 3c:52:82:09:10:17
    media: Ethernet autoselect (none)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=0
    ether 28:56:5a:82:d7:63
    groups: wlan
    ssid "" channel 1 (2412 MHz 11b)
    regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
    deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 wme roaming MANUAL
    bintval 0
    parent interface: rtwn0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Starting Network: re0.
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether 3c:52:82:09:10:17
    media: Ethernet autoselect (none)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Waiting 30s for the default route interface:
wlan0: link state changed to UP
......(wlan0)
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Clearing /tmp (X related).
Creating and/or trimming log files.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
No core dumps found.
Starting default moused.
Starting powerd.
Mounting late filesystems:.
Starting dbus.
Starting cron.
Configuring vt: keymap.
Performing sanity check on sshd configuration.
Starting sshd.
Starting sddm.
Starting background file system checks in 60 seconds.

Tue Sep  3 20:38:45 EDT 2024

Code:
root@RB_HP_FreeBSD_2:~ # cat /var/log/Xorg.0.log | nc termbin.com 9999
https://termbin.com/8lh0

Looks like I will have to take one step at a time, and proceed slowly for the next day or so.
 
Looks like you have a good chance to get Kernel Mode Setting (KMS)**** working on your laptop.
For your laptop you need:
I read through your above instructions this afternoon, I prepared my own notes, and I feel like I'm ready to give it a serious attempt on Monday. Thanks again for the assistance.
 
Well, I seem to have stubbed my toe once again this afternoon, and I'm not sure how I fell onto this latest stumbling block. See below:

Code:
root@RB_HP_FreeBSD_2:/usr/ports/graphics/drm-61-kmod #  make install clean
===>  Building for drm-61-kmod-6.1.92
/bin/mkdir -p /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/obj
(cd /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0 ; /usr/bin/env MAKEOBJDIRPREFIX=/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/obj KMODDIR="/boot/modules" SYSDIR="/usr/src/sys" NO_XREF=yes XDG_DATA_HOME=/usr/ports/graphics/drm-61-kmod/work  XDG_CONFIG_HOME=/usr/ports/graphics/drm-61-kmod/work  XDG_CACHE_HOME=/usr/ports/graphics/drm-61-kmod/work/.cache  HOME=/usr/ports/graphics/drm-61-kmod/work PATH=/usr/ports/graphics/drm-61-kmod/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/usr/ports/graphics/drm-61-kmod/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing  " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/bin/make obj)
make[1]: "/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/Makefile" line 4: Cannot open /usr/src/sys/conf/kern.opts.mk
make[1]: Fatal errors encountered -- cannot continue
make[1]: stopped in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-61-kmod
root@RB_HP_FreeBSD_2:/usr/ports/graphics/drm-61-kmod #

As you can see, I navigated to the directory for my graphics driver, but when I attempted to invoke, make install clean, I received the above error stating, Cannot open /usr/src/sys/conf/kern.opts.mk. Hmmm....I attempted to look inside the directory mentioned within the above error message, but when I looked inside, the directory was completely empty. Hmm. Well, I guess that I will try to work on it some more tomorrow.
 
# git clone -b releng/14.1 --depth 1 https://git.freebsd.org/src.git /usr/src
Thank you so much for the above information, I will give it a try tomorrow morning. Also, I thought that I had installed git by doing something similar to the below command
Code:
# pkg install git
However, I don't have my test laptop in front of me at the moment, so I'm not completely sure about that. On small step at a time, eventually I will get over the hump.
 
Well, I was able to update my sources, and to also install the drivers for my graphics hardware via the ports method, but after I was done, my laptop would reboot during loading kernel modules.

I was able to use my bootable USB to mount my "/" directory, and to make changes to /etc/rc.conf. My laptop is now bootable, but without Xfce. However, I do have a command prompt which I case us.

I tried to plan my steps out as thoroughly as possible, and I've attached my own notes which I used as a guide during this latest attempt.

Code:
STEP ONE:  Kernel Module
drm-61-kmod DRM drivers module

cd /usr/ports/graphics/drm-61-kmod/ && make install clean

File Location: /boot/modules/amdgpu.ko
(As referenced by kld_list="amdgpu" in /etc/rc.conf)

***********************************************************************************************************

STEP TWO: Xorg Modesetting Driver
xf86-video-amdgpu

cd /usr/ports/x11-drivers/xf86-video-amdgpu/ && make install clean

File Location: /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
(As referenced in /usr/local/etc/X11/xorg.conf.d/amdgpu.conf, see below example

Example ----------------------------------------------------------------
Section "Device"
    Identifier "Card0"
    Driver     "amdgpu"
EndSection
-------------------do not include dotted lines---------------------


******************************************************************************************************************************

STEP THREE:  Appropriate Firmware
gpu-firmware-amd-kmod

cd /usr/ports/graphics/gpu-firmware-amd-kmod/ && make install clean

File Location: Location unknown, Reference unknown

**********************************************************************************************************************************

STEP FOUR:  MISC CONSIDERATION
AMD A6-7310 APU with AMD Radeon R4 Graphics has GPU architecture code named MULLINS.  Mullins is explicitly mentioned as supported by amdgpu(4) contained in x11-drivers/xf86-video-amdgpu as stated in its port description. (See below description)
:
--------------------------------------------------------------------
Description:
    This package contains the X.Org xf86-video-amdgpu driver.

    The amdgpu driver supports AMD Radeon chipsets: OLAND, HAINAN, TAHITI, PITCAIRN,
    VERDE, BONAIRE, KABINI, MULLINS, KAVERI, HAWAII, TOPAZ, TONGA, CARRIZO, FIJI,
    STONEY, POLARIS11, POLARIS10
----------f86-video-amdgpu driver mentioned in step two------------

Also, Mullins release date is Jun 11th, 2014, making Mullins a post Tahiti (2012) product, therefore, the appropriate listing
in rc.conf should be, kld_list="amdgpu"

--------------------------------------------------------------------
You need to build the port graphics/drm-61-kmod (mentioned in step one) to create and install its package on your laptop, instead of trying to use pkg install ... drm-61-kmod as a package isn't available for 14.1 at the moment. This particular port happens to be suited only for 14.1-RELEASE on wards. During the 3 months overlap period of 14.0-RELEASE and 14.1-RELEASE all FreeBSD packages on the remote servers are build for 14.0 and not 14.1.* After the overlap period ends 14.0 is EOL (see: end of support for 14.0), and then 14.1-RELEASE is the only release version of the 14 branch that is supported and all packages are build against 14.1-RELEASE.
 
Please post the output of:
  1. freebsd-version -kru
  2. pkg info drm-61-kmod
  3. dmesg -a
  4. kldstat
  5. kldload amdgpu
  6. dmesg -a
If kldload causes a reboot, try, if you can, describe what you see on the screen or take a photo.
 
Below is a picture of my laptop screen rebooting following kldload.

kldload_amdgpu_b.jpg
 
Please post the output of:
  1. freebsd-version -kru
  2. pkg info drm-61-kmod
  3. dmesg -a
  4. kldstat
  5. kldload amdgpu
  6. dmesg -a
If kldload causes a reboot, try, if you can, describe what you see on the screen or take a photo.
1. freebsd-version.
Code:
14.1-RELEASE-p4
14.1-RELEASE-p4
14.1-RELEASE-p4
 
2. pkg info drm-61-kmod

Code:
drm-61-kmod-6.1.92

Name           : drm-61-kmod

Version        : 6.1.92

Installed on   : Fri Sep 13 09:27:56 2024 EDT

Origin         : graphics/drm-61-kmod

Architecture   : FreeBSD:14:amd64

Prefix         : /usr/local

Categories     : kld graphics

Licenses       : MIT and GPLv2 and BSD2CLAUSE

Maintainer     : x11@FreeBSD.org

WWW            : https://github.com/freebsd/drm-kmod/

Comment        : DRM drivers modules

Annotations    :

    FreeBSD_version: 1401000

Flat size      : 17.0MiB

Description    :

amdgpu, i915, and radeon DRM drivers modules.

Currently corresponding to Linux 6.1 DRM.

This version is for FreeBSD 14-STABLE 1400508

and above.
 
3. dmesg -a

Unfortuntaly the output was too long, so I had to include it as a txt file.
 

Attachments

  • dmesg_a.txt
    87.5 KB · Views: 4
4. kldstat

Code:
Id Refs Address                Size Name

 1   15 0xffffffff80200000  1f370e8 kernel

 2    1 0xffffffff82c30000     3390 acpi_wmi.ko

 3    1 0xffffffff82c34000     9217 if_rtwn_pci.ko

 4    1 0xffffffff82c3e000    19140 rtwn.ko

 5    1 0xffffffff82c58000     3220 intpm.ko

 6    1 0xffffffff82c5c000     2178 smbus.ko
 
5. kldload amdgpu

See above picture in previous post.
(Now seem to be stuck in a boot loop, but I can get around it by picking option three at the boot menu.)
 
6. dmesg -a

Unfortunately, I'm not certain if this is the first or second dmesg I did, as I had a little mishap with file names while trying to output them to a USB thumb drive.
 

Attachments

  • dmesg_bb.txt
    28.3 KB · Views: 8
Back
Top