Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EFI stub kernel not working after upgrade (4.12.5) [SOLVED]
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
Azimoth
n00b
n00b


Joined: 24 Jul 2016
Posts: 34

PostPosted: Tue Aug 15, 2017 11:51 am    Post subject: EFI stub kernel not working after upgrade (4.12.5) [SOLVED] Reply with quote

Hi,

I just tried to upgrade from one stable kernel (4.9.34) to another (4.12.5), but the new kernel is stuck at boot.

The problem alreay existed with 4.10.x kernels so I stayed with 4.9 and hoped for this to be solved with the stabilized kernel.

The system:

- Macbook Pro 8,1 (early 2011)
- Sandy Bridge CPU
- LUKS encrypted BTRFS
- the corresponding .config for the 4.12.5 kernel

I setup the system following Sakaki's EFI Guide
Accordingly I use Sakaki's buildkernel command for kernel upgdates.

How it should work:

As usual on a Mac the screen turns white after the start chime.
If it was a pure Apple system the apple logo would appear now, but since I'm using a EFI stub kernel, the screen remains white for about 13-14 seconds until text output starts to fly by, eventually resulting in a password request to decrypt the hard drive. (By default with plymouth)

The symptoms:
The screen simply remains white forever (well, I never waited longer than 2-3 minutes).

Theories:
iamben from the #gentoo IRC suggested there might be something wrong with the framebuffer, yet there was no way to narrow down the problem.
His best guess was to try to disable FB_EFI, which I did, but this did not change anything.

The question: What change from kernel 4.9 to 4.1x might have caused this problem? What do I have to do to fix this?


Last edited by Azimoth on Thu Aug 17, 2017 5:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Azimoth
n00b
n00b


Joined: 24 Jul 2016
Posts: 34

PostPosted: Thu Aug 17, 2017 5:47 pm    Post subject: Reply with quote

Thanks to the help and patience of Sakaki I found the solution.

The problem was caused by this part of the kernel .config:

Code:
212,214c212,214
< # CONFIG_INITRAMFS_COMPRESSION_NONE is not set
< CONFIG_INITRAMFS_COMPRESSION_XZ=y
< CONFIG_INITRAMFS_COMPRESSION=".xz"
---
> CONFIG_INITRAMFS_COMPRESSION_NONE=y
> # CONFIG_INITRAMFS_COMPRESSION_XZ is not set
> CONFIG_INITRAMFS_COMPRESSION=""


The upper is the configuration that finally works.
The lower configuration is what it looked like after make oldconfig updated the 4.9.34 .config, which hung at boot.

I have no explanation that I fully understand, but this patch description sounds to me like it described my problem.
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