2022-07-11
00:20nsklaus_ has joined #asahi-dev
00:23nsklaus has quit [Ping timeout: 480 seconds]
00:28millenialhacker has joined #asahi-dev
00:29phire has quit [Remote host closed the connection]
00:31phire has joined #asahi-dev
00:36millenialhacker has quit [Ping timeout: 480 seconds]
01:00derzahl has joined #asahi-dev
01:15chengsun has joined #asahi-dev
01:20chengsun_ has quit [Ping timeout: 480 seconds]
01:28AProgrammer has joined #asahi-dev
01:29AProgrammerWas able to install Asahi although its not immediately obvious to me how to build the kernel as I see no .config in the /boot directory?
01:30AProgrammerThat is - build the kernel targeting AARCH_APPLE or whatever the correct platform name for M1 is - I'm not quite sure
01:32ditlood has joined #asahi-dev
01:36AProgrammer has quit [Remote host closed the connection]
01:40chengsun_ has joined #asahi-dev
01:46chengsun has quit [Ping timeout: 480 seconds]
01:51millenialhacker has joined #asahi-dev
01:58chengsun has joined #asahi-dev
01:58nuh^ has quit [Ping timeout: 480 seconds]
01:59millenialhacker has quit [Ping timeout: 480 seconds]
02:01chengsun_ has quit [Ping timeout: 480 seconds]
02:03chengsun_ has joined #asahi-dev
02:06nuh^ has joined #asahi-dev
02:07chengsun has quit [Ping timeout: 480 seconds]
02:10chengsun has joined #asahi-dev
02:13chengsun_ has quit [Ping timeout: 480 seconds]
02:14chengsun has quit [Read error: Network is unreachable]
02:14chengsun has joined #asahi-dev
02:27chengsun has quit [Quit: Quit]
02:27chengsun has joined #asahi-dev
02:38nuh^ has quit [Remote host closed the connection]
02:51chengsun_ has joined #asahi-dev
02:53chengsun has quit [Ping timeout: 480 seconds]
02:54saina has joined #asahi-dev
02:55saina has quit []
02:57dsrt^ has joined #asahi-dev
03:00phiologe has joined #asahi-dev
03:04PhilippvK has quit [Ping timeout: 480 seconds]
03:05chengsun_ has quit [Ping timeout: 480 seconds]
03:06chengsun has joined #asahi-dev
03:29nicolas17 has quit [Quit: Konversation terminated!]
03:32millenialhacker has joined #asahi-dev
03:36chengsun has quit [Ping timeout: 480 seconds]
03:36chengsun has joined #asahi-dev
03:40dsrt^ has quit [Ping timeout: 480 seconds]
03:41millenialhacker has quit [Ping timeout: 480 seconds]
03:46chengsun_ has joined #asahi-dev
03:47dsrt^ has joined #asahi-dev
03:48chengsun has quit [Ping timeout: 480 seconds]
03:54chengsun_ has quit [Read error: Connection reset by peer]
03:54chengsun has joined #asahi-dev
04:21chengsun_ has joined #asahi-dev
04:26chengsun has quit [Ping timeout: 480 seconds]
05:13dsrt^ has quit [Ping timeout: 480 seconds]
05:13mps has quit [Quit: leaving]
05:15mps has joined #asahi-dev
05:28millenialhacker has joined #asahi-dev
05:35doggkruse has quit [Ping timeout: 480 seconds]
05:37millenialhacker has quit [Ping timeout: 480 seconds]
05:55chadmedits just an enormous shell script so it will require some pretty annoying changes to how it enumerates the cpus
06:06chadmedthe style rules for neofetch make it almost impossible to efficiently support proper identification of aarch64 parts anyway
06:06chadmedyoure not allowed to pipe anything and youre meant to avoid external utilities altogether...
06:37millenialhacker has joined #asahi-dev
06:40JTLIf neofetch is the largest thing you need to worry about I'd consider that a small problem :P
06:40chadmedwell yeah i dont really care at this point, if the patches i sent to util-linux and kde get merged then thats good enough for me
06:41chadmedi kind of want to hack minimal DT support into kinfocenter's main view but i feel like it would be messy and not well received
06:49millenialhacker has quit [Ping timeout: 480 seconds]
06:50the_lanetly_052 has joined #asahi-dev
06:55gladiac is now known as Guest4717
06:55Guest4717 has quit [Read error: Connection reset by peer]
06:55gladiac has joined #asahi-dev
06:57gladiac has quit [Read error: No route to host]
06:57gladiac has joined #asahi-dev
07:09mps has quit [Remote host closed the connection]
07:09mps has joined #asahi-dev
07:50millenialhacker has joined #asahi-dev
07:58mps_ has joined #asahi-dev
07:58millenialhacker has quit [Ping timeout: 480 seconds]
08:00mps has quit [Ping timeout: 480 seconds]
08:08bisko has joined #asahi-dev
08:25the_lanetly_052 has quit [Remote host closed the connection]
08:26millenialhacker has joined #asahi-dev
08:34millenialhacker has quit [Ping timeout: 480 seconds]
08:40the_lanetly_052 has joined #asahi-dev
08:41bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:04the_lanetly_052 has quit [Remote host closed the connection]
09:04the_lanetly_052 has joined #asahi-dev
09:16MajorBiscuit has joined #asahi-dev
09:48millenialhacker has joined #asahi-dev
09:56millenialhacker has quit [Ping timeout: 480 seconds]
10:07marcanseems to work on my t6000, hopefully there are no regressions. the reboot notifier stuff got merged with significant changes, so that series is now dropped and macsmc is ported over.
10:15bisko has joined #asahi-dev
10:46povik(it's overdue that we update the binding, but as i understand it marcan you have a flight to catch :p)
10:47marcanyeah er, I'm going to try to get a -dev everything release out today and if nothing is broken promote to prod after the flight
10:54marcan(just pushed -asahi1 packages to asahi-dev if anyone wants to play along with the testing, but let's add BT and call it -asahi2)
10:54svenhttps://github.com/AsahiLinux/linux/tree/bluetooth-wip, you'll need to add the board-type for the t6xxx ones though since I based it on the latest RC
10:55svenand you probably also want my latest m1n1 PR which byte-swaps the BD address because of course it has to be the other byte order than mac addresses
10:57wuhoipok[m] has joined #asahi-dev
11:03jannaumarcan: m2 u-boot patches are here: https://lore.kernel.org/u-boot/20220630220617.23530-1-j@jannau.net/
11:06marcan(hint: if anyone wants to throw the MTP firmware into ghidra and see if there's any sane way to shut it down such that it spits out the HID descriptors again on the next startup, that would be most helpful)
11:14kov has joined #asahi-dev
11:15marcanjannau: can you pull m1n1 and run experiments/mtp.py and paste the output? (you need to chainload)
11:15marcanjust want to see if there is something that looks like keyboard countrycode with a different mapping
11:27marcanI might just go with that, hope I guessed right. saves me from having a nasty translation table in m1n1...
11:29bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:01bisko has joined #asahi-dev
12:07joske has joined #asahi-dev
12:09joskemarcan: I'm getting: drivers/iommu/apple-dart.c:1268:79: error: macro "DART_TCR" requires 2 arguments, but only 1 given
12:13dsrt^ has joined #asahi-dev
12:13kettenisthe branch is up-to-date with u-boot master, which means it is pretty much u-boot 2022.07 which is supposed to be released today
12:18bisko has quit [Ping timeout: 480 seconds]
12:32bisko has joined #asahi-dev
12:34MajorBiscuit has quit [Quit: WeeChat 3.5]
12:37kettenisso APPLE_RTKIT_HELPER is just a driver that brings up RTKit and processes log messages on the "standard" endpoints?
12:38MajorBiscuit has joined #asahi-dev
12:39dsrt^ has quit [Ping timeout: 480 seconds]
12:40bisko has quit [Ping timeout: 480 seconds]
12:41the_lanetly_052__ has joined #asahi-dev
12:46bisko has joined #asahi-dev
12:47the_lanetly_052 has quit [Ping timeout: 480 seconds]
12:53marcanfor keyboard only dockchannel is trivial, you can pretty much hardcode an init message and start getting HID reports
12:55nsklaus has joined #asahi-dev
12:55nsklaus__ has joined #asahi-dev
12:56nsklaus_ has quit [Read error: Connection reset by peer]
12:57dsrt^ has joined #asahi-dev
13:00Gaspare has joined #asahi-dev
13:00nsklaus has quit [Read error: Connection reset by peer]
13:11joske has quit [Remote host closed the connection]
13:12joske has joined #asahi-dev
13:12millenialhacker has joined #asahi-dev
13:15Gaspare has quit [Quit: Gaspare]
13:16joske has quit [Remote host closed the connection]
13:17joske has joined #asahi-dev
13:19Gaspare has joined #asahi-dev
13:20millenialhacker has quit [Ping timeout: 480 seconds]
13:26Gaspare has quit [Quit: Gaspare]
13:37Gaspare has joined #asahi-dev
13:55kettenisu-boot 2022.07 was released so I rebased the u-boot asahi branch once more to pick up the Makefile changes that drops -rc6
14:00joske has quit [Remote host closed the connection]
14:00Gaspare has quit [Quit: Gaspare]
14:15dsrt^ has quit [Ping timeout: 480 seconds]
14:16dsrt^ has joined #asahi-dev
14:17Gaspare has joined #asahi-dev
14:20Catyre has joined #asahi-dev
14:35millenialhacker has joined #asahi-dev
14:36balrog has joined #asahi-dev
14:37Gaspare has quit [Quit: Gaspare]
14:42dsrt^ has quit [Ping timeout: 480 seconds]
14:43millenialhacker has quit [Ping timeout: 480 seconds]
14:44dsrt^ has joined #asahi-dev
14:47dsrt^ has quit [Remote host closed the connection]
14:49bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:03Catyre has quit [Remote host closed the connection]
15:07balrog has quit [Ping timeout: 480 seconds]
15:09Gaspare has joined #asahi-dev
15:31Catyre has joined #asahi-dev
15:33balrog has joined #asahi-dev
15:46millenialhacker has joined #asahi-dev
15:50mps_ is now known as mps
15:50saina has joined #asahi-dev
15:54millenialhacker has quit [Ping timeout: 480 seconds]
15:55saina has quit []
16:02doggkruse has joined #asahi-dev
16:02Gaspare has quit [Quit: Gaspare]
16:03c10l has quit [Quit: Bye o/]
16:07mps_ has joined #asahi-dev
16:09mps has quit [Ping timeout: 480 seconds]
16:36marcanFILE brcm/brcmbt4387c2-apple,madagascares2-u.bin SHA256 d18a3cf25d8a24638d81ff81e60b5ae48c79ec1f5602ee3fab7764d8756b5c1e
16:36marcanFILE brcm/brcmbt4387c2-apple,madagascares2-u.ptb SHA256 754c5e3d73c9c9e07a5e54bb8386f01269c2c1016cf5237ed1ebe66a697c9971
16:36marcanFILE brcm/brcmbt4387c2-apple,maldiveses2-u.bin SHA256 a6bc9668240087301f55b52377f906f296e0fcfff841dd3d4bc08121e6ad7ea6
16:36marcanFILE brcm/brcmbt4387c2-apple,maldiveses2-u.ptb SHA256 992bb635f267c385a4ead8d217a34256a4e59dc2d6c7586f627b3c99b373333b
16:36marcanFILE brcm/brcmbt4387c2-apple,okinawaes2-u.bin SHA256 1dccd2749e374f791aa73457b6d9458a60bf9c3eeb3d1f322bd9d5fe9c51a54a
16:36marcanFILE brcm/brcmbt4387c2-apple,okinawaes2-u.ptb SHA256 77853c87c0bab51be2039694b850526644a3e450eee2d64cdf69989e9adc375d
16:36marcanshould we put that into the board name for bluetooth, or drop it in the firmware extractor?
16:40Erik52 has joined #asahi-dev
16:40Erik52 has quit []
16:42svenso it’s either hardcode “formosa” since there’s only a single FW anyway or do some hacks to get to the WiFi acpi name
16:49jole has quit [Remote host closed the connection]
16:49jole has joined #asahi-dev
17:08Catyre has quit [Remote host closed the connection]
17:08MajorBiscuit has quit [Ping timeout: 480 seconds]
17:15Gaspare has joined #asahi-dev
17:27nicolas17 has joined #asahi-dev
17:35svenor maybe just dump the entire BAR0 from the HV, that's how I found it in the first place :D
17:37Catyre has joined #asahi-dev
17:37j`eyfatal: Path 'drivers/soc/apple/rtkit-helper.c' exists on disk, but not in 'asahi-5.19-rc5-2'.
17:42dingodoppelt has quit [Quit: ZNC 1.9.x-git-170-9be0cae1 - https://znc.in]
17:42dingodoppelt has joined #asahi-dev
17:45Catyre has quit [Ping timeout: 480 seconds]
17:48bisko has joined #asahi-dev
18:14the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:18millenialhacker has joined #asahi-dev
18:26millenialhacker has quit [Ping timeout: 480 seconds]
18:30doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:32marcansome other command mechanism or something, instead of the little mailbox thing brcm normally uses
18:33svenI think suspend is mostly just tear down the communication rings + write 0 to a register that R called "sleep control"
18:34doggkruse has joined #asahi-dev
18:35sveni'm probably also missing some kind of "ack this irq" poke because if you switch to legacy interrupts it'll trigger an irq storm
18:38doggkruse has quit []
18:41marcanJul 12 03:40:51 macherie bluedevil-wizard[986]: kf.bluezqt: PendingCall Error: "br-connection-profile-unavailable"
18:48svenhttps://f.svpe.de/0164b39db9b36240842799679d99af66b05ffb7a9533ca7b0944239dfb59f240_0001-fixup-Bluetooth-hci_bcm43xx-Add-new-driver-for-BCM43.patch not sure why it would hit any of these
18:54marcan[ 185.661718] hci_bcm43xx 0000:01:00.1: payload len 1032 is too large for ring 5 (max is 0 or 1028)
18:59AProgrammer has joined #asahi-dev
18:59AProgrammerHow can I install the linux kernel headers in asahi?
19:02Catyre has joined #asahi-dev
19:02svenpairing so far has as always worked here fwiw, usually the userspace fail happened afterwards
19:06svennice! I could never get obex to work because apparently macOS doesn’t really support that out of the box
19:06nicolas17I once actually thought Linux didn't support my laptop's bluetooth chipset when in fact I hadn't installed pulseaudio-module-bluetooth x_x
19:07marcanok, let me push another kernel with the +4 anyway, and see if it magically works on my cleaner machines
19:07svenI did play a sine wave from macOS and sent that to the m1 though via that audio ACL thing :D
19:09svenjust some 10+ year old Python based thing that wouldn’t run anymore and some crappy App Store apps that didnt do what they claimed to do
19:10nicolas17yeahhh I don't think iOS ever gave third-party apps access to Bluetooth at the level needed to implement OBEX
19:11doggkruse has joined #asahi-dev
19:11nicolas17there's many apps like that which actually only work with another instance of itself on the other phone
19:17svenI, uh, don’t actually have the asahi distro installed and kinda still boot from sown random rootfs :D
19:18svenmostly because I’ve been too lazy to hook up screen/keyboard/mouse and do the while 1TR dance again
19:20AProgrammer has quit [Remote host closed the connection]
19:24marcanalso the installer should do M2 now (requires expert mode, the 12.4 for that stub is one of the magic special M2 versions, will not meet prereqs on "normal" 12.4 machines)
19:25Catyre has quit [Remote host closed the connection]
19:25sventhat’s a hard dependency in my setup and the only reason I even decided to get entangled with that mesa
19:25Catyre has joined #asahi-dev
19:26svenit was fun to write a nice self contained driver again. pretty much the opposite of the thunderbolt mess :)
19:27blazra[m]it does just work! just updated and rebooted and it works (14" m1pro with BT headphones), thanks!
19:30jannaumarcan: uboot/m1n1 (and kernel) from asahi-dev work on the m2 (not a proper install but asahi on an usb stick). kernel not fully tested since I can't convince mkinitcpio to include all necessary modules
19:31doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:31jannaudo we need to update https://github.com/AsahiLinux/asahi-scripts/blob/main/initcpio/install/asahi for dockchannel-mtp
19:32Catyre has quit [Remote host closed the connection]
19:32Catyre has joined #asahi-dev
19:32marcanassuming you have a proper dev env on macos (notably, you need the rust stuff for m1n1 to build, but you could cheat by copying over a built tree), you can just test the installer in-place
19:33svenBluetooth on M2 would be interesting as well. If it has a new chip revision the driver maybe needs a chance for sending the calibration data
19:35svenand possibly c3 also needs the beam forming calibration. that thing again is a hard coded list somewhere in macOS :/
19:36svenyeah, than maybe it needs an additional check in that send_calibration as well. Or maybe not
19:50doggkruse has joined #asahi-dev
20:26Catyre has quit [Remote host closed the connection]
20:27Catyre has joined #asahi-dev
20:33Catyre has quit [Remote host closed the connection]
20:33Catyre has joined #asahi-dev
20:33saina has joined #asahi-dev
20:33saina has quit [Read error: Connection reset by peer]
20:48Catyre has quit [Remote host closed the connection]
20:49Catyre has joined #asahi-dev
20:53jannaumarcan: mkinitcpio hooks needs "map add_firmware apple/tpmtfw-j413.bin apple/tpmtfw-j493.bin"
20:55jluthra has quit [Remote host closed the connection]
20:55jluthra has joined #asahi-dev
20:57Catyre has quit [Ping timeout: 480 seconds]
21:00leitao has joined #asahi-dev
21:02mps has joined #asahi-dev
21:03marcanI think the driver should probably have some kind of retry logic, so that it picks up the firmware once booted
21:04mps_ has quit [Ping timeout: 480 seconds]
21:05leitao has quit [Remote host closed the connection]
21:19marcanI see 1 second from 0 to the error, either that's the 1 second timeout, or it isn't actually waiting 1 second
21:21marcanmake -C .. CHAINLOADING=1 && python tools/chainload.py -r ../build/m1n1.bin && cat ../build/m1n1.bin <(echo -ne 'chosen.asahi,efi-system-partition=a17b7e46-e950-bb4f-bc82-8ab1047a058e\nchainload=a17b7e46-e950-bb4f-bc82-8ab1047a058e;m1n1/boot.bin\n') >| /tmp/m1n1-chainload.bin && python tools/chainload.py -r /tmp/m1n1-chainload.bin
21:22marcanit's possible I broke it with the m1n1 rtkit power stuff in stage1, and it's broken for new installs on m1 too
21:42Catyre has joined #asahi-dev
21:50Catyre has quit [Ping timeout: 480 seconds]
21:59Catyre has joined #asahi-dev
22:14Catyre has quit [Remote host closed the connection]
22:15Catyre has joined #asahi-dev
22:19joske has joined #asahi-dev
22:19joskepovik: marcan: new asahi branch, no audio, I got this in dmesg: firmware designs can be :p
22:19joske<kettenis> u-boot 2022.07 was released so I rebased the u-boot asahi branch once more to pick up the Makefile changes that drops -rc6
22:21joskethat was some palm x-select, I meant: [ 18.077498] apple-mca 238400000.mca: ASoC: error at snd_soc_dai_set_sysclk on mca-i2s-2: -16
22:22joske has quit [Remote host closed the connection]
22:23Catyre has quit [Ping timeout: 480 seconds]
22:34joske has joined #asahi-dev
22:34joskehmm if I boot previous kernel same problem, even when reverting boot.bin, so please disregard for now
22:35joske has quit [Remote host closed the connection]
22:38Gaspare has quit [Quit: Gaspare]
22:43Catyre has joined #asahi-dev
22:55c10l has joined #asahi-dev
22:58Catyre has quit [Remote host closed the connection]
22:58Catyre has joined #asahi-dev
23:06Catyre has quit [Ping timeout: 480 seconds]
23:11Catyre has joined #asahi-dev
23:15psykose has joined #asahi-dev
23:19millenialhacker has joined #asahi-dev
23:27millenialhacker has quit [Ping timeout: 480 seconds]
23:30Catyre has quit [Remote host closed the connection]
23:31Catyre has joined #asahi-dev
23:39Catyre has quit [Ping timeout: 480 seconds]