Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firmware loader ---> Question & Bug [slv]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Thu Aug 01, 2024 1:41 pm    Post subject: Firmware loader ---> Question & Bug [slv] Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Thu Aug 01, 2024 3:29 pm    Post subject: Reply with quote

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 ... ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Thu Aug 01, 2024 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Thu Aug 01, 2024 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Fri Aug 02, 2024 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3035

PostPosted: Fri Aug 02, 2024 6:41 am    Post subject: Re: Firmware loader ---> Question & Bug Reply with quote

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
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3035

PostPosted: Fri Aug 02, 2024 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Fri Aug 02, 2024 1:42 pm    Post subject: Re: Firmware loader ---> Question & Bug Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Fri Aug 02, 2024 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1337
Location: Tri-Cities, WA USA

PostPosted: Fri Aug 02, 2024 1:52 pm    Post subject: Reply with quote

Code:
My mistake was exiting to save rather than save then exit.

_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum