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]
raster has joined #asahi
amw has joined #asahi
phiologe has joined #asahi
phiologe has quit [Ping timeout: 265 seconds]
phiologe has joined #asahi
mndza has quit [Ping timeout: 240 seconds]
phiologe has quit [Ping timeout: 272 seconds]
Tokamak has joined #asahi
phiologe has joined #asahi
phiologe has quit [Ping timeout: 246 seconds]
WhyNotHugo has quit [Ping timeout: 260 seconds]
WhyNotHugo has joined #asahi
gabiruh has quit [Quit: ZNC 1.7.5 - https://znc.in]
gabiruh has joined #asahi
bsandro has joined #asahi
bsandro has quit [Client Quit]
yuyangchee98[m] has joined #asahi
phiologe has joined #asahi
phiologe has quit [Ping timeout: 246 seconds]
amw has quit [Ping timeout: 240 seconds]
raster has quit [Quit: Gettin' stinky!]
phiologe has joined #asahi
PhilippvK_ has joined #asahi
PhilippvK has quit [Ping timeout: 264 seconds]
phiologe has quit [Ping timeout: 264 seconds]
phiologe has joined #asahi
phiologe has quit [Ping timeout: 240 seconds]
amw has joined #asahi
Tokamak_ has joined #asahi
br377 has quit [Ping timeout: 264 seconds]
br377 has joined #asahi
Tokamak has quit [Ping timeout: 246 seconds]
marvin24_ has quit [Ping timeout: 258 seconds]
marvin24 has joined #asahi
<marcan> and *another* one (see -dev)
Tokamak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TheJollyRoger> Whoops. I just realized I hadn't subscribed to that channel!
<JTL> TheJollyRoger: /list -re #asahi
<TheJollyRoger> Oh good thinking!
<TheJollyRoger> There we go.
<TheJollyRoger> Thanks JTL!
phiologe has joined #asahi
<marcan> it's also in the topic :)
* TheJollyRoger blushes.
<TheJollyRoger> G-g-got it.
VinDuv has joined #asahi
phiologe has quit [Ping timeout: 264 seconds]
phiologe has joined #asahi
phiologe has quit [Ping timeout: 246 seconds]
kit_ty_kate has quit [Ping timeout: 272 seconds]
bisko has quit [Quit: Textual IRC Client: www.textualapp.com]
amw has quit [Ping timeout: 240 seconds]
phiologe has joined #asahi
phiologe has quit [Ping timeout: 256 seconds]
ephe_meral has joined #asahi
phiologe has joined #asahi
phiologe has quit [Ping timeout: 256 seconds]
amw has joined #asahi
acelogic has quit [Ping timeout: 265 seconds]
kettenis has quit [Quit: leaving]
kettenis has joined #asahi
kettenis has quit [Client Quit]
kettenis has joined #asahi
<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
<Glanzmann> jannau: Oh, I see.
<amw> jannu: Thanks - I saw this support link https://support.apple.com/en-us/HT208891
<Glanzmann> Has seomeone tested the update corellium thing with wifi, keyboard touchpad support?
<amw> It suggests creating a APFS volume with disk utility and then booting to it via start up ?
<amw> This link suggests holding down the Option Key on start up or using System-Preferences/Startup Disk - https://www.imore.com/how-to-partition-your-mac
<amw> To install MacOS onto the new APFS volume
<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
<j`ey> what version?
<flokk[m]> 7195.60.175
<flokk[m]> .75 at the end
<flokk[m]> published some hours ago
<flokk[m]> on opensource.apple
<flokk[m]> guess its in there
<flokk[m]> saw that marcan also named the icestorm / firestorm
<flokk[m]> dont know if its allowed to post a dl link
<j`ey> hm, not many changes in start.s between 7195.60.75 and xnu-7195.50.7.100.1, just a PAC change
<flokk[m]> * 7195.60.75
<flokk[m]> hmm okay, i dont really have the knowledge. just saw a tweet on the new version
<robinp> flokk[m]: I can only see 11.0.1 still that has been up for a couple of weeks now. Is it an unlisted verserion or something ?
roxfan2 is now known as roxfan
<roxfan> it's a couple MB bigger
phiologe has quit [Ping timeout: 240 seconds]
<roxfan> new codename appears: tonga
<roxfan> H13G, whatever that is
Tokamak has joined #asahi
Tokamak has quit [Ping timeout: 264 seconds]
<dhewg> iirc tonga is also an amd gpu codename
<marcan> that has a lovely tunables_h13.s that is... a copyright comment
<marcan> so, no, no M1 support there
ephe_meral has joined #asahi
<marcan> no changes in apple_arm64_regs.h either
<marcan> single PAC change in start.s
<marcan> flokk[m]: sorry, nothing interesting in there whatsoever
<j`ey> shame
<marcan> that said, the tonga thing is reakl
<marcan> *real
<j`ey> #define HAS_RETENTION_STATE 1
<marcan> xnu-7195.60.75/osfmk/arm/cpuid.h:#define CPU_PART_ICESTORM_TONGA 0x22
<marcan> xnu-7195.60.75/osfmk/arm/cpuid.h:#define CPU_PART_FIRESTORM_TONGA 0x23
<marcan> that's our M1 codename, finally
<marcan> ah, we do have the H13.h defines at least
<marcan> #define HAS_ICACHE_FUSION_BUG 1 /* HW bug that causes incorrect reporting of instruction aborts on fused instructions */
<marcan> that define is not used, but lol
ephe_meral has quit [Ping timeout: 260 seconds]
phiologe has joined #asahi
<Glanzmann> What is the difference between icestorm and firestorm?
<Glanzmann> Are in the mini, macbook air and powerbook the same CPU?
<j`ey> yes
<j`ey> firestorm are "big" CPUs, icestorm are "little" CPUs
<marcan> oh wait
<marcan> this is new
<marcan> libT8101.os.RELEASE.a
<marcan> libT8101.os.DEVELOPMENT.a
<marcan> is this what they're doing now?
<marcan> releasing binary blobs for part of the OS?
<j`ey> MIDR_SICILY_ICESTORM, whats sicily then? (maybe a14, iphone thing)
<j`ey> marcan: weird..
<dottedmag> [looks to the North] No ice storms in Sicily ever.
<marcan> wtf, this is ridiculous
<marcan> they released startup asm code for Ax chips in the past
<marcan> and now they go and release it as *binary* for M1?
<marcan> why on earth?
<eta> marcan: how optimized / stripped is the binary >_<
<marcan> some of the .o files are llvm bitcode, lol
<roxfan> MakeInc.def: # Link opensource binary library
<roxfan> "opensource binary" lol
<eta> wait do they legally have to release sources for XNU
<j`ey> roxfan: lol
<sven> haha :D
<roxfan> is this their version of FSP?
<davidrysk[m]> marcan: are those .a files released under APSL?
<marcan> davidrysk[m]: by implied location of the toplevel license file, you'd *think* so
<davidrysk[m]> If they’re under APSL can’t anyone disassemble and RE them? I still think it’s utter bullcrap
<marcan> reading the license now
<marcan> 1.7 "Original Code" means
<marcan> d (b) the object code compiled from such Source Code and
<marcan> originally made available by Apple under this License.
<marcan> 1.3 "Covered Code" means the Original Code, Modifications, the
<marcan> combination of Original Code and any Modifications, and/or any
<marcan> respective portions thereof.
Tokamak has joined #asahi
<marcan> well, here's my take on it: https://twitter.com/marcan42/status/1355907966541565957
<marcan> prove me wrong :)
Tokamak has quit [Ping timeout: 246 seconds]
<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
<marcan> yeah
snalty has quit [Quit: ZNC 1.8.2 - https://znc.in]
TheJollyRoger has quit [Ping timeout: 268 seconds]
TheJollyRoger has joined #asahi
<modwizcode> That ICACHE_FUSION bug thing has my interest peaked, I wonder why it falsely reports errors.
inglor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<flokk[m]> marcan: nice find. maybe the next release will have even more.
<flokk[m]> is there something still missing in the source that could be usefull ?
<kettenis> none of the device driver stuff is there, but it seems apple stopped releasing those bits a long time ago
phiologe has quit [Remote host closed the connection]
<kettenis> so I don't think we can expect them to release those bits
<davidrysk[m]> Apple hasn't been releasing device drivers for a long long time, since the beginning really
<davidrysk[m]> they did release some drivers in the early days, but never all
<davidrysk[m]> rampant speculation: there's shit here Apple is still not done applying for patents on
<davidrysk[m]> there are lots of interesting patents on Apple's uarch tech, https://patents.google.com/?inventor=Gerard+R.+Williams+Iii will bring up a lot of them
Bublik has quit [Read error: Connection reset by peer]
Bublik has joined #asahi
taziden has quit [Ping timeout: 265 seconds]
raster has quit [Quit: Gettin' stinky!]
acelogic has joined #asahi
taziden has joined #asahi
inglor has joined #asahi
inglor has quit [Client Quit]
<never_released> eta: Apple doesn't legally have to release anything
<eta> never_released: then why do they
<never_released> eta: because Apple wants to.
<eta> fair enough
<eta> marcan: have you considered fosspay
<eta> https://drewdevault.com/donate/ seems to do the combining of income from many sources thing
chuskywalker has joined #asahi
amw has joined #asahi
acelogic has quit [Remote host closed the connection]
acelogic has joined #asahi
djhworld has joined #asahi
djhworld has quit [Client Quit]
djhworld has joined #asahi
merbanan has quit [Ping timeout: 265 seconds]
irl25519 has joined #asahi
raster has joined #asahi
<j`ey> modwizcode: nice!
<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 :/
VinDuv has quit [Quit: Leaving.]
amw has quit [Ping timeout: 240 seconds]
mechpilotace has quit [Quit: WeeChat 2.8]
djhworld has quit [Quit: The Lounge - https://thelounge.chat]
djhworld has joined #asahi
irl25519 has quit [Quit: irl25519]
amw has joined #asahi
<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
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi
raster has quit [Quit: Gettin' stinky!]
taziden has quit [Ping timeout: 240 seconds]
taziden has joined #asahi