X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/a66821fc2b1c599c15c05e2b64abb16034930294..1388429a2bcf57724ac39a2ee228b1e4c92f2e41:/README?ds=sidebyside diff --git a/README b/README index 86e81ce..f07e974 100644 --- a/README +++ b/README @@ -1,32 +1,61 @@ -firmware-linux-nonfree +- Boot into macos -sudo debootstrap --arch=arm64 testing testing http://ftp.fau.de/debian +- make space - the last number is the space that macos will occupy -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 + diskutil apfs resizeContainer disk0s2 200GB -Add the following packages: +- run the installer, do not forget step2.sh - ntpdate firmware vim tcpdump vlan bridge-utils tmux parted kernel + curl -L https://mrcn.st/alxsh | sh -Add the following boot options: +- Once you run the install, boot into the 'Options' menu again and install u-boot: - net.ifnames=0 + curl -LO https://tg.st/u/u-boot.macho + kmutil configure-boot -c u-boot.macho -V /Volumes/Linux -Fix the root password +- Format a usb stick with a vfat partition on it, mount the partition and + extract the following: -Automate the build of u-boot, m1n1, kernel, debootstrap, grub + cd /mnt + curl -L https://tg.st/u/asahi-debian-live-2022-01-25.tar | tar -xf - -Write a README with the installation steps +- 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. -ln -s lib/systemd/systemd init + run bootcmd_usb0 -find . | cpio --quiet -H newc -o | pigz > /boot/initrd.gz +- Login with username 'root'. There is no password. -> etc/motd +- If you have an ethernet card (mini or usb dongle), than get an IP: -cp /boot/efi/EFI/BOOT/BOOTAA64.EFI efi/boot/ -cp /boot/vmlinuz-5.16.0-asahi-next-20220118-14779-ga4d177b3ad21-dirty vmlinuz + 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 -./scripts/kconfig/merge_config.sh .config .config-fragment