<VinDuv>
My understanding is that on x86 Mac laptops, the keyboard and trackpad act as USB devices on startup for compatibility with UEFI (and Windows I guess) but they switch to SPI to reduce power consumption. I find it weird that they would keep that on M1 laptops since firmware configuration is done on macOS…
rkt is now known as Guest4504
rkt_ has joined #asahi-dev
rkt_ is now known as rkt
Guest4504 has quit [Ping timeout: 480 seconds]
jacoxon has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jacoxon has quit []
jacoxon has joined #asahi-dev
jacoxon has quit []
jacoxon has joined #asahi-dev
jacoxon has quit []
user982492 has joined #asahi-dev
jacoxon has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kettenis>
VinDuv: I think you're misinterpreting what I'm saying
<kettenis>
the keyboard and touchpad on the M1 laptops only have an SPI interface
<kettenis>
but the SPI packets have the same contents as the USB packets on those x86 laptops
<kettenis>
HID isn't exclusively used for USB
<kettenis>
windows laptops sometimes use HID-over-I2C or HID-over-SPI
<kettenis>
anyway, the touchpad packets match those handled by drivers/input/mouse/bcm5974.c even better
<kettenis>
which makes sense, since that is the driver used for the later x86 laptops, including those which can be switched between USB and SPI AFAICT
<kettenis>
bcm5974.c doesn't use the HID subsystem though
<VinDuv>
kettenis: ah ok. TIL
bps2 has quit [Ping timeout: 480 seconds]
alyssa has quit [Quit: leaving]
hir0pro has joined #asahi-dev
astrorion26[m] has joined #asahi-dev
mwalle has joined #asahi-dev
X-Scale has joined #asahi-dev
X-Scale` has quit [Ping timeout: 480 seconds]
aleasto has quit [Quit: Konversation terminated!]
<astrorion26[m]>
Hi, I'm no pro or anything but I have an M1 Air and I am really interested in this project. I wanted to know if their was any possible way to get a serial console on a intel imac 9900k (maybe through thunderbolt 3) or a raspberry pi 4B. I know the interface is a 1.2V logic level so maybe a level converter could help?
<j_ey>
astrorion26[m]: I use an rpi4.. but it's not a hardware uart
<j_ey>
if you use the hypervisor its ok, but its not useful w/o the hypervisor
<astrorion26[m]>
I see, is there a guide on how to get that going
<astrorion26[m]>
Sorry if this is a dumb question but is M1N1 a hypervisor? I thought it was a bootloader of some form when I was reading the guide
<j_ey>
its can be both
<astrorion26[m]>
how interesting. So will linux be booting through a hypervisor with direct access to the gpu?
<astrorion26[m]>
Similar to some linux distros that allow direct pci-e passthrough to virtual machines
<j_ey>
no, the hypervisor is for development
nsklaus_ has joined #asahi-dev
<astrorion26[m]>
I see
<astrorion26[m]>
thanks
<astrorion26[m]>
sorry for the bother
<j_ey>
no bother
<sven>
the hypervisor is relatively dumb as well. it'll just pass-through any hardware and makes no attempt to protect itself
<sven>
when macos is running under it it has direct access to the gpu
<j_ey>
intentionally dumb that is
<sven>
yeah
<astrorion26[m]>
I've never done any reverse engineering stuff but I have some experience patching ACPI for hackintoshes so I'm probably going to ask some questions that are probably common sense
nsklaus has quit [Ping timeout: 480 seconds]
<astrorion26[m]>
What does a hypervisor do to help with this development
<astrorion26[m]>
Is it for creating a hardware map?
<j_ey>
astrorion26[m]: you can use it to see how macOS interacts with the hardware
<j_ey>
we already have the 'map' (that's what the ADT gives us)
<j_ey>
but not how to use the hardware
<astrorion26[m]>
Ok I see
<astrorion26[m]>
What IDE do you guys use?
<astrorion26[m]>
I usually stick with Jetbrains stuff
<astrorion26[m]>
Not sure if CLion is good for very low level things though
hir0pro has quit [Quit: hir0pro]
goldsoultheory has joined #asahi-dev
jacoxon has quit []
<fridtjof[m]>
mar can (not pinging him) just uses kate and a terminal, you can see his setup in the streams he's doing
<fridtjof[m]>
from what i can tell, with kernel/low level development like this most people tend to just use their favourite editor with some plugins, not a full IDE
<kettenis>
real programmers don't use an IDE ;)
<astrorion26[m]>
I can't stand having to deal with dumb syntax issues and other small things that an IDE can handle for me lol
<fridtjof[m]>
For some langs more/less than others, but imo the lines between "proper ide" and "sufficiently set up editor" are very blurry
<astrorion26[m]>
At a certain point they offer nearly the same feature sets lol
<astrorion26[m]>
I use Jetbrains stuff which is cross platform and pretty much covers all languages that i could hope to use