#
✕ nick:marcan
#asahi-dev · 2021-12-21 07:56
marcansomeone already mentioned it comes from ACPI
#asahi-dev · 2021-12-21 06:46
marcany'know, maybe I should write a blog post about this (how the partitioning/installer will work)
#asahi-dev · 2021-12-21 06:40
marcanwell, that solves this problem then!
#asahi-dev · 2021-12-21 06:40
marcanyup, works great
#asahi-dev · 2021-12-21 06:40
marcanoh, or that, which I somehow missed
#asahi-dev · 2021-12-21 06:40
marcanah, "diskutil rename" works and conveniently renames the mountpoint
#asahi-dev · 2021-12-21 06:39
marcanI'm not sure about changing the volume name though, it showed up as "NO NAME"
#asahi-dev · 2021-12-21 06:39
marcanyup, that worked :)
#asahi-dev · 2021-12-21 06:36
marcanlet's see if it works
#asahi-dev · 2021-12-21 06:36
marcanindeed, it's there
#asahi-dev · 2021-12-21 06:34
marcanah, good point, let's see
#asahi-dev · 2021-12-21 06:34
marcanhttps://github.com/maxpat78/FATtools this might be a convenient way to do it from python
#asahi-dev · 2021-12-21 06:31
marcanI kind of want to avoid touching the GPT outside of diskutil, but it seems formatting ourselves should work
#asahi-dev · 2021-12-21 06:31
marcanor we can ship mkdosfs
#asahi-dev · 2021-12-21 06:31
marcanthen mount works
#asahi-dev · 2021-12-21 06:31
marcanso one dumb thing we can do is format it as FAT32, take a disk image in RAM, then format it as EFI, and dump the disk image back
#asahi-dev · 2021-12-21 06:28
marcanand using eraseVolume changes the type, hmm
#asahi-dev · 2021-12-21 06:27
marcanah, so we *can* create partitions with arbitrary EFI types, but what we can't do is *format* them
#asahi-dev · 2021-12-21 06:25
marcanI *thought* there was a way to specify the UUID, but let me see
#asahi-dev · 2021-12-21 06:24
marcanand yeah *EFI system partition
#asahi-dev · 2021-12-21 06:24
marcanheh
#asahi-dev · 2021-12-21 06:24
marcanbut yes, as long as we can write the GPT we can fix up the partition types
#asahi-dev · 2021-12-21 06:24
marcanIIRC there is some way but I need to experiment
#asahi-dev · 2021-12-21 06:24
marcanwe do have raw disk access, can't remember if to the GPT though but I think so?
#asahi-dev · 2021-12-21 06:23
marcan(e.g. diskutil calls corestorage)
#asahi-dev · 2021-12-21 06:23
marcana bunch of this stuff is gated by entitlements
#asahi-dev · 2021-12-21 06:23
marcanand I'm not aware of any "reload partition table" API or similar
#asahi-dev · 2021-12-21 06:23
marcanwe need to use diskutil for APFS resizes and creating the EFI stub partition, since we need to mount the latter
#asahi-dev · 2021-12-21 06:22
marcanwhich makes life much easier for developers, but it's missing all the boring bits around partitioning :)
#asahi-dev · 2021-12-21 06:22
marcanthe current installer is basically a PoC of the stub creation
#asahi-dev · 2021-12-21 06:21
marcannot yet, but yes, I'll take care of the partitioning
#asahi-dev · 2021-12-21 06:16
marcantpw_rules: fun, I guess that will also work once we implement PSCI :p (but we'd have to teach u-boot about the new PSCI call method too)
#asahi-dev · 2021-12-21 03:08
marcanpushed, it won't do that on --no-sepfw now
#asahi-dev · 2021-12-21 03:07
marcanthat was unintentional
#asahi-dev · 2021-12-21 03:07
marcanohh right, the CPU thing also pulls the ADT
#asahi-dev · 2021-12-21 03:06
marcanit should work but it still takes an annoyingly long time over serial, hence the arg
#asahi-dev · 2021-12-21 03:06
marcankettenis: oh wow, didn't realize you were on serial. yeah, use --no-sepfw over serial to avoid that.
#asahi-dev · 2021-12-20 19:20
marcanv2 of mailbox re-compatible
#asahi-dev · 2021-12-20 19:19
marcan(but asahi isn't up to date with that)
#asahi-dev · 2021-12-20 19:18
marcankettenis: I did send out a v2 :)
#asahi-dev · 2021-12-20 19:11
marcanI suspect the reason for the island codenames is just so broadcom doesn't know anything about what machines apple is working on
#asahi-dev · 2021-12-20 19:10
marcanif apple does something weird in a future platform/update we just update m1n1 anyway, which we'd probably have to either way
#asahi-dev · 2021-12-20 19:10
marcanI think "module instance" is actually the platform tbh
#asahi-dev · 2021-12-20 19:09
marcanthe antenna SKU does come from sysconfig
#asahi-dev · 2021-12-20 19:09
marcanthose props are hardcoded in the template ADTs
#asahi-dev · 2021-12-20 19:09
marcanI mean, by that token we might as well take everything from the ADT
#asahi-dev · 2021-12-20 19:08
marcanbut feel free to submit something for the latter :)
#asahi-dev · 2021-12-20 19:08
marcannot yet, but the instance just goes in the DT since it's not dynamic, and the antenna doesn't actually matter for any current platform, so I just have some dummy thing in the DT for now
#asahi-dev · 2021-12-20 19:04
marcanthat used to be the same in 11.x but isn't any more
#asahi-dev · 2021-12-20 19:04
marcan1TR is just "any recovery you boot into while asserting physical presence"

plus ›