#
#asahi-dev · 2024-02-13 02:44
nicolas17tpw_rules: while waiting for the build to finish I started it on the M2 too, it finished in 18 minutes and the x86 cross-build is still going; see, that's why it was a mistake :P
#asahi-dev · 2024-02-13 02:18
nicolas17wish I could know progress%
#asahi-dev · 2024-02-13 02:15
nicolas17i5-8250U vs Apple M2
#asahi-dev · 2024-02-13 02:15
tpw_rulesah, then what's the mistake
#asahi-dev · 2024-02-13 02:15
nicolas17but I bet gcc would go brrrr much faster on the M2
#asahi-dev · 2024-02-13 02:15
nicolas17yes, using a cross compiler
#asahi-dev · 2024-02-13 02:15
tpw_rulesnot cross?
#asahi-dev · 2024-02-13 02:14
nicolas17I made the mistake of starting to build it on my x86 laptop
#asahi-dev · 2024-02-13 02:14
tpw_rules:P
#asahi-dev · 2024-02-13 02:14
tpw_ruleskind of rude if so i would say, but maybe that makes sense for a *stares judgementally* binary distro
#asahi-dev · 2024-02-13 02:14
tpw_rulesdo they only ship it that way? i wonder if there's a way to unpack it
#asahi-dev · 2024-02-13 02:13
nicolas17then I need to build my own because the stuff I found in fedora's /boot is an EFI image ^^'
#asahi-dev · 2024-02-13 02:13
tpw_rulesi wouldn't imagine so
#asahi-dev · 2024-02-13 02:13
nicolas17but anyway is linux.py or run_guest.py supposed to work with an EFI image?
#asahi-dev · 2024-02-13 02:12
nicolas17also it's chainloading a second m1n1 which I may not need
#asahi-dev · 2024-02-13 02:12
tpw_rulesyeah
#asahi-dev · 2024-02-13 02:12
nicolas17ah I see, run_guest_kernel figures things out from the build tree and calls run_guest
#asahi-dev · 2024-02-13 02:11
tpw_rulesi manually invoked that stuff
#asahi-dev · 2024-02-13 02:09
nicolas17"Note that the script expects the path to the Linux build tree (i.e. the directory where .config and Makefile are). It will pick out the kernel and corresponding device trees from within."
#asahi-dev · 2024-02-13 02:09
nicolas17"Use this utility script to properly boot a Linux kernel under the m1n1 hypervisor: tools/run_guest_kernel.sh"
#asahi-dev · 2024-02-13 02:08
tpw_rulesyou can feed it symbols and stuff which is nice
#asahi-dev · 2024-02-13 02:08
tpw_rulesit didn't when i last used it, like a couple years ago
#asahi-dev · 2024-02-13 02:07
nicolas17oh well run guest wants a Linux build directory so I have to build a kernel from source *anyway*
#asahi-dev · 2024-02-13 01:36
nicolas17mmmmaybe the problem is this kernel is an EFI binary and I need a "raw" kernel image? :<
#asahi-dev · 2024-02-13 00:58
nicolas17(the reboot is so quick that the serial interface dies before it can send all that, I had to record a video of the screen)
#asahi-dev · 2024-02-13 00:57
nicolas17is the last stuff I see on screen before it reboots
#asahi-dev · 2024-02-13 00:57
nicolas17USB1: shutdown
#asahi-dev · 2024-02-13 00:56
nicolas17usb-dwc3@382280000: timeout while waiting for DWC3_DSTS_DEVCTRLHLT during shutdown
#asahi-dev · 2024-02-13 00:56
nicolas17USB0: shutdown
#asahi-dev · 2024-02-13 00:50
nicolas17now I'm on fedora with btrfs, I need to give it the btrfs subvolume name
#asahi-dev · 2024-02-13 00:50
nicolas17ohh, this guide was written for arch
#asahi-dev · 2024-02-13 00:47
nicolas17I wonder if I have the wrong root dev
#asahi-dev · 2024-02-13 00:47
nicolas17after "TTY> Preparing to boot kernel at" the serial connection dies and the machine reboots
#asahi-dev · 2024-02-13 00:47
nicolas17I'm trying linux.py, with the kernel, dtb and initramfs copied from the Fedora installation
#asahi-dev · 2024-02-13 00:34
j`eynicolas17: run_guest.sh will help
#asahi-dev · 2024-02-13 00:20
nicolas17okay so, what if I want to run *Linux* under the m1n1 hypervisor and trace its hardware access?
#asahi-dev · 2024-02-12 18:30
zzywysmnicolas17: i believe these days FileVault only encrypts your user data (i.e. your Data APFS subpartition on macOS) because with the concept of full system cryptographic sealing (or whatever Apple calls it) applying FileVault encryption to your macOS system files is unnecessary
#asahi-dev · 2024-02-12 18:27
zzywysmnicolas17: yes, on Apple Silicon the NVME storage is all encrypted at-rest by default. but by enabling FileVault, you add another layer of encryption with a key that is SEP-resident
#asahi-dev · 2024-02-12 04:53
nicolas17the log has all these MMIO writes to COMMAND (0x690100004), the driver defines BRCMF_PCIE_CFGREG_STATUS_CMD but doesn't actually *use* it, wth
#asahi-dev · 2024-02-12 04:40
nicolas17I'm cross-referencing logs and Linux driver and damn this is overwhelming as heck
#asahi-dev · 2024-02-12 02:51
nicolas17hm looks like m1n1 HV doesn't survive macOS going to sleep
#asahi-dev · 2024-02-12 02:48
nicolas17https://github.com/AsahiLinux/docs/wiki/SW:Getting-started this makes me sad
#asahi-dev · 2024-02-12 02:30
nicolas17only for this at the beginning: [cpu0] PT[690100000:690101000] -> WSYNC.RW WLANTracer@/arm-io/apcie/01:00.0
#asahi-dev · 2024-02-12 02:30
nicolas17so it *seems* to work now but I'm not actually getting any log messages
#asahi-dev · 2024-02-12 02:22
nicolas17- but I never tested devno=1 with running system
#asahi-dev · 2024-02-12 02:21
nicolas17- then I tested changing devno to 1 instead of 2, and loading it at startup, and it didn't work
#asahi-dev · 2024-02-12 02:21
nicolas17- then I tested loading it at startup and it didn't work
#asahi-dev · 2024-02-12 02:21
nicolas17- I think I tested loading the script after macOS had booted and it didn't work
#asahi-dev · 2024-02-12 02:13
nicolas17maybe I'm not supposed to be loading trace_wlan at startup because I need to wait for the hardware to be initialized?
#asahi-dev · 2024-02-12 02:12
nicolas17the ADT says apcie.reg[0] has address 690000000 so that seems correct

plus ›