Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] No rule to make target "gc_11_0_3_mes.bin"

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
babayusa
n00b
n00b
Posts: 13
Joined: Wed Jul 31, 2024 12:01 pm

No rule to make target "gc_11_0_3_mes.bin"

  • Quote

Post by babayusa » Wed Sep 25, 2024 8:16 pm

When trying to compile linux-6.6.52-gentoo from gentoo-sources it fails.
I followed the kernel upgrade guide, I reinstalled gentoo-sources and I tried "make clean" and "make prepare".
I get following errors (copied the spots with errors from make -j16):

Code: Select all

...
 CC      drivers/base/firmware_loader/builtin/main.o
  CC      fs/ntfs3/run.o
  CC      drivers/acpi/acpica/psutils.o
  CC      fs/ext4/xattr_security.o
  AR      drivers/dma-buf/built-in.a
  CC      kernel/trace/trace_seq.o
  UPD     drivers/base/firmware_loader/builtin/amdgpu/psp_13_0_10_sos.bin.gen.S
  UPD     drivers/base/firmware_loader/builtin/amdgpu/smu_13_0_10.bin.gen.S
  UPD     drivers/base/firmware_loader/builtin/amdgpu/dcn_3_2_0_dmcub.bin.gen.S
  UPD     drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_3_pfp.bin.gen.S
  UPD     drivers/base/firmware_loader/builtin/amdgpu/vcn_4_0_0.bin.gen.S
  UPD     drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_3_mes_2.bin.gen.S
make[6]: *** No rule to make target '/lib/firmware/amdgpu/gc_11_0_3_mes.bin', needed by 'drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_3_mes.bin.gen.o'.  Stop.
make[6]: *** Waiting for unfinished jobs....
  UPD     drivers/base/firmware_loader/builtin/amdgpu/gc_11_0_3_mes.bin.gen.S
make[5]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader/builtin] Error 2
make[4]: *** [scripts/Makefile.build:480: drivers/base/firmware_loader] Error 2
make[4]: *** Waiting for unfinished jobs....
  CC      kernel/irq_work.o
  CC      drivers/base/power/qos.o
  CC      drivers/acpi/acpica/pswalk.o
...
  CC      net/ipv4/sysctl_net_ipv4.o
  AR      drivers/base/power/built-in.a
  CC [M]  drivers/nvme/target/fabrics-cmd.o
make[3]: *** [scripts/Makefile.build:480: drivers/base] Error 2
make[3]: *** Waiting for unfinished jobs....
  CC      drivers/acpi/acpica/rsinfo.o
  CC      drivers/gpu/drm/drm_print.o
  CC      drivers/nvme/host/pr.o
...
  AR      drivers/gpu/drm/amd/amdgpu/built-in.a
  AR      drivers/gpu/drm/built-in.a
  AR      drivers/gpu/built-in.a
make[2]: *** [scripts/Makefile.build:480: drivers] Error 2
make[1]: *** [/usr/src/linux-6.6.52-gentoo/Makefile:1921: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
.config file 0x0
I have built some GPU firmware blobs into the kernel as a bad fix to some driver issue I had. This has been working perfectly fine with linux-6.6.47-gentoo. Maybe I missed something?

Thanks for any help!
Last edited by babayusa on Wed Sep 25, 2024 8:36 pm, edited 2 times in total.
Top
babayusa
n00b
n00b
Posts: 13
Joined: Wed Jul 31, 2024 12:01 pm

  • Quote

Post by babayusa » Wed Sep 25, 2024 8:32 pm

So I found out I am loading "amdgpu/gc_11_0_3_mes.bin" there only exists a "/lib/firmware/amdgpu/gc_11_0_3_mes1.bin". So this is the problem I'm guessing.

Since this worked perfectly fine before I'm guessing this got changed? Is there a website where I could look changes like these up in the future? Compiling the kernel tells me anyway but more info would still be appreciated. I'm not sure whether I can just add the 1 or if there's more to this.
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Sep 25, 2024 9:07 pm

babayusa,

I had the same problem before many years with intel firmware for my i915 too ... sometimes there is a new version and the old one is deleted :evil:
babayusa wrote:So this is the problem I'm guessing.
Yes.
babayusa wrote:Is there a website where I could look changes like these up in the future?
I dont know, but I dont think so.
babayusa wrote:Compiling the kernel tells me anyway but more info would still be appreciated.
Yes ... I had also only the error message for kernel building at that time.
babayusa wrote:I'm not sure whether I can just add the 1 or if there's more to this.
I dont think there is more to do.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
babayusa
n00b
n00b
Posts: 13
Joined: Wed Jul 31, 2024 12:01 pm

  • Quote

Post by babayusa » Thu Sep 26, 2024 5:40 pm

Alright, thanks for the info pietinger! appreciate you being helpful as always.

when I booted into the new kernel sway had DRM problems, I looked into dmesg and found which firmware was missing so I added it.

Apparently It only knows about some firmware when other firmware is loaded, so I (there's probably a better way), compiled my kernel three times adding the new bin listed everytime.

On the third reboot it had some issue I once already had with the Framebuffer when it gets stuck "Loading initial ramdisk ... ".
So I'm guessing there's still some firmware missing that causes something to not load.

Now I have to get a liveUSB and check it out.
I'm going to set up being able to list an old version of the kernel in Grub too so I don't have to do this again :´)).

Kind of annoying, both the having to recompile multiple times and this issue could have been resolved if there was some kind of list telling me which firmware bins to add in the first place.
I'll look into it and post it here if I find something, if I don't I'll post the list of firmware I had to add and what gpu I have here anyway, so others with the same problem will have it easier, more info couldn't hurt I guess :).
Top
grknight
Retired Dev
Retired Dev
Posts: 2556
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Sep 26, 2024 6:14 pm

babayusa wrote:Kind of annoying, both the having to recompile multiple times and this issue could have been resolved if there was some kind of list telling me which firmware bins to add in the first place.
I'll look into it and post it here if I find something, if I don't I'll post the list of firmware I had to add and what gpu I have here anyway, so others with the same problem will have it easier, more info couldn't hurt I guess :).
If you want to avoid this type of issue, make CONFIG_DRM_AMDGPU=m (aka a module) instead of built-in. Then, you never need to specify any firmware for AMDGPU in CONFIG_EXTRA_FIRMWARE, it will just load from disk at module load time.
Top
babayusa
n00b
n00b
Posts: 13
Joined: Wed Jul 31, 2024 12:01 pm

  • Quote

Post by babayusa » Thu Sep 26, 2024 6:53 pm

grknight I know. Wanted to have a monolithic (if that's what it's called) kernel for better security. But thank you.
Top
pietinger
Moderator
Moderator
Posts: 6617
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu Sep 26, 2024 6:57 pm

babayusa wrote:[...] if there was some kind of list telling me which firmware bins to add in the first place.
There is a "trick" you can use:

1. Boot with our GentooLiveCD ... it MUST be Gentoo because we have a kernel patch * (enabled by default) which shows all loaded firmware:
*)

Code: Select all

Gentoo Linux  --->
    [*] Print firmware information that the kernel attempts to load
2. Ask then:

Code: Select all

dmesg | grep firmware
Example from my machine:

Code: Select all

 ~ # dmesg | grep firmware
[    8.859243] Loading firmware: i915/adls_dmc_ver2_01.bin
[    8.859840] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adls_dmc_ver2_01.bin (v2.1)
[    8.873671] Loading firmware: i915/tgl_guc_70.bin
[    8.873780] Loading firmware: i915/tgl_huc.bin
[    8.877520] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin version 70.29.2
[    8.877524] i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
[   14.354377] Loading firmware: rtl_nic/rtl8125b-2.fw
3. Notice every file WITH directory

I have explained this also here:
https://wiki.gentoo.org/wiki/User:Pieti ... _you_start
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy