#asahi · 2021-08-06 08:15
chadmedi think dgc's idea was, as he said, more like Mach where multiple userspaces have access to the entire hardware pool. though theres multiple reasons that approach never really went anywhere#asahi · 2021-08-06 01:59
chadmedbut i doubt that is anywhere near the priority list at all, nor would microsoft bother to write or sign drivers for new mac hardware as it would cannibalise surface sales. nor would apple bother writing drivers for arm windows as it would stifle arm macos development#asahi · 2021-08-06 01:58
chadmedi had this discussion with a mate the other day who was dismayed that he is unable to use Boot Camp on his new macbook. conceivably, m1n1 may at some point be useable to get a boot sequence like m1n1 --> u-boot --> edk2 --> windows boot manager --> nt kernel #asahi · 2021-08-06 01:56
chadmedi consider it a hypervisor in that it pretends to be XNU kernel so that iBoot will set up the hardware and jump to it, and allow it to set up a more "sane" environment for loading Linux and Linux-adjacent stuff#asahi · 2021-08-06 01:46
chadmedthin hypervisor implemented entirely in PL/I, sounds like what you want to me lmao #asahi · 2021-08-06 01:45
chadmedim sure you could find an airline willing to haul your system/z machine around with you :-P #asahi · 2021-08-06 01:45
chadmedperhaps its issues in dealing with IPC prevented it from practically being taken further#asahi · 2021-08-06 01:42
chadmedright so the benefit would be to have the OSs "containerised" to a degree but allow on-the-fly switching between the two running close to metal #asahi · 2021-08-06 01:39
chadmedbtw i am genuinely curious as to what youre thinking so i can better understand what you want out of the system, im not trying to put you down or anything like that :)#asahi · 2021-08-06 01:38
chadmedyou get the stability, uptime and freedom of (pick your *nix) but the ability to run all your macos applications as normal#asahi · 2021-08-06 01:37
chadmedwell yeah thats kinda what im getting at. i appreciate the philosophical idea of independence that such an approach would bring, but what practical benefit does on-the-fly "kernel switching" have over a wine-style implementation?#asahi · 2021-08-06 01:35
chadmedis there any real benefit to doing it that way rather than, say, an API translation layer a la wine? #asahi · 2021-08-06 01:33
chadmednah its obviously not trivial, hence why i said its something that can sound trivial in your head but really isnt once you try to implement it #asahi · 2021-08-06 01:30
chadmedthats something that sounds trivial in your head when you think about the basic problem definition but then you try to implement it and it ends up taking you 5 years and squillions of lines of code#asahi · 2021-08-03 08:48
chadmednow if it were _just_ the script required as a self-contained program without such a huge external dependency then i think most would agree that writing a proper program would be beneficial. but as it stands, its more work for questionable benefit#asahi · 2021-08-03 08:47
chadmedrkjnsn: there are ways to package/bundle the python interpreter and whatever modules you need with your script and have it run in a self-contained way. as marcan said, the size added by doing this is insignificant#asahi · 2021-08-03 02:54
chadmedyeah, queensland. we had life basically back to normal for most of 2020 and into this year too, but because the federal government (here responsible for procuring and administering vaccines) did not procure or administer vaccines because its full of anti vaxxers we are currently at 16% vax rate and having Delta outbreaks everywhere#asahi · 2021-08-03 02:36
chadmedenvy of the world to laughingstock in under a year :) #asahi · 2021-08-03 02:36
chadmedno problems mate. id love to be able to help out with debug work but we're locked down right now and i dont have access to hardware #asahi · 2021-08-03 01:40
chadmedsince serrors are asynchorous theres no easy way to tell exactly when it occurs either#asahi · 2021-08-03 01:38
chadmedlooking at the stack dump it seems like apple_mbox_hw_can_send is what is offending the system. serrors are caused by illegal memory access so if the error is infinitely reproducible the easiest way would be to just trace the stack while you let it happen and see what the mbox driver is trying to do. kdebug maybe?#asahi · 2021-08-03 01:25
chadmedby the looks of it its the mbox driver thats causing a bad interrupt#asahi · 2021-08-03 01:24
chadmedEL2 is the hypervisor exception level #asahi · 2021-08-03 01:03
chadmedaccessible#asahi · 2021-08-03 01:03
chadmedmarcan: late to the party but yeah DCP is probably more important at this stage than an install script. imo the kind of people who would want to play around with the WIP stuff (i.e. people who dont mind that they cant boot a live usb and look at plasma desktop just yet) dont mind the extra work required to set it up at this stage, so getting everything working is a better use of time than making what is done more #asahi · 2021-08-01 13:02
chadmedcan they send dirty postcards to each others' mailboxes?#asahi · 2021-08-01 12:59
chadmedA can be safely omitted #asahi · 2021-08-01 12:58
chadmedpriorities are important after all#asahi · 2021-08-01 12:58
chadmedC, then B, then A#asahi · 2021-08-01 12:58
chadmedlumbar*#asahi · 2021-08-01 12:58
chadmedyou shouldnt write drivers on the toilet, no lumber support#asahi · 2021-08-01 09:44
chadmedactually yeah true, we can get an rproc handle using the device tree and thus rproc_boot should just return 0 when it sees that the processor is on and ready to go #asahi · 2021-08-01 09:39
chadmedbut like sven said its probably something worth discussing with rproc gurus#asahi · 2021-08-01 09:39
chadmedpipcet: afaict rproc_boot expects a valid ELF and will return not 0 if it doesnt get one unless the remote has already been initialised and given a handle by the subsystem#asahi · 2021-07-31 10:50
chadmedyeah so like pipcet says, production ready ;)#asahi · 2021-07-31 10:01
chadmedthe firmwares are near the top of the archive all bundled neatly#asahi · 2021-07-31 10:00
chadmedcould be easy to manipulate in python using byteio #asahi · 2021-07-31 09:59
chadmedyeah im playing around with one now #asahi · 2021-07-31 09:23
chadmedohhh right right that makes more sense#asahi · 2021-07-31 09:21
chadmedits also not exactly a hard thing to acquire if you actually have a mac since the app store will just download it into /Applications#asahi · 2021-07-31 09:19
chadmedthat is how we did things for hackintosh when we needed specific files for reverting system-breaking updates as it puts the onus onto the user for acquiring those files. its also less likely to be subject to breaking changes. apple could at any time change update urls or encrypt files or whatever, this way we can be sure the user has them (or even a specific version of them)#asahi · 2021-07-31 09:17
chadmedand from that we can extract the required files from Base System.dmg #asahi · 2021-07-31 09:16
chadmedit may be easier (by which i also mean legally less questionable) to have the user BYO "install macos xxx.app#asahi · 2021-07-31 09:09
chadmedi might play around with figuring out what exactly iboot needs to see a valid system and write a post-macos-install script that deletes everything else and sets up the partition just to boot m1n1.... at some point ;-P #asahi · 2021-07-31 09:07
chadmedyeah im hoping so, only just if that requires us repackaging some of apple's proprietary stuff that might give us some legal troubles. the way i see it, allowing the macos installer to do its thing and "hijacking" it after its done is probably the least legally troublesome route#asahi · 2021-07-31 09:05
chadmedthat is true, theres no real harm in terms of ux too i guess, only the requirement of having a fairly chunky macos stub partition on the device which doesnt really matter in the grand scheme of things #asahi · 2021-07-31 09:02
chadmeddamn that sucks didnt realise that (though it should have been apparent given how iboot handles things) #asahi · 2021-07-31 09:01
chadmedyeah ik at this stage, but ever at all too? #asahi · 2021-07-31 09:00
chadmedrproc does seem like a "more correct" way of handling some of this stuff, especially once (if?) we will be getting the kernel to load firmware rather than relying on iboot finding a macos stub and loading fw from that #asahi · 2021-07-31 02:27
chadmedafaict the only differences should be more Firestorm cores and more pcie/thunderbolt but honestly who knows what else will change