Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Recent removal of Firmware tree from Kernel
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
MarcoMarin
Apprentice
Apprentice


Joined: 12 Mar 2014
Posts: 151

PostPosted: Wed Apr 18, 2018 3:22 pm    Post subject: [Solved] Recent removal of Firmware tree from Kernel Reply with quote

Hi, I'm having a problem compiling the Kernel (4.15.13) and research suggests it's related to the following:

https://bugs.gentoo.org/637698
https://forums.gentoo.org/viewtopic-p-8158204.html?sid=92260392d92ef1718e20b97bad7e960c

However, I do not get that error about "* ERROR: Failed to compile the "firmware_install" target..."
I don't use GenKernel, but I do get the previous one:
Quote:
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in readonly section `.head.text'
ld: warning: creating a DT_TEXTREL in a shared object.

I was following the AMDGPU installation (and I've done it successfully before it was AMDGPU, flgx I think).

According to [1], it is removed from the tree. But I assume this is just to get the firmware (now through the linux-firmware package).

On the other hand, if this means menuconfig won't have the option anymore, how is the procedure now since the card requires the firmware?

Would a simple make mrproper solve it?
Regards.

[1] http://rglinuxtech.com/?p=2049


Last edited by MarcoMarin on Thu Apr 19, 2018 10:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Apr 18, 2018 3:37 pm    Post subject: Reply with quote

The driver requests the firmware and loads it. You have to make sure the firmware is where the driver expects it to be. Inspect dmesg for clues. The other option is manually configure the kernel to build the firmware in.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
MarcoMarin
Apprentice
Apprentice


Joined: 12 Mar 2014
Posts: 151

PostPosted: Wed Apr 18, 2018 4:17 pm    Post subject: Reply with quote

I am. I configure manually and compile it in. (like I did in the past)

Another possible solution is to fallback to the "stable" Gentoo Sources 4.9.76-r1 (it is before that 4.14 when they seem to have removed it)

But before I tried it, the kernel booted normally.

Edit: Also, I cannot check dmesg cause the kernel Panics on boot. Trying to access the logs from this installation seem to suggest it's not being logged (which file should I check? They all seem old, from the time the kernel booted normally.. that is, before I inserted the firmware)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Apr 18, 2018 8:58 pm    Post subject: Reply with quote

I do not believe the panic is firmware related. Generally all cards should work without as VGA devices, adding firmware enables advanced features.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Thu Apr 19, 2018 1:39 am    Post subject: Reply with quote

If the kernel panics, nothing will be written to local logs. You will need to record the message off the screen (pencil&paper, cellphone camera, serial console, netconsole, etc.) if you want to keep it past when you manually hard reset the system.

While I cannot be sure without more context, the cited warning seems unrelated to the firmware removal and unrelated to the panic.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Thu Apr 19, 2018 9:31 am    Post subject: Re: Recent removal of Firmware tree from Kernel Reply with quote

MarcoMarin wrote:
...
According to [1], it is removed from the tree. But I assume this is just to get the firmware (now through the linux-firmware package).

On the other hand, if this means menuconfig won't have the option anymore, how is the procedure now since the card requires the firmware?
...
[1] http://rglinuxtech.com/?p=2049

The wiki entry contains details on how to deal with the amdgpu firmware.
_________________
Greybeard
Back to top
View user's profile Send private message
MarcoMarin
Apprentice
Apprentice


Joined: 12 Mar 2014
Posts: 151

PostPosted: Thu Apr 19, 2018 10:15 am    Post subject: Reply with quote

Thanks all. The issue is solved, details FYI follow:

Quote:
I do not believe the panic is firmware related. Generally all cards should work without as VGA devices, adding firmware enables advanced features.


Indeed, it seems I went too far when disabling support for old P/ATA disks. :oops: Although, adding firmware (or conflicting fb drivers) can, at least, make everything blank. (as per the following thread)

The problem was pretty much the same as described here:
https://forums.gentoo.org/viewtopic-t-941030-view-next.html

My mistake was the same as the 2nd to last post there, except I thought the fbdev legacy emulation was needed only for X. :roll:

Once again, thanks for the prompt assistance.

Edit: The Kernel compilation warning does persist however:
Quote:
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in readonly section `.head.text'
ld: warning: creating a DT_TEXTREL in a shared object.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3627

PostPosted: Wed Sep 02, 2020 10:00 pm    Post subject: Reply with quote

MarcoMarin wrote:
Edit: The Kernel compilation warning does persist however:
Quote:
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in readonly section `.head.text'
ld: warning: creating a DT_TEXTREL in a shared object.

Plz cf: Gentoo forum
Thks 4 ur attention, interest & support.
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