User Tools

Site Tools


linux:gentoo-upgrade-mbp

This is an old revision of the document!


Gentoo on MacBook Pro(MD318, 15inch, late 2011)

Cheers, finally I made it, the Gentoo back to work on my MacBook Pro.

I have spent several days to make the Gentoo back, because previous it works, but after one update whatever, it can't start the X.

The biggest problems I met is

  1. Hard Disk IO bug, the M4 SSD need upgrade the firmware
  2. The init system has changed from OpenRC to Systemd.
  3. Can't start X(startx, Xorg -configure, X -configure, aticonfig –initial) doesn't work

So you can image how difficult it is to fix all the problems, because

  1. The MacBook Pro doesn't support the usb bootable device
  2. I don't have DVD ROM, because I have replaced it with one Hard Disk.
  3. Sometimes the keyboard doesn't work for X and kernel problems.
  4. I don't aware the difference between OpenRC and Systemd

Upgrade the M4 SSD firmware without DVD ROM

  1. Download the firmware from the official website
  2. Get the BOOT2880.IMG from the iso file
  3. Download the riEFI file
  4. Mount the EFI and get the SYSLINUX
  5. cp -a SYSLINUX /boot/
  6. cp BOOT2880.IMG /boot/SYSLINUX
  7. Boot to the grub and press “c” to do the manual boot

root (hd0,3)
kernel /boot/SYSLINUX/ubnkern
initrd /boot/SYSLINUX/BOOT2880.IMG
boot 

Kernel Config 3.17.7

jianqing linux # uname -a
Linux jianqing 3.17.7-gentoo #6 SMP Sat Jan 31 01:16:40 CST 2015 x86_64 Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz GenuineIntel GNU/Linux

Manual Config the network

ifconfig enp2s0f0 10.0.0.30 netmask 255.255.255.0
route add default gw 10.0.0.1
echo "nameserver 8.8.8.8" >>/etc/resolv.conf
echo "nameserver 223.5.5.5" >>/etc/resolv.conf

Fix Gentoo System

ati-drivers
qlist -I ati-drivers
xorg-server
gnome
systemd
xdm
gdm slim
startx
slim
systemctl enable/disable xdm/gdm/slim
ls /etc/X11/
emerge -uDN world -pv
emerge --depclean -pv
emerge -uDN world --keep-going
emerge -uDN world --keep-going --skipfirst
emerge -uDN world --keep-going --resume

jianqing ~ # cat /etc/env.d/90xsession 
XSESSION="Gnome"

/var/www/dokuwiki/wiki/data/attic/linux/gentoo-upgrade-mbp.1422768790.txt.gz · Last modified: 2016/05/05 13:06 (external edit)