Ubuntu for T2 Macs
Go to file
2022-12-20 15:01:25 +05:30
.github/workflows Update CI.yml 2022-12-20 15:01:25 +05:30
files Remove t2 external 2022-12-20 14:57:08 +05:30
.gitignore Fix yamllint and use repo 2021-07-24 01:37:26 +02:00
.travis.yml Fix yamllint and use repo 2021-07-24 01:37:26 +02:00
01_build_file_system.sh 22.04 2022-05-20 17:22:30 +05:30
02_build_image.sh 22.04 2022-05-20 17:22:30 +05:30
03_prepare_iso.sh Create multiple releases 2020-07-20 17:35:10 +02:00
04_create_iso.sh Change version to 22.04 2022-05-20 17:54:41 +05:30
build_in_docker.sh Initial commit 2020-04-17 13:30:24 +02:00
build.sh Remove t2 external 2022-12-20 14:57:08 +05:30
README.md Update README.md 2022-10-19 01:11:29 +05:30

T2-Ubuntu

The ISOs from this repo should allow you to install Ubuntu without using an external keyboard or mouse on a T2 Mac. It works in my MacBook Pro 16 inch, 2019.

CI

If this repo helped you in any way, consider inviting a coffee to the people in the credits, link.

UBUNTU 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 and @marcosfad

I'm using the Kernel from - https://github.com/t2linux/T2-Ubuntu-Kernel

Using additional drivers:

Bootloader is configure correctly out of the box. No workaround needed.

Installation

  1. Reduce the size of the mac partition in MacOS
  2. Download ISO file from releases.
  3. 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
  1. Boot in Recovery mode and allow booting unknown OS
  2. Restart and immediately press the option key until the Logo come up
  3. Select "EFI Boot" (the third option was the one that worked for me)
  4. Launch Ubuntu Live
  5. Use Ubiquity to install (just click on it)
  6. Select the options that work for you and use for the partition the following setup:
    • Leave the efi boot as preselected by the installer, unless you require a separate efi partition.
    • Add a ext4 partition and monted as /.
    • Swap and other partitions are optional.
  7. Run the installer.
  8. Shutdown and remove the USB Drive.
  9. Start again using the option key. Select the new efi boot.
  10. Enjoy.

Configuration

# /etc/modprobe.d/hid_apple.conf
options hid_apple swap_fn_leftctrl=1
options hid_apple swap_opt_cmd=1

MISC

Activate Grub Menu

For the people who want to have a menu, they can modify /etc/default/grub with the following changes:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10

and then: sudo update-grub

Update to newer kernels

Follow this guide.

Know issues

  • Checksum is failing for 2 files: md5sum.txt and /boot/grub/bios.img

Not working (Following the mikeeq/mbp-fedora)

  • Dynamic audio input/output change (on connecting/disconnecting headphones jack)
  • TouchID
  • 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)

Known issues

  • ctrl+x is not working in GRUB, so if you are trying to change kernel parameters - start your OS by pressing F10 on external keyboard

Docs

Ubuntu

Github

Credits

  • @mikeeq - thanks for the amazing work in mbp-fedora
  • @marcosfad - thanks for the original work in mbp-ubuntu
  • @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