#
#asahi-dev · 2026-11-17 18:48
jannau"Couldn't sanitize GL_RENDERER AGX G13/G14" is expected, "dmabuf image neither requires nor prefers a dedicated allocation" doesn't sound fatal eitherand I can't find references to it in web search
#asahi-dev · 2026-11-17 18:34
yuka*M1 Pro
#asahi-dev · 2026-11-17 18:34
yukaM1
#asahi-dev · 2026-11-17 18:34
yukahttps://termbin.com/j0ac
#asahi-dev · 2026-11-17 18:34
yukacloudflare captcha reliably crashes my firefox :/
#asahi-dev · 2026-11-17 16:22
jannauthe main point of using the VM on physical storage is that you can work on the same source when booted Linux and macOS. It's probably the easiest way to install Linux on M4 devices right now and verify that it boots
#asahi-dev · 2026-11-17 16:18
fl0_idyou can get this from docs and irc chat logs. basic workflow is observe via m1n1 hypervisor, while being booted into a 2nd macos with kdk installed (macos running in m1n1 hv)
#asahi-dev · 2026-11-17 16:18
svenIt’s all in the docs
#asahi-dev · 2026-11-17 16:17
Overtone[m]But the thing I'm curious is your workflows in this job; for example;... (full message at <https://matrix.org/oftc/media/v1/media/download/AdjVZ_Ya_le0q31wxOv6qWmS1KmT-IAo4sML-S69b5CINP6llzVNhapnW5lO8daMNGCkrgVs4NkN3wxe4aIztWRCeiMmWU6gAG1hdHJpeC5vcmcvZUFEb2dpWmtkTHpwb1B2TXRRa0JaUE10>)
#asahi-dev · 2026-11-17 16:16
fl0_idhttps://asahilinux.org/docs/sw/tethered-boot/
#asahi-dev · 2026-11-17 16:16
fl0_idwith whatever patches you want
#asahi-dev · 2026-11-17 16:16
fl0_idthen install m1n1 over that
#asahi-dev · 2026-11-17 16:15
fl0_idfollow the docs, install second normal or stub macos isntall
#asahi-dev · 2026-11-17 16:13
Overtone[m]Anyways lets assume I did compile the kernel successfully, no problems right there; whats the next step?
#asahi-dev · 2026-11-17 16:09
fl0_idOvertone[m] first you can familiarize yourself with the setup. yes in theory you can build it without, but it's a pain. afaik case sensitive storage is not enough. and without some more setup, you cannot test anyway. you could also cross-compile on a linux machine...
#asahi-dev · 2026-11-17 16:09
Overtone[m]* APFS case-sensitive virtual storage, * storage partition (not a
#asahi-dev · 2026-11-17 16:08
Overtone[m]IDK correct if I'm wrong.
#asahi-dev · 2026-11-17 16:08
Overtone[m]Actually you don't. Currently I'm building mainline Linux kernel up; within an APFS case-sensitive storage (not a container, not anything else).
#asahi-dev · 2026-11-17 16:07
svenyou need the Linux vm to build the Linux kernel, that’s why it was suggested
#asahi-dev · 2026-11-17 16:05
Overtone[m]If we're developing the kernel and drivers specifically for Apple Silicon hardware, what exactly can we test in a VM that would be useful for bare-metal bring-up?
#asahi-dev · 2026-11-17 16:04
fl0_idbut when you start if without VM, it will use real HW
#asahi-dev · 2026-11-17 16:04
fl0_idthe rest of the hw is virtualized
#asahi-dev · 2026-11-17 16:04
fl0_idthe VM does not when it is running from the VM, but afaik you can give it access to a real block device/partition
#asahi-dev · 2026-11-17 16:03
fl0_idthat way you could try things more easily. but make extra sure you use the right partitions, and you might need to use terminal commands to create the vm
#asahi-dev · 2026-11-17 16:03
Overtone[m]How would a virtual machine use real hardware's?
#asahi-dev · 2026-11-17 16:03
Overtone[m]fl0_id: But the real device is the real device yet a virtual machine especially in ARM has only limited subset of the host's; like it can't AFAIK even EL3.
#asahi-dev · 2026-11-17 16:02
fl0_idbut use physical partitions that the real hardware can also use
#asahi-dev · 2026-11-17 16:02
fl0_idthe VM would start from you normal macos install
#asahi-dev · 2026-11-17 16:01
fl0_idOvertone[m] you could find most of this in docs - VM because it does not work fully / usable on real hardware yet and you have only one machine. second install, because to be able to use it via VM AND via real hardware (eventually) you need to install linux like asahi does, which uses a stub macos install like all asahi installs
#asahi-dev · 2026-11-17 15:59
Overtone[m]s/thing/things/
#asahi-dev · 2026-11-17 15:59
Overtone[m]jannau: Creating a virtual machine is trivial itself; not a big problem. The thing I didn't understand is;... (full message at <https://matrix.org/oftc/media/v1/media/download/AeDl55sBYIF6lOS-9ZdtzdxNgSr72NK36XDz5YGPT1E6GlrC_BACLDIxRfUoZ0SYc6OlSbN140Pwf3tile5f3A9CeiMlUM0QAG1hdHJpeC5vcmcvdGlldVRqWmlQaWdGbnJzeGFyQm1mSmlW>)
#asahi-dev · 2026-11-17 15:59
svenso, uh, do you want to just continue then? As I said, I haven’t written any code yet and just thought about what I was going to do
#asahi-dev · 2026-11-17 15:54
svenoh well.. if we need to do that matching anyway we may as well do everything that way then
#asahi-dev · 2026-11-17 15:52
jannaunot really possible for other devices
#asahi-dev · 2026-11-17 15:52
jannaufor usb the addresses haven't changed (much) so we could probably just hardcode
#asahi-dev · 2026-11-17 15:50
jannaumatching addresses by iterating over compatible FDT node was my plan as well
#asahi-dev · 2026-11-17 15:50
jannauThis is a little complicated. If you're confident that you'll manage to set the Linux VM up, we can discuss how to build and boot Linux kernel via m1n1 on the secondary macos
#asahi-dev · 2026-11-17 15:49
svenoh, lol, or just construct the alias rvalue in m1n1 if we want to hack this :D
#asahi-dev · 2026-11-17 15:48
jannauOvertone[m]: my idea would be to create a secondary macos install and partition your ssd to create a linux VM in macos which uses SSD partitions as storage. The linux partition when could be used from the VM and from booting linux via m1n1 on the secondary macos.
#asahi-dev · 2026-11-17 15:41
svenso my plan was iterate over nodes by compatible, then extend dt_get_address to dt_get_address_by_index (or maybe even dt_get_address_by_name) to match against the right adt reg index
#asahi-dev · 2026-11-17 15:40
jannauwe don't even have matching addresses? I've factored so far the ADT address collection from dt_disable_missing_devs() and written fdt_node_offset_by_compatible_suffix() so we can iterate over nodes which are compatible to "-atcphy$"
#asahi-dev · 2026-11-17 15:38
svenand then just look for the NHI in its children
#asahi-dev · 2026-11-17 15:38
svenfor tbt I'd match the "rc" reg to adt reg[2] to find the parent node
#asahi-dev · 2026-11-17 15:37
svenI haven't written much code yet though so feel free to take over :D
#asahi-dev · 2026-11-17 15:37
sven*match
#asahi-dev · 2026-11-17 15:37
svenfor atcphy I think we can patch the usb2phy regs to adt reg[2]
#asahi-dev · 2026-11-17 15:36
svenah... I was kinda working on atcphy and tbt/nhi in parallel
#asahi-dev · 2026-11-17 15:36
jannauatcphy is annoying
#asahi-dev · 2026-11-17 15:36
jannaufixing touchbar and atcphy atm. touchbar was ok. already kinda hardcoded to the only 2 devices
#asahi-dev · 2026-11-17 15:35
Overtone[m]jannau: I don't have a secondary non-Apple computer.

plus ›