#
#asahi-dev · 2023-09-29 16:34
marcan(if you use the hypervisor you can always ^C and `reboot` as long as it doesn't get into a really bad wedge state)
#asahi-dev · 2023-09-29 16:33
jonmastersI'm seeing maz in a couple weeks and he's bringing one of his toys for me
#asahi-dev · 2023-09-29 16:33
jonmastersgreat, that's my desk down in my lab already :)
#asahi-dev · 2023-09-29 16:33
marcanlow level serial stuff and remote hard reboots are possible with another Mac or custom hardware, but not at all required
#asahi-dev · 2023-09-29 16:33
marcanyup
#asahi-dev · 2023-09-29 16:33
jonmastersso just a USB-C->C cable and a dell XPS ok
#asahi-dev · 2023-09-29 16:33
marcanit's just USB
#asahi-dev · 2023-09-29 16:32
marcanyeah
#asahi-dev · 2023-09-29 16:32
jonmastersand any generic Linux box can be the other end, ok
#asahi-dev · 2023-09-29 16:32
jonmastersah ok
#asahi-dev · 2023-09-29 16:32
marcan(see udev/80-m1n1.rules for the rules to set up the /dev nodes properly)
#asahi-dev · 2023-09-29 16:32
marcanthe backdoor proxy mode will break boot when any of the two TTY devices are opened, so when I'm using it I just have a tools/picocom-sec.sh running in another terminal which will trigger the proxy, and also become the hypervisor vUART if you use that
#asahi-dev · 2023-09-29 16:30
jonmasters:)
#asahi-dev · 2023-09-29 16:30
marcanyeah, it's a nice toolset to hack on pretty much all the hardware :)
#asahi-dev · 2023-09-29 16:30
jonmastersbut for now, chainload and playing this weekend
#asahi-dev · 2023-09-29 16:30
jonmastersI've been reading through your wiki a bit and do plan to dive into the m1n1 from first principles when I've got some time, it's a great project for learning AS innards
#asahi-dev · 2023-09-29 16:29
jonmasterscool cool
#asahi-dev · 2023-09-29 16:28
marcan(tools/run_guest_kernel.sh will do the chainload itself)
#asahi-dev · 2023-09-29 16:28
marcanfor hypervisor: make -C .. && tools/run_guest_kernel.sh <path to linux build tree root> 'debug rootwait root=/dev/nvme0n1p6 rootflags=subvol=root' <...>/initramfs.cpio.gz
#asahi-dev · 2023-09-29 16:27
marcanmy usual recipe for testing kernels bare metal is (in m1n1/proxyclient): make -C .. && python tools/chainload.py -r ../build/m1n1.bin && tools/linux.py <...>/arch/arm64/boot/Image.gz <...>/arch/arm64/boot/dts/apple/t8112-j413.dtb <...>/initramfs.cpio.gz -b 'debug rootwait root=/dev/nvme0n1p6 rootflags=subvol=root'
#asahi-dev · 2023-09-29 16:26
marcanjonmasters: FWIW page isn't fully up to date, but you always want to chainload a new m1n1 before hypervisor or linux.py to make sure you use your up to date tree, not whatever stage1 is
#asahi-dev · 2023-09-29 16:25
marcan:D
#asahi-dev · 2023-09-29 16:25
jonmastersI will never underestimate you ever again ;)
#asahi-dev · 2023-09-29 16:25
marcan:)
#asahi-dev · 2023-09-29 16:25
jonmastersalso, I'm totally blown away with the progress here, it's outrageous
#asahi-dev · 2023-09-29 16:24
jonmasters:)
#asahi-dev · 2023-09-29 16:24
marcanha
#asahi-dev · 2023-09-29 16:24
jonmastersI'm seeing a possible relaxed memory issue with a certain driver on another Arm platform and wanted to see if it showed up with the most relaxed of them all - reason I am tinkering with thunderbolt :)
#asahi-dev · 2023-09-29 16:23
j`eyjonmasters: it doesnt need to be another M1
#asahi-dev · 2023-09-29 16:23
marcanthe other machine can be any arbitrary computer fwiw
#asahi-dev · 2023-09-29 16:23
marcanwith the backdoor mode stage1 breaks into USB mode and then you can just chainload m1n1 (for updates) and linux.py a kernel, or use the hypervisor, or whatever
#asahi-dev · 2023-09-29 16:23
jonmastersok, I'll use another M1 with the USB load method - probably weekend at this point
#asahi-dev · 2023-09-29 16:23
jonmastersyeah
#asahi-dev · 2023-09-29 16:22
marcanI've been moving more minor init stuff from stage1 to stage2 since it's safer/more flexible that way over time, in principle stage1 should do the minimum possible to load stage2 or enable USB mode
#asahi-dev · 2023-09-29 16:22
jonmasterscool cool
#asahi-dev · 2023-09-29 16:22
marcanstage1's only job is to load stage2
#asahi-dev · 2023-09-29 16:22
marcanyes, stage2 handles runtime dtb changes
#asahi-dev · 2023-09-29 16:22
marcanthat's my workflow these days, install normally, enable that (can even be done during the install step2 part, in a new terminal tab)
#asahi-dev · 2023-09-29 16:21
jonmastersmarcan: when the dtbs are patched, that's the stage2/uboot doing it?
#asahi-dev · 2023-09-29 16:21
marcanlook for the backdoor proxy mode section to enable USB loading (with a timeout so it defaults to normal boot), no need to replace anything
#asahi-dev · 2023-09-29 16:21
jonmastersI've seen that page before - will take a look
#asahi-dev · 2023-09-29 16:21
jonmastersah ok
#asahi-dev · 2023-09-29 16:21
jonmastersis that what patches the dtbs in this stack?
#asahi-dev · 2023-09-29 16:21
marcanI/most of us just load kernels/devicetrees over USB
#asahi-dev · 2023-09-29 16:21
marcanjonmasters: https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-%28For-Developers%29
#asahi-dev · 2023-09-29 16:21
jonmastersso just the uboot payload?
#asahi-dev · 2023-09-29 16:19
j`eyjonmasters: replacing stage1 m1n1 means going via recoveryOS, so you want to just replace stage2
#asahi-dev · 2023-09-29 16:16
jonmastersI'll take a look at that branch. The right workflow is to take a dtb and rebuild m1n1 right? there's a flow to chainload an m1n1...is that what you usually do to test, or do you replace the original m1n1?
#asahi-dev · 2023-09-29 16:15
jonmastershey thanks janneg and sven
#asahi-dev · 2023-09-29 15:34
linaI should sleep ^^

plus ›