||3 months ago|
|.github/workflows||3 months ago|
|files||4 months ago|
|.gitignore||4 months ago|
|.travis.yml||4 months ago|
|01_build_file_system.sh||1 year ago|
|02_build_image.sh||1 year ago|
|03_prepare_iso.sh||1 year ago|
|04_create_iso.sh||1 year ago|
|README.md||3 months ago|
|build.sh||3 months ago|
|build_in_docker.sh||2 years ago|
The ISO in from this repo should allow you to install ubuntu without using an external keyboard or mouse on a MacBook Pro. It work in my MacBook with T2.
UBUNTU 20.04 ISO with Apple T2 patches built-in.
Apple T2 drivers are integrated with this iso.
This repo is a rework of the great work done by @mikeeq
I'm using the Kernel from - https://github.com/marcosfad/mbp-ubuntu-kernel
Using additional drivers:
- Apple T2 (apple-bce) (audio, keyboard, touchpad)
- Touchbar (apple-ibridge, apple-ib-tb, apple-ib-als)
Bootloader is configure correctly out of the box. No workaround needed.
Before I begin, what version should I use "mbp" or "mbp-alt"?
!! Warning: Starting from the kernel 5.8 the release naming were switch with respect to kernel 5.7: Before the "mbp" release did not include all the patches. Now the "mbp" includes all patches and the "mbp-alt" don't.
The difference between the two is that the mbp-alt includes the kernel with the 2001 Patch from the great Aunali1. This patch made my screen blank, but it helped others to get rid of the blank screen. So, here is a list, with what I know through discord members:
If you don't know what version, start with the mbp and if it doesn't work (Blank screen issue) try the mbp-alt. If your mbp is not listed, please tell me which one is working for you on the issue Blank screen
!! Warning: Versions between 5.8 and 5.9 can be very unstable and should not be used due to issues from within the kernel and the init system. Please use 5.7.19.
- Reduce the size of the mac partition in MacOS
- Download ISO file from releases. (Use the command line to unzip (
unzip /path/to/file.zip) or "The Unarchiver" app)
- Copy it to a USB using dd (or gdd if installed over brew):
diskutil list # found which number has the USB diskutil umountDisk /dev/diskX sudo gdd bs=4M if=ubuntu-20.04-5.6.10-mbp.iso of=/dev/diskX conv=fdatasync status=progress
- Boot in Recovery mode and allow booting unknown OS
- Restart and immediately press the option key until the Logo come up
- Select "EFI Boot" (the third option was the one that worked for me)
- Launch Ubuntu Live
- Use Ubiquity to install (just click on it)
- Select the options that work for you and use for the partition the following setup:
- Leave the efi boot as preselected by the installer. Your Mac will keep on working with out problems.
- Add a ext4 partition and mounted as /boot (1024MB)
- Add a ext4 partition and monted as / (rest)
- Run the installer (In my case it had some problem removing some packages at the end, but this is no real problem)
- Shutdown and remove the USB Drive
- Start again using the option key. Select the new efi boot.
- See https://wiki.t2linux.org/guides/wifi/
- To install additional languages, install appropriate langpack via apt
sudo apt-get install language-pack-[cod] language-pack-gnome-[cod] language-pack-[cod]-base language-pack-gnome-[cod]-base
- You can change mappings of ctrl, fn, option keys (PC keyboard mappings) by creating
/etc/modprobe.d/hid_apple.conffile and recreating grub config. All available modifications could be found here: https://github.com/free5lot/hid-apple-patched
# /etc/modprobe.d/hid_apple.conf options hid_apple swap_fn_leftctrl=1 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
Activate Grub Menu
For the people who want to have a menu, they can modify
/etc/default/grub with the following changes:
Update to newer kernels
IF YOU UPDATE THE KERNEL, REMEMBER TO ADD THE REQUIRED DRIVERS AGAIN.
The easy way:
The live cd includes dkms and will automatically run when a new kernel is installed. You can use
dkms status to see it.
If you upgrade from 5.7.19 to a newer kernel version (5.10+), you will need updated versions of these kernel modules. Instructions for installing updated ones are here.
Check https://github.com/marcosfad/mbp-ubuntu/blob/master/files/chroot_build.sh to see how it is done.
- Sound is not working after the install. Follow the instructions detailed by @kevineinarsson: https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba
On MBP 16,1, you might also need to disable realtime scheduling if the above gist doesn't work, because the pulseaudio server might get killed if the realtime budget is exceeded (https://bugs.freedesktop.org/show_bug.cgi?id=94629). Just add
realtime-scheduling = noto
- 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)
- Dynamic audio input/output change (on connecting/disconnecting headphones jack)
- TouchID - (@MCMrARM is working on it - https://github.com/Dunedan/mbp-2016-linux/issues/71#issuecomment-528545490)
- Thunderbolt (is disabled, because driver was causing kernel panics (not tested with 5.5 kernel))
- Microphone (it's recognised with new apple t2 sound driver, but there is a low mic volume amp)
- ISO is using gzip initramfs. It would be great to change it lz4
- Optimize the software installed.
Known issues (Following the mikeeq/mbp-fedora)
- Kernel/Mac related issues are mentioned in kernel repo
ctrl+xis not working in GRUB, so if you are trying to change kernel parameters - start your OS by clicking
ctrl+shift+f10on external keyboard
- Discord: https://discord.gg/Uw56rqW Shout out to the great community support. If you are not there yet, you must definitely join us.
- WiFi firmware: https://packages.aunali1.com/apple/wifi-fw/18G2022
- Linux on a MBP Late 2016: https://gist.github.com/gbrow004/096f845c8fe8d03ef9009fbb87b781a4
- Repack Bootable ISO: https://wiki.debian.org/RepackBootableISO
- GitHub issue (RE history): https://github.com/Dunedan/mbp-2016-linux/issues/71
- VHCI+Sound driver (Apple T2): https://github.com/MCMrARM/mbp2018-bridge-drv/
- hid-apple keyboard backlight patch: https://github.com/MCMrARM/mbp2018-etc
- alsa/pulseaudio config files: https://gist.github.com/MCMrARM/c357291e4e5c18894bea10665dcebffb
- TouchBar driver: https://github.com/roadrunner2/macbook12-spi-driver/tree/mbp15
- Kernel patches (all are mentioned in github issue above): https://github.com/aunali1/linux-mbp-arch
- ArchLinux kernel patches: https://github.com/ppaulweber/linux-mba
- ArchLinux installation guide: https://gist.github.com/TRPB/437f663b545d23cc8a2073253c774be3
- hid-apple-patched module for changing mappings of ctrl, fn, option keys: https://github.com/free5lot/hid-apple-patched
- Audio configuration: https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba
- Ubuntu in MBP16: https://gist.github.com/gbrow004/096f845c8fe8d03ef9009fbb87b781a4
- @mikeeq - thanks for the amazing work in mbp-fedora
- @MCMrARM - thanks for all RE work
- @ozbenh - thanks for submitting NVME patch
- @roadrunner2 - thanks for SPI (touchbar) driver
- @aunali1 - thanks for ArchLinux Kernel CI, the continuous support on discord and your continuous efforts.
- @ppaulweber - thanks for keyboard and Macbook Air patches
- @kevineinarsson - thanks for the audio settings