2021-02-07
01:21amw has quit [Ping timeout: 272 seconds]
01:28amw has joined #asahi-dev
01:28klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:36amw has quit [Ping timeout: 265 seconds]
02:31Glanzmannbastilian: Do you have Linux amd64 machine, if so just follow the developper quickstart or look at this:
02:34Glanzmannbastilian: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross device-tree-compiler imagemagick; git clone --recursive https://github.com/AsahiLinux/m1n1.git; cd m1n1; make
02:37bastilianGlanzmann: Thank you! Yeah, i have a amd64 box. somehow I had it in my head that I do need an aarch64 machine to compile it. ...after half my life working with computers I should finally learn more about gcc and compiling in general. :D
02:39GlanzmannSee also https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart the section Using m1n1
02:42bastilianfor some reason the install of Big Sur on the second partition estimates to take 2 hours. at least it's counting down steadily.
03:23phiologe has quit [Ping timeout: 260 seconds]
03:24phiologe has joined #asahi-dev
04:18bastilianI wrote a Dockerfile with all the build requirements installed and it seems to build. not sure if it's properly build, but I'm gonna find out later when I try the macho file on the other machine.
04:20bastilianWonder if I should submit a PR with the container setup added. Those who are running Docker on M1 already could also use it to build without requiring a separate Linux build machine.
05:29bastilianI have a mac mini M1 booted into m1n1 and connected a M1 MacBook via the DFU ports, which should be right and the mini reacts to macvdmtool commands, but when trying to run proxyclient/shell.py I get an error: https://gist.github.com/bastilian/7787799e3a814efbc1c24857e2679f09
06:36VinDuv has joined #asahi-dev
07:16klaus has joined #asahi-dev
07:24maor26 has joined #asahi-dev
08:12thestr4ng3r has joined #asahi-dev
08:14thestr4ng3r_ has quit [Ping timeout: 256 seconds]
08:55svenbastilian: which usb-c cable are you using? it sounds like it's one that just doesn't support usb 3.0
09:00fl35[m] has quit [Quit: Idle for 30+ days]
09:38bostjan has joined #asahi-dev
09:43bgb has joined #asahi-dev
09:44j`eymarcan: so youre thinking of changing #define DAIF_PROCCTX_NOIRQ PSR_I_BIT to include F too?
10:34bgb has quit [Ping timeout: 256 seconds]
11:01bastiliansven: I am using the charge cable that the macbook came with. I also tried another USB-C cable same thing. ;/
11:06acelogic has quit [Remote host closed the connection]
11:07marcanthere are two types of standard type C cables (not counting thunderbolt stuff), 2.0-only and full spec
11:10dottedmagmarcan: Do they differ only by the actual number of the wires and plug contacts connected, or is there some other trickery (crossed connections, required resistances etc)?
11:13KindOne has quit [Ping timeout: 272 seconds]
11:14marcanalthough we *can* map the UART out to pins that exist on a USB2-only cable (the USB2 pins themselves), those pins are not crossed, so it will never work for connecting two macs together; SBU1/2 *are* crossed over so that works
11:15marcanUSB2 cables have a grand total of 5 wires inside them; full spec ones have upwards of 15, including the two we need for this to work
11:15marcanI just updated the developer quickstart guide with a whole paragraph on this, because it seems everyone is runningintothe same thing
11:15KindOne has joined #asahi-dev
11:15j`eyearlier I added an extra comment on the wiki saying that the charging cables that come with the macs wont work
11:17j`eythe first PCB I ever designed/manufactured worked perfectly... apart from the fact I was testing it with a power-only USB cable for the first 8 hours and had no idea what was wrong
11:19bastilianmarcan: Thank you. I thought I had a proper USB-C 3.0 cables. I tried the charge cable after it didn't work with the others.
11:20bastilian.... I wonder if someone woke up some day and thought "How can we make USB more annoying"
11:40klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:44klaus has joined #asahi-dev
11:46bastilianSpeaking of containers... I used a Docker container to build m1n1, which worked like a charm and doesn't require a dedicated linux machine to build. Would it make sense to submit a PR adding the Dockerfile to the m1n1 repo?
12:06bostjan has quit [Quit: Leaving]
12:56BlueriseThe gist I guess is: buy cables that are not too cheap (no SBU 1/2) and not too expensive (like thunderbolt capable, chips in the cables itself...)
13:00bastilianYeah, I'm currently browsing through lists of USB-C cables trying to find a few that look like they'd work. 🤞let's hope this time I'll grab the right one.
13:02j`eybastilian: probably post the link to the one youre going to buy here, maybe someone can confirm it
13:03bastilianIt's hilarious how bad the USB experience has become. now I wish the only thing I have to worry about is the cable orientation... i miss these times.
14:21GlanzmannThe difference between thunderbolt and usb-c(3) is the throughput isn't it? usb is 10 Gbit/s and thunderbolt is 40 Gbit/s?
14:30gruetzkopfactive thunderbolt cables (and usb4 cables) *will* mess with SBU
14:30gruetzkopfthey're running the low speed sideband (for link setup, amplifier control, stuff like that) over those pins
15:12gruetzkopfah, good
15:30the-mentor has quit [Quit: The Lounge - https://thelounge.chat]
15:35the-mentor has joined #asahi-dev
15:58klaus has quit [Quit: Textual IRC Client: www.textualapp.com]
16:00stylefish[m] has quit [Quit: Idle for 30+ days]
16:00hipboi[m] has quit [Quit: Idle for 30+ days]
16:23zopieux has quit [Quit: zopieux]
16:29bastilianAny objections on these cables? One mentions USB 3.1 Gen 2, as well as SuperSpeed+. The other USB3.0. https://shorty.ninja/ZvGaoW https://shorty.ninja/RyE5
17:15zopieux has joined #asahi-dev
17:44davidrysk[m]marcan: what exactly is "USB4 mode" and how does it differ from passive and active TBT3?
17:44davidrysk[m](I should just go read the spec shouldn't I)
17:45marcanAIUI USB4 is mostly a superset of TBT3, it's just that the doc I read was a USB doc and thus won't mention TBT3
17:46marcanbastilian: the USB-IF certified one will *definitely* be OK as long as they aren't lying; the other one is probably OK unless it's a really horrible one.
17:49bastilianmarcan: Really? Because I do have two cables that say they are USB-IF certified and they didn't work. Maybe because they are advertised as "charge cables"? https://www.belkin.com/us/p/P-CAB003/
17:50never_releasedwhich is fun
17:51never_releaseda random USB Type-C cable
17:51never_releasedcan be anything from USB2 to TB4
17:51bastilianOk. :) how confusing can one make a connection standard.... Thank you all for figuring it out. somewhat. :)
17:52davidrysk[m]is it possible to make a program where you plug the cable into both USB ports on your computer and it identifies and tests the cable?
17:53bastilianI might be possible to build one with USB-C breakout boards and an arduino to test the lines.
18:02* bastilianuploaded an image: Screenshot 2021-02-07 at 19.01.35.png (161KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/oOPokdAKIfrWgvFOQnwxuQJm/Screenshot 2021-02-07 at 19.01.35.png >
18:33zopieux has quit [Ping timeout: 265 seconds]
18:35zopieux has joined #asahi-dev
18:37pg12_ has quit [Quit: pg12_]
18:38pg12 has joined #asahi-dev
18:52acelogic has joined #asahi-dev
19:20alexanderwillner has joined #asahi-dev
21:48amw has joined #asahi-dev
21:52acelogic has quit [Remote host closed the connection]
21:54acelogic has joined #asahi-dev
21:55acelogic has quit [Remote host closed the connection]
21:56acelogic has joined #asahi-dev
21:57snalty has quit [Quit: ZNC 1.8.2 - https://znc.in]
22:00VinDuv has quit [Quit: Leaving.]
22:35amw has quit [Ping timeout: 264 seconds]
22:51amw has joined #asahi-dev
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:02DragoonAethis has quit [Quit: hej-hej!]
23:15maor26 has quit [Ping timeout: 240 seconds]
23:30DragoonAethis has joined #asahi-dev
23:49DragoonAethis has quit [Quit: hej-hej!]
23:49DragoonAethis has joined #asahi-dev