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
eiln has joined #asahi-dev
<eiln> chadmed: 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
<eiln> isp 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
<eiln> not on my machine rn, will reply later
<eiln> shutdown as in rpm device init/exit, not system
<chadmed_> eiln: aiui the kernel modules for those devices can expose hwmon sensors/a hwmon driver themselves, right?
Adilpickles has quit [Remote host closed the connection]
cylm_ has quit [Quit: WeeChat 4.0.4]
eiln has quit [Quit: Page closed]
amarioguy has joined #asahi-dev
gabuscus has quit []
jeisom has quit [Ping timeout: 480 seconds]
chadmed_ has quit [Remote host closed the connection]
crabbedhaloablut has joined #asahi-dev
gabuscus has joined #asahi-dev
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Quit: Konversation terminated!]
lina has joined #asahi-dev
<lina> eiln: 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... ^^
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
_jannau__ is now known as _jannau_
elros has joined #asahi-dev
eldriitch has joined #asahi-dev
timokrgr has quit [Quit: User left the chat]
timokrgr has joined #asahi-dev
<sven> hrm, 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 ;)
jeisom has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
eiln has joined #asahi-dev
elros_ has joined #asahi-dev
<eiln> still 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
<eiln> lina: I was watching your shader exploit stream yesterday!
<eiln> J414cAP/J416cAP (1080p) I suspect are both 558s again. bootargs/init soc data, you can probably do it with your eyes closed
<eiln> patched tracer I've been meaning to clean up https://pastebin.com/TejGDw60 all opcodes https://pastebin.com/vCkN21Sn
elros has quit [Ping timeout: 480 seconds]
<lina> eiln: Got it! I'll give it a try tomorrow ^^
<j`ey> vtuber with webcam doesn't compute :P
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
<jannau> j`ey: easy to solve webcam captures the vtuber stream via a mirror
cylm has joined #asahi-dev
<j`ey> or green screen :D
darkapex3 has quit []
darkapex has joined #asahi-dev
eiln has quit [Quit: Page closed]
<lina> j`ey: I mean, I hope one day I can use eiln's ANE stuff to run motion capture instead of an iPhone ^^
<lina> but also for testing I'll just point it at a wall...
<j`ey> fully asahi linux driven stream would be great!
amarioguy2 has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
qyliss has quit []
qyliss has joined #asahi-dev
skippypaws has quit [Read error: Network is unreachable]
msteffen has quit [Read error: Network is unreachable]
msteffen has joined #asahi-dev
skippypaws has joined #asahi-dev
hayden_dev has quit [Read error: Network is unreachable]
azenla has quit [Read error: Network is unreachable]
tamar has quit [Read error: Network is unreachable]
hayden_dev has joined #asahi-dev
tamar has joined #asahi-dev
linxz has quit [Read error: Network is unreachable]
steev has quit [Read error: Network is unreachable]
daniels has quit [Read error: Network is unreachable]
azenla has joined #asahi-dev
jonmasters has quit [Write error: connection closed]
robher has quit [Read error: Network is unreachable]
snek has quit [Write error: connection closed]
supay has quit [Read error: Network is unreachable]
arnd has quit [Read error: Network is unreachable]
austriancoder has quit [Read error: Network is unreachable]
linxz has joined #asahi-dev
i509vcb has quit [Read error: Network is unreachable]
supay has joined #asahi-dev
esden has quit [Read error: Network is unreachable]
steev has joined #asahi-dev
i509vcb has joined #asahi-dev
daniels has joined #asahi-dev
austriancoder has joined #asahi-dev
eric_engestrom has quit [Read error: Network is unreachable]
esden has joined #asahi-dev
Puto has quit [Read error: Network is unreachable]
mf54 has quit [Read error: Connection reset by peer]
Puto has joined #asahi-dev
Whistler_ has quit [Remote host closed the connection]
eric_engestrom has joined #asahi-dev
joshtaylor has quit [Remote host closed the connection]
joshtaylor has joined #asahi-dev
Whistler_ has joined #asahi-dev
jonmasters has joined #asahi-dev
arnd has joined #asahi-dev
robher has joined #asahi-dev
snek has joined #asahi-dev
balrog has quit [Remote host closed the connection]
balrog has joined #asahi-dev
c10l has quit [Quit: Bye o/]
lewurm`` has quit [Remote host closed the connection]
c10l has joined #asahi-dev
lewurm has joined #asahi-dev
malfunction54 has joined #asahi-dev
elros_ has quit [Quit: WeeChat 4.0.4]
amarioguy2 has quit [Ping timeout: 480 seconds]
Guest328 has quit [Quit: Bridge terminating on SIGTERM]
rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
Guest641 has joined #asahi-dev
rhysmdnz has joined #asahi-dev
flom84 has joined #asahi-dev
flom84 has quit [Ping timeout: 480 seconds]
fugi has quit [Quit: Ping timeout (120 seconds)]
fugi has joined #asahi-dev
delroth has quit [Remote host closed the connection]
delroth has joined #asahi-dev
Adilpick1es has joined #asahi-dev
Adilpickles has joined #asahi-dev
stek has joined #asahi-dev
<stek> Hi! 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
<stek> kind of FW thing?
Adilpickles has quit [Ping timeout: 480 seconds]
<j`ey> I think there's an issue with u-boot that stops the kb working?
<stek> Should I try compiling u-boot from source?
<jannau> they work but require the u-boot from asahi-releng (asahi-v2023.07.02-2)
<stek> Is there a package or you mean the asahi-releng branch in u-boot repo?
melonai33 has joined #asahi-dev
stek_ has joined #asahi-dev
stek has quit [Ping timeout: 480 seconds]
Adilpick3es has joined #asahi-dev
Adilpick1es has quit [Ping timeout: 480 seconds]
melonai3 has quit [Ping timeout: 480 seconds]
<jannau> povik: any idea how cs42l84 distinguishes between headphones and plain microphones? I would expect that a mic uses the same contacts as a headphone
Adilpick2es has joined #asahi-dev
Adilpick3es has quit [Ping timeout: 480 seconds]
Adilpick2es has quit [Read error: Connection reset by peer]
<jannau> ah, nevermind "Detected mic" is for the 4 connector headset variant. I thought that was reported headset
stek_ has quit [Quit: leaving]
melonai339 has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
melonai33 has quit [Ping timeout: 480 seconds]
stek has joined #asahi-dev
<stek> how do I compile the DTB-s from AsahiLinux/linux for u-boot?
<j`ey> stek: you should have them on your system already
<stek> Oh, makes sense, where can I find them?
<j`ey> in /lib/modules I think it is
<j`ey> trying to check
<stek> Yeah they are there
mps_ has joined #asahi-dev
mps has quit [Ping timeout: 480 seconds]
Adilpickles has joined #asahi-dev
jeisom has quit [Ping timeout: 480 seconds]
Adilpickles has quit [Read error: Connection reset by peer]
darkapex has quit [Remote host closed the connection]
darkapex has joined #asahi-dev
roxfan has joined #asahi-dev
<stek> so, I got the keyboard to work, but the touchpad, not so much
ydalton has joined #asahi-dev
<ydalton> stek: when i boot linux with an initramfs through m1n1, keyboard works but touchpad doesn't
<ydalton> and graphics acceleration
<stek> how can I find out if i have graphics acceleration
<ydalton> what DE are you using?
<ydalton> or are you using a DE
<stek> I cannot launch them natively, I have to give the env var to use software rendering. I tried both Hyprland and wayfire
roxfan has quit [Read error: Connection reset by peer]
avonyx has joined #asahi-dev
<ydalton> idk how well wayland compositors fare on software rendering
<stek> wayfire sort of works, but Hyprland is quite unusable
<ydalton> can you open the foot terminal?
<stek> Sorry, what is that?
<i509vcb> Most 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
<ydalton> stek: a wayland-first terminal emulator
<stek> I use kitty
<ydalton> it's what i used when i was on wayfire
<i509vcb> kitty I think can run under llvmpipe
<i509vcb> foot is software rendered as well
<ydalton> wasn't there an issue on m2 pro with the gpu? something about uat_handoff
<ydalton> stek: what does `glxinfo | grep Device` say
<stek> llvmpipe
<ydalton> i guess you're on software rendering
<ydalton> is the `asahi` kernel module loaded?
<stek> becuase nor wayfire nor hyprland start without specifying WLR_RENDERER_ALLOW_SOFTWARE=1
rappet has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<avonyx> If glxinfo reports Device as Apple M1, does that mean that it is using GPU rendering?
<ydalton> avonyx: normally yes
<ydalton> stek: and you can't launch `glxinfo` in a tty it seems
<stek> according to lsmod asahi is loaded
rappet has joined #asahi-dev
<ydalton> can you check dmesg for anything pertaining to `asahi`?
<stek> yeah it says failed to remap handoff region
<ydalton> jannau: is this the infamous uat_handoff thing on m2 pro?
<stek> also, it says at boot that there is an unknown kernel command BOOT_IMAGE
<ydalton> that's with me too
ydalton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
<stek> so is there anything i can do to fix this issue with the handoff?
<j`ey> debug and fix it :P
<avonyx> Asahi Fedora runs beautifully on hardware rendering
<avonyx> Fedora Asahi? Not sure how to style that
<stek> Yeah I only got the arch to install by modifying the asahi installer script
ydalton has joined #asahi-dev
<opticron> avonyx, I believe it's Fedora Asahi Remix
<avonyx> Gotcha
<ydalton> that's a mouthful imo, i just say fedora asahi
<opticron> fair
<stek> Even though the touchpad doesn't work it does give haptic feedback, it never did that before
<avonyx> Fedora Asahi runs great then
<ellyq> you can alawys just imagine Lina by an apple tree, wearing blue hat :P
<ydalton> avonyx: it very much does
<avonyx> Even transparency effects :D
<ydalton> i feel like this is off topic for #asahi-dev
ydalton has left #asahi-dev [#asahi-dev]
* ellyq nods in agreement
chadmed has quit [Read error: Connection reset by peer]
chadmed has joined #asahi-dev
avonyx has left #asahi-dev [#asahi-dev]
ellyq has quit [Read error: No route to host]
ydalton has joined #asahi-dev
ellyq has joined #asahi-dev
<ydalton> question: aside from the speakers thing; is it possible to actually destroy some parts of the hardware through the m1n1 environment?
<ellyq> well, I certainly wouldn't recommend messing with voltage regulators
<ydalton> that already sounds like a potential disaster
<ellyq> *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 :)
<ydalton> got it, stay the hell away from i2c :P
<sven> I don’t think you can mess with the voltage regulators. Certainly not over i2c
<marcan> it's SPMI, not I2C
<ellyq> ah makes sense, should've added a disclaimer that I don't have Mx mac (yet)
<stek> okay, 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?
<sven> the 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
<ydalton> sven: how would you get access to that?
<ydalton> is it those extra drives that are picked up by linux?
<ydalton> /dev/nvme0n2 and /dev/nvme0n3
<sven> no
<ChaosPrincess> delete the partition table from spi-nor in the device tree, then you will be able to see the entire spi flash
<sven> Im still not entirely sure what those other namespaces are
<sven> one seems to contain some kind of panic or last boot log
<sven> the other a signed blob iirc but I have no clue what it’s used for
<ellyq> so like, ramoops?
<ydalton> isn't the the nor flash the thing that loads iboot?
<ydalton> oh, i think i misread the github page
qyliss has quit [Quit: bye]
<ydalton> the rom loads iboot from nor flash right?
qyliss has joined #asahi-dev
<j`ey> stek: you'll have to try diagnose a bit, see if you have an errors n dmesg etc
<ydalton> isn't the kernel module for keyboard and trackpad called `dockchannel-hid`?
<j`ey> on most but the oldest models, yeah
<ydalton> if it is, i would suggest looking in dmesg for that
<stek> I see, thanks guys
ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
<stek> Aha, starting interface multi-touch fails with error -2, firmware load for apple/tpmtfw-j414s.bin
jeisom has joined #asahi-dev
<j`ey> I wondered about that
<stek> what is error -2?
<j`ey> no file
<stek> oh.
<stek> can I build that missing bin?
<j`ey> cant build it, that's the macos fw
<j`ey> I'm not sure why it didn't get extracted by the scripts
<stek> Oh, can I manually extract it and place it where it needs to be?
stek has quit [Quit: Leaving]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ydalton has joined #asahi-dev
<ydalton> hi, 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)
<ydalton> this is a mac mini, but i had the same issue (not sure about the progress bar) on my m2 macbook air
<ydalton> 2 months ago it worked fine
<ChaosPrincess> update m1n1 to latest, if it doesnt help, post logs here
crabbedhaloablut has quit []
<ydalton> m1n1 is the latest version, version string is v1.3.6-3-gea64e7b-dirty
<ChaosPrincess> post logs, post what exact command you are using
<ydalton> logs from macOS serial or m1n1
<ydalton> ?
<ChaosPrincess> why not both :P
<ydalton> tools/run_guest.py -S ../../kernelcache/kernel.macho -- "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1 clpc=0"
<ydalton> from m1n1 https://termbin.com/7w8s
ourdumbfuture has joined #asahi-dev
<ydalton> macOS serial: https://termbin.com/t8ds
<ydalton> it says illegal PA? physical address i assume
<ChaosPrincess> what command did you use to generate the kernelcache?
<ydalton> img4tool -e -p out.im4p kernelcache
<ydalton> and img4tool -e -o kernel.macho out.im4p
<ydalton> just like in the tutorial
<ydalton> s/tutorial/wiki
<ydalton> that program `img4tool` might be the cuprit
<ydalton> s/cuprit/culprit
<ChaosPrincess> probably not. and im out of ideas now, except maybe try the kernel from the kdk
<ydalton> what version of img4tool do you have?
<ChaosPrincess> neither, i used kmutil
<ydalton> oh, the kdk
<ydalton> chainloading an older version of m1n1 doesn't help
<ydalton> it seems always a different physical address
ydalton has left #asahi-dev [ERC 5.4 (IRC client for GNU Emacs 28.2)]
ydalton has joined #asahi-dev
<ydalton> i fixed it...
<ydalton> it turns out i skipped disabling SIP
<ydalton> now it's working :)
ydalton has left #asahi-dev [#asahi-dev]
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]