#
#asahi · 2025-07-27 09:42
svenand something changed between m3 and m4 there
#asahi · 2025-07-27 09:42
svenoh, and for m4 you also need to figure out what happened to PMGR because iirc most SoCs blocks are off and you need to enable them before you can use the HV
#asahi · 2025-07-27 09:41
svenand then probably create a shadow copy of all page tables and track changes and translate them to normal ARM pagetable
#asahi · 2025-07-27 09:41
sveni.e. stuff them both into EL1 and trap on genter/gexit and translate that to a switch to the other VM
#asahi · 2025-07-27 09:40
sveni'd virtualize both SPTM and XNU because drivers like DART live inside SPTM
#asahi · 2025-07-27 09:40
sven*ones
#asahi · 2025-07-27 09:39
sventhe very cheap used one usually "fell from a truck" and you don't have machine owner credentials for these which you need to even install custom boot objects
#asahi · 2025-07-27 09:39
svenalso, make sure the m4 you buy is actually new and not cheap from ebay or whatever
#asahi · 2025-07-26 23:13
chadmedwhich would involve the el2 and gl2 vms i suppose
#asahi · 2025-07-26 23:13
chadmedunless we can figure out how to hook it from a mach-o boot object so that iboot sets it up for us
#asahi · 2025-07-26 23:12
chadmedwhichever is easier i suppose. either way we have to figure out what XNU expects SPTM to do and implement it and thats the hard part
#asahi · 2025-07-26 23:08
chaos_princessbut both approaches should work, probably
#asahi · 2025-07-26 23:08
chaos_princesschadmed: i thought the plan was to do two vms, one for el2, other for gl2?
#asahi · 2025-07-26 23:07
chadmedm1n1 needs to trap any calls made to the Secure Page Table Monitor by macOS and handle them itself, basically emulating SPTM. without it, XNU immediately halts on boot.
#asahi · 2025-07-26 23:07
chaos_princessyou can do it on m2 too
#asahi · 2025-07-26 23:07
chaos_princesslearn what sptm is, then figure out how to emulate it without being able to run the actual instructions
#asahi · 2025-07-26 23:07
ProspectvBuyerI can't afford an M3 thats only available for full price wheread M4 and M2 I can get for £320
#asahi · 2025-07-26 23:06
ProspectvBuyerDidn't ask for hand holding, where do I begin learning like what do I need to learn
#asahi · 2025-07-26 23:06
chaos_princessProspectvBuyer: are you really sure you don't want to try doing an m3. it would be _much_ easier
#asahi · 2025-07-26 23:05
twbgotcha
#asahi · 2025-07-26 23:05
chadmedwe cannot hand hold you through it
#asahi · 2025-07-26 23:05
chadmedhowever you and your mentor/course coordinator/supervisor/whatever theyre called in your country would need to have the requisite low level knowledge to do it.
#asahi · 2025-07-26 23:05
chaos_princessit is not normal virtual serial, but apple custom thing. Once you get usb working, you no longer need it as it then becomes a normal usb over serial
#asahi · 2025-07-26 23:05
ProspectvBuyerTell me where to start
#asahi · 2025-07-26 23:05
chadmedthe required m1n1 work might be a good honours/final year project IF you already have the skills to do it
#asahi · 2025-07-26 23:05
twbserial-over-usb isn't a standardized part of USB?
#asahi · 2025-07-26 23:04
chaos_princessit would not make sense as you need a receiving device for that port.
#asahi · 2025-07-26 23:04
twbpity you can't hold something like ⌘+OF during boot to get that
#asahi · 2025-07-26 23:03
chaos_princessno. it is not about macos, it is about being able to send a special command that turns a usb-c port into a serial port
#asahi · 2025-07-26 23:02
ProspectvBuyerWould a hackintosh work?
#asahi · 2025-07-26 23:00
chaos_princessoh, and also, you will just need another mac or a special debug device to do this thing,
#asahi · 2025-07-26 22:59
chaos_princessyou can use macos.
#asahi · 2025-07-26 22:59
ProspectvBuyerAssuming I was working on the project could I still use MacOS or would I need a seperate daily drive laptop
#asahi · 2025-07-26 22:57
chaos_princessi mean that you can waste the money by buying a laptop that you intend to run linux on and then never be able to do so
#asahi · 2025-07-26 22:57
twbIn theory you have an advisor whose job it is to tell you if a proposed project sounds too easy or too hard
#asahi · 2025-07-26 22:56
ProspectvBuyerWhat do you mean by waste the money I don't care if the speakers break as long as I don't brick it I'm happy
#asahi · 2025-07-26 22:55
chaos_princessProspectvBuyer: hey, if you are determined to potentially waste the money, i am not your parent, so do whatever. But i do not think it is a good idea. (feel free to prove me wrong, i would be happy if you do)
#asahi · 2025-07-26 22:55
ProspectvBuyerSounds cool
#asahi · 2025-07-26 22:54
twb(If you want to get technical my other final project was a randomly-generated maze game in Common Lisp where the UI was presented as a text adventure, and it used OO to allow generic kinds of cells instead of only cubes -- where everyone else did an C++ / OpenGL pacman-style maze.)
#asahi · 2025-07-26 22:54
ProspectvBuyerEven if I no life it like whenever I'm not in lecture or studying for university I'm working on it what about then
#asahi · 2025-07-26 22:53
chaos_princessthe problem above (apple instruction emulation in m1n1) needs to be solved before any work on m4 can even begin, and that i think is something that like <100 people in the whole world can do.
#asahi · 2025-07-26 22:52
twbSpeaking as someone whose final project was "can we use Student's t test to draw conclusions about a certain datasets? Conclusion: dunno", I highly recommend picking a project you're confident you can finish :-)
#asahi · 2025-07-26 22:52
ProspectvBuyeris there anything I can do for final year project that will help port linux to M4
#asahi · 2025-07-26 22:51
chaos_princesslolnope, pick something easier
#asahi · 2025-07-26 22:51
ProspectvBuyerpresume Level 0
#asahi · 2025-07-26 22:51
chaos_princessi don't know your skill level
#asahi · 2025-07-26 22:51
ProspectvBuyerDo you think its possible for me to port linux to it as my final year project? Like work on it for the next two years straight
#asahi · 2025-07-26 22:50
chaos_princessno, i mean you should not buy one expecting to run linux on it
#asahi · 2025-07-26 22:50
twbchaos_princess: interesting
#asahi · 2025-07-26 22:50
ProspectvBuyerMy thinkpad keeps crashing I think when I damaged the headphone port something on the internals of it maybe causes it to crash (happens on different OSes thats why I think that). If you are asking due to needing a Mac for the OS recovery thing I will likely be able to borrow an M2 Mac Mini in case of an emergency

plus ›