#
…

2024-02-11

00:13wrender has joined #asahi-dev
00:50c10l has quit [Remote host closed the connection]
00:56c10l has joined #asahi-dev
00:56checkfoc_us has quit []
00:58checkfoc_us has joined #asahi-dev
02:00KxCORP has quit [Quit: Bye!]
02:00KxCORP has joined #asahi-dev
02:04Bertrand___ has quit [Ping timeout: 480 seconds]
02:07Bertrand___ has joined #asahi-dev
02:30jeisom has quit [Ping timeout: 480 seconds]
03:02skipwich has quit [Quit: DISCONNECT]
03:03skipwich has joined #asahi-dev
03:19cow123 has quit [Read error: Connection reset by peer]
03:28cow123 has joined #asahi-dev
03:37sinxccc has quit [Quit: leaving]
03:50john-cabaj has joined #asahi-dev
04:02Bertrand___ has quit [Read error: Connection reset by peer]
04:02Bertrand___ has joined #asahi-dev
04:07sinxccc has joined #asahi-dev
04:19john-cabaj has quit [Ping timeout: 480 seconds]
04:57tristan2 has joined #asahi-dev
04:59tristan2_ has quit [Ping timeout: 480 seconds]
04:59javahoop has joined #asahi-dev
05:39fossdd has quit [Ping timeout: 480 seconds]
05:40fossdd has joined #asahi-dev
05:47CoolStar_ has joined #asahi-dev
05:54javahoop has quit []
05:55CoolStar has quit [Ping timeout: 480 seconds]
06:00draco1017_ has joined #asahi-dev
06:00wrender has quit [Ping timeout: 480 seconds]
06:09draco1017_chadmed: looking over the yaks, looks like the bottom three are the most approachable for someone green like me. Thoughts?
06:12chadmedi think someone might be already looking at bt suspend (ask sven), but the xkb and libreoffice ones could be fun
06:12chadmedthe 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
06:13draco1017_damn that would be a heavy flex if I miraciously find out the issue. Could I ask questions about the XKB one?
06:23chadmeddont think i can answer those sorry, i havent really paid any attention to that
06:27draco1017_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?
06:27draco1017_are there any other considerations when it comes to setting up the development environment?
07:22draco1017_ has quit [Remote host closed the connection]
07:38Bertrand___ has quit [Ping timeout: 480 seconds]
07:39Bertrand___ has joined #asahi-dev
07:44Bertrand___ has quit [Read error: Connection reset by peer]
07:44Bertrand___ has joined #asahi-dev
08:39VeeBop3 has joined #asahi-dev
08:40VeeBop has quit [Ping timeout: 480 seconds]
08:40VeeBop3 is now known as VeeBop
08:46millefy has quit [Read error: Connection reset by peer]
08:46millefy has joined #asahi-dev
09:06Bertrand___ has quit [Remote host closed the connection]
09:06Bertrand___ has joined #asahi-dev
09:23Bertrand___ has quit [Ping timeout: 480 seconds]
09:26Bertrand___ has joined #asahi-dev
09:44gabuscus_ has quit [Read error: Connection reset by peer]
09:44gabuscus has joined #asahi-dev
10:12JayBeeFOSS has quit [Ping timeout: 480 seconds]
10:19Bertrand___ has quit [Ping timeout: 480 seconds]
10:25Bertrand___ has joined #asahi-dev
10:33Bertrand___ has quit [Ping timeout: 480 seconds]
10:33Bertrand___ has joined #asahi-dev
10:45Bertrand___ has quit [Ping timeout: 480 seconds]
10:50mkurz has quit [Ping timeout: 480 seconds]
11:16svenI think someone started looking at the bt thing
11:16svenno idea what the current state is though
12:00buroa has quit [Quit: The Lounge - https://thelounge.chat]
12:04buroa has joined #asahi-dev
12:09buroa has quit [Quit: The Lounge - https://thelounge.chat]
12:11buroa has joined #asahi-dev
12:41jeisom has joined #asahi-dev
13:32fossdd has quit [Remote host closed the connection]
13:32fossdd has joined #asahi-dev
13:47Bertrand___ has joined #asahi-dev
14:13buroa has quit [Quit: The Lounge - https://thelounge.chat]
14:21buroa has joined #asahi-dev
14:39buroa has quit [Quit: The Lounge - https://thelounge.chat]
14:46jeisom has quit [Ping timeout: 480 seconds]
15:20millefy1 has joined #asahi-dev
15:28millefy has quit [Ping timeout: 480 seconds]
15:28millefy1 is now known as millefy
15:54jeisom has joined #asahi-dev
15:55fossdd has quit [Remote host closed the connection]
15:56fossdd has joined #asahi-dev
16:15buroa has joined #asahi-dev
16:32wrender has joined #asahi-dev
17:02jacksonchen666 has joined #asahi-dev
17:11buroa has quit [Quit: The Lounge - https://thelounge.chat]
17:12buroa has joined #asahi-dev
17:30Deewiant has quit [Remote host closed the connection]
17:31Deewiant has joined #asahi-dev
17:33jacksonchen666 has quit [Remote host closed the connection]
18:17wrender has quit [Ping timeout: 480 seconds]
18:25wrender has joined #asahi-dev
18:32nicolas17how do I even begin tracing how macOS uses the WiFi chip?
18:42jacksonchen666 has joined #asahi-dev
18:53jacksonchen666 has quit [Remote host closed the connection]
19:08jannegnicolas17: proxyclient/hv/trace_wlan.py
19:10nicolas17I'm more noob than that >.>
19:10nicolas17how do run any of those, I never used m1n1 tracing at all
19:10j`eyfirst you need to install m1n1 ontop of a macOS install
19:11nicolas17I'm hopeful I'll figure things out later but I need some handholding to get started
19:13jacksonchen666 has joined #asahi-dev
19:13nicolas17j`ey: I have a macOS + Asahi dualboot already
19:14nicolas17do I need to install m1n1 "again" or can I use the m1n1 that is in the Asahi installation?
19:14j`eyyou can't reuse that m1n1
19:14j`eynicolas17: do you use macOS?
19:15jannegyou need install m1n1 for a macos installation. you can't use any other os install
19:16nicolas17oh wait is this for running *Linux* under tethered m1n1 control ._.
19:16gladiac is now known as Guest2428
19:16gladiac has joined #asahi-dev
19:16jannegif you use macos, create an empty volume in you macos apfs container
19:16nicolas17yes I'm on the wrong page and I'm supposed to be reading https://github.com/AsahiLinux/docs/wiki/SW%3AHypervisor
19:16jannegyes, that is the correct page
19:17jacksonchen666 has quit [Remote host closed the connection]
19:18jacksonchen666 has joined #asahi-dev
19:18jacksonchen666 has quit []
19:18j`eyI think I wrote that part? hopefully it still works
19:19nicolas17"install m1n1 as custom boot object" okay this is what yall meant
19:22Guest2428 has quit [Ping timeout: 480 seconds]
19:22SalimTer- has joined #asahi-dev
19:26SalimTerryLi has quit [Ping timeout: 480 seconds]
19:27nicolas17do I need to build m1n1 from source? the wiki guides me towards that
19:28j`eyyou could probably grab a binary from somewhere... but yes build it yourself to get a debug build
19:29j`ey(and it takes like 1s to build)
19:29nicolas17okay so build without RELEASE=1
19:29nicolas17do I need CHAINLOADING?
19:31nicolas17(I love it when I run "docker build -tm1n1 ." and it *starts the Docker daemon*, socket activation ftw)
19:32jannegon an arm64 system `make` is enough, on x86 system you will need a cross toolchain but you need that anyway for chainloading
19:36chaos_princessor start the installer on macos, kill it once it finishes downloading, then grab the binary from /tmp
19:37nicolas17I 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
19:37nicolas17hm "bputil -nkcas" says I can't disable SSV because FileFault is enabled
19:38nicolas17FileVault*
19:41nicolas17janneg: do I have to disable FileVault? (what does that even mean on Apple Silicon? I thought encryption was always enabled)
19:50crabbedhaloablut has quit []
19:51crabbedhaloablut has joined #asahi-dev
20:03buroa has quit [Quit: The Lounge - https://thelounge.chat]
20:03buroa has joined #asahi-dev
20:05buroa has quit []
20:05buroa has joined #asahi-dev
20:06jacksonchen666 has joined #asahi-dev
20:23wrender has quit [Ping timeout: 480 seconds]
20:29VinDuv_ has joined #asahi-dev
20:30VinDuv has quit [Ping timeout: 480 seconds]
20:30VinDuv_ is now known as VinDuv
20:31nicolas17...or can I leave SSV enabled?
20:33wrender has joined #asahi-dev
20:38jannegyou can try
20:46wrender has quit [Ping timeout: 480 seconds]
20:46nicolas17hm wait, after I run "kmutil configure-boot -c build/m1n1.bin", how do I undo that and go back to booting the kernel directly?
20:48jannegrestore security to reduced or full with bputil
20:51nicolas17okay, I now have a non-functional macOS boot entry because it starts into m1n1 instead :) time to figure out the proxyclient
20:51j`eypython3.9 proxyclient/tools/shell.py
20:52j`eyyou need to figure out what /dev/tty* is m1n1 (or look / use the udev rules in m1n1/udev/)
20:53* nicolas17needs to figure out where the heck his USB-C cable got tangled after unplugging it from the charger
20:54wrender has joined #asahi-dev
20:59nicolas17j`ey: and pass it via M1N1DEVICE? (found it in the source code, didn't see it mentioned in any docs)
21:00j`eyif you use the udev rule it works automagically
21:01nicolas17I has a shell :3
21:01leio(as /dev/m1n1 and co)
21:01j`eynicolas17: wee!
21:01j`eynicolas17: msr(ESR_EL1)
21:02nicolas17TypeError: msr() missing 1 required positional argument: 'val'
21:02j`eymrs(ESR_EL1)
21:02nicolas170x56000007
21:02nicolas17what does that mean :D
21:03j`eyyour last exception was a syscall apparently
21:04j`eywas just an example of reading a sysreg :P
21:04nicolas17"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
21:06jannegnicolas17: you can extract the kernel from the ipsw
21:06nicolas17I guess I could grab the kernelcache from the ipsw but I don't remember what build I'm running
21:07buroa8 has joined #asahi-dev
21:07jacksonchen666 has quit [Remote host closed the connection]
21:08mkurz has joined #asahi-dev
21:08jacksonchen666 has joined #asahi-dev
21:11buroa has quit [Ping timeout: 480 seconds]
21:11buroa8 is now known as buroa
21:18jacksonchen666 has quit [Quit: WeeChat 4.2.1]
21:52nicolas17janneg: 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"
21:54nicolas17looks like `img4tool -e -o kernel.macho kernelcache` works directly?
21:57nicolas17it seems to be booting
21:57nicolas17why the heck is the boot logo rainbow, lol
21:58j`eyfb_improve_log() :D
21:59nicolas17okay, boot was noticeably slower but it WORKS :D
21:59nicolas17I'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?
22:09nicolas17M1N1DEVICE=/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"
22:10nicolas17this throws an exception
22:11nicolas17perhaps there's some hardcoded address for M1 and I'm on M2?
22:13nicolas17no, this file was last modified on october 2023, surely it supports M2...
23:06nicolas17j`ey: any idea on what this exception is?
23:06j`eynope sorry
23:07j`eyDannyB: have you run trace_wlan.py on m2?
23:12nicolas17I haven't seen DannnyB on IRC since december ._.
23:29darkapex has quit [Remote host closed the connection]
23:29darkapex has joined #asahi-dev
23:35nicolas17maybe someone else can try it, perhaps on M1?
23:54nicolas17is there any m1n1 shell command to pretty-print the device tree?
…