#
✕ nick:marcan
#asahi-dev · 2021-10-29 10:26
marcanso it looks like we have 4 NCO clock inputs, 5 NCOs (selectable I guess?), and 6 MCA clock selects
#asahi-dev · 2021-10-29 10:22
marcanthis kind of stuff is easy to accidentally veer into copyright issues with
#asahi-dev · 2021-10-29 10:22
marcanI see the setFrequency proto in the kext, but this is the kind of code I don't want to look at before trying to blackbox it
#asahi-dev · 2021-10-29 10:19
marcanwhatever you plotted
#asahi-dev · 2021-10-29 10:19
marcanI mean like register values vs frequency
#asahi-dev · 2021-10-29 10:19
marcannormally an NCO would be using some kind of accumulator design, followed by some kind of cleanup pass or something like that
#asahi-dev · 2021-10-29 10:19
marcanpovik: do you have some numbers?
#asahi-dev · 2021-10-29 02:08
marcanwhat does the filtering is payload mode
#asahi-dev · 2021-10-29 02:08
marcanjmr2: linux.py is unaffected by the DT selection thing, it assumes you know what you're doing
#asahi-dev · 2021-10-28 18:33
marcanalso power states, but you can kind of ignore that the way the APIs work and just enable stuff in m1n1 prior to booting, kinda
#asahi-dev · 2021-10-28 18:33
marcanj_ey: yes, that's the next big blocker, for nvme and soon smc and gfx and more
#asahi-dev · 2021-10-28 18:32
marcanbut feel free to send me some patches to add a DT for the air (and/or mbp); non-schema DT changes like these are easy to review, just CC the usual folks/MLs so everyone gets a chance to see it :)
#asahi-dev · 2021-10-28 18:32
marcanthere were a bunch of weirdo dependency chains that are getting simplified now
#asahi-dev · 2021-10-28 18:31
marcanbut a lot of things are getting mainlined
#asahi-dev · 2021-10-28 18:31
marcanit's just all over the place right now
#asahi-dev · 2021-10-28 18:31
marcanyeah... after 5.16 I'm going to finally put together a bit of a canonical branch with this stuff
#asahi-dev · 2021-10-28 18:30
marcanso you just cat all of them together and it finds the right one
#asahi-dev · 2021-10-28 18:29
marcanm1n1 already has the ability to filter DTs by machine, I added that recently (it won't even boot a mini DT on an air any more)
#asahi-dev · 2021-10-28 18:29
marcanjix: that's called we need mba/mbp DTs
#asahi-dev · 2021-10-28 18:28
marcanI think I was 20 levels deep in the problem stack and about to give up when I had a really lucky break and something fixed itself enough to let me continue and make it work again
#asahi-dev · 2021-10-28 18:27
marcannot exactly how I planned to spend the day. also the entire ecosystem of jailbreak/etc tooling is a gian mess outside of standard use cases
#asahi-dev · 2021-10-28 18:27
marcanmeanwhile today I, uh, spent the whole day doing panic data recovery on a friends' iPhone :/
#asahi-dev · 2021-10-28 18:26
marcannote how the dts already enables the UARTs selectively
#asahi-dev · 2021-10-28 18:25
marcanor possibly the converse
#asahi-dev · 2021-10-28 18:25
marcanyes
#asahi-dev · 2021-10-28 18:25
marcanthe parent file can enable/disable blocks and such, and override things
#asahi-dev · 2021-10-28 18:25
marcanjix: the .dtsi is the SoC, the bits are supposed to be specialized in the .dts files that include it
#asahi-dev · 2021-10-27 14:02
marcanI care about that eventually, but not right now
#asahi-dev · 2021-10-27 13:58
marcan;p
#asahi-dev · 2021-10-27 13:58
marcankettenis: eh, we can just add SEP support to u-boot and sign it with machine-derived keys
#asahi-dev · 2021-10-27 13:57
marcanalyssa: yes, tell that to end users :p
#asahi-dev · 2021-10-27 13:57
marcanwe'd have to do something to put that in the ESP or s
#asahi-dev · 2021-10-27 13:57
marcanwe don't even have a variable store right now, do we? :)
#asahi-dev · 2021-10-27 13:56
marcanI can see that getting very confusing
#asahi-dev · 2021-10-27 13:56
marcanyeah, but if there are multiple ESPs, how do they pick?
#asahi-dev · 2021-10-27 13:55
marcando linux installers/etc handle it though?
#asahi-dev · 2021-10-27 13:54
marcanheh, didn't know that
#asahi-dev · 2021-10-27 10:11
marcancool :)
#asahi-dev · 2021-10-27 08:33
marcan(for those who missed it: for run_guest and such, you can now append "boot-args=foo bar baz" as newline-terminated ASCII to m1n1.macho to set the linux bootargs statically)
#asahi-dev · 2021-10-27 08:32
marcani.e. just cat stuff into the binary
#asahi-dev · 2021-10-27 08:32
marcanwell, "hardcoding" can be done via the vars mechanism I added
#asahi-dev · 2021-10-27 08:22
marcan(could also take the dashes out and go with EFI:<uuid> or something)
#asahi-dev · 2021-10-27 08:21
marcanhm, the GPT partition name field fits an ASCII UUID *exactly*. maybe that's the easiest way to bind them to a VGUUID.
#asahi-dev · 2021-10-27 08:19
marcanin principle it's desirable to let users boot different m1n1-based OSes from the Apple boot picker, not just due to the SEP stuff but also because it's more user friendly than nested bootloaders and also supports accessibility
#asahi-dev · 2021-10-27 08:18
marcanapple deals with this by putting everything in their EFI-partition-equivalent (Preboot) under a folder named after the VGUUID of the OS in question...
#asahi-dev · 2021-10-27 08:17
marcan(evil hack: have u-boot change the partition IDs to only mark the current one as a real EFI partition...)
#asahi-dev · 2021-10-27 08:16
marcan(of course distro installers may be very confused by multiple EFI partitions, but what can you do about that...)
#asahi-dev · 2021-10-27 08:16
marcanso maybe it makes more sense to either hardcode the EFI partition UUID in m1n1 at install time, or to just have a flag file in the EFI partitions saying what VGID they belong to, so they can be scanned for
#asahi-dev · 2021-10-27 08:15
marcanthough that adds even more pitfalls since you can in principle have multiple installs per APFS container (though we don't currently support that)
#asahi-dev · 2021-10-27 08:15
marcanso I'm wondering if we should have some magic to be able to have multiple EFI partitions and tell u-boot which one to use, perhaps as a m1n1 arg built into it at install time, or perhaps via automagic search based on partition order (since the ADT tells us what APFS volume group UUID we booted from, we could search for that and look for the subsequent EFI partition)

plus ›