descriptionScripts to bootstrap Debian on Apple m1 machines.
ownerThomas Glanzmann
last changeSun, 4 Dec 2022 19:06:24 +0000 (20:06 +0100)
readme

This pages explains how to install Debian on Apple Silicon machines.

Tripwires

The USB-A Port on the Mac Mini will not work in u-boot and grub. The two additional USB-3 ports on the iMac 4 port model don't work in u-boot, grub and Linux. In order to install Linux on a FileVault-enabled Mac run the installer from Recovery open Disk Utility > Expanding "Macintosh HD" > Selecting locked volume > click "Mount". Debian does not include the choosen EFI patch. As a result it will always pick the first ESP partition. This can be problematic if you're using multiple ESP partitions for example when having multiple Linux and BSD installations.

Artefacts

If you don't want to use the prebuild artefacts, you can build them yourself using the bootstrap.sh script.

Kernel header files

The kernel header files can be found here: https://thomas.glanzmann.de/asahi/

Asahi installer

Video Recording

Livesystem

Video Recording

In order to format the usb stick under Macos, open the disk utility, right-click on the usb stick (usually the lowest device in the list) and select erase. Choose the following options:

    Name: LIVE
    Format: MS-DOS (FAT)
    Scheme: Master Boot Record

Than open a terminal, and run the following commands:

    sudo su -
    cd /Volumes/LIVE
    curl -sL https://tg.st/u/asahi-debian-live.tar | tar -xf -

FAQ

Yes, long answer below.

To update the kernel to the lastest "stable" asahi branch you need to run as root:

    curl -sL https://tg.st/u/ksh | bash

Later it might be necessary to upgrade the stub parition in order to support the GPU code. As soon as that happens, I'll add the instructions and a video in order to do so, but short version is:

    - Backup /boot/efi/EFI
    - Delete the old stub and efi/esp partition
    - Rerun the asahi installer with m1n1+u-boot option
    - Put the /boot/efi/EFI back

So, you never need to reinstall Debian. Kernel updates are easy, stub updates are a little bit more cumbersome but also seldom.

shortlog
16 hours ago Thomas Glanzmannclarify everything master
17 hours ago Thomas Glanzmannremove patch
17 hours ago Thomas GlanzmannMerge branch 'master' of a.gmvl.de:/git/m1-debian
17 hours ago Thomas Glanzmannadd apt-update; don't try to install unstable packages
18 hours ago Thomas GlanzmannMerge branch 'master' of 88.198.237.222:/git/m1-debian
18 hours ago Thomas Glanzmannupdate to most recent stable version
4 days ago Thomas Glanzmanndoes not use my normal stylesheet
4 days ago Thomas Glanzmannput a warning for now
11 days ago Thomas Glanzmann11:42 <ahdeb[m]> Glanzmann (IRC): bootstrap.sh should...
12 days ago Thomas GlanzmannMerge branch 'master' of 88.198.237.222:/git/m1-debian
12 days ago Thomas Glanzmannuse newest version
13 days ago Thomas Glanzmannmore dependencies
2022-11-20 Thomas Glanzmanncompiles the gpu
2022-11-18 Thomas Glanzmannrename dcp
2022-11-18 Thomas Glanzmanninclude config inline to use it standalone
2022-11-17 Thomas GlanzmannMerge branch 'master' of 88.198.237.222:/git/m1-debian
...
heads
16 hours ago master
Impressum, Datenschutz