ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
wrender has joined #asahi-dev
c10l has quit [Remote host closed the connection]
c10l has joined #asahi-dev
checkfoc_us has quit []
checkfoc_us has joined #asahi-dev
KxCORP has quit [Quit: Bye!]
KxCORP has joined #asahi-dev
Bertrand___ has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
jeisom has quit [Ping timeout: 480 seconds]
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #asahi-dev
cow123 has quit [Read error: Connection reset by peer]
cow123 has joined #asahi-dev
sinxccc has quit [Quit: leaving]
john-cabaj has joined #asahi-dev
Bertrand___ has quit [Read error: Connection reset by peer]
Bertrand___ has joined #asahi-dev
sinxccc has joined #asahi-dev
john-cabaj has quit [Ping timeout: 480 seconds]
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
javahoop has joined #asahi-dev
fossdd has quit [Ping timeout: 480 seconds]
fossdd has joined #asahi-dev
CoolStar_ has joined #asahi-dev
javahoop has quit []
CoolStar has quit [Ping timeout: 480 seconds]
draco1017_ has joined #asahi-dev
wrender has quit [Ping timeout: 480 seconds]
<draco1017_> chadmed: looking over the yaks, looks like the bottom three are the most approachable for someone green like me. Thoughts?
<chadmed> i think someone might be already looking at bt suspend (ask sven), but the xkb and libreoffice ones could be fun
<chadmed> the libreoffice one has been a bug for like a decade at this point so someone actually fixing it would be incredible, though i wouldnt really call it OS-level work
<draco1017_> damn that would be a heavy flex if I miraciously find out the issue. Could I ask questions about the XKB one?
<chadmed> dont think i can answer those sorry, i havent really paid any attention to that
<draco1017_> chadmed: that's fine I'll contact the person listed, Marcan. Anyways do handle working with the OS, I should follow the tethered boot setup guide correct?
<draco1017_> are there any other considerations when it comes to setting up the development environment?
draco1017_ has quit [Remote host closed the connection]
Bertrand___ has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
Bertrand___ has quit [Read error: Connection reset by peer]
Bertrand___ has joined #asahi-dev
VeeBop3 has joined #asahi-dev
VeeBop has quit [Ping timeout: 480 seconds]
VeeBop3 is now known as VeeBop
millefy has quit [Read error: Connection reset by peer]
millefy has joined #asahi-dev
Bertrand___ has quit [Remote host closed the connection]
Bertrand___ has joined #asahi-dev
Bertrand___ has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
gabuscus_ has quit [Read error: Connection reset by peer]
gabuscus has joined #asahi-dev
JayBeeFOSS has quit [Ping timeout: 480 seconds]
Bertrand___ has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
Bertrand___ has quit [Ping timeout: 480 seconds]
Bertrand___ has joined #asahi-dev
Bertrand___ has quit [Ping timeout: 480 seconds]
mkurz has quit [Ping timeout: 480 seconds]
<sven> I think someone started looking at the bt thing
<sven> no idea what the current state is though
buroa has quit [Quit: The Lounge - https://thelounge.chat]
buroa has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
buroa has joined #asahi-dev
jeisom has joined #asahi-dev
fossdd has quit [Remote host closed the connection]
fossdd has joined #asahi-dev
Bertrand___ has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
buroa has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
jeisom has quit [Ping timeout: 480 seconds]
millefy1 has joined #asahi-dev
millefy has quit [Ping timeout: 480 seconds]
millefy1 is now known as millefy
jeisom has joined #asahi-dev
fossdd has quit [Remote host closed the connection]
fossdd has joined #asahi-dev
buroa has joined #asahi-dev
wrender has joined #asahi-dev
jacksonchen666 has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
buroa has joined #asahi-dev
Deewiant has quit [Remote host closed the connection]
Deewiant has joined #asahi-dev
jacksonchen666 has quit [Remote host closed the connection]
wrender has quit [Ping timeout: 480 seconds]
wrender has joined #asahi-dev
<nicolas17> how do I even begin tracing how macOS uses the WiFi chip?
jacksonchen666 has joined #asahi-dev
jacksonchen666 has quit [Remote host closed the connection]
<janneg> nicolas17: proxyclient/hv/trace_wlan.py
<nicolas17> no no
<nicolas17> I'm more noob than that >.>
<nicolas17> how do run any of those, I never used m1n1 tracing at all
<j`ey> first you need to install m1n1 ontop of a macOS install
<nicolas17> I'm hopeful I'll figure things out later but I need some handholding to get started
jacksonchen666 has joined #asahi-dev
<nicolas17> j`ey: I have a macOS + Asahi dualboot already
<nicolas17> do I need to install m1n1 "again" or can I use the m1n1 that is in the Asahi installation?
<j`ey> you can't reuse that m1n1
<j`ey> nicolas17: do you use macOS?
<janneg> you need install m1n1 for a macos installation. you can't use any other os install
<nicolas17> oh wait is this for running *Linux* under tethered m1n1 control ._.
gladiac is now known as Guest2428
gladiac has joined #asahi-dev
<janneg> if you use macos, create an empty volume in you macos apfs container
<nicolas17> yes I'm on the wrong page and I'm supposed to be reading https://github.com/AsahiLinux/docs/wiki/SW%3AHypervisor
<janneg> yes, that is the correct page
jacksonchen666 has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi-dev
jacksonchen666 has quit []
<j`ey> I think I wrote that part? hopefully it still works
<nicolas17> "install m1n1 as custom boot object" okay this is what yall meant
Guest2428 has quit [Ping timeout: 480 seconds]
SalimTer- has joined #asahi-dev
SalimTerryLi has quit [Ping timeout: 480 seconds]
<nicolas17> do I need to build m1n1 from source? the wiki guides me towards that
<j`ey> you could probably grab a binary from somewhere... but yes build it yourself to get a debug build
<j`ey> (and it takes like 1s to build)
<nicolas17> okay so build without RELEASE=1
<nicolas17> do I need CHAINLOADING?
<janneg> no
<nicolas17> (I love it when I run "docker build -tm1n1 ." and it *starts the Docker daemon*, socket activation ftw)
<janneg> on an arm64 system `make` is enough, on x86 system you will need a cross toolchain but you need that anyway for chainloading
<chaos_princess> or start the installer on macos, kill it once it finishes downloading, then grab the binary from /tmp
<nicolas17> I don't even remember what security features I turned off while doing other research on macOS, so I removed boot args and set full security to bring it back to "normal" before disabling the security features the wiki says
<nicolas17> hm "bputil -nkcas" says I can't disable SSV because FileFault is enabled
<nicolas17> FileVault*
<nicolas17> janneg: do I have to disable FileVault? (what does that even mean on Apple Silicon? I thought encryption was always enabled)
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
buroa has joined #asahi-dev
buroa has quit []
buroa has joined #asahi-dev
jacksonchen666 has joined #asahi-dev
wrender has quit [Ping timeout: 480 seconds]
VinDuv_ has joined #asahi-dev
VinDuv has quit [Ping timeout: 480 seconds]
VinDuv_ is now known as VinDuv
<nicolas17> ...or can I leave SSV enabled?
wrender has joined #asahi-dev
<janneg> you can try
wrender has quit [Ping timeout: 480 seconds]
<nicolas17> hm wait, after I run "kmutil configure-boot -c build/m1n1.bin", how do I undo that and go back to booting the kernel directly?
<janneg> restore security to reduced or full with bputil
<nicolas17> ah good
<nicolas17> okay, I now have a non-functional macOS boot entry because it starts into m1n1 instead :) time to figure out the proxyclient
<j`ey> python3.9 proxyclient/tools/shell.py
<j`ey> you need to figure out what /dev/tty* is m1n1 (or look / use the udev rules in m1n1/udev/)
* nicolas17 needs to figure out where the heck his USB-C cable got tangled after unplugging it from the charger
wrender has joined #asahi-dev
<nicolas17> j`ey: and pass it via M1N1DEVICE? (found it in the source code, didn't see it mentioned in any docs)
<j`ey> yep
<j`ey> if you use the udev rule it works automagically
<nicolas17> I has a shell :3
<leio> (as /dev/m1n1 and co)
<j`ey> nicolas17: wee!
<j`ey> nicolas17: msr(ESR_EL1)
<nicolas17> TypeError: msr() missing 1 required positional argument: 'val'
<j`ey> err
<nicolas17> mrs?
<j`ey> mrs(ESR_EL1)
<j`ey> yea
<nicolas17> 0x56000007
<j`ey> nice
<nicolas17> what does that mean :D
<j`ey> your last exception was a syscall apparently
<j`ey> was just an example of reading a sysreg :P
<nicolas17> "Running the stock macOS kernel from a macOS install: step 1. boot into macOS" welp I broke that by configuring m1n1 as boot object so I guess I have to kinda start over
<janneg> nicolas17: you can extract the kernel from the ipsw
<nicolas17> I guess I could grab the kernelcache from the ipsw but I don't remember what build I'm running
buroa8 has joined #asahi-dev
<nicolas17> got it
jacksonchen666 has quit [Remote host closed the connection]
mkurz has joined #asahi-dev
jacksonchen666 has joined #asahi-dev
buroa has quit [Ping timeout: 480 seconds]
buroa8 is now known as buroa
jacksonchen666 has quit [Quit: WeeChat 4.2.1]
<nicolas17> janneg: I extracted kernelcache.release.mac14g from the OTA zip, then ran 'img4tool -e -p out.im4p kernelcache', and it fails with "Not an IMG4 file"
<nicolas17> looks like `img4tool -e -o kernel.macho kernelcache` works directly?
<nicolas17> it seems to be booting
<nicolas17> why the heck is the boot logo rainbow, lol
<j`ey> fb_improve_log() :D
<nicolas17> okay, boot was noticeably slower but it WORKS :D
<nicolas17> I'm curious what's up with that kernelcache thing, did Apple change the format? is the file in Preboot/.../com.apple.kernelcaches/kernelcache different from the one in the ipsw?
<nicolas17> M1N1DEVICE=/dev/ttyACM0 python3 proxyclient/tools/run_guest.py -m proxyclient/hv/trace_wlan.py /tmp/kernel.macho -- "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1 clpc=0"
<nicolas17> this throws an exception
<nicolas17> perhaps there's some hardcoded address for M1 and I'm on M2?
<nicolas17> no, this file was last modified on october 2023, surely it supports M2...
<nicolas17> j`ey: any idea on what this exception is?
<j`ey> nope sorry
<j`ey> DannyB: have you run trace_wlan.py on m2?
<nicolas17> I haven't seen DannnyB on IRC since december ._.
darkapex has quit [Remote host closed the connection]
darkapex has joined #asahi-dev
<nicolas17> maybe someone else can try it, perhaps on M1?
<nicolas17> is there any m1n1 shell command to pretty-print the device tree?