marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
linuxgemini has quit [Read error: Connection reset by peer]
qyousef has quit [Ping timeout: 272 seconds]
qyousef has joined #asahi-dev
blward has joined #asahi-dev
blward is now known as blward_
blward_ has quit [Client Quit]
blward has joined #asahi-dev
blward has quit [Quit: Connection closed]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 260 seconds]
amw has joined #asahi-dev
amw has quit [Ping timeout: 240 seconds]
_whitelogger has joined #asahi-dev
TellowKrinkle[m] has joined #asahi-dev
odmir has quit [Remote host closed the connection]
amw has joined #asahi-dev
amw has quit [Read error: Connection reset by peer]
amw has joined #asahi-dev
amw has quit [Ping timeout: 240 seconds]
amw has joined #asahi-dev
amw has quit [Ping timeout: 264 seconds]
mxw39 has quit [Quit: Konversation terminated!]
mxw39 has joined #asahi-dev
VinDuv has joined #asahi-dev
<sven> so.. is there a kext or something that would allow be to dump MMIO ranges from within Mac OS?
<sven> and I assume there's no simple way to just cross-compile the Linux kernel on Mac OS without using a VM?
<VinDuv> Assuming you can still load unsigned kexts on M1 Macs by disabling SIP, you could try writing one I think
<sven> sure, I'm just wondering if that already exists
bgb has joined #asahi-dev
<VinDuv> Probably not with existing signed kexts
<VinDuv> Building Linux on macOS seems to not work because some headers are missing
<VinDuv> HOSTCC scripts/sorttable
<VinDuv> scripts/sorttable.c:27:10: fatal error: 'elf.h' file not found
<sven> I'm not talking about existing signed kexts, I'm wondering if anyone has already written something like this :-)
<sven> and yeah, that's the first error I got when trying this on Mac OS as well
arvimal has quit [Remote host closed the connection]
<marcan> there was one thing I found at some point
<marcan> and promptly forgot to wtrite down
<marcan> more than one even, because this wasn't it: https://github.com/osresearch/rwmem
<dhewg> sven: that sounds like the standard libelf dependency which you need on a linux host too
<VinDuv> ok I tried copying some headers from my Linux VM and it complains that file2alias.c redefines uuid_t :-/
<sven> dhewg: yeah, and after that another error appeared :-(
<j`ey> also case insensitive file system
<j`ey> (which only seems to affect some netfilter files, so might be ok)
vimal has joined #asahi-dev
<VinDuv> you can build from a case-sensitive sparse disk image if needed
<dhewg> i know that you can build openwrt on fappleos, including cross compiling a linux kernel. maybe that helps?
<dhewg> maybe add a m1 target to openwrt, that might be the fastest way to cross build a kernel heh
bgb has quit [Ping timeout: 272 seconds]
vimal has quit [Remote host closed the connection]
vimal has joined #asahi-dev
<VinDuv> lol, gen_vdso_offsets.sh does not work because BSD sed does not recognize \t
<VinDuv> hmm
<VinDuv> that’s the only use of \t ?
<sven> I'm just gonna use a vm I think :D
<j`ey> VinDuv: not sure, I just remember that patch
bgb has joined #asahi-dev
vimal has quit [Remote host closed the connection]
<VinDuv> ok, arm64 defconfig seems to cross-compile fine with the sed patch in gen_vdso_offsets.sh, the uuid_t rename in file2alias.c, and homebrew’s openssl
<VinDuv> and it boots in qemu
linuxgemini has joined #asahi-dev
bgb has quit [Ping timeout: 272 seconds]
Namidairo has quit [Read error: Connection reset by peer]
Namidairo has joined #asahi-dev
bgb has joined #asahi-dev
odmir has joined #asahi-dev
<modwizcode> sven: Earlier something called DirectHW was mentioned https://github.com/PureDarwin/DirectHW
<modwizcode> I thought I was making some progress on trying to determine how the SMMU thing works corellium has a blog post that is... almost helpful :p. I've shifted back to thinking it might be just the TLB we're looking at
<modwizcode> The SMMU spec for ARM is difficult because it has a few different memory spaces not a single map, but the values that you see line up with "
<modwizcode> "implementation defined space" which at first I thought was a deadend but actually that's where ARM encourages you to provide a view of the TLB
<modwizcode> so that would line up.
<modwizcode> Some of the zero registers also line up perfectly with "write only" registers. Although others... don't?
snalty has quit [Ping timeout: 256 seconds]
<modwizcode> So that leads me to think it's completely unrelated again, especially because even if it does match up it's only "Global register space 0" not anything else, which would seem useless to a guest or anything.
bgb has quit [Ping timeout: 272 seconds]
bgb has joined #asahi-dev
bgb has quit [Ping timeout: 265 seconds]
rafaelmartins_ is now known as rafaelmartins
bgb has joined #asahi-dev
bgb has quit [Ping timeout: 240 seconds]
pakl[m] has joined #asahi-dev
<modwizcode> if you just search it up you can find some rather similar errors https://gist.github.com/modwizcode/493380e2406fd0cea18880614700af4b
nirusu[m] has quit [Quit: Idle for 30+ days]
bsandro has quit [Quit: leaving]
<davidrysk[m]> sven, modwizcode: DirectHW is basically a kext that allows for direct hardware access to I/O. It would need some adaptation for M1, but it should be a good example of how to get information between kernel and user space
<davidrysk[m]> flashrom is able to use the existing DirectHW on a pre-T2 Intel Mac
<sven> ah, nice
<sven> would be useful to have that working on m1 Macs to see how Mac OS configured some MMIO ranges
<sven> modwizcode: yeah, dunno. I'm probably not going to spend any more time on that SMMU for now since it's only used for three devices
<davidrysk[m]> sven: do you have xcode?
snalty has joined #asahi-dev
<modwizcode> sven: understandable, it doesn't seem important at the moment anyway.
<irradiated_lemmi> is there a reason the https://github.com/AsahiLinux/gpu repo has issues turned off?
KindOne has quit [Ping timeout: 272 seconds]
KindOne has joined #asahi-dev
<jn__> irradiated_lemmi: #asahi-gpu is probably a slightly better place to ask that
<irradiated_lemmi> ah ok, thanks!]
VinDuv has quit [Quit: Leaving.]
<kettenis> hah, got OpenBSD to boot multi-user on the mini
<kettenis> didn't manage to get the pcie DART working in bypass mode though
<sven> nice :)
<sven> I couldn't get the usb dart to enter bypass mode either (well, that or I messed my ugly hacks to the dwc3 code in linux up)