X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/1388429a2bcf57724ac39a2ee228b1e4c92f2e41..b403cd99fa4f5f00c109d783524fc7d503e3fced:/README diff --git a/README b/README index f07e974..49d93f2 100644 --- a/README +++ b/README @@ -1,61 +1,47 @@ -- 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: + 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. - cd /mnt - curl -L https://tg.st/u/asahi-debian-live-2022-01-25.tar | tar -xf - + - Diskimage for Asahi Installer -- 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. + efi.tgz can be extracted on the root of the esp partition - run bootcmd_usb0 + m1.tgz contains a single file which can be dded on a at least 1 + GB big partition. -- Login with username 'root'. There is no password. + 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. -- If you have an ethernet card (mini or usb dongle), than get an IP: + - U-boot - 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