#
…

2021-02-20

01:01linuxgemini has quit [Read error: Connection reset by peer]
01:05qyousef has quit [Ping timeout: 272 seconds]
01:06qyousef has joined #asahi-dev
01:31blward has joined #asahi-dev
01:34blward is now known as blward_
01:35blward_ has quit [Client Quit]
01:37blward has joined #asahi-dev
01:51blward has quit [Quit: Connection closed]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:22Emantor has joined #asahi-dev
03:08phiologe has joined #asahi-dev
03:08PhilippvK has quit [Ping timeout: 260 seconds]
04:06amw has joined #asahi-dev
04:10amw has quit [Ping timeout: 240 seconds]
04:24_whitelogger has joined #asahi-dev
04:37TellowKrinkle[m] has joined #asahi-dev
04:54odmir has quit [Remote host closed the connection]
05:09amw has joined #asahi-dev
05:24amw has quit [Read error: Connection reset by peer]
05:27amw has joined #asahi-dev
05:52amw has quit [Ping timeout: 240 seconds]
06:02amw has joined #asahi-dev
06:08amw has quit [Ping timeout: 264 seconds]
07:47mxw39 has quit [Quit: Konversation terminated!]
07:49mxw39 has joined #asahi-dev
08:48VinDuv has joined #asahi-dev
08:48svenso.. is there a kext or something that would allow be to dump MMIO ranges from within Mac OS?
08:49svenand I assume there's no simple way to just cross-compile the Linux kernel on Mac OS without using a VM?
09:05VinDuvAssuming you can still load unsigned kexts on M1 Macs by disabling SIP, you could try writing one I think
09:08svensure, I'm just wondering if that already exists
09:16bgb has joined #asahi-dev
09:17VinDuvProbably not with existing signed kexts
09:20VinDuvBuilding Linux on macOS seems to not work because some headers are missing
09:20VinDuv HOSTCC scripts/sorttable
09:20VinDuvscripts/sorttable.c:27:10: fatal error: 'elf.h' file not found
09:20svenI'm not talking about existing signed kexts, I'm wondering if anyone has already written something like this :-)
09:21svenand yeah, that's the first error I got when trying this on Mac OS as well
09:27arvimal has quit [Remote host closed the connection]
09:29marcanthere was one thing I found at some point
09:29marcanand promptly forgot to wtrite down
09:30marcanmore than one even, because this wasn't it: https://github.com/osresearch/rwmem
09:32dhewgsven: that sounds like the standard libelf dependency which you need on a linux host too
09:33VinDuvok I tried copying some headers from my Linux VM and it complains that file2alias.c redefines uuid_t :-/
09:34svendhewg: yeah, and after that another error appeared :-(
09:34j`eyalso case insensitive file system
09:34j`ey(which only seems to affect some netfilter files, so might be ok)
09:36vimal has joined #asahi-dev
09:36VinDuvyou can build from a case-sensitive sparse disk image if needed
09:42dhewgi know that you can build openwrt on fappleos, including cross compiling a linux kernel. maybe that helps?
09:43dhewgmaybe add a m1 target to openwrt, that might be the fastest way to cross build a kernel heh
09:44bgb has quit [Ping timeout: 272 seconds]
09:48vimal has quit [Remote host closed the connection]
09:58vimal has joined #asahi-dev
10:02VinDuvlol, gen_vdso_offsets.sh does not work because BSD sed does not recognize \t
10:04VinDuvthat’s the only use of \t ?
10:04svenI'm just gonna use a vm I think :D
10:05j`eyVinDuv: not sure, I just remember that patch
10:30bgb has joined #asahi-dev
10:42vimal has quit [Remote host closed the connection]
11:00VinDuvok, 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
11:02VinDuvand it boots in qemu
11:38linuxgemini has joined #asahi-dev
12:39bgb has quit [Ping timeout: 272 seconds]
13:03Namidairo has quit [Read error: Connection reset by peer]
13:04Namidairo has joined #asahi-dev
14:07bgb has joined #asahi-dev
14:08odmir has joined #asahi-dev
14:16modwizcodesven: Earlier something called DirectHW was mentioned https://github.com/PureDarwin/DirectHW
14:18modwizcodeI 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
14:19modwizcodeThe 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 "
14:19modwizcode"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
14:20modwizcodeso that would line up.
14:20modwizcodeSome of the zero registers also line up perfectly with "write only" registers. Although others... don't?
14:23snalty has quit [Ping timeout: 256 seconds]
14:27modwizcodeSo 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.
14:59bgb has quit [Ping timeout: 272 seconds]
15:00bgb has joined #asahi-dev
15:04bgb has quit [Ping timeout: 265 seconds]
15:19rafaelmartins_ is now known as rafaelmartins
15:23bgb has joined #asahi-dev
15:27bgb has quit [Ping timeout: 240 seconds]
15:31pakl[m] has joined #asahi-dev
15:38modwizcodeif you just search it up you can find some rather similar errors https://gist.github.com/modwizcode/493380e2406fd0cea18880614700af4b
16:00nirusu[m] has quit [Quit: Idle for 30+ days]
16:00bsandro has quit [Quit: leaving]
16:26davidrysk[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
16:26davidrysk[m]flashrom is able to use the existing DirectHW on a pre-T2 Intel Mac
16:50svenah, nice
16:51svenwould be useful to have that working on m1 Macs to see how Mac OS configured some MMIO ranges
16:51svenmodwizcode: 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
17:33davidrysk[m]sven: do you have xcode?
17:38snalty has joined #asahi-dev
18:23modwizcodesven: understandable, it doesn't seem important at the moment anyway.
19:36irradiated_lemmiis there a reason the https://github.com/AsahiLinux/gpu repo has issues turned off?
20:02KindOne has quit [Ping timeout: 272 seconds]
20:04KindOne has joined #asahi-dev
20:49jn__irradiated_lemmi: #asahi-gpu is probably a slightly better place to ask that
20:49irradiated_lemmiah ok, thanks!]
21:38VinDuv has quit [Quit: Leaving.]
22:14kettenishah, got OpenBSD to boot multi-user on the mini
22:16kettenisdidn't manage to get the pcie DART working in bypass mode though
22:21svennice :)
22:22svenI 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)
…