Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:23:27 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
On 20/08/2024 22:16, Peter B÷hm wrote:
Hello Alan,
Anyhow, I'm up to the stage of configuring the kernel, and I'm stuck at
the bit where I need to specify the firmware to be incorporated into the >> kernel for the integrated graphics processor.
Yes, you surely will need some firmware files for your GPU of your AMD CPU. The
easiest way to find out what you need is:
The other thing I'll throw in is do you actually want to load the
firmware into the kernel?
Or do you want to build the video driver as a module, and let it
choose what it wants.
I had great grief trying to build the correct firmware into the kernel,
gave up and went down the module route (no I don't like having drivers
for base hardware as modules), and the relief when it "just worked".
So think about that ...
Cheers,
Wol
Hello Alan,
Anyhow, I'm up to the stage of configuring the kernel, and I'm stuck at
the bit where I need to specify the firmware to be incorporated into the
kernel for the integrated graphics processor.
Yes, you surely will need some firmware files for your GPU of your AMD CPU. The
easiest way to find out what you need is:
Hello, Peter.
On Tue, Aug 20, 2024 at 23:16:39 +0200, Peter Böhm wrote:
Hello Alan,
Anyhow, I'm up to the stage of configuring the kernel, and I'm stuck at the bit where I need to specify the firmware to be incorporated into the kernel for the integrated graphics processor.
Yes, you surely will need some firmware files for your GPU of your AMD
CPU. The easiest way to find out what you need is:
Boot with our GentooLiveCD (*) and ask:
"dmesg | grep firmware"
I've done that, and see just three firmware files:
regulatory.db
regulatory.db.p7s
rtl_nic/rtl8125b-2.fw
.. The first, according to file, is a wireless regulatory database file.
The second is some variant of this, I think a signed version or
something. The third is surely firmware for my Realtek 8125 Ethernet
chip.
That's not yet got me very far.
Boot with our GentooLiveCD (*) and ask:
"dmesg | grep firmware"
I've done that, and see just three firmware files:
Hello Alan,
Anyhow, I'm up to the stage of configuring the kernel, and I'm stuck at
the bit where I need to specify the firmware to be incorporated into the kernel for the integrated graphics processor.
Yes, you surely will need some firmware files for your GPU of your AMD CPU. The
easiest way to find out what you need is:
Boot with our GentooLiveCD (*) and ask:
"dmesg | grep firmware"
You will see every loaded firmware file ... notice it and build it into your kernel. ;-)
*) It must be our GentooCD because we have a kernel patch for logging the loading of firmware files.
Many Greetings,
Peter
P.S.: Maybe you know this already ? ->
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/ Manual_kernel_configuration
On Wednesday, 21 August 2024 12:15:22 BST Alan Mackenzie wrote:
Hello, Peter.
On Tue, Aug 20, 2024 at 23:16:39 +0200, Peter B÷hm wrote:
Hello Alan,
Anyhow, I'm up to the stage of configuring the kernel, and I'm stuck at the bit where I need to specify the firmware to be incorporated into the
kernel for the integrated graphics processor.
Yes, you surely will need some firmware files for your GPU of your AMD CPU. The easiest way to find out what you need is:
Boot with our GentooLiveCD (*) and ask:
"dmesg | grep firmware"
I've done that, and see just three firmware files:
regulatory.db
regulatory.db.p7s
rtl_nic/rtl8125b-2.fw
.. The first, according to file, is a wireless regulatory database file. The second is some variant of this, I think a signed version or
something. The third is surely firmware for my Realtek 8125 Ethernet
chip.
That's not yet got me very far.
You'll need the above if you using WiFi, but for your graphics can you please take a look/share the output of:
lspci | grep -i VGA
and
lshw -C cpu
lshw -C display
The above will show which APU you are using and its GPU cores. Then it is a matter of looking here for the corresponding GPU chipset and microarchitecture
you need to enable in the kernel:
https://wiki.gentoo.org/wiki/AMDGPU#Feature_support
before you check what firmware blobs you also need to include, from this table:
https://wiki.gentoo.org/wiki/AMDGPU#Firmware_blobs_for_a_known_card_model
Alternatively, as Wol mentioned, you can set up your kernel graphics drivers as modules (temporarily) and inspect dmesg to find out what firmware is being loaded. Then use this information to add the firmware file names to be built in the kernel and also configure to be built-in any kernel graphics drivers.
Hello, Michael.[snip ...]
On Wed, Aug 21, 2024 at 12:37:53 +0100, Michael wrote:
lspci | grep -i VGA
I've tried that already. I get
VGA compatible controller, Advanced Micro Devices, Inc [AMD/ATI] Raphael (rev c4)
, which fails to identify the GPU cores. Raphael, I believe, is just the code name for the entire processor.
and
lshw -C cpu
lshw -C display
They don't give me any more information, either.
The above will show which APU you are using and its GPU cores. Then it is a matter of looking here for the corresponding GPU chipset and microarchitecture you need to enable in the kernel:
https://wiki.gentoo.org/wiki/AMDGPU#Feature_support
I've tried that already. "Raphael" does not appear in that document.
Alternatively, as Wol mentioned, you can set up your kernel graphics drivers as modules (temporarily) and inspect dmesg to find out what firmware is being loaded. Then use this information to add the firmware file names to be built in the kernel and also configure to be built-inThat would involve me learning how to make and handle a modular kernel, something I'd really rather not have to do.
any kernel graphics drivers.
Why is the identity of the
necessary firmware for Ryzen APUs such a closely guarded secret?
That would involve me learning how to make and handle a modular kernel,
something I'd really rather not have to do.
Well, there's nothing to it really. Just configure your kernel with the drivers needed by your graphics card, but set them as modules. Then boot with
it and check dmesg. The kernel will load the modules and try to fetch the requisite firmware.
On 21/08/2024 14:49, Michael wrote:
That would involve me learning how to make and handle a modular kernel,
something I'd really rather not have to do.
Well, there's nothing to it really. Just configure your kernel with the drivers needed by your graphics card, but set them as modules. Then boot with it and check dmesg. The kernel will load the modules and try to
fetch the requisite firmware.
Just don't forget to "make modules" and "make modules_install". Then you
need to make sure it's included in any initramfs, so no it's not quite
as simple as "but set them as modules" if you don't have any other modules.
That said, I've always had a modular kernel and there really isn't
anything much to it - I just do my best (provided I can find them) to configure all the *required* drivers into the kernel, so if the module
system fails the system still boots, or if only sometimes need them,
modules aren't loaded until necessary to save ram.
Knowing how to boot a modular kernel is a sensible skill to have. And
booting the modular way (even if you don't actually have any modules) is
an easy and sensible thing to do.
Hello Alan,
Am Mittwoch, 21. August 2024, 13:15:22 CEST schrieben Sie:
Boot with our GentooLiveCD (*) and ask:
"dmesg | grep firmware"
I've done that, and see just three firmware files:
Have you used the GentooMinimalInstallationCD ?
Please try again with our GentoLIVE-CD.
Nothing. No trace of anything on my blank screen. I hate it when
people say that configuring a kernel is easy. It isn't, never has been,
and never will be.
You need all shown below to get console output.
---------
Under "Device Drivers ---> Firmware Drivers --->"
[*] Mark VGA/VBE/EFI FB as generic system framebuffer
Under "Device Drivers ---> Graphics support ---> Frame buffer Devices --->" <*> Support for frame buffer device drivers --->
[*] Provide legacy /dev/fb* device
Under "Device Drivers ---> Graphics support ---> Frame buffer Devices
<*> Support for frame buffer device drivers --->"[*] VESA VGA graphics support
[*] EFI-based Framebuffer Support
<*> Simple framebuffer support
Device Drivers-> Graphics support
Hello Alan,
Am Mittwoch, 21. August 2024, 19:26:11 CEST schrieb Alan Mackenzie:
Nothing. No trace of anything on my blank screen. I hate it when
people say that configuring a kernel is easy. It isn't, never has been, and never will be.
A black screen could be a missing FB device or FB console support.
Please see:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/ Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
If this does not help, I would need your .config file.
Many Greetings,
Peter (aka pietinger)
.
On Thursday, 22 August 2024 12:57:21 BST Alan Mackenzie wrote:
Is there an easy way to persuade portage to download the ebuild for gentoo-sources 6.6.38? Why have I got 6.6.47 instead?
6.6.47 is the current stable version.
Can't help with your more immediate problem, I'm afraid, because I don't use RAID.
Is there an easy way to persuade portage to download the ebuild for gentoo-sources 6.6.38? Why have I got 6.6.47 instead?
On Thursday, 22 August 2024 15:46:41 BST Peter Humphrey wrote:
On Thursday, 22 August 2024 12:57:21 BST Alan Mackenzie wrote:
Is there an easy way to persuade portage to download the ebuild for gentoo-sources 6.6.38? Why have I got 6.6.47 instead?
6.6.47 is the current stable version.
Can't help with your more immediate problem, I'm afraid, because I don't use
RAID.
Running a diff between my kernel .config files for gentoo-sources 6.6.38 and 6.6.47 I don't see anything relevant to RAID, although I don't have CONFIG_DM_RAID enabled on this system.
May be worth rechecking your raid configuration and how you ran mdadm, the NVMe UUIDs you've entered in fstab, etc.
It all seems to be working now, thanks!
Yes, 6.6.47 has become the new stable Gentoo kernel, and I've now
updated my old machine, and this worked without problem. This was
mainly to test that nothing RAID-wise had gone missing in the kernel.
It hadn't
On 22/08/2024 17:37, Alan Mackenzie wrote:
Yes, 6.6.47 has become the new stable Gentoo kernel, and I've now
updated my old machine, and this worked without problem. This was
mainly to test that nothing RAID-wise had gone missing in the kernel.
It hadn't
What version of mdraid? 0.97? or 1.x?
0.97 is in-kernel, and deprecated - as in "if it ain't broke, don't fix
it. If it is broke, it's not supported". I think there are a fair few
people who depend on it, though, so it tends to get fixed if something
goes wrong.
1.x is assembled in user space, so there are probably races with other
stuff in user space for completion. I run a somewhat messy boot stack,
but iirc my root space is just "rust, mdraid, lvm, root partition", and
it works just fine. But I do run systemd, and I might have had to make
sure there's something in the boot stack waiting for each bit to
complete in order.
My /home stack has dm-integrity between rust and raid, and boy did that really cause some grief getting that to behave. But that makes sure that
my raid-5 never sees a corrupt read, so I can recover from a damaged
disk as well as a lost disk.
I - allegedly - know about raid :-) , so if you give me a bit more info
I might be able to help. Or I might not ...
Cheers,
Wol