View previous topic :: View next topic |
Author |
Message |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Thu Aug 01, 2024 1:41 pm Post subject: Firmware loader ---> Question & Bug [slv] |
|
|
I am trying to follow the AMDGPU https://wiki.gentoo.org/wiki/AMDGPU instruction for a RADEON R7 240.
When I try to replace the current string from my /usr/src/linux/.config using "make menuconfig" the new pasted string does not replace what I removed.
I can manually edit the /usr/src/linux/.config file but "make menuconfig" does not work.
And ideas? As I mentioned I can directly edit the .config.
From AMDGPU instructions.
Device Drivers --->
Generic Driver Options --->
Firmware loader --->
[*] Firmware loading facility
(amdgpu/<YOUR-MODEL>.bin or radeon/<YOUR-MODEL>.bin) External firmware blobs to build into the kernel binary
(/lib/firmware) Firware blobs root directory
Code: |
-*- Firmware loading facility │ │
│ │ (radeon/oland_c) Build named firmware blobs into the kernel binary │ │
│ │ (/lib/firmware) Firmware blobs root directory │ │
│ │ [*] Enable the firmware sysfs fallback mechanism │ │
│ │ [*] Force the firmware sysfs fallback mechanism when possible │ │
│ │ [*] Enable compressed firmware support │ │
│ │ [*] Enable XZ-compressed firmware support │ │
│ │ [ ] Enable ZSTD-compressed firmware support │ │
│ │ [*] Enable firmware caching during suspend │ │
│ │ [ ] Enable users to initiate firmware updates using sysfs
|
_________________ Without diversity there can be no evolution:)
Last edited by cwc on Fri Aug 02, 2024 1:47 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4842 Location: Bavaria
|
Posted: Thu Aug 01, 2024 3:29 pm Post subject: |
|
|
Maybe you have tried to add something like this:
amdgpu/navy_flounder_{ce,me,mec2,rlc,smc,ta,dmcub,mec,pfp,sdma,sos,vcn}.bin
?
... which does not work ... you MUST add every file alone:
amdgpu/navy_flounder_ce.bin amdgpu/navy_flounder_me.bin amdgpu/navy_flounder_mec2.bin ...
P.S.: ... https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config ... ![Wink ;-)](images/smiles/icon_wink.gif) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Thu Aug 01, 2024 8:50 pm Post subject: |
|
|
I'll give this a try.
My mistake was exiting to save rather than save then exit.
Code: |
-*- Firmware loading facility │ │
│ │ (amdgpu/oland_{ce k_smc mc me pfp rlc smc uvd}.bin) Build named firmware blobs into the kernel binary │ │
│ │ (/lib/firmware) Firmware blobs root directory │ │
│ │ [*] Enable the firmware sysfs fallback mechanism │ │
│ │ [*] Force the firmware sysfs fallback mechanism when possible │ │
│ │ [*] Enable compressed firmware support │ │
│ │ [*] Enable XZ-compressed firmware support │ │
│ │ [ ] Enable ZSTD-compressed firmware support │ │
│ │ [*] Enable firmware caching during suspend │ │
│ │ [ ] Enable users to initiate firmware updates using sysfs │ │
│ │ │ │ ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > < Save > < Load >
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4842 Location: Bavaria
|
Posted: Thu Aug 01, 2024 10:07 pm Post subject: |
|
|
That won't work twice ...
cwc wrote: | Code: | [1]
(amdgpu/oland_{ce k_smc mc me pfp rlc smc uvd}.bin) Build named firmware blobs into the kernel binary
[2]
[*] Enable compressed firmware support |
|
... because line (1) is wrong (see my last post) ... AND you cannot use compressed firmware files WHEN you use built-in firmware; see also in the <Help>text of (2) ->
Quote: | Compressed firmware support does not apply to firmware images hat are built into the kernel image (CONFIG_EXTRA_FIRMWARE). |
This means also: You MUST emerge linux-firmware WITHOUT the use-flags "compress-xz" / "compress-zstd"
See also: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Fri Aug 02, 2024 12:53 am Post subject: |
|
|
this did not work for me:
amdgpu/oland_{ce k_smc mc me pfp rlc smc uvd}.bin
from these bin files:
amdgpu/oland_ce.bin amdgpu/oland_k_smc.bin amdgpu/oland_mc.bin amdgpu/oland_me.bin amdgpu/oland_pfp.bin amdgpu/oland_rlc.bin amdgpu/oland_smc.bin amdgpu/oland_uvd.bin
I'm trying the above now. It takes a few hours _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3035
|
Posted: Fri Aug 02, 2024 6:41 am Post subject: Re: Firmware loader ---> Question & Bug |
|
|
cwc wrote: | I can manually edit the /usr/src/linux/.config file. |
Please do not ever manually edit the kernel .config file, it will break your kernel config in strange ways. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3035
|
Posted: Fri Aug 02, 2024 6:43 am Post subject: |
|
|
cwc wrote: | this did not work for me:
amdgpu/oland_{ce k_smc mc me pfp rlc smc uvd}.bin |
As pietinger said, the kernel build does not understand bash expansions like {foo,bar} etc.
You must list out all the files one by one separated by spaces. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Fri Aug 02, 2024 1:42 pm Post subject: Re: Firmware loader ---> Question & Bug |
|
|
kimchi_sg wrote: | cwc wrote: | I can manually edit the /usr/src/linux/.config file. |
Please do not ever manually edit the kernel .config file, it will break your kernel config in strange ways. |
Thank you I was able to edited the Firmware loader using menuconfig
Adding the following:
amdgpu/oland_ce.bin amdgpu/oland_k_smc.bin amdgpu/oland_mc.bin amdgpu/oland_me.bin amdgpu/oland_pfp.bin amdgpu/oland_rlc.bin amdgpu/oland_smc.bin amdgpu/oland_uvd.bin _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Fri Aug 02, 2024 1:46 pm Post subject: |
|
|
kimchi_sg wrote: | cwc wrote: | this did not work for me:
amdgpu/oland_{ce k_smc mc me pfp rlc smc uvd}.bin |
As pietinger said, the kernel build does not understand bash expansions like {foo,bar} etc.
You must list out all the files one by one separated by spaces. |
Thank you kimchi_sg !
After reading the post again I see what I did wrong.
I did use the strings : amdgpu/oland_ce.bin amdgpu/oland_k_smc.bin amdgpu/oland_mc.bin amdgpu/oland_me.bin amdgpu/oland_pfp.bin amdgpu/oland_rlc.bin amdgpu/oland_smc.bin amdgpu/oland_uvd.bin
Interesting oland_k_smc.bin does not get picked up.
Code: |
dmesg -t | grep amdgpu | grep firmware
Loading firmware: amdgpu/oland_mc.bin
Loading firmware: amdgpu/oland_pfp.bin
Loading firmware: amdgpu/oland_me.bin
Loading firmware: amdgpu/oland_ce.bin
Loading firmware: amdgpu/oland_rlc.bin
Loading firmware: amdgpu/oland_smc.bin
Loading firmware: amdgpu/oland_uvd.bin
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1337 Location: Tri-Cities, WA USA
|
Posted: Fri Aug 02, 2024 1:52 pm Post subject: |
|
|
Code: | My mistake was exiting to save rather than save then exit. |
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|