-Todo:
+This repository contains scripts to bootstrap Debian Linux on m1
- - set the hostname to live
+fwx.sh
+======
+fwx.sh extracts the wifi firmware and copies it to /tmp/linux-firmware.tar
- - Install all the packages and probably more
+bootstrap.sh
+============
+bootstrap.sh is tested to run on arm64 and amd64 Debian stable and testing. It
+creates several artefacts:
-firmware-linux-nonfree
+ - Live System
-sudo debootstrap --arch=arm64 --include iwd,tcpdump,vim,tmux,vlan testing testing http://ftp.fau.de/debian
+ asahi-debian-live.tar can be extracted on the root of a msdos
+ (vfat32) usb stick and than be booted using U Boot.
-root@air:/# cat /etc/apt/sources.list
-deb http://deb.debian.org/debian testing main contrib non-free
-deb-src http://deb.debian.org/debian testing main contrib non-free
+ - Debian Installer
-Add the following packages:
+ m1-d-i.tar can be extracted on the root of a msdos (vfat32) usb
+ stick and can be booted using U Boot.
- ntpdate <wifi> firmware vim tcpdump vlan bridge-utils tmux parted kernel curl wget
+ In the initrd is a /etc/rc.local which searched for the wifi
+ firmware on any vfat, extracts it and reloads the wifi kernel
+ modules.
-Add the following boot options:
+ - Diskimage for Asahi Installer
- net.ifnames=0
+ efi.tgz can be extracted on the root of the esp partition
-Fix the root password
+ m1.tgz contains a single file which can be dded on a at least 1
+ GB big partition.
-Automate the build of u-boot, m1n1, kernel, debootstrap, grub
+ 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.
-Write a README with the installation steps
+ - U-boot
-ln -s lib/systemd/systemd init
+ 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
-find . | cpio --quiet -H newc -o | pigz > /boot/initrd.gz
-
-> etc/motd
-
-cp /boot/efi/EFI/BOOT/BOOTAA64.EFI efi/boot/
-cp /boot/vmlinuz-5.16.0-asahi-next-20220118-14779-ga4d177b3ad21-dirty vmlinuz
-
-./scripts/kconfig/merge_config.sh .config .config-fragment
+ - vmlinuz
+ k.deb
+ m1n1/build/m1n1.bin
+ m1n1/build/m1n1.macho
+ grubaa64.efi