Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about graphical
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
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 60

PostPosted: Tue Jun 18, 2024 9:13 pm    Post subject: question about graphical Reply with quote

hello
i have this problem : https://bpa.st/ODNQ
I'm on xfce and the graphical interface still works, I don't understand
i follow this tutorial : https://wiki.gentoo.org/wiki/AMDGPU
all modules are selected in the kernel
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4889
Location: Bavaria

PostPosted: Tue Jun 18, 2024 11:24 pm    Post subject: Re: question about graphical Reply with quote

pabloblo wrote:
all modules are selected in the kernel

Maybe a typo ... ? ;-)
Just show us (copy it) the line CONFIG_EXTRA_FIRMWARE="... from your kernel .config
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 60

PostPosted: Wed Jun 19, 2024 11:40 am    Post subject: Reply with quote

hello pietinger,
yes i found this line, CONFIG_EXTRA_FIRMWARE=""
this is in the .config, there is no extra firmaware but i installed it, i have sys-kernel/linux-firmware-20240610
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2232

PostPosted: Wed Jun 19, 2024 1:46 pm    Post subject: Reply with quote

pabloblo wrote:
hello pietinger,
yes i found this line, CONFIG_EXTRA_FIRMWARE=""
this is in the .config, there is no extra firmaware but i installed it, i have sys-kernel/linux-firmware-20240610


You need to integrate the firmware in the kernel if you have the drivers statically compile into the kernel. The firmware is not available until filesystems are mounted and this happens after the drivers are loaded. You can verify that by running:

Code:
dmesg | grep firmware


It'll print a bunch of errors of firmware not being found.

Best Regards,
Georgi


Last edited by logrusx on Wed Jun 19, 2024 3:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54550
Location: 56N 3W

PostPosted: Wed Jun 19, 2024 1:50 pm    Post subject: Reply with quote

pabloblo,

That's required but not sufficient.

If you build any module that needs firmware as built into the kernel its firmware must be listed in CONFIG_EXTRA_FIRMWARE=""
For built in modules, firmware is loaded as part of initailsation which happens before root is mounted. Therefore /lib/firmware cannot be read.
Firmware listed in CONFIG_EXTRA_FIRMWARE="" is copied into the kernel at kernel build time, so it works.

When you choose to build modules that need firmware as loadable modules, they are not loaded until after root is mounted, so /lib/firmware can be used too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4889
Location: Bavaria

PostPosted: Wed Jun 19, 2024 1:53 pm    Post subject: Reply with quote

pabloblo,

The same Neddy already said you can find here also:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware

:lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 60

PostPosted: Wed Jun 19, 2024 2:11 pm    Post subject: Reply with quote

ok I will read this page, thx
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 817
Location: over here

PostPosted: Wed Jun 19, 2024 2:15 pm    Post subject: Reply with quote

I've been attacking the same thing today with an intel skylake cpu, building in the firmware did not help. After some searching I found this

Code:
 generix February 28, 2024, 11:27am 8

For your cpu, likely setting
CONFIG_EXTRA_FIRMWARE
to
i915/skl_dmc_ver1_27.bin i915/skl_guc_70.1.1.bin i915/skl_huc_2.0.0.bin
and
CONFIG_EXTRA_FIRMWARE_DIR
to
/lib/firmware
should be necessary.




Applied the suggest changes (meaning guc and huc), rebuilt kernel + initramfs, rebooted and still got the error in dmesg.

Code:
CONFIG_EXTRA_FIRMWARE="i915/skl_dmc_ver1_27.bin.zst i915/skl_guc_70.1.1.bin.zst i915/skl_huc_2.0.0.bin.zst regulatory.db regulatory.db.p7s iwlwifi-7265D-29.ucode.zst"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_FW_LOADER_COMPRESS_ZSTD=y


Then build i915 as a module, rebuilt etc. and the firmware loaded successfully.

Any light to be shed on this?
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4889
Location: Bavaria

PostPosted: Wed Jun 19, 2024 2:28 pm    Post subject: Reply with quote

mrbassie wrote:
I've been attacking the same thing today with an intel skylake cpu, building in the firmware did not help. [...]

Applied the suggest changes (meaning guc and huc), rebuilt kernel + initramfs, rebooted and still got the error in dmesg.

Code:
CONFIG_EXTRA_FIRMWARE="i915/skl_dmc_ver1_27.bin.zst i915/skl_guc_70.1.1.bin.zst i915/skl_huc_2.0.0.bin.zst regulatory.db regulatory.db.p7s iwlwifi-7265D-29.ucode.zst"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_FW_LOADER_COMPRESS_ZSTD=y


Then build i915 as a module, rebuilt etc. and the firmware loaded successfully.

Any light to be shed on this?

If you want configure your i915 statically into your kernel AND you need firmware for it THEN you should use uncompressed firmware files (== dont set use-flag "compress-zstd" for package "linux-firmware") because <Help> of CONFIG_FW_LOADER_COMPRESS says:
Quote:
Compressed firmware support does not apply to firmware images that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54550
Location: 56N 3W

PostPosted: Wed Jun 19, 2024 2:35 pm    Post subject: Reply with quote

mrbassie,

There is a knob in gentoo-sources to list the firmware in dmesg as it loads.

I suspect that you have one or more firmware files missing from your CONFIG_EXTRA_FIRMWARE= list, or as you cite versions, the module want's to load a version you don't list.
Thus building works as all the bits are found but runtime files as its an incomplete/incorrect list of files.
Firmware files change with kernel versions, which makes built in fragile.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2232

PostPosted: Wed Jun 19, 2024 3:13 pm    Post subject: Reply with quote

To add to Pietinger's comment, compressing firmware and/or microcode does not make sense. Those are binary data files which not only do not benefit from compression but also compression might increase the size because of compression overhead(headers, dictionaries, et.c. which are useless with binary data).

The kernel need the firmware/microcode at boot time, which automatically eliminates compression.

Best Regards,
Georgi
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 817
Location: over here

PostPosted: Wed Jun 19, 2024 6:28 pm    Post subject: Reply with quote

NeddySeagoon wrote:
mrbassie,

There is a knob in gentoo-sources to list the firmware in dmesg as it loads.

I suspect that you have one or more firmware files missing from your CONFIG_EXTRA_FIRMWARE= list, or as you cite versions, the module want's to load a version you don't list.
Thus building works as all the bits are found but runtime files as its an incomplete/incorrect list of files.
Firmware files change with kernel versions, which makes built in fragile.


I added skl_dmc_ver1_27.bin is because that's what dmesg complained about failing to load. I assumed specificity was deriguer. Could I just put skl_dmc_ver1? (there is no ver2) Or skl_dmc?


pietinger wrote:

If you want configure your i915 statically into your kernel AND you need firmware for it THEN you should use uncompressed firmware files (== dont set use-flag "compress-zstd" for package "linux-firmware") because <Help> of CONFIG_FW_LOADER_COMPRESS says:
Quote:
Compressed firmware support does not apply to firmware images that are built into the kernel image (CONFIG_EXTRA_FIRMWARE).



Missed that bit. Cheers.
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.


Last edited by mrbassie on Wed Jun 19, 2024 6:39 pm; edited 2 times in total
Back to top
View user's profile Send private message
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 60

PostPosted: Wed Jun 19, 2024 6:29 pm    Post subject: Reply with quote

YOUPIE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
all works fine here, lightdm work! never seen that before!!
haha! yes yes yes
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54550
Location: 56N 3W

PostPosted: Wed Jun 19, 2024 7:00 pm    Post subject: Reply with quote

Well done pabloblo!

What made lightdm work?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4889
Location: Bavaria

PostPosted: Wed Jun 19, 2024 7:30 pm    Post subject: Reply with quote

mrbassie wrote:
Missed that bit. Cheers.

No problem - glad I could help. :D
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4889
Location: Bavaria

PostPosted: Wed Jun 19, 2024 7:31 pm    Post subject: Reply with quote

pabloblo wrote:
YOUPIE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
all works fine here, lightdm work! never seen that before!!
haha! yes yes yes

Yes ... I know this feeling ... :lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 60

PostPosted: Wed Jun 19, 2024 11:04 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Well done pabloblo!

What made lightdm work?


when I followed this tutorial: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware
it worked straight away
thx for all
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