Installing Arch Linux on a Mac with the T2 Chip¶
You will need:
- USB drive with at least 1GB
- A way to plug it into your Mac (USB-C isn't USB-A)
Users in NA/EU
If you're experiencing slow download speed or failure to install, please edit your /etc/pacman.conf
file and replace old mirror.funami.tech link with https://github.com/NoaHimesaka1873/arch-mact2-mirror/releases/download/release
instead.
-
Follow the Pre-installation steps.
-
Boot into the live ISO.
-
Follow the Arch Wiki guide from here up to "Format the partitions". Note that the step of Partition the disks must be skipped as it has already been done in macOS.
- You will need to reformat your partitions, except for the EFI partition. The other partitions will need to reformatted as described in the Arch Wiki Installation guide. For the EFI system partition (mentioned in a note on the Arch Wiki), there will be one at
/dev/nvme0n1p1
and you can use this if you don't intend to install Windows or already have it installed. If you do intend to triple boot, refer to this guide. - Mount the EFI partition that you intend to use for your bootloader on
/mnt/boot
, and your other partitions on/mnt
, etc.
- You will need to reformat your partitions, except for the EFI partition. The other partitions will need to reformatted as described in the Arch Wiki Installation guide. For the EFI system partition (mentioned in a note on the Arch Wiki), there will be one at
-
Continue following the Arch Wiki's guide until "Install essential packages".
-
Install the required packages into your new system.
-
Using pacstrap (more vanilla Arch experience)
-
Run
pacstrap /mnt base linux-t2 linux-t2-headers apple-t2-audio-config apple-bcm-firmware linux-firmware iwd grub efibootmgr tiny-dfr t2fanrd
(omit thegrub efibootmgr
packages from this if you intend to use systemd-boot as your bootloader). You can choose to use Xanmod kernel instead. In this case, replacelinux-t2
withlinux-xanmod-t2
. -
Add repository to
/mnt/etc/pacman.conf
, by adding this:
-
-
Using t2strap (easier)
- Run
t2strap /mnt base linux-firmware iwd grub efibootmgr
(omit thegrub efibootmgr
packages from this if you intend to use systemd-boot as your bootloader). You can choose to use Xanmod kernel instead. In this case, append-k xanmod
(or-k xanmod-lts
for Xanmod LTS) tot2strap
command.
- Run
-
-
Continue following the Arch Wiki's guide until you get to installing a bootloader.
-
Add
apple-bce
to theMODULES
list in/etc/mkinitcpio.conf
, and then runmkinitcpio -P
-
Enable
t2fanrd
andtiny-dfr
by running: -
Install a bootloader, GRUB is easier, but you can also use systemd-boot. Don't do both.
-
Installing Grub:
- Edit
/etc/default/grub
, you'll need to install a text editor (i.e.vim
ornano
) withpacman -S PACKAGE_NAME
for this step. - On the line with
GRUB_CMDLINE_LINUX="quiet splash"
, add the following kernel parameters:intel_iommu=on iommu=pt pcie_ports=compat
- Run
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable
. - Run
grub-mkconfig -o /boot/grub/grub.cfg
to generate configuration file.
- Edit
-
Installing systemd-boot:
- Follow the Arch wiki's instructions. You will want
--path=/boot
as an argument tobootctl
if you mounted your EFI partition there. Also make sure you configure it to boot thelinux-t2
kernel. - Install a text editor (i.e.
pacman -S vim
orpacman -S nano
), and make the following edit for.conf
files in/boot/efi/loader/entries/
. - Add
intel_iommu=on iommu=pt pcie_ports=compat
to theoptions
line to add those kernel parameters.
- Follow the Arch wiki's instructions. You will want
-
-
Exit the
chroot
(Control-d, orexit
) and reboot. You now will be able to select your Arch install in the macOS Startup Manager by holding option at boot.