X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/5e01b9d15ecbddd4ca18e3ca41dadc034f93cead..fcb5111f9d975a3c801e0803ec98ffe4ef3c3852:/doc/asahi.txt?ds=inline diff --git a/doc/asahi.txt b/doc/asahi.txt index 1632351..793b6ae 100644 --- a/doc/asahi.txt +++ b/doc/asahi.txt @@ -1,58 +1,3 @@ -# Boot into macos - -# Make space the last number is the size that MacOS instatllation should consume -diskutil apfs resizeContainer disk0s2 200GB - -# Run the installer, select as stub OS 12.1, in the boot picker you supposed to -# click Restart than return to the shell and wait until the installer is -# finished and press Return to shutdown your system. -curl -L https://mrcn.st/alxsh | sh - -# 1. Press and hold down the power button to power on the system. -# * It is important that the system be fully powered off before this step, -# and that you press and hold down the button once, not multiple times. -# This is required to put the machine into the right mode. -# 2. Release it once 'Entering startup options' is displayed. -# 3. Choose Options. -# 4. You will briefly see a 'macOS Recovery' dialog. -# * If you are asked to 'Select a volume to recover', -# then choose your normal macOS volume and click Next. -# 5. Click on the Utilities menu and select Terminal. -# 6. Type the following command and follow the prompts: - -# Create an EFI parition because the final layout will have that -diskutil list -diskutil addPartition %EFI% LB 512MB - -# Create partition to hold a rootfs (minimum 1GB if you want to use the rootfs below) -diskutil list -diskutil addPartition %Linux% %noformat% - -# dd a Debian Testing rootfs on it (minimum size 1 GB) -# Find the scripts to create that rootfs here: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian -curl -L https://tg.st/u/m1.tgz | tar -xOz | dd of=/dev/ - -# Relax the boot policy for the stub os and uplaod install m1n1 -/Volumes/Linux/step2.sh - -# Compile the kernel -git clone --depth 1 https://github.com/AsahiLinux/linux -cd linux -curl -s https://tg.st/u/9ce9060dea91951a330feeeda3ad636bc88c642c.patch | git am - -curl -s https://tg.st/u/5nly | git am - -curl -s https://tg.st/u/m1-config-2022-01-27 > .config - -# Crosscompile the kernel -make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- olddefconfig -make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j32 Image.gz dtbs - -cd .. - -# build m1n1 -git clone --recursive https://github.com/AsahiLinux/m1n1.git -cd m1n1 -make - # Export the control device for the proxyclient and friends export M1N1DEVICE=/dev/ttyACM0 @@ -64,6 +9,3 @@ python3 ./proxyclient/experiments/pcie_enable_devices.py # Pick the dtb for your device: https://github.com/AsahiLinux/docs/wiki/Devices proxyclient/tools/linux.py --bootargs="net.ifnames=0 rw root=/dev/nvme0n1p5 rootwait rootfstype=ext4" ../linux/arch/arm64/boot/Image.gz ../linux/arch/arm64/boot/dts/apple/t8103-j293.dtb - -# Set timezone -dpkg-reconfigure tzdata