#asahi · 2021-07-25 15:46
marcanalso I want to get my head around how we'd handle the DART lock situation#asahi · 2021-07-25 15:45
marcangood reason to fix things!#asahi · 2021-07-25 15:35
marcansven: hopefully I get back on a dev flow next week, and I want to spend a day or two poking at linux merge branches and testing all that stuff#asahi · 2021-07-22 18:04
marcanwe won't distribute anything ourselves, and I highly doubt Apple will object to this usage (it's equivalent to installing macOS normally and then erasing most of it)#asahi · 2021-07-22 18:04
marcanso our installer will take care of downloading the bits we need from Apple's CDN and doing whatever it needs to do#asahi · 2021-07-22 18:04
marcanthe licensing situation is basically that every machine owner has a license to macos by definition, but we don't have a license to redistribute anything#asahi · 2021-07-22 18:02
marcanfor the latter, we'll have to make our installer pull it out of macos and stuff it in /boot or something, where the OS can then copy it out or directly use it#asahi · 2021-07-22 18:01
marcanwe can't distribute any of the firmwares. so far everything is preloaded by iBoot except SEPFW (which is passed in RAM), things in auxiliary Flash memories (which we don't touch), and the stupid broadcom wifi thing#asahi · 2021-07-22 18:01
marcanrobher: no, we do not have a license to it and I'm pretty sure it's paired with things, plus encrypted#asahi · 2021-07-22 17:55
marcanbut yeah, good point#asahi · 2021-07-22 17:55
marcanheh, how does that work?#asahi · 2021-07-22 17:53
marcanI'd poke robher#asahi · 2021-07-22 17:52
marcanit might make sense to do it in the DT though, as you say#asahi · 2021-07-22 17:52
marcanbut linux already has a firmware mechanism...#asahi · 2021-07-22 17:51
marcanwe could use a reserved memory region thing#asahi · 2021-07-22 17:50
marcanshould work#asahi · 2021-07-22 17:50
marcanah, distro config you mean#asahi · 2021-07-22 17:48
marcan64MB max right now but you can increase it in m1n1.ld#asahi · 2021-07-22 17:47
marcan_max_payload_size = 64*1024*1024;#asahi · 2021-07-22 17:47
marcan*area#asahi · 2021-07-22 17:47
marcanwell, except the payload are is probably too small for your initramfs :p#asahi · 2021-07-22 17:47
marcanyou can also test the payload codepath by doing `cat m1n1.macho devtree.dtb initramfs.cpio.gz kernel > m1n1.payload.macho` and doing a chainload.py to that; that should also work#asahi · 2021-07-22 17:46
marcanalso another thing to check is that the kernel is built for the compression method you are using#asahi · 2021-07-22 17:46
marcan(I was upgrading macos)#asahi · 2021-07-22 17:46
marcanbut give that a shot#asahi · 2021-07-22 17:46
marcandon't even have m1n1 installed and I need to go to sleep :)#asahi · 2021-07-22 17:45
marcancth451_desktop: I just pushed some completely untested code to the kboot-fw branch#asahi · 2021-07-22 17:18
marcanbut I could see this mechanism being part of keeping DCP safe from the AP, with something else constraining it to only its firmware area#asahi · 2021-07-22 17:17
marcan... I hope#asahi · 2021-07-22 17:17
marcanApple aren't stupid enough to leave that in#asahi · 2021-07-22 17:17
marcanbasically what I want to know is does DCP firmware have a backdoor to system RAM or not#asahi · 2021-07-22 17:17
marcanyeah, but there might be some other constraint in that access path#asahi · 2021-07-22 17:16
marcanwould be nice to know e.g. if it's for firmware access, and constrained some other way#asahi · 2021-07-22 17:16
marcannow I wonder what that one does... and what it's a backdoor for#asahi · 2021-07-22 17:15
marcanalternatively, wasn't there one stream set to bypass (15?)#asahi · 2021-07-22 17:15
marcanI would expect the first level for one stream or subset to be locked#asahi · 2021-07-22 17:15
marcanall of them?#asahi · 2021-07-22 17:14
marcanand some are locked behind something else#asahi · 2021-07-22 17:14
marcanyeah but I bet some L2 pagetables are in writable RAM#asahi · 2021-07-22 17:13
marcanwhich is probably so the DCP firmware is safe I guess#asahi · 2021-07-22 17:13
marcanmaybe only some streams#asahi · 2021-07-22 17:13
marcanbut we can still modify them, right?#asahi · 2021-07-22 17:13
marcanannoying#asahi · 2021-07-22 17:13
marcanheh, so that is why they reference the pagetables in the ADT#asahi · 2021-07-22 17:13
marcanas in the registers?#asahi · 2021-07-22 17:12
marcanlocks?#asahi · 2021-07-22 17:10
marcanlet me see what I can do#asahi · 2021-07-22 17:10
marcanfor payloads we should pre-alloc some space and just memmove; for linux.py, it should just deal with it in python and basically do the same thing#asahi · 2021-07-22 17:09
marcananyway the way the cpio code does the re-malloc of the initrd kind of defeats the purpose of all the careful memory management in payload.c, so I want to redo that#asahi · 2021-07-22 17:08
marcanchange that to 512 or something