diff --git a/README.md b/README.md index da5ea1c..bc85487 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,6 @@ Using additional drivers: Bootloader is configure correctly out of the box. No workaround needed. -**IF YOU UPDATE THE KERNEL, REMEMBER TO ADD THE REQUIRED DRIVERS AGAIN.** -Check to see how it is done. - ## Installation 1. Reduce the size of the mac partition in MacOS @@ -63,10 +60,33 @@ options hid_apple swap_opt_cmd=1 - I switch the touchbar to show f* by default. If you like another configuration, change /etc/modprobe.d/apple-tb.conf or remove it. - To update grub, run: `grub-mkconfig -o /boot/grub/grub.cfg` +## Update to newer kernels + +**IF YOU UPDATE THE KERNEL, REMEMBER TO ADD THE REQUIRED DRIVERS AGAIN.** + +### The easy way: +```bash +sudo apt install dkms +sudo apt install linux-headers--mbp linux-image--mbp +sudo git clone --branch mbp15 https://github.com/roadrunner2/macbook12-spi-driver.git /usr/src/apple-ibridge-0.1 +sudo dkms install -m apple-ibridge -v 0.1 -k -mbp +modprobe apple-ib-tb +modprobe apple-ib-als +sudo git clone --branch aur https://github.com/marcosfad/mbp2018-bridge-drv.git /usr/src/apple-bce-0.1 +sudo dkms install -m apple-bce -v 0.1 -k -mbp +modprobe apple-bce +``` + +### Another way: +Check to see how it is done. + + ## Know issues -- Sound is not working after the install. Follow the instructions detailed by @kevineinarsson: +- Sound is not working after the install. Follow the instructions detailed by @kevineinarsson: (it didn't worked for me on MBP 16,1, but I don't use sound) +- Wifi is not working for bali (MBP 16,1). I'm using a 10$ usb wifi. - Checksum is failing for 2 files: md5sum.txt and /boot/grub/bios.img +- I'm having troubles shutting down ubuntu. Screen is black but fan keeps on working. I have to force shutdown. ## Not working (Following the mikeeq/mbp-fedora) diff --git a/build_file_system.sh b/build_file_system.sh index f6292a7..997845f 100755 --- a/build_file_system.sh +++ b/build_file_system.sh @@ -23,13 +23,13 @@ umount "${CHROOT_PATH}/dev" ## Copy audio config files -echo >&2 "===]> Info: Copy audio config files... " -mkdir -p "${CHROOT_PATH}"/usr/share/alsa/cards/ -cp -fv "${ROOT_PATH}"/files/audio/AppleT2.conf "${CHROOT_PATH}"/usr/share/alsa/cards/AppleT2.conf -cp -fv "${ROOT_PATH}"/files/audio/apple-t2.conf "${CHROOT_PATH}"/usr/share/pulseaudio/alsa-mixer/profile-sets/apple-t2.conf -cp -fv "${ROOT_PATH}"/files/audio/91-pulseaudio-custom.rules "${CHROOT_PATH}"/etc/udev/rules.d/91-pulseaudio-custom.rules -printf "\n load-module module-combine-sink channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe" >> /etc/pulse/default.pa -printf "\ndefault-sample-channels = 6\nremixing-produce-lfe = yes\nremixing-consume-lfe = yes" >> /etc/pulse/daemon.conf +#echo >&2 "===]> Info: Copy audio config files... " +#mkdir -p "${CHROOT_PATH}"/usr/share/alsa/cards/ +#cp -fv "${ROOT_PATH}"/files/audio/AppleT2.conf "${CHROOT_PATH}"/usr/share/alsa/cards/AppleT2.conf +#cp -fv "${ROOT_PATH}"/files/audio/apple-t2.conf "${CHROOT_PATH}"/usr/share/pulseaudio/alsa-mixer/profile-sets/apple-t2.conf +#cp -fv "${ROOT_PATH}"/files/audio/91-pulseaudio-custom.rules "${CHROOT_PATH}"/usr/lib/udev/rules.d/91-pulseaudio-custom.rules +#printf "\n load-module module-combine-sink channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe" >> /etc/pulse/default.pa +#printf "\ndefault-sample-channels = 6\nremixing-produce-lfe = yes\nremixing-consume-lfe = yes" >> /etc/pulse/daemon.conf ### Copy grub config without finding macos partition echo >&2 "===]> Info: Patch Grub... " diff --git a/files/chroot_build.sh b/files/chroot_build.sh index e725502..97872ac 100755 --- a/files/chroot_build.sh +++ b/files/chroot_build.sh @@ -147,7 +147,6 @@ apt-get purge -y -qq \ aisleriot \ hitori \ xiterm+thai \ - firefox \ make \ gcc \ vim \