#asahi-re · 2021-01-11 16:54
marcanreally?#asahi-re · 2021-01-11 16:46
marcan(and why I added that warning to our RE policy)#asahi-re · 2021-01-11 16:46
marcandifferent standards#asahi-re · 2021-01-11 16:46
marcanthere's a reason I'm staying away from PongoOS#asahi-re · 2021-01-11 16:33
marcan*I'll#asahi-re · 2021-01-11 16:33
marcanthen I can just build with a normal ELF tolchain and objcopy -O binary to get a mach-o#asahi-re · 2021-01-11 16:33
marcanI'm probably do a trick I've used in the past, of building the mach-o structures inside the memory image in a linker script#asahi-re · 2021-01-11 16:31
marcan(not the code)#asahi-re · 2021-01-11 16:31
marcandavidrysk[m]: just the mach-o structures, to see what I should be feeding iBoot#asahi-re · 2021-01-10 03:54
marcanGART is Graphics Address Remapping Table#asahi-re · 2021-01-10 03:54
marcanDevice Address Resolution Table#asahi-re · 2021-01-10 03:54
marcanoh, not quite#asahi-re · 2021-01-10 03:50
marcanartemist: I'm going to guess it came from GART? except Device instead of Graphics?#asahi-re · 2021-01-09 18:54
marcanit's in man bputil#asahi-re · 2021-01-09 18:54
marcanah I didn't#asahi-re · 2021-01-09 18:54
marcanI might have made that up :D#asahi-re · 2021-01-09 18:54
marcanor maybe not#asahi-re · 2021-01-09 18:54
marcanShiz: Configurable Text Readonly Region#asahi-re · 2021-01-09 12:32
marcanobviously, it would contain iBoot#asahi-re · 2021-01-09 11:47
marcan:)#asahi-re · 2021-01-09 11:04
marcanit's worth not throwing things into a disassembler until we *know* we need to#asahi-re · 2021-01-09 11:04
marcannot at the moment, first thing I'm going to look at is the kernel itself just to make sure I understand the entrypoint, and after that I want to get the mini thing up and running so we can dump registers/etc#asahi-re · 2021-01-09 05:30
marcan(the first stage)#asahi-re · 2021-01-09 05:30
marcandavidrysk[m]: iBoot is in the NOR#asahi-re · 2021-01-09 05:29
marcanShiz: ha#asahi-re · 2021-01-09 05:29
marcanI won't use U-Boot initially#asahi-re · 2021-01-09 05:29
marcanpossibly external media boot, if we want to enable that#asahi-re · 2021-01-09 05:28
marcanwonder if any embedded systems have more stages than that#asahi-re · 2021-01-09 05:28
marcanwe might end end up with a boot chain along the lines of SecureROM -> iBoot1 -> iBoot2 -> mini -> U-Boot -> Linux :^)#asahi-re · 2021-01-09 05:27
marcandavidrysk[m]: I think apple calls them SecureROM, iBoot1, iBoot2 or something like that, but yes they're all the same codebase#asahi-re · 2021-01-09 05:26
marcanmaybe I should just dd /dev/zero on the mini and prove DFU works... :p#asahi-re · 2021-01-09 05:26
marcanI believe that's copied from NOR or such#asahi-re · 2021-01-09 05:25
marcanI doubt apple left a way for us to flash NOR via DFU (since it's all codesigned)#asahi-re · 2021-01-09 05:25
marcanyou'd have to take the thing apart and use a hardware flasher though#asahi-re · 2021-01-09 05:25
marcanhowever, if we can read it, I'll add that to our installer etc so that people can keep a backup#asahi-re · 2021-01-09 05:25
marcan(we might not even be able to at all)#asahi-re · 2021-01-09 05:25
marcanbut there is no reason for us to ever touch NOR#asahi-re · 2021-01-09 05:25
marcanI mean, this is the case for most devices#asahi-re · 2021-01-09 05:24
marcanlike, serial numbers and such#asahi-re · 2021-01-09 05:24
marcanDFU happens in the boot ROM. however, the NOR includes critical factory data, so if you wipe it, only apple can fix that (they'd still use DFU, but special software and tools to basically redo part of the manufacturing process)#asahi-re · 2021-01-09 04:29
marcanah, that's what it was#asahi-re · 2021-01-09 04:29
marcanI thought I read that somewhere#asahi-re · 2021-01-09 04:29
marcanisn't there a 10gbe m1 mac mini coming or something?#asahi-re · 2021-01-09 04:29
marcanyup, I have one of those too#asahi-re · 2021-01-09 04:28
marcanideally we want to make this quite universal/transparent for users#asahi-re · 2021-01-09 04:27
marcanyeah the bootloader should support all devices of course, it can just embed all devicetree blobs or read them from storage, depending on dependencies/etc#asahi-re · 2021-01-09 04:17
marcankeep in mind that with includes and overlays and such, this is all very nicely maintainable in linux#asahi-re · 2021-01-09 04:16
marcanI did this for PS3, where I would pull some info from the hypervisor database and into the devicetree#asahi-re · 2021-01-09 04:16
marcaninstead, what will have to happen is we maintain parallel device tree images for all supported mac boards, and then if any dynamic stuff needs to be carried over, our bootloader will take care of translating only those bits#asahi-re · 2021-01-09 04:15
marcanbut there is no hope of making them "compatible"