#
✕ nick:marcan
#asahi · 2021-01-12 13:08
marcan[268446.363968] usb 1-4.3.1: New USB device found, idVendor=05ac, idProduct=1227, bcdDevice= 0.00
#asahi · 2021-01-12 13:07
marcanI can already reboot via PD, the missing thing is boot into 1TR
#asahi · 2021-01-12 13:07
marcanopticron: I have to *hold down* the power button
#asahi · 2021-01-12 12:50
marcanI can just upload them over serial on every boot
#asahi · 2021-01-12 12:50
marcanI don't have to actually go into 1TR to test new versions
#asahi · 2021-01-12 12:48
marcanthough 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
#asahi · 2021-01-12 12:47
marcanand 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
#asahi · 2021-01-12 12:47
marcanright 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) :)
#asahi · 2021-01-12 12:46
marcanbasically prepping things ahead of time for when I can actually start testing code
#asahi · 2021-01-12 12:34
marcanbut whatever happens, let's say I'll do one on thursday like last week
#asahi · 2021-01-12 12:33
marcanlots of fun once that happens
#asahi · 2021-01-12 12:33
marcanI'm hoping apple releases the new kmutil already]
#asahi · 2021-01-12 12:33
marcanprobably quite soon
#asahi · 2021-01-12 12:31
marcanif I can do that I can avoid touching any buttons :-)
#asahi · 2021-01-12 12:31
marcanI saw some modes that looked like some form of GPIO
#asahi · 2021-01-12 12:31
marcannow I wonder if one of the mux modes it has will mux out the power button on a GPIO or something
#asahi · 2021-01-12 12:30
marcanhowever, a hard shutdown from DFU mode leaves PD up
#asahi · 2021-01-12 12:30
marcannormally, a hard shutdown (holding down power) kills PD for good
#asahi · 2021-01-12 12:30
marcanif you put it into DFU mode via PD, PD renegotiation does not occur, and it behaves differently
#asahi · 2021-01-12 12:30
marcanrwhitby: I just discovered something interesting
#asahi · 2021-01-12 10:05
marcanyeah, then that would work as one component in the rig
#asahi · 2021-01-12 10:04
marcanah, it is
#asahi · 2021-01-12 10:04
marcanor am I confused?
#asahi · 2021-01-12 10:04
marcanoh but that is passed through to microusb?
#asahi · 2021-01-12 10:04
marcanbut not D+/D- :)
#asahi · 2021-01-12 10:03
marcanyeah, that's helpful then
#asahi · 2021-01-12 10:03
marcanoh, TP5/6
#asahi · 2021-01-12 09:22
marcanok, I guess now it's time to start putting together m1n1
#asahi · 2021-01-12 09:18
marcanpushed the changes to https://alx.sh/g/vdmtool
#asahi · 2021-01-12 08:20
marcanboot-args = debug=0x14e serial=3 apcie=0xffffffef -enable-kprintf-spam -v
#asahi · 2021-01-12 08:20
marcanyou can see my boot args later
#asahi · 2021-01-12 08:19
marcan:)
#asahi · 2021-01-12 08:19
marcanturns out it's still an iPhone
#asahi · 2021-01-12 08:19
marcanbecause you know, mac mini
#asahi · 2021-01-12 08:19
marcanI was too stuck in the "this is a desktop computer" mindset
#asahi · 2021-01-12 08:19
marcanit only does UFP autonomously :)
#asahi · 2021-01-12 08:19
marcanyeah, my mistake was thinking it would do DFP autonomously
#asahi · 2021-01-12 08:18
marcanso it's not actually *all* the log due to how Darwin handles this
#asahi · 2021-01-12 08:18
marcanAIUI there is some stuff that goes on the framebuffer (I have -v) before serial comes up
#asahi · 2021-01-12 08:18
marcanhttps://mrcn.st/p/i3uo1sSx full serial boot log
#asahi · 2021-01-12 08:17
marcanthere is no output before Darwin though, but all the PD stuff happens
#asahi · 2021-01-12 08:17
marcanit's the same as before, it just comes up before the OS boots which is what I need
#asahi · 2021-01-12 08:16
marcanyes
#asahi · 2021-01-12 08:14
marcanok, I get early serial now. very good.
#asahi · 2021-01-12 08:12
marcanyup, serial works
#asahi · 2021-01-12 08:10
marcan(am I weird for spelling it " in text? I know it's '' on proportional fonts but " looks so much better on a terminal :))
#asahi · 2021-01-12 08:09
marcan:-)
#asahi · 2021-01-12 08:09
marcanit's SOP'DEBUG when you're UFP, and SOP"DEBUG when you're DFP
#asahi · 2021-01-12 08:09
marcanit works
#asahi · 2021-01-12 08:09
marcanokay

plus ›