#
…

2023-09-19

00:06eiln has joined #asahi-dev
00:24eilnchadmed: ane/isp/ave/avd voltage/temps are +0x8000, just above axi2af. they are always read after shutdown, and can be traced with a simple trace_device(). I can try to see how those reads turn into macos powertop values if needed, but they're mapped and accessed by the pmgr driver, independent of device
00:24eilnisp also has sensor/lens temperature monitors https://gist.github.com/eiln/c2d140d8a0376bd25f2f31ed7a7d9dc8. I can expose a ioctl if needed, don't think it's worth doing that in v4l2 though
00:24eilnnot on my machine rn, will reply later
00:26eilnshutdown as in rpm device init/exit, not system
00:27chadmed_eiln: aiui the kernel modules for those devices can expose hwmon sensors/a hwmon driver themselves, right?
00:28Adilpickles has quit [Remote host closed the connection]
00:32cylm_ has quit [Quit: WeeChat 4.0.4]
00:44eiln has quit [Quit: Page closed]
01:35amarioguy has joined #asahi-dev
02:00gabuscus has quit []
02:21jeisom has quit [Ping timeout: 480 seconds]
02:22chadmed_ has quit [Remote host closed the connection]
02:33crabbedhaloablut has joined #asahi-dev
02:36gabuscus has joined #asahi-dev
03:09tristan2 has joined #asahi-dev
03:10tristan2_ has quit [Ping timeout: 480 seconds]
03:32nicolas17 has quit [Quit: Konversation terminated!]
03:37lina has joined #asahi-dev
03:39linaeiln: Hi! When you're around, I heard you want more people helping get the ISP stuff working on other machines... do you think I could try to get t802x working in a stream tomorrow? I have this M2 Max lying around... ^^
07:01qyliss has quit [Quit: bye]
07:04qyliss has joined #asahi-dev
07:19qyliss has quit [Quit: bye]
07:21qyliss has joined #asahi-dev
08:42_jannau__ is now known as _jannau_
09:49elros has joined #asahi-dev
10:04eldriitch has joined #asahi-dev
10:05timokrgr has quit [Quit: User left the chat]
10:11timokrgr has joined #asahi-dev
10:12svenhrm, same thing after soldering everything to my second cd3217 and adding a few more connections that may be required as well. i guess i'll wait for my glasgow to arrive before looking into this any further, this rom isn't all that important anyway and I mainly did this to see if I could solder to tiny bgas anyway ;)
10:13jeisom has joined #asahi-dev
10:40qyliss has quit [Quit: bye]
10:43qyliss has joined #asahi-dev
10:47eiln has joined #asahi-dev
10:54elros_ has joined #asahi-dev
10:55eilnstill setting up new setup. installed windows for my boss and got his old laptop in return (??) was morally obligated to sneak ublock in there, sigh
10:55eilnlina: I was watching your shader exploit stream yesterday!
10:55eilnJ414cAP/J416cAP (1080p) I suspect are both 558s again. bootargs/init soc data, you can probably do it with your eyes closed
10:55eilnpatched tracer I've been meaning to clean up https://pastebin.com/TejGDw60 all opcodes https://pastebin.com/vCkN21Sn
10:58elros has quit [Ping timeout: 480 seconds]
11:08linaeiln: Got it! I'll give it a try tomorrow ^^
11:10j`eyvtuber with webcam doesn't compute :P
11:16qyliss has quit [Quit: bye]
11:18qyliss has joined #asahi-dev
11:26qyliss has quit [Quit: bye]
11:28qyliss has joined #asahi-dev
11:37jannauj`ey: easy to solve webcam captures the vtuber stream via a mirror
12:04cylm has joined #asahi-dev
12:38j`eyor green screen :D
12:39darkapex3 has quit []
12:39darkapex has joined #asahi-dev
12:51eiln has quit [Quit: Page closed]
13:03linaj`ey: I mean, I hope one day I can use eiln's ANE stuff to run motion capture instead of an iPhone ^^
13:03linabut also for testing I'll just point it at a wall...
13:04j`eyfully asahi linux driven stream would be great!
13:07amarioguy2 has joined #asahi-dev
13:12qyliss has quit [Quit: bye]
13:14qyliss has joined #asahi-dev
13:44qyliss has quit [Quit: bye]
13:47qyliss has joined #asahi-dev
13:50qyliss has quit []
13:52qyliss has joined #asahi-dev
14:39skippypaws has quit [Read error: Network is unreachable]
14:39msteffen has quit [Read error: Network is unreachable]
14:39msteffen has joined #asahi-dev
14:39skippypaws has joined #asahi-dev
14:39hayden_dev has quit [Read error: Network is unreachable]
14:39azenla has quit [Read error: Network is unreachable]
14:39tamar has quit [Read error: Network is unreachable]
14:39hayden_dev has joined #asahi-dev
14:39tamar has joined #asahi-dev
14:39linxz has quit [Read error: Network is unreachable]
14:39steev has quit [Read error: Network is unreachable]
14:39daniels has quit [Read error: Network is unreachable]
14:39azenla has joined #asahi-dev
14:39jonmasters has quit [Write error: connection closed]
14:39robher has quit [Read error: Network is unreachable]
14:39snek has quit [Write error: connection closed]
14:39supay has quit [Read error: Network is unreachable]
14:39arnd has quit [Read error: Network is unreachable]
14:39austriancoder has quit [Read error: Network is unreachable]
14:39linxz has joined #asahi-dev
14:39i509vcb has quit [Read error: Network is unreachable]
14:39supay has joined #asahi-dev
14:39esden has quit [Read error: Network is unreachable]
14:39steev has joined #asahi-dev
14:39i509vcb has joined #asahi-dev
14:39daniels has joined #asahi-dev
14:39austriancoder has joined #asahi-dev
14:39eric_engestrom has quit [Read error: Network is unreachable]
14:39esden has joined #asahi-dev
14:39Puto has quit [Read error: Network is unreachable]
14:39mf54 has quit [Read error: Connection reset by peer]
14:39Puto has joined #asahi-dev
14:40Whistler_ has quit [Remote host closed the connection]
14:40eric_engestrom has joined #asahi-dev
14:40joshtaylor has quit [Remote host closed the connection]
14:40joshtaylor has joined #asahi-dev
14:40Whistler_ has joined #asahi-dev
14:40jonmasters has joined #asahi-dev
14:40arnd has joined #asahi-dev
14:40robher has joined #asahi-dev
14:40snek has joined #asahi-dev
14:41balrog has quit [Remote host closed the connection]
14:41balrog has joined #asahi-dev
14:43c10l has quit [Quit: Bye o/]
14:44lewurm`` has quit [Remote host closed the connection]
14:44c10l has joined #asahi-dev
14:44lewurm has joined #asahi-dev
14:49malfunction54 has joined #asahi-dev
15:53elros_ has quit [Quit: WeeChat 4.0.4]
15:56amarioguy2 has quit [Ping timeout: 480 seconds]
16:41Guest328 has quit [Quit: Bridge terminating on SIGTERM]
16:41rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:45Guest641 has joined #asahi-dev
16:46rhysmdnz has joined #asahi-dev
16:48flom84 has joined #asahi-dev
17:38flom84 has quit [Ping timeout: 480 seconds]
18:24fugi has quit [Quit: Ping timeout (120 seconds)]
18:24fugi has joined #asahi-dev
18:33delroth has quit [Remote host closed the connection]
18:34delroth has joined #asahi-dev
18:44Adilpick1es has joined #asahi-dev
18:46Adilpickles has joined #asahi-dev
18:47stek has joined #asahi-dev
18:53stekHi! I have a question about the m2 pro. It says in feature support that the keyboard and trackpad are indeed supported, and are in linux-asahi. I have been a bit impatient and managed to install asahi, but the keyboard and trackpad do not work, and I know, you guys don't give support to these kind of installs but it just seems weird that they don't work. Is it not in the official package or is this some
18:54stekkind of FW thing?
18:54Adilpickles has quit [Ping timeout: 480 seconds]
18:54j`eyI think there's an issue with u-boot that stops the kb working?
18:56stekShould I try compiling u-boot from source?
18:56jannauthey work but require the u-boot from asahi-releng (asahi-v2023.07.02-2)
18:59stekIs there a package or you mean the asahi-releng branch in u-boot repo?
19:07melonai33 has joined #asahi-dev
19:08stek_ has joined #asahi-dev
19:10stek has quit [Ping timeout: 480 seconds]
19:11Adilpick3es has joined #asahi-dev
19:13Adilpick1es has quit [Ping timeout: 480 seconds]
19:14melonai3 has quit [Ping timeout: 480 seconds]
19:19jannaupovik: any idea how cs42l84 distinguishes between headphones and plain microphones? I would expect that a mic uses the same contacts as a headphone
19:20Adilpick2es has joined #asahi-dev
19:21Adilpick3es has quit [Ping timeout: 480 seconds]
19:22Adilpick2es has quit [Read error: Connection reset by peer]
19:22jannauah, nevermind "Detected mic" is for the 4 connector headset variant. I thought that was reported headset
19:23stek_ has quit [Quit: leaving]
19:24melonai339 has joined #asahi-dev
19:30ourdumbfuture has joined #asahi-dev
19:31melonai33 has quit [Ping timeout: 480 seconds]
19:47stek has joined #asahi-dev
19:53stekhow do I compile the DTB-s from AsahiLinux/linux for u-boot?
19:53j`eystek: you should have them on your system already
19:54stekOh, makes sense, where can I find them?
19:54j`eyin /lib/modules I think it is
19:54j`eytrying to check
19:55stekYeah they are there
19:56mps_ has joined #asahi-dev
19:58mps has quit [Ping timeout: 480 seconds]
20:09Adilpickles has joined #asahi-dev
20:11jeisom has quit [Ping timeout: 480 seconds]
20:13Adilpickles has quit [Read error: Connection reset by peer]
20:14darkapex has quit [Remote host closed the connection]
20:14darkapex has joined #asahi-dev
20:20roxfan has joined #asahi-dev
20:22stekso, I got the keyboard to work, but the touchpad, not so much
20:24ydalton has joined #asahi-dev
20:24ydaltonstek: when i boot linux with an initramfs through m1n1, keyboard works but touchpad doesn't
20:24ydaltonand graphics acceleration
20:25stekhow can I find out if i have graphics acceleration
20:25ydaltonwhat DE are you using?
20:25ydaltonor are you using a DE
20:26stekI cannot launch them natively, I have to give the env var to use software rendering. I tried both Hyprland and wayfire
20:26roxfan has quit [Read error: Connection reset by peer]
20:28avonyx has joined #asahi-dev
20:28ydaltonidk how well wayland compositors fare on software rendering
20:28stekwayfire sort of works, but Hyprland is quite unusable
20:28ydaltoncan you open the foot terminal?
20:29stekSorry, what is that?
20:29i509vcbMost compositors I believe really would like gles 2.0 at least, but wlroots (assuming the user chose to bundle the software renderer), gnome and kde do provide that as a fallback
20:30ydaltonstek: a wayland-first terminal emulator
20:30stekI use kitty
20:30ydaltonit's what i used when i was on wayfire
20:30i509vcbkitty I think can run under llvmpipe
20:30i509vcbfoot is software rendered as well
20:31ydaltonwasn't there an issue on m2 pro with the gpu? something about uat_handoff
20:33ydaltonstek: what does `glxinfo | grep Device` say
20:34stekllvmpipe
20:34ydaltoni guess you're on software rendering
20:34ydaltonis the `asahi` kernel module loaded?
20:34stekbecuase nor wayfire nor hyprland start without specifying WLR_RENDERER_ALLOW_SOFTWARE=1
20:35rappet has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
20:35avonyxIf glxinfo reports Device as Apple M1, does that mean that it is using GPU rendering?
20:36ydaltonavonyx: normally yes
20:36ydaltonstek: and you can't launch `glxinfo` in a tty it seems
20:36stekaccording to lsmod asahi is loaded
20:37rappet has joined #asahi-dev
20:37ydaltoncan you check dmesg for anything pertaining to `asahi`?
20:38stekyeah it says failed to remap handoff region
20:38ydaltonjannau: is this the infamous uat_handoff thing on m2 pro?
20:39stekalso, it says at boot that there is an unknown kernel command BOOT_IMAGE
20:39ydaltonthat's with me too
20:43ydalton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
20:44stekso is there anything i can do to fix this issue with the handoff?
20:44j`eydebug and fix it :P
20:49avonyxAsahi Fedora runs beautifully on hardware rendering
20:49avonyxFedora Asahi? Not sure how to style that
20:50stekYeah I only got the arch to install by modifying the asahi installer script
20:51ydalton has joined #asahi-dev
20:51opticronavonyx, I believe it's Fedora Asahi Remix
20:51ydaltonthat's a mouthful imo, i just say fedora asahi
20:51stekEven though the touchpad doesn't work it does give haptic feedback, it never did that before
20:52avonyxFedora Asahi runs great then
20:52ellyqyou can alawys just imagine Lina by an apple tree, wearing blue hat :P
20:52ydaltonavonyx: it very much does
20:52avonyxEven transparency effects :D
20:53ydaltoni feel like this is off topic for #asahi-dev
20:53ydalton has left #asahi-dev [#asahi-dev]
20:53* ellyqnods in agreement
20:58chadmed has quit [Read error: Connection reset by peer]
20:59chadmed has joined #asahi-dev
21:01avonyx has left #asahi-dev [#asahi-dev]
21:20ellyq has quit [Read error: No route to host]
21:25ydalton has joined #asahi-dev
21:27ellyq has joined #asahi-dev
21:31ydaltonquestion: aside from the speakers thing; is it possible to actually destroy some parts of the hardware through the m1n1 environment?
21:32ellyqwell, I certainly wouldn't recommend messing with voltage regulators
21:32ydaltonthat already sounds like a potential disaster
21:35ellyq*I think* you should be fine, as long as you don't do something like writing values to i2c addresses without understanding what they're for and what you're doing :)
21:36ydaltongot it, stay the hell away from i2c :P
21:37svenI don’t think you can mess with the voltage regulators. Certainly not over i2c
21:37marcanit's SPMI, not I2C
21:38ellyqah makes sense, should've added a disclaimer that I don't have Mx mac (yet)
21:38stekokay, the software rendering doesn't really bother me all that much, but the touchpad does. Can I somehow get it to function, even if only pointing and clicking functions work?
21:39sventhe only thing I’d avoid is overwriting or deleting that sysconf region inside the nor flash. I don’t think anyone tried if restoring that with dfu is possible
21:39ydaltonsven: how would you get access to that?
21:40ydaltonis it those extra drives that are picked up by linux?
21:40ydalton/dev/nvme0n2 and /dev/nvme0n3
21:40ChaosPrincessdelete the partition table from spi-nor in the device tree, then you will be able to see the entire spi flash
21:41svenIm still not entirely sure what those other namespaces are
21:41svenone seems to contain some kind of panic or last boot log
21:41sventhe other a signed blob iirc but I have no clue what it’s used for
21:42ellyqso like, ramoops?
21:43ydaltonisn't the the nor flash the thing that loads iboot?
21:43ydaltonoh, i think i misread the github page
21:43qyliss has quit [Quit: bye]
21:45ydaltonthe rom loads iboot from nor flash right?
21:45qyliss has joined #asahi-dev
21:47j`eystek: you'll have to try diagnose a bit, see if you have an errors n dmesg etc
21:50ydaltonisn't the kernel module for keyboard and trackpad called `dockchannel-hid`?
21:51j`eyon most but the oldest models, yeah
21:51ydaltonif it is, i would suggest looking in dmesg for that
21:54stekI see, thanks guys
21:55ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
21:56stekAha, starting interface multi-touch fails with error -2, firmware load for apple/tpmtfw-j414s.bin
21:56jeisom has joined #asahi-dev
21:56j`eyI wondered about that
21:58stekwhat is error -2?
21:59j`eyno file
22:11stekcan I build that missing bin?
22:11j`eycant build it, that's the macos fw
22:11j`eyI'm not sure why it didn't get extracted by the scripts
22:12stekOh, can I manually extract it and place it where it needs to be?
22:18stek has quit [Quit: Leaving]
22:25ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:32ydalton has joined #asahi-dev
22:34ydaltonhi, i'm having problems running macOS in the hypervisor. i have the latest macOS and obtained my kernelcache from that installation. i keep getting early kernel panics (no rainbow apple, just a progress bar)
22:35ydaltonthis is a mac mini, but i had the same issue (not sure about the progress bar) on my m2 macbook air
22:35ydalton2 months ago it worked fine
22:36ChaosPrincessupdate m1n1 to latest, if it doesnt help, post logs here
22:37crabbedhaloablut has quit []
22:37ydaltonm1n1 is the latest version, version string is v1.3.6-3-gea64e7b-dirty
22:38ChaosPrincesspost logs, post what exact command you are using
22:40ydaltonlogs from macOS serial or m1n1
22:40ChaosPrincesswhy not both :P
22:40ydaltontools/run_guest.py -S ../../kernelcache/kernel.macho -- "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1 clpc=0"
22:42ourdumbfuture has joined #asahi-dev
22:43ydaltonit says illegal PA? physical address i assume
22:46ChaosPrincesswhat command did you use to generate the kernelcache?
22:46ydaltonimg4tool -e -p out.im4p kernelcache
22:46ydaltonand img4tool -e -o kernel.macho out.im4p
22:46ydaltonjust like in the tutorial
22:47ydaltons/tutorial/wiki
22:47ydaltonthat program `img4tool` might be the cuprit
22:47ydaltons/cuprit/culprit
22:48ChaosPrincessprobably not. and im out of ideas now, except maybe try the kernel from the kdk
22:50ydaltonwhat version of img4tool do you have?
22:58ChaosPrincessneither, i used kmutil
22:59ydaltonoh, the kdk
22:59ydaltonchainloading an older version of m1n1 doesn't help
23:03ydaltonit seems always a different physical address
23:06ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
23:21ydalton has joined #asahi-dev
23:22ydaltoni fixed it...
23:22ydaltonit turns out i skipped disabling SIP
23:22ydaltonnow it's working :)
23:22ydalton has left #asahi-dev [#asahi-dev]
23:27chadmed has quit [Remote host closed the connection]
23:28chadmed has joined #asahi-dev
23:34ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:35ourdumbfuture has joined #asahi-dev
23:58ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
…