-- Boot into macos
+This repository contains scripts to bootstrap Debian Linux on m1
-- make space - the last number is the space that macos will occupy
+fwx.sh
+======
+fwx.sh extracts the wifi firmware and copies it to /tmp/linux-firmware.tar
- diskutil apfs resizeContainer disk0s2 200GB
+bootstrap.sh
+============
+bootstrap.sh is tested to run on arm64 and amd64 Debian stable and testing. It
+creates several artefacts:
-- run the installer, do not forget step2.sh
+ - Live System
- curl -L https://mrcn.st/alxsh | sh
+ asahi-debian-live.tar can be extracted on the root of a msdos
+ (vfat32) usb stick and than be booted using U Boot.
-- Once you run the install, boot into the 'Options' menu again and install u-boot:
+ - Debian Installer
- curl -LO https://tg.st/u/u-boot.macho
- kmutil configure-boot -c u-boot.macho -V /Volumes/Linux
+ m1-d-i.tar can be extracted on the root of a msdos (vfat32) usb
+ stick and can be booted using U Boot.
-- Format a usb stick with a vfat partition on it, mount the partition and
- extract the following:
+ - Diskimage for Asahi Installer
- cd /mnt
- curl -L https://tg.st/u/asahi-debian-live-2022-01-25.tar | tar -xf -
+ efi.tgz can be extracted on the root of the esp partition
-- In u-boot interrupt the boot loop by pressing return when prompted to. Use
- the following command to boot from the usb-stick. Loading the 256 MB initrd
- takes a while.
+ m1.tgz contains a single file which can be dded on a at least 1
+ GB big partition.
- run bootcmd_usb0
+ In the disk image is a /etc/rc.local that will extract
+ the wifi firmware, generate a /etc/fstab, install grub
+ using Debian methods, mount /boot/efi, assigns a new
+ UUID to the root filesystem.
-- Login with username 'root'. There is no password.
+ - U-boot
-- If you have an ethernet card (mini or usb dongle), than get an IP:
-
- dhclient eth0
-
-- Set the time:
-
- ntpdate pool.ntp.org
-
-- Install any software you like, for example gnome:
-
- apt-get install gnome
- useradd -m -c 'user' user
- passwd user
- /etc/init.d/gdm3 start
-
-- You can also use the live system to install Debian on the m1, the rough outline is:
-
- - Create two paritions:
-
- - One 1 GB vfat
- - Rest with ext4
-
- - Use debootstrap to bootstrap debian
-
- - Install grub
-
- - reboot
-
-The exact steps follow once I find a little bit of time.
-
-Kernel deb is here: https://tg.st/u/linux-image-5.16.0-asahi-next-20220118-gdcd14bb2ec40_5.16.0-asahi-next-20220118-gdcd14bb2ec40-1_arm64.deb
+ u-boot.bin is m1n1 with dtb for all models and U Boot
+ u-boot.macho is m1n1 with dtb for all models and U Boot
+ - vmlinuz
+ k.deb
+ m1n1/build/m1n1.bin
+ m1n1/build/m1n1.macho
+ grubaa64.efi