#
✕ nick:marcan
#asahi · 2021-05-09 23:09
marcanactually let me try that, I just found my USB SSD...
#asahi · 2021-05-09 23:09
marcaneven USB or whatever
#asahi · 2021-05-09 23:09
marcanI'm pretty sure booting macos from an external drive is supposed to work in general
#asahi · 2021-05-09 23:07
marcanI suspect they are not the same
#asahi · 2021-05-09 23:07
marcanalso, from 1TR, have you tried both the direct boot picker, and the startup disk selection under options?
#asahi · 2021-05-09 23:06
marcanwish apple documented it more clearly
#asahi · 2021-05-09 23:06
marcanfwiw I don't fully understand this myself but I know there are dragons all around... :-)
#asahi · 2021-05-09 23:06
marcan(and ahh yeah, this sounds like related to machine owner stuff)
#asahi · 2021-05-09 23:06
marcanand then you can't pick?
#asahi · 2021-05-09 23:06
marcan(this all sounds like legit bugs that could be reported to apple fwiw)
#asahi · 2021-05-09 23:05
marcanI wouldn't be surprised if booting off of an external drive also forbids internal boot mode changes per policy in some way
#asahi · 2021-05-09 23:04
marcan(to set up the first user)
#asahi · 2021-05-09 23:04
marcandid you first-boot into those OSes?
#asahi · 2021-05-09 23:04
marcanhm, interesting
#asahi · 2021-05-09 23:04
marcan(the drive adoption thing)
#asahi · 2021-05-09 23:04
marcanthat's actually something I need apple to fix for our end-user install flow, at least with my current plan
#asahi · 2021-05-09 23:03
marcanand yes the big issue with all of this is the credentials; each OS's credentials also end up in the SEP data store, which is how 1TR authorizes things like replacing the kernel...
#asahi · 2021-05-09 23:03
marcanI think that is supposed to do the provisioning properly
#asahi · 2021-05-09 23:03
marcanah, but have you tried changing boot partition via 1TR?
#asahi · 2021-05-09 23:00
marcan(and also for upgrades and such, so you can upgrade 1TR that way)
#asahi · 2021-05-09 22:59
marcanthe point of the dual-boot in the guide is exactly what you want, to leave a functional macOS for normal tasks (or normal macOS dev)
#asahi · 2021-05-09 22:58
marcanI assume it builds under macos if you have an ELF toolchain installed :)
#asahi · 2021-05-09 22:58
marcanm1n1 builds under linux
#asahi · 2021-05-09 22:58
marcannot at all, I've never even tested that
#asahi · 2021-05-09 22:46
marcan(I don't want to cross-boot from one partition to another, that is bound to cause issues)
#asahi · 2021-05-09 22:46
marcannot the other partition (though you could, if you install m1n1 there too, but it seems kind of redundant at that point)
#asahi · 2021-05-09 22:45
marcanFWIW for mmiotrace/etc I plan to use the "Linux" partition; I haven't documented this yet but I expect people who want to play along with that to leave the Mac OS install under Linux and boot that when needed (probably best think of it as a throwaway OS)
#asahi · 2021-05-09 22:45
marcanmaybe you can just stick to one OS externally (the "Linux" thing); are you planning to do anything with the Mac OS install on the external drive?
#asahi · 2021-05-09 22:43
marcanthe problem is all of this has to be provisioned on the internal boot policy and the kernels go in the iSC partition, and... there's a lot of surface area for bugs here
#asahi · 2021-05-09 22:43
marcanI don't think anyone has tested that so far
#asahi · 2021-05-09 22:43
marcanarnd: I know they still have some, um, breakage when moving external installs between devices; I wouldn't be surprised if multiple OSes on one external drive is broken
#asahi · 2021-05-09 13:47
marcanso maybe I'll add checksum disabling once all that is properly SMP-safe :-)
#asahi · 2021-05-09 13:46
marcanwith SMP etc
#asahi · 2021-05-09 13:46
marcanalso, there is another use case (which in practice I have hit more often than actual line noise): concurrency issues interleaving data and messages
#asahi · 2021-05-09 13:46
marcanbut really if I speed it up enough not to matter, who cares :-)
#asahi · 2021-05-09 13:46
marcanyeah, I thought of a flag like that for bulk data :)
#asahi · 2021-05-09 11:07
marcanI still want to do proper single stepping etc, but so far this quick hack has worked well enough
#asahi · 2021-05-09 11:07
marcansetting it to 1 cycle was the closest I got to single stepping and found me the msr pan, #1
#asahi · 2021-05-09 11:07
marcanI was setting up a timer to raise a FIQ after a certain time
#asahi · 2021-05-09 11:06
marcan< amw> Perhaps it's worth adding a tracing to help zero in on where it hangs. e.g. record the PC every certain time period or watch points? <- sorry, missed this, but that's how I found the PAN thing
#asahi · 2021-05-09 10:20
marcanamw: I reboot the thing after each boot, and I would kind of expect RAM to be cleared or shuffled after a reboot
#asahi · 2021-05-09 09:08
marcanbut I think I can implement this with a few numpy primitives (which might be even faster than plain C if they vectorize)
#asahi · 2021-05-09 09:07
marcanyeah, I try to keep backwards compat to avoid forcing people to reinstall over old versions during development
#asahi · 2021-05-09 08:59
marcan(if you read a multiple of 512 bytes of memory it hangs)
#asahi · 2021-05-09 08:58
marcanneed to fix it
#asahi · 2021-05-09 08:58
marcanI think I haven't had a USB project that didn't screw that up
#asahi · 2021-05-09 08:58
marcanoh also, there's ZLP issue with USB. there is *always* a ZLP issue with USB
#asahi · 2021-05-09 08:58
marcanbut, well, it's the same protocol
#asahi · 2021-05-09 08:58
marcanwhich is completely redundant for USB because USB already has checksums
#asahi · 2021-05-09 08:58
marcanit's just a checksum over all uart messages

plus ›