marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
NekomimiScience has quit [Ping timeout: 480 seconds]
enomem has quit [Ping timeout: 480 seconds]
DarkShadow44 has joined #asahi
saintdev has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
tardyp has joined #asahi
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
PhilippvK has joined #asahi
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
mustache_ride__ has joined #asahi
DarkShadow44 has quit []
phiologe has quit [Ping timeout: 480 seconds]
DarkShadow44 has joined #asahi
nkaretnikov has quit [Read error: Connection reset by peer]
tom-w has quit [Read error: Connection reset by peer]
brinly has quit [Read error: Connection reset by peer]
ZLSA_ has joined #asahi
tom-w has joined #asahi
brinly has joined #asahi
robher_ has joined #asahi
maennich_ has joined #asahi
Chainsaw_ has joined #asahi
saintdev_ has joined #asahi
kendfinger_ has joined #asahi
enomem has joined #asahi
nkaretnikov has joined #asahi
maennich_ is now known as maennich1
daniels has quit [Ping timeout: 480 seconds]
daniels has joined #asahi
ZLSA has quit [Ping timeout: 480 seconds]
ZLSA_ is now known as ZLSA
kendfinger has quit [Ping timeout: 480 seconds]
kendfinger_ is now known as kendfinger
saintdev has quit [Ping timeout: 480 seconds]
saintdev_ is now known as saintdev
maennich has quit [Ping timeout: 480 seconds]
maennich1 is now known as maennich
aeroraptor has joined #asahi
robher has quit [Ping timeout: 480 seconds]
Chainsaw has quit [Ping timeout: 480 seconds]
Chainsaw_ is now known as Chainsaw
jabashque has joined #asahi
NekomimiScience has joined #asahi
guan has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
dsrt^ has quit [Ping timeout: 480 seconds]
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
<marcan>
pushed some changes to m1n1 to make it build on macOS (at least on arm64), and also fixed up asm.sh. You do need llvm (and the other deps, imagemagick and dtc) from homebrew, since xcode llvm is missing some tools
<marcan>
haven't tested the build yet though :)
<marcan>
*asm.py
<marcan>
so in principle macOS should work as a host for m1n1 development now, which should be handy for those using macvdmtool
<marcan>
sven: can you test whatever your setup was to make sure I didn't break anything?
tertu2 has joined #asahi
tertu has quit [Ping timeout: 480 seconds]
bgb__ has joined #asahi
bgb has joined #asahi
<VinDuv>
marcan: I think you didn’t push your changes to asm.py
bgb__ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
<sven>
marcan: it uses llvm instead of my random gcc toolchain but seems to still work otherwise
bgb__ has joined #asahi
bgb_ has quit [Quit: WeeChat 3.3]
bgb has quit [Ping timeout: 480 seconds]
bgb__ has quit [Ping timeout: 480 seconds]
bgb__ has joined #asahi
bgb__ has quit [Ping timeout: 480 seconds]
bgb__ has joined #asahi
bgb has joined #asahi
bgb__ has quit [Ping timeout: 480 seconds]
<bgb>
marcan, sven: my linux machine cannot dectect m1n1 usb device ttyACMx, neither A-C nor C-C works, nothing shows in dmesg. But USB-Serial adapter or ACM device like Arduino works well.
<sven>
do you see any messages on the m1n1 serial output?
<marcan>
ah derp, yeah, I didn't I guess. dammit.
<marcan>
bgb: remember hotplug doesn't work, you need to reboot after one attempt
<bgb>
yeah, I just reboot m1n1 every time
<bgb>
my serial interface is broken, but I saw message on fb, nothin special
<bgb>
I tried 3 machines, just one typec port(super speed) of one works
bgb__ has joined #asahi
<marcan>
VinDuv: pushed now
<bgb>
I just don't know if it's hw issue or not :(
<marcan>
bgb: what devices are you connecting?
<marcan>
m1n1 does not use superspeed fwiw
<bgb>
marcan: just a laptop with typec port
<marcan>
to what mac?
<bgb>
mini
<marcan>
how are you connecting the A-C cable?
<bgb>
the working one is c port, so I just use C-C cable
<marcan>
yeah but how were you trying the A-C cable?
<bgb>
all A ports on my host did not work
<marcan>
ok
<bgb>
oh
<marcan>
so C-C does work on one port?
<j_ey>
(fwiw I use C-A on M1 MBA <-> rpi4)
<bgb>
yes
<marcan>
that's kind of weird
<bgb>
for A-C case. I tried: 1: A to host, C to mini; 2: A to mini, C to host
<jannau>
the type A port on the mac mini are not supposed to work
<jannau>
ports
<bgb>
I also tried A to mini with C-A hub
<marcan>
that won't work either
<jannau>
the hub connected to the mini's type c port?
<marcan>
A can never go to the mini
<bgb>
ok
<jannau>
and the type c ports on the mini need to connected to allow device mode on the mini
<bgb>
got it
<bgb>
it just didn't work with C to mini and A/C to host, feel very frastrated :(
<marcan>
that should work
<marcan>
could be a cable issue
<bgb>
marcan: just normal A-C or C-C right?
<jannau>
do you see dart-usb[01] and USB[01] messages at the end of m1n1's fb output?
<marcan>
yes, but I mean it could be a bad cable
<marcan>
jannau: he said it works with one specific cable/host
<bgb>
jannau: yeah
<bgb>
marcan: i tried more than 4 cables
<j_ey>
bgb: and this used to work?
<bgb>
j_ey: no
<jannau>
do they have working usb2 data transfer with a different usb-c device?
<marcan>
bgb: shut down the mac mini, power it up holding the power button, and leave it on the boot picker
<marcan>
at that point it should show up in dmesg as an "Apple Inc. Mac mini" if your cable is good
<marcan>
if it doesn't show up then more than likely your cable or host is bad
<marcan>
in that state you can hotplug as much as you like
<marcan>
(mostly)
<bgb>
ok, try now
<bgb>
<bgb>
<j_ey>
<bgb>
sorry typo. just nothing in dmesg
<marcan>
then the problem isn't with m1n1/the mac, it is almost certainly with your cable or host
<marcan>
you might have a charge-only cable
<j_ey>
bgb: got a USBC phone or anything?
<bgb>
yes
<j_ey>
bgb: does that show up in dmesg?
bgb__ has quit [Ping timeout: 480 seconds]
<bgb>
yes, same A-C cable
<bgb>
host detects my phone
<bgb>
with the same A-C cable
<marcan>
maybe your host and the mini's dwc3 controller hate each other...
<marcan>
bgb: does it show up as SuperSpeed or High Speed?
bgb_ has joined #asahi
<bgb_>
marcan: all A ports I tried are super speed
bgb has quit [Ping timeout: 480 seconds]
<marcan>
yes but does the *phone* show up as superspeed?
<bgb_>
high speed
<marcan>
ok, then I'm out of ideas
<marcan>
wouldn't be the first time some host controller/cable/device combination don't get along though
<jannau>
tested here on mini and 14" macbook pro and works except on the 3rd usb-c port which is not yet set up properly
<marcan>
if they do remote talks I might consider that, depending on schedule
<Chol>
would be great to have some more reverse engineering talks again. I also hope tmbinc does one about his recent Mercedes investigations.
<jannau>
is it expected that macbook pro powers on on keypresses? turned off by holding the power button until the screen turns blank while m1n1 is loaded
<jannau>
seems to be expected, also happens after shutdown from 1tr
<dottedmag>
Dcow: have you got it working properly under x86/Linux? It shows up for me, but compositors (both gnome-shell and sway) still think it's two separate panels.
<Dcow>
Works good under intel+Gnome
<Dcow>
KDE think it is 2 separated monitors, so 2 panels and other annoying stuff
<Dcow>
AFAIK works with NVIDIA proprietary and some of AMD drivers
<Dcow>
well, works good, but not great. some tearing between two halves happen sometimes.
<Dcow>
nothing criminal though
<Dcow>
nothing critical though
<Dcow>
*
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
<marcan>
meanwhile apparently what *doesn't* work on macOS is simultaneous USB3+DP
<marcan>
on a DP1.4 4K60 display it always seems to negotiate 4 lanes and downgrade USB to 2.0, no matter what resolution/refresh rate you set (4K30 should work with DP1.2 and 4K60 with DP1.4)
<marcan>
put that one on the "things we should make linux do better than macos" list, if it's not some weirdo hardware limitation
<sven>
:D
<TheLink>
they got fed up with usb stuff and settled with "good enough" ;)
<sven>
I don’t blame them..
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Dcow has joined #asahi
<VinDuv>
marcan: I tried building and running m1n1 under macOS with clang 11 from MacPorts and it worked fine, thanks! I ran chainload.py it twice without issues.
<VinDuv>
The only small annoyance is that MacPorts puts clang in /opt/local/bin, but since it’s in the PATH I just set TOOLCHAIN=''
egavinc has joined #asahi
gladiac is now known as Guest5374
gladiac has joined #asahi
aleasto has quit [Remote host closed the connection]
Guest5374 has quit [Ping timeout: 480 seconds]
<jannau>
Linus has merged i2c-pasemi-platform
___nick___ has quit [Ping timeout: 480 seconds]
nobodynada has joined #asahi
skipwich has quit [Quit: DISCONNECT]
minecrell has quit [Quit: Ping timeout (120 seconds)]
minecrell has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]