Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MacBook Pro Kernel .config please
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
dkasak
n00b
n00b


Joined: 10 Feb 2012
Posts: 61

PostPosted: Sat Jul 11, 2015 5:46 am    Post subject: MacBook Pro Kernel .config please Reply with quote

Hi all.

I've installed on a new ( 2015 ) Macbook Pro - 15i. I'm currently only able to boot with the Sabayon kernel that came with the boot disk I used ( I installed Gentoo from scratch, not Sabayon ).

Anyway, something is very wrong with the kernels I've built. I'm building real-time kernels, by the way, for audo recording + production. It would be helpful to start with a 'known good' kernel .config ... which I'll use to build a 'stock' kernel, and then move onto a real-time kernel.

Does someone have such a .config they can upload somewhere?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6994
Location: Austria

PostPosted: Sat Jul 11, 2015 6:24 am    Post subject: Reply with quote

Did you take a look at the wiki? https://wiki.gentoo.org/wiki/Apple_Macbook_Pro_Retina
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Sat Jul 11, 2015 6:36 am    Post subject: Reply with quote

In addition, the app on this page may be helpful http://kernel-seeds.org/working.html I'm not sure how it will work for a mac, but it can't hurt to try.

The instructions are extremely helpful and should get you pointed in the right direction.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
dkasak
n00b
n00b


Joined: 10 Feb 2012
Posts: 61

PostPosted: Sun Jul 12, 2015 2:01 am    Post subject: Reply with quote

genstorm wrote:
Did you take a look at the wiki? https://wiki.gentoo.org/wiki/Apple_Macbook_Pro_Retina


Yes I've been referring to this page.
Back to top
View user's profile Send private message
dkasak
n00b
n00b


Joined: 10 Feb 2012
Posts: 61

PostPosted: Sun Jul 12, 2015 2:07 am    Post subject: Reply with quote

I'm still unable to get anything I build to boot :( All kernels I try just hang on the 'refind' boot manager screen, saying:

Code:
Starting 4.1.2-gentoo
Using load options 'ro noapic root=/dev/sda4 init=/usr/lib/systemd/systemd'


It's possible the kernel is being somewhat initialised, and is just unable to do anything with the display. Or it's possible it's not loading at all, for some unknown reason. Again, the Sabayon kernel boots fine, so there doesn't seem to be an issue with my refind configuration. I've tried renaming the kernel in the refind config, and refind does actually log the fact that the kernel can't be found in this case.

It's worth noting that I've been building kernels for Linux for about 20 years, so I'm certainly familiar with these kind of issues - and I'm pretty stubborn when I have to be. But this one has me stumped. Hence asking for a valid .config from someone who's built their own Macbook kernel ...
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Jul 12, 2015 11:42 am    Post subject: Reply with quote

do you intend to use gnome? just asking because i see systemd...

you may need an initramfs to boot your box. requirement for it depends on your setup and constraints on the software in question / userspace
Back to top
View user's profile Send private message
dkasak
n00b
n00b


Joined: 10 Feb 2012
Posts: 61

PostPosted: Fri Jul 17, 2015 1:07 am    Post subject: Reply with quote

tw04l124 wrote:
do you intend to use gnome? just asking because i see systemd...

you may need an initramfs to boot your box. requirement for it depends on your setup and constraints on the software in question / userspace


:) No, but I do use Enlightenment, which also now depends on systemd. I *build* Gnome, for use during periods in which my Enlightenment installation is broken. I'm not a fan of systemd, but on the other hand, it's the least effort for me to use it at this point.

I've sorted my issues. It turns out you need to build SCSI disk support - which is totally non-obvious. I have a SATA SSD disk. Now my only remaining issue is no bluetooth. There's also no webcam, but that's a known issue. I can't figure out whether bluetooth is supposed to work or not. I'll post a kernel .config soon-ish so others can find it - and maybe add it to the gentoo/macbook wiki too ... once I figure out for sure I have everything working that's supposed to be working.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2868
Location: Bay Area, CA

PostPosted: Sat Aug 01, 2015 12:23 am    Post subject: Reply with quote

dkasak wrote:
I'm still unable to get anything I build to boot :( All kernels I try just hang on the 'refind' boot manager screen, saying:

Code:
Starting 4.1.2-gentoo
Using load options 'ro noapic root=/dev/sda4 init=/usr/lib/systemd/systemd'


It's possible the kernel is being somewhat initialised, and is just unable to do anything with the display. Or it's possible it's not loading at all, for some unknown reason. Again, the Sabayon kernel boots fine, so there doesn't seem to be an issue with my refind configuration. I've tried renaming the kernel in the refind config, and refind does actually log the fact that the kernel can't be found in this case.

It's worth noting that I've been building kernels for Linux for about 20 years, so I'm certainly familiar with these kind of issues - and I'm pretty stubborn when I have to be. But this one has me stumped. Hence asking for a valid .config from someone who's built their own Macbook kernel ...

I have a working gentoo install on a macbook and I run into this issue once in a while as well. If you retry the boot with a poweroff every time few times, it will boot up (barring you don't have any issues with rootfs on /dev/sda4).

I have a feeling that its a bug in the kernel stub EFI loader. I used to get almost 1 in 3 success rate with booting Linux. I recently enabled a kernel option earlyprintk=efi to see what goes on in early boot, it slowly prints those early printks. The boot is super slow, but the success rate of boot has increased tremendously. I think its some timing bug.

See if you are facing the same issue.
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