#
✕ nick:pipcet[m]
#asahi · 2021-05-15 19:00
pipcet[m]svenpeter: maybe they're just dart cheap
#asahi · 2021-05-15 18:58
pipcet[m]in hypervisor mode or just chain-loaded?
#asahi · 2021-05-14 17:41
pipcet[m]svenpeter: the SMC puts floats in the MMIO region, but I wouldn't have thought those were actually loaded as floats.
#asahi · 2021-05-14 17:35
pipcet[m]marcan: cool, I'll have a look tomorrow. For now, I've got some mmiotraces to look through :-)
#asahi · 2021-05-14 12:41
pipcet[m]sven: does dart handle read-only/read-write permissions? maybe it's for that?
#asahi · 2021-05-14 12:29
pipcet[m]tarzeau: well, you can also chainload the corellium kernel if you just want to see whether it works on your machine, but that's not asahi linux.
#asahi · 2021-05-14 12:27
pipcet[m]you'll get a logo right away, but having the second machine to chain-load the kernel is really handy. But, again, no special cable required. I don't own one.
#asahi · 2021-05-14 12:25
pipcet[m]just standard USB-C <-> USB-A works now
#asahi · 2021-05-14 11:48
pipcet[m]from the ADT, there might be another one at 0x23b70c000 - 0x23b70c033, which seems even weirder?
#asahi · 2021-05-14 11:46
pipcet[m]it's just a one-word range?
#asahi · 2021-05-14 11:44
pipcet[m] * (that's arm-io/dart-ane/mapper-ane/pio-range)
#asahi · 2021-05-14 11:44
pipcet[m](that's arm-io/dart-ne/mapper-ane/pio-range)
#asahi · 2021-05-14 11:42
pipcet[m]but if there's a bit to by-pass DAPF it might be something else entriely.
#asahi · 2021-05-14 11:42
pipcet[m]maz: might be true for the kernel page tables.
#asahi · 2021-05-14 11:39
pipcet[m]so it might prevent you from writing to the page tables when the dart is in pass-through mode?
#asahi · 2021-05-14 11:19
pipcet[m]I got a very minimal mmiotracer working using the stolen-core approach. Probably not too interesting, the HV is much better, but if anyone needs an mmiotrace right this very second, it might help :-)
#asahi · 2021-05-13 13:38
pipcet[m]oh, so short I missed it :-)
#asahi · 2021-05-13 13:30
pipcet[m]not that aarch64 loads and stores are that complicated, particularly not the ones we actually need...
#asahi · 2021-05-13 13:27
pipcet[m]are you planning to emulate the actual mmio insns, or is there a trick to let the CPU do that for you? mapping the page and single-stepping, maybe?
#asahi · 2021-05-13 13:19
pipcet[m]i'm quite surprised at how fast the framebuffer is even without accel
#asahi · 2021-05-13 13:17
pipcet[m]true
#asahi · 2021-05-13 13:17
pipcet[m]and nvme
#asahi · 2021-05-13 13:09
pipcet[m]and another device that's on the i2c bus that I hope we won't need.
#asahi · 2021-05-13 13:09
pipcet[m]oh, sorry, the display controller itself is also there :-)
#asahi · 2021-05-13 13:08
pipcet[m]it's a variation of a documented chip, though, synergy mipi-dsi(m)
#asahi · 2021-05-13 13:08
pipcet[m]yes, I have. I can hijack it from macos and put stuff on the screen, but I really need mmiotrace to make further progress on that :-)
#asahi · 2021-05-13 13:03
pipcet[m]the wifi driver's working and doesn't make any major changes, but right now you have to copy a firmware blob from the macos install.
#asahi · 2021-05-13 13:02
pipcet[m]sven: don't play 3D games, code, it's fast enough for that :-)
#asahi · 2021-05-13 13:00
pipcet[m]jottr: my MBP's perfectly usable, for example, the one big thing missing (for me) is audio.
#asahi · 2021-05-13 12:59
pipcet[m]jottr: most stuff already works with the drivers we can use as documentation to write the real ones, and the rest does not seem too terrible to figure out.
#asahi · 2021-05-12 13:25
pipcet[m]marcan: I can confirm that SMP works here with your latest code :-)
#asahi · 2021-05-12 13:20
pipcet[m]hehe. I have a useful Linux system with no IRQs. It just reads /dev/mem, waits for commands that I put there from macos, and executes them, allowing me to access physical memory locations that I wouldn't otherwise get at.
#asahi · 2021-05-12 12:25
pipcet[m]ah, that makes sense. I wonder why iboot didn't do that for us.
#asahi · 2021-05-12 12:22
pipcet[m]thanks!
#asahi · 2021-05-12 12:17
pipcet[m](currently installing the macos CC so I can communicate between the linux kernel I have running on CPU7 and the macos system on CPU0. Turns out if you only give macos 4 GB of RAM installation takes forever)
#asahi · 2021-05-12 12:16
pipcet[m]looking forward to ditching that hack
#asahi · 2021-05-12 12:16
pipcet[m]I tried the latest version you pushed, no luck here. Glad it's working for you :-)
#asahi · 2021-05-12 12:13
pipcet[m]where are those streams? it sounds really interesting!
#asahi · 2021-05-10 22:14
pipcet[m]hmm. The CPU debug registers don't seem very interesting so far. You can read another core's PC, and you can do weird stuff and get the core to stop, but no real way of taking over control yet.
#asahi · 2021-05-10 20:47
pipcet[m]arnd: "here's your machine back, I've upgraded it to Linux". But seriously, would using an external ssd actually mean touching less on the internal drive? That's where the kernel is stored even for external installs, right?
#asahi · 2021-05-08 19:40
pipcet[m]sorry, probably misundertanding things again.
#asahi · 2021-05-08 19:20
pipcet[m]oh, I thought m1n1 relocated itself somewhere safe (because obviously that's what I'm doing). It might be worth it just to try relocating m1n1 somewhere and loading the guest at the physical address iBoot gave you?
#asahi · 2021-05-08 19:14
pipcet[m]I confess that's not obvious to me.
#asahi · 2021-05-08 19:09
pipcet[m]you're not chainloading in place?
#asahi · 2021-05-08 19:06
pipcet[m]you have the trustcache, SEPFW, BootArgs, and DeviceTree in the devtree?
#asahi · 2021-05-08 19:04
pipcet[m]marcan: but it wouldn't boot when chain-loaded then, and it does, right?
#asahi · 2021-05-08 16:11
pipcet[m]kettenis: FWIW, gmail classified your messages as spam, probably because of the spoofing thing
#asahi · 2021-05-08 08:59
pipcet[m]marcan: again, I'm not convinced it's worth it or working on it, but someone asked and it's totally possible, if possibly harder than just getting the HV to work properly.
#asahi · 2021-05-08 08:56
pipcet[m]yes, I'm not convinced this approach is worth it, but it's not totally impossible
#asahi · 2021-05-08 08:55
pipcet[m]and we don't even need usb for a minimal setup, we can communicate with macos through shared memory and do the i/o from the emulated macos

plus ›