2021-01-12
00:01czero64 has quit [Quit: Session terminated!]
00:02TheLink has joined #asahi
00:04aratuk has joined #asahi
00:09aratuk has quit [Ping timeout: 264 seconds]
00:25ransom has joined #asahi
00:39botoxparty[m] has joined #asahi
00:45ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:19djb has quit [Ping timeout: 256 seconds]
02:09klaus_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:25hspak has quit [Ping timeout: 240 seconds]
03:17ransom_ has joined #asahi
03:23ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:30aratuk has joined #asahi
03:35aratuk has quit [Ping timeout: 265 seconds]
03:57marcanrwhitby: this is a mac mini :) and yes, I was sending source caps, but I get the feeling something's broken
03:59rwhitbymarcan: I've also been looking around to see if there are any off the shelf boards which could be used for PD hacking
03:59marcanthere are some FUSB302 breakout boards, but I skipped them because they don't quiet do what I want
04:00TheJollyRogerGo team, go!
04:02rwhitbymarcan: probably overkill: https://www.crowdsupply.com/f-secure/usb-armory-mk-ii - has TUSB320 and FUSB303
04:08marcan(just woke up, let me wake up properly and I'll get back to PD debugging - I get the feeling my transmitter is broken)
04:08rwhitbyI also looked at https://github.com/ryan-ma/PD_Micro/blob/master/hardware/PD_Micro_schematic-2020-06-01.pdf to see if it could be flipped around to drive D+/D- but no luck.
04:12aratuk has joined #asahi
04:21ransom has joined #asahi
04:25aratuk has quit []
04:42smist08[m] has joined #asahi
04:48foxlet has joined #asahi
04:50khronokernel[m] has joined #asahi
05:01aratuk has joined #asahi
05:02ConeOfAttack[m]Hm? Was the USB armory Debug Board deficient in some way?
05:04ConeOfAttack[m]Oh, thanks for doing the dirty work.
05:15aratuk_ has joined #asahi
05:18aratuk has quit [Ping timeout: 246 seconds]
05:36aratuk_ has quit [Remote host closed the connection]
05:39ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:40Tokamak_ has joined #asahi
05:43Tokamak has quit [Ping timeout: 256 seconds]
05:45Tokamak_ has quit [Ping timeout: 265 seconds]
05:55Tokamak has joined #asahi
06:01Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:03awordnot has quit [Ping timeout: 264 seconds]
06:04awordnot has joined #asahi
06:05ransom has joined #asahi
06:06marcanrwhitby: you're going to enjoy this one: https://twitter.com/marcan42/status/1348873782698536962
06:11rootspring[m]Sed is Turing complete
06:13rootspring[m]I have to admit, sed and regex confuses me
06:13ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:14rootspring[m]Have u done a python crackme?
06:18rootspring[m]Yeah bc sed and asm/c/c++ are alien to me
06:19marcanyou can install any distro you want, you'll just have to do the install/patching manually unless someone else has done it for that distro
06:19marcan(until things go through the pipeline enough to be usable, which could take a couple years)
06:20davidrysk[m]I expect people to repackage the kernel and tools for other rolling-release and bleeding-edge distros... once that point is reached
06:21marcanI'm just not personally planning to do it myself (until I run out of more pressing things to work on)
06:22marcanso any distro is welcome to take our forks/patches/code at any time and package it however they want
06:23davidrysk[m]it might be a while before stuff is upstreamed to the main linux upstream though, depending on the extent of the changes
06:23marcanyes, with these things it's always a few years before pure upstream is usable, until then you use patches/forks
06:23foxletAt least in my case (Void) there's system-specific metapackages that allow for 3rd party kernel.
06:24marcanI know the distro packaging struggle, so if we have buildsystem issues in any of our own packages I'll happily take patches to make maintainers' lives easier
06:24davidrysk[m]and probably some platform tools
06:25davidrysk[m]and you might want an apfs filesystem module for convenience
06:26davidrysk[m]https://github.com/linux-apfs but stability may be a problem and it will not be a focus of this project :)
06:27Tokamak_ has joined #asahi
06:28marcanit's easy enough to make an ext4 partition that I doubt people will have much reason to run linux on APFS, and I also don't intend to put it in our bootloader, and we can't replace the bootloader from linux for security reasons... so the only real reason to run APFS as far as I can see would be to implement SEP storage, which we might some day
06:28davidrysk[m]artemist: corellium is distributing the one above
06:29davidrysk[m]yeah ^
06:29marcancorellium's dump is terribad, it's one commit so you have no idea where anything came from
06:30marcanI could probably get *some* linux up and running really quickly based on that dump... but that feels like a waste of time because I'd have to go through and pick out bits and pieces and review everything *anyway* before it's clean
06:30marcanso I probably won't do that, and instead will just use it as a reference and rewrite things
06:31AgentPurple[m] has left #asahi ["User left"]
06:31davidrysk[m]https://github.com/corellium/linux-sandcastle/commit/86f078d26cd74c146949e25f503782587045fc31
06:31davidrysk[m]that's an ugly commit
06:31foxletI guess the only real component that would be different is first-time bootstrapping from macOS. Users are kinda used to disc images.
06:32davidrysk[m]generally for anticompetitive reasons
06:32davidrysk[m]since they have to follow the letter of the GPL
06:33foxletOffline tarball support would probably be a good idea, because I can imagine all the issues being posted about slow/broken internet.
06:36foxletYeah, the concern is more on a multi-gig userland. I don't have that problem, but it comes up fairly often.
06:36marcanit looks like right *now* the process is also going to require installing macOS itself first (10+GB) but I expect to find ways to make it work without that in the future
06:38davidrysk[m]Apple really rushed out the M1 Macs :)
06:38addcninblue has quit [Ping timeout: 264 seconds]
06:38davidrysk[m]So many edge case bugs
06:38marcanyeah, they nailed the PR on the whole thing, but as you dig through you can tell this was a massively rushed project
06:42furkan has joined #asahi
06:42davidrysk[m]The good thing I guess is that the rough edges seem pretty much all fixable with patches
06:42davidrysk[m]And yeah they even shipped a day 0 patch (macOS 11.0.1)
07:13marcanrwhitby: ok, yeah, my problem was not controlling VBUS properly. I thought I could get away without that, clearly I can't :)
07:14marcanthankfully an arduino digital output pin is good enough a "vbus" for a mac mini that doesn't try to power anything off of that anyway
07:14rwhitbyah, it won't connect if vbus is there before it connects, and then it won't stay connected if vbus doesn't come soon after it connects :-)
07:14marcanbut it seems it really wants to see vbus go down and back up on HARDRESET and then a SOURCE_CAP soon thereafter
07:15rwhitbyyep, if the sink is USB-C connected (Rp/Rd) then it needs to see a source cap within a timeout, else it sends hard reset.
07:18rwhitbyyou need to drop vconn too, otherwise cable markers (especially active cables) can get confused
07:19rwhitbybut in this case you're probably not driving vconn anyway, and don't need to if you stick to passive cables
07:23rwhitbymarcan: another option is https://www.nxp.com/downloads/en/schematics/SPF-29705.pdf (https://www.nxp.com/products/interfaces/usb-interfaces/usb-type-c-shield-board-for-kinetis-freedom-and-lpc-boards:OM13588) but it also doesn't break out the SBU signals for you. That board has the PD PHY with which I am most intimately acquainted.
07:28rwhitbyIn general, I use an interposer which has high speed lanes pass-through (rated to 40Gb/s) and control signals (CC1/CC2/VBUS/GND/SBU1/SBU2) tapped off to a side connector for monitoring or control. Unfortunately it's not commercially available.
07:36aratuk has joined #asahi
07:41aratuk has quit [Ping timeout: 256 seconds]
07:43frode_oxa has joined #asahi
07:44frode_oxa has quit [Client Quit]
07:44frode_0xa has joined #asahi
07:47Tokamak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:48frode_0xa has quit [Remote host closed the connection]
08:05marcanrwhitby: so it seems to be ignoring my VDM stuff when in this mode, I wonder if I need to actually negotiate the mode (when I was playing UFP I didn't have to)
08:09rwhitbygive me half an hour and I can get on a zoom or something if you want another set of eyes.
08:10rwhitbyah, that explains why when i was testing it on the Intel MBP I needed to use SOP'' and it was different to your doco.
08:10marcan(am I weird for spelling it " in text? I know it's '' on proportional fonts but " looks so much better on a terminal :))
08:18rwhitbyyeah the PD stuff is definitely self-contained on the ACE2 and will operate independently of Darwin
08:23vlad-k has joined #asahi
08:41klaus_ has joined #asahi
08:46Denshi[m] has joined #asahi
08:47solarkraft has joined #asahi
08:52raster has joined #asahi
08:58ephe_meral has joined #asahi
09:06Necrosporus has quit [Ping timeout: 240 seconds]
09:17klaus_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:18klaus has joined #asahi
09:23TheJollyRoger has quit [Ping timeout: 240 seconds]
09:23DarthCloud has quit [Ping timeout: 240 seconds]
09:26DarthCloud has joined #asahi
09:30DarthCloud has quit [Remote host closed the connection]
09:31DarthCloud has joined #asahi
09:37aratuk has joined #asahi
09:41aratuk has quit [Ping timeout: 240 seconds]
09:45rwhitbyThis FUSB302 board at least has test points for SBU1/SBU2: https://www.pcbway.com/project/shareproject/USB_Type_C_PD_development_board.html
09:49klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:04Denshi[m] has left #asahi ["User left"]
10:15klaus has joined #asahi
10:23Necrosporus has joined #asahi
11:18raster has quit [Read error: Connection reset by peer]
11:20raster has joined #asahi
11:27amw1 has joined #asahi
11:34amw1 has quit [Ping timeout: 240 seconds]
11:48ephe_meral has quit [Ping timeout: 256 seconds]
11:57klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:01klaus has joined #asahi
12:05mikewilks[m] has joined #asahi
12:27amw1 has joined #asahi
12:30marcanif you put it into DFU mode via PD, PD renegotiation does not occur, and it behaves differently
12:31marcannow I wonder if one of the mux modes it has will mux out the power button on a GPIO or something
12:33justMaku has joined #asahi
12:47marcanright now I'm looking for some crimp-on pins so I can plug a USB cable into my type C breakout to bring out the DFU USB pins (which will become my own USB interface under m1n1) :)
12:47marcanand if I find a way to map out/control the power button somehow, that will be the ideal "I don't need to touch any buttons to run a test cycle" scenario
12:48marcanthough strictly speaking that's for early bring-up only, because once I have a working serial loader, I can just never update it on device and just use reboots to test, which is very fast
13:06opticronmy solution to the touchless reset problem is usually to get some variety of switched outlet, the cheaper option being a reflashed sonoff S31
13:06opticronthough most of the stuff I deal with definitely doesn't have an inband way to do resets like you're describing
13:08marcan[268446.363968] usb 1-4.3.1: New USB device found, idVendor=05ac, idProduct=1227, bcdDevice= 0.00
13:09Shizthe connector is in a physical quantum state that only collapses once you've tried both ways
13:10yorick has joined #asahi
13:14klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:15amw1 has quit [Ping timeout: 240 seconds]
13:25ephe_meral has joined #asahi
13:26parallax has joined #asahi
13:26klaus has joined #asahi
13:33klaus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:00aratuk has joined #asahi
14:04vlad-k has quit [Ping timeout: 260 seconds]
14:05aratuk has quit [Ping timeout: 246 seconds]
15:24Tokamak has joined #asahi
15:36klaus has joined #asahi
15:49modwizcodeDoes it actually dump out strings for the mode names?
15:53modwizcodegonna go ahead and answer myself there: no.
15:59Brnocrist has quit [Ping timeout: 265 seconds]
16:00p02jorse has joined #asahi
16:01Brnocrist has joined #asahi
16:15bitcoinr has joined #asahi
16:20rann has joined #asahi
16:31Shizthe same device ID is seen here as a subdevice of the t2-controlled audio stuff http://linux-hardware.org/index.php?probe=e686fdbfb1&log=hwinfo
16:56Tokamak has quit [Ping timeout: 240 seconds]
16:57Tokamak has joined #asahi
17:10bitcoinr has quit [Quit: Exit game!]
17:10TheJollyRoger has joined #asahi
17:12ransom has joined #asahi
17:37xvpower has joined #asahi
17:43DarthCloud has quit [Remote host closed the connection]
17:43DarthCloud has joined #asahi
17:45robinp has quit [Ping timeout: 260 seconds]
17:51frode_0xa has joined #asahi
17:56frode_0xa has quit [Ping timeout: 272 seconds]
18:00ephe_meral has quit [Ping timeout: 272 seconds]
18:00ransom has quit [Quit: Textual IRC Client: www.textualapp.com]
18:02aratuk has joined #asahi
18:06aratuk has quit [Ping timeout: 260 seconds]
18:37DarthCloud has quit [Remote host closed the connection]
18:38DarthCloud has joined #asahi
18:50raster has quit [Quit: Gettin' stinky!]
18:52konrad__ has joined #asahi
19:05DarthCloud has quit [Ping timeout: 240 seconds]
19:12DarthCloud has joined #asahi
19:19raster has joined #asahi
19:22Tokamak has quit [Ping timeout: 240 seconds]
19:27Tokamak has joined #asahi
19:31djb has joined #asahi
20:03aratuk has joined #asahi
20:07aratuk has quit [Ping timeout: 256 seconds]
20:14prabinspkt has joined #asahi
20:20modwizcode has quit [Ping timeout: 272 seconds]
20:22roxfan2 has joined #asahi
20:25roxfan has quit [Ping timeout: 265 seconds]
20:28roxfan2 is now known as roxfan
20:39p02jorse has quit [Remote host closed the connection]
21:12HoneyTubes has joined #asahi
21:21marcanok, built some arm64 scaffolding for m1n1, pulled in some basic bits from mini, and it builds
21:30rwhitbymarcan: those extra I2C buses are likely the PD controllers. 0x38 and 0x3f are the usual suspects for that. Since they are 3.3V, I can poke at those.
21:36ransom has joined #asahi
22:08dstzd has quit [Quit: ZNC - https://znc.in]
22:08dstzd has joined #asahi
22:10dstzd has quit [Read error: Connection reset by peer]
22:10dstzd_ has joined #asahi
22:11dstzd_ is now known as dstzd
22:11dstzd has quit [Client Quit]
22:12dstzd has joined #asahi
22:12ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:20ransom has joined #asahi
22:33TonyRedondo has quit [Quit: Connection closed for inactivity]
22:36dstzd has quit [Quit: ZNC - https://znc.in]
22:43raster has quit [Quit: Gettin' stinky!]
22:53clover[m] has joined #asahi
22:55Tokamak has quit [Ping timeout: 256 seconds]
22:57Tokamak has joined #asahi
23:08dstzd has joined #asahi
23:09dstzd has quit [Client Quit]
23:13bdju has quit [Read error: Connection reset by peer]
23:14bdju has joined #asahi
23:15bdju has quit [Read error: Connection reset by peer]
23:19bdju has joined #asahi
23:31m42uko has quit [Ping timeout: 260 seconds]
23:36m42uko has joined #asahi
23:42ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:47dstzd has joined #asahi
23:49dstzd has quit [Client Quit]
23:50dstzd has joined #asahi
23:54dstzd has quit [Client Quit]
23:55dstzd has joined #asahi
23:56dstzd has quit [Client Quit]
23:56dstzd has joined #asahi