#asahi · 2021-10-15 14:49
marcanheh#asahi · 2021-10-15 14:48
marcanhm, no objcopy though#asahi · 2021-10-15 14:47
marcanI wonder if I can just make this work with xcode?#asahi · 2021-10-15 14:47
marcanwell, darwin20 sure sounds like macho#asahi · 2021-10-15 14:46
marcanlol#asahi · 2021-10-15 14:46
marcanself-built? :p#asahi · 2021-10-15 14:46
marcanhomebrew?#asahi · 2021-10-15 14:45
marcanwe should document how to set this up properly#asahi · 2021-10-15 14:45
marcanask sven how he does it on macOS :)#asahi · 2021-10-15 14:45
marcankov: yeah, the proxyclient code assembles things on the fly and needs a compiler#asahi · 2021-10-15 14:38
marcanincidentally, with the uncommitted m1n1 changes I have here that SError would at least turn into a precise data abort :)#asahi · 2021-10-15 14:37
marcanalso can you addr2line 0x27fc0 ?#asahi · 2021-10-15 14:36
marcanso I'd quite like to figure out what's up with that :)#asahi · 2021-10-15 14:36
marcanit's entirely possible there's some undefined behavior in tinf or something like that#asahi · 2021-10-15 14:36
marcanwell... it *should* work with a native compiler#asahi · 2021-10-15 14:34
marcanif you send me the binary I can try to reproduce here :)#asahi · 2021-10-15 14:34
marcanI get the feeling your build broke gzip decoding somehow, maybe there's something dodgy there or a compiler issue?#asahi · 2021-10-15 14:34
marcantry replacing compressed_writemem with writemem in chainload.py and see if that fixes things#asahi · 2021-10-15 14:34
marcanwhat compiler are you using#asahi · 2021-10-15 14:31
marcanif it's your own build it'd make sense#asahi · 2021-10-15 14:30
marcanor your own build?#asahi · 2021-10-15 14:30
marcanand you used the mrcn.st/alxsh installer?#asahi · 2021-10-15 14:28
marcanbecause that makes more sense at least#asahi · 2021-10-15 14:27
marcanwait, was this chainloaded from a fresh boot or after a single chainload already?#asahi · 2021-10-15 14:25
marcanthe thing is gzdec doesn't even *use* the heap... so I have no idea how this could even happen#asahi · 2021-10-15 14:22
marcanuh. that sure looks like a heap explosion.#asahi · 2021-10-15 14:22
marcandispose_chunk at /home/marcan/asahi/git/asahi-installer/m1n1/src/dlmalloc/malloc.c:4421#asahi · 2021-10-15 14:22
marcan$ addr2line -pf -e ../asahi-installer/m1n1/build/m1n1.elf 0x1d6b4#asahi · 2021-10-15 14:21
marcanah wait, that's the m1n1 from the installer#asahi · 2021-10-15 14:20
marcanthough that exception isn't precise so that may or may not end up being useful#asahi · 2021-10-15 14:19
marcanI should add that to the exception dump screen#asahi · 2021-10-15 14:19
marcankov: please run addr2line -pf -e build/m1n1.elf 0x1d6b4#asahi · 2021-10-15 13:59
marcanthen you wouldn't see all the iBoot stuff from there#asahi · 2021-10-15 13:59
marcanmaybe we can hack the ANS2 into only exposing the Linux partition to the OS#asahi · 2021-10-15 13:58
marcanyou'd have to rules lawyer all the boot stuff into somehow counting as a ROM#asahi · 2021-10-15 13:55
marcanfun fact: that thing has the same line of PD controllers as the M1 Macs#asahi · 2021-10-15 13:55
marcanso maybe we do indeed have a case of infinite libre poisoning recursion#asahi · 2021-10-15 13:55
marcanbut the loader code is Libre#asahi · 2021-10-15 13:55
marcanI guess then the second CPU is tainted and can never be used by Libre software though#asahi · 2021-10-15 13:54
marcanit's just they use a secondary CPU to *load* it, so as long as you don't give cooties to the main CPU by touching it from there, it's fine!#asahi · 2021-10-15 13:54
marcankrbtgt: it's not even a mask rom, in the end it was the same (updatable!) SPI flash that has the Type-C controller firmware (which is *another* blob)#asahi · 2021-10-15 03:10
marcanall this is going to need buildboxes, I'm looking forward to making a little cluster of M1X Mac Minis ;)#asahi · 2021-10-15 03:09
marcanfor a desktop thing I might end up writing something (in Qt or PyQt maybe?) if I find some time#asahi · 2021-10-15 03:09
marcanthat sounds good#asahi · 2021-10-15 03:09
marcanah, for the barebones arch image there's https://wiki.archlinux.org/title/Systemd-firstboot#asahi · 2021-10-15 03:08
marcan(and it's 2000 lines of GTK...)#asahi · 2021-10-15 03:08
marcanI guess this is a thing, heh: https://github.com/raspberrypi-ui/piwiz/blob/master/src/piwiz.c#asahi · 2021-10-15 03:07
marcanyes#asahi · 2021-10-15 03:05
marcanit would also be neat to have a "firstboot" style wizard like the macos one, so people can set up their own login/password instead of having to change a default#asahi · 2021-10-15 03:02
marcanso people can choose