marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
x4m3 has joined #asahi
phiologe has quit [Ping timeout: 240 seconds]
phiologe has joined #asahi
raster has quit [Quit: Gettin' stinky!]
phiologe has quit [Ping timeout: 246 seconds]
anarsoul has quit [Remote host closed the connection]
anarsoul has joined #asahi
raster has joined #asahi
raster has quit [Remote host closed the connection]
<jannau>
amw: for a second macos install (short version): boot into 1TR, repartition the disk in diskutil creating a new apfs partition (needs to be iirc at least 30 or 40GB), choose "reinstall macos"
<jannau>
there should be a dialog to select the newly created partition
<jannau>
as of now it will install macos 11.1, which will boot fine with 11.2 rc on the other partition
<Glanzmann>
The benefit of having two installs is that you can set the kernel of one to be linux and the other to macos or is there any other benefit?
<jannau>
you need to be a little careful with unlock and kernel config steps. some of the steps ask which partition to use and only list the apfs volume-id
<jannau>
you can look that up in `diskutil list`
<jannau>
also you have two 'Preboot' volumes which are mounted randomly to '/Volumes/Preboot' and '/Volumes/Preboot 1'
<jannau>
Glanzmann: no need to disable security features for the main macos install
<VinDuv>
Do you actually have to have macOS installed on the second APFS partition before putting m1n1 on it ?
phiologe has joined #asahi
<jannau>
you probably could get away with cloning enough from the first macos install. 'kmutil configure-boot' ask for user and password
<jannau>
amw: no, it links to https://support.apple.com/en-us/HT204904 which says you should boot to 1TR via holding the power button on macs with apple silicon
<amw>
Ok - thanks guess they changed for Apple Silicon
<amw>
Better make sure it installs it on the *NEW* volume
ephe_meral has quit [Ping timeout: 240 seconds]
<amw>
in the next day or two (on @asahi-dev)
<amw>
Marchan said he would write up about setting up the 2ndary MacOS partition
<amw>
Sorry Marcan that
<amw>
I need to go to sleep - "Sorry Marcan said that he would write this up in the next day or two"
amw has quit [Ping timeout: 246 seconds]
raster has joined #asahi
<flokk[m]>
seems like the new xnu source has the m1 parts :o
<davidrysk[m]>
marcan: note that Apple doesn't define "Source Code" in the APSL
<davidrysk[m]>
wait, nevermind
<davidrysk[m]>
the concern I have is that "Covered Code" includes "the Source Code" and "the object code compiled from such Source Code and originally made available by Apple under this License"
<davidrysk[m]>
so what about object code NOT compiled from such Source Code and made available by Apple under this License
<davidrysk[m]>
(again, IANAL, etc)
<davidrysk[m]>
whatever the situation though, those blobs are at worst under "no license at all"
<marcan>
yup
<davidrysk[m]>
(again IMO, IANAL)
<marcan>
which definitely does no forbid reverse engineering
<marcan>
*not
<davidrysk[m]>
yeah
<marcan>
either way you slice it, we can't include APSL code in Asahi stuff, so it makes no difference there
<davidrysk[m]>
yep
<marcan>
it's license-incompatible code with no EULA restrictions
<marcan>
so basically alx.sh/re applies, as it always did, but now there is no risk to the person *doing* the reversing
<marcan>
so one reading of those clauses is
<marcan>
"Original Code" means (a) the Source Code of (a program or other work as originally made available by Apple under this License) [...]; and (b) the object code (compiled from such Source Code) and (originally made available by Apple under this License).
<marcan>
in which case the source code includes the source code they have but didn't release
<marcan>
because it's still the source code of the program which they did, in fact, release under this license (as object code) :)
<marcan>
but as I said IANAL
phiologe has quit [Ping timeout: 240 seconds]
<eta>
that sounds dodgy
<marcan>
the whole thing is dodgy
<eta>
true :)
phiologe has joined #asahi
<davidrysk[m]>
Another reading is that the “made available” in the definition of “Source Code” means only source code that they released
<modwizcode>
Some basic support for the interrupt controller is next. I should probably add more than a stub for the WDT. I want to try and boot a linux image but I have to build one I think and I'm a bit lazy.
<j`ey>
modwizcode: depending on your computer, probably only takes 5-20mins
<modwizcode>
Yeah I moved my work from my fairly slow server that was already setup to a local VM to do the work on the FB stuff and my main machine is a lot faster. It's more the config I'm thinking will be time consuming.
<j`ey>
defconfig + turning on the stuff marcan added + remvoing all the platforms you dont need
<j`ey>
that should get you going
pakl has quit [Remote host closed the connection]
merbanan has joined #asahi
chuskywalker has quit [Quit: Leaving]
<modwizcode>
Geh looks like maybe I have to modify the serial code at some point to handle apple specific stuff :/
<davidrysk[m]>
I really hope this can be extended to boot xnu/macos :)
<modwizcode>
I would love that possibility becoming a reality. It probably needs to get a fair bit further along though. There's also so many aspects about this that are WIP.
<modwizcode>
I'm hoping I can get linux booted somewhat on it this week tho