]> git.zerfleddert.de Git - m1-debian/commitdiff
update readme
authorThomas Glanzmann <thomas@glanzmann.de>
Tue, 25 Jan 2022 14:50:18 +0000 (15:50 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Tue, 25 Jan 2022 14:50:18 +0000 (15:50 +0100)
README
bootstrap.sh

diff --git a/README b/README
index 29a04f11666396949aee9627a3ffd4cc5bc8ef96..f07e974ec350ac2c66b4d9ab7c21a218c31beaf1 100644 (file)
--- a/README
+++ b/README
@@ -1,38 +1,61 @@
-Todo:
+- Boot into macos
 
-        - set the hostname to live
+- make space - the last number is the space that macos will occupy
 
-        - Install all the packages and probably more
+        diskutil apfs resizeContainer disk0s2 200GB
 
-firmware-linux-nonfree
+- run the installer, do not forget step2.sh
 
-sudo debootstrap --arch=arm64 --include iwd,tcpdump,vim,tmux,vlan testing testing http://ftp.fau.de/debian
+        curl -L https://mrcn.st/alxsh | sh
 
-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
+- Once you run the install, boot into the 'Options' menu again and install u-boot:
 
-Add the following packages:
+        curl -LO https://tg.st/u/u-boot.macho
+        kmutil configure-boot -c u-boot.macho -V /Volumes/Linux
 
-        ntpdate <wifi> firmware vim tcpdump vlan bridge-utils tmux parted kernel curl wget
+- Format a usb stick with a vfat partition on it, mount the partition and
+  extract the following:
 
-Add the following boot options:
+        cd /mnt
+        curl -L https://tg.st/u/asahi-debian-live-2022-01-25.tar | tar -xf -
 
-        net.ifnames=0
+- 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.
 
-Fix the root password
+        run bootcmd_usb0
 
-Automate the build of u-boot, m1n1, kernel, debootstrap, grub
+- Login with username 'root'. There is no password.
 
-Write a README with the installation steps
+- If you have an ethernet card (mini or usb dongle), than get an IP:
 
-ln -s lib/systemd/systemd init
+        dhclient eth0
 
-find . | cpio --quiet -H newc -o | pigz > /boot/initrd.gz
+- Set the time:
 
-> etc/motd
+        ntpdate pool.ntp.org
 
-cp /boot/efi/EFI/BOOT/BOOTAA64.EFI efi/boot/
-cp /boot/vmlinuz-5.16.0-asahi-next-20220118-14779-ga4d177b3ad21-dirty vmlinuz
+- 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
index df76d4c5765ceb997b6f1eb73f42dca1a7c52205..71b27742e0578fa4385fec6da127a27ac6202bb0 100644 (file)
@@ -89,6 +89,7 @@ build_stick()
         cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi stick/efi/boot/bootaa64.efi
         cp testing/boot/vmlinuz* stick/vmlinuz
         cp files/grub.cfg stick/efi/debian/grub.cfg
+        (cd stick; tar cf ../asahi-debian-live-`date "+%Y-%m-%d"`.tar .)
 )
 }
 
Impressum, Datenschutz