#
#asahi-re · 2021-01-09 04:29
marcanyup, I have one of those too
#asahi-re · 2021-01-09 04:28
davidrysk[m]an ioregistry dump from macOS might be useful as it is populated with dynamic as well as static information
#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:23
artemistOkay, yeah, now I get why apple used them...
#asahi-re · 2021-01-09 04:22
artemistWeren't device trees an OpenFirmware thing?
#asahi-re · 2021-01-09 04:21
Shizis the concept they're descending from concrete or abstract? :p
#asahi-re · 2021-01-09 04:19
artemistI was thinking that could be useful to make the bootloader compatible with all devices, then I realized you could just read "model" in the root and just read a device tree off the FS
#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
artemistThat makes sense
#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"
#asahi-re · 2021-01-09 04:15
marcanthey are both descended from the same concept, and the overall structure is quite similar
#asahi-re · 2021-01-09 04:15
marcanthe formats are different, but even if they were the same, the way devices are implemented is different
#asahi-re · 2021-01-09 04:15
marcanthe devicetree will be way too different for converters to be useful
#asahi-re · 2021-01-09 04:13
artemistLooking at marcan's dump... this is a mess
#asahi-re · 2021-01-09 04:13
artemistYeah, I'll try playing with that this weekend
#asahi-re · 2021-01-09 04:12
Shizif you want to get the devicetree yourself without having access to an m1 cpu, its in the ipsw file :)
#asahi-re · 2021-01-09 04:11
davidrysk[m]j313ap is the macbook air, t485ap is the dtk
#asahi-re · 2021-01-09 04:00
artemistIf the Linux devicetrees and apple device trees are not binary compatible (or I need to change the compatible strings to fit Linux requirements) I wonder if it would be useful for me to write a converter
#asahi-re · 2021-01-09 03:59
roxfanone of these i guess
#asahi-re · 2021-01-09 03:59
roxfanFirmware/all_flash/DeviceTree.t485ap.im4p
#asahi-re · 2021-01-09 03:59
roxfanFirmware/all_flash/DeviceTree.j313ap.im4p
#asahi-re · 2021-01-09 03:58
roxfanon iphone devicetree was in a separate file which was decompressed and passed to the kernel as a blob IIRC
#asahi-re · 2021-01-09 03:56
Shizartemist: I'm a bit unclear about that part of the boot proces as well; my guess rn is that the locations are hardcoded by the stage before iboot and loaded into mem
#asahi-re · 2021-01-09 03:47
artemistHow does the kernel get the device tree? Does iBoot pass a pointer to it in a register?
#asahi-re · 2021-01-09 02:26
rwhitbyWell, TBT4 is just an Intel trademark which is identical technically to a fully-optioned USB4.
#asahi-re · 2021-01-09 02:25
davidrysk[m]rwhitby: yep, they advertise USB4 but not TBT4, because it doesn't support all the requirements of TBT4
#asahi-re · 2021-01-09 01:39
rwhitbyIncluding DP Alt Mode on all 3 downstream ports on the USB4 hub.
#asahi-re · 2021-01-09 01:37
rwhitbyAnd it does support a USB4 Goshen Ridge Hub
#asahi-re · 2021-01-09 01:28
rwhitbyUSB Highest Speed USB4 Gen3
#asahi-re · 2021-01-09 01:27
rwhitbySpecification Revision Version 3.0
#asahi-re · 2021-01-09 01:27
rwhitbyBCD Device 20.7.7
#asahi-re · 2021-01-09 01:27
rwhitbyUSB Product ID 0x7408
#asahi-re · 2021-01-09 01:24
rwhitbyM1 does indeed do USB4: nter USB packet (USB 4.0) | 4 bytes (00 E0 67 26)
#asahi-re · 2021-01-09 01:17
rwhitbyLooking at the back of the M1 Mini, TBT Bus 0 is the left-hand port (closest to ethernet) and TBT Bus 1 is the right-hand port (closest to HDMI).
#asahi-re · 2021-01-09 01:15
rwhitbynotes the System Information Thunderbolt Firmware Version is 0.0, whereas on Intel MBP it's 55.3
#asahi-re · 2021-01-09 00:57
jn__\o/
#asahi-re · 2021-01-09 00:55
rwhitbynow has an M1 mac mini ...
#asahi-re · 2021-01-08 20:32
roxfanhuh
#asahi-re · 2021-01-08 20:32
davidrysk[m]They didn't trim the IPSW, they didn't trim the installed OS/Recovery either
#asahi-re · 2021-01-08 20:32
davidrysk[m]at the moment it isn't used for Intel Macs
#asahi-re · 2021-01-08 20:24
roxfanI thought ipsw was used only for iOS and now Apple Silicon
#asahi-re · 2021-01-08 20:13
Shizas the name implies
#asahi-re · 2021-01-08 20:13
Shizit's a universal restore
#asahi-re · 2021-01-08 19:59
roxfanor intel macs use it too?
#asahi-re · 2021-01-08 19:59
roxfanso they just forgot to trim the ipsw?
#asahi-re · 2021-01-08 19:59
davidrysk[m]M1 Macs don't use EFI
#asahi-re · 2021-01-08 19:58
davidrysk[m]also, EFI files are only for x64 Macs

plus ›