#
✕ nick:pipcet[m]
#asahi · 2021-07-26 13:12
pipcet[m]who doesn't, though? ;-)
#asahi · 2021-07-26 10:17
pipcet[m]yes, but something about the ANS setup is persistent across iBoot invocations (but not RM ones)... anyway, if I can help let me know but I'm assuming I can't :-)
#asahi · 2021-07-26 10:14
pipcet[m](maybe it would be interesting to do a Recovery Mode -> macOS hypervisor trace and compare it with a Recovery Mode -> ANS bringup -> reboot -> macOS one)
#asahi · 2021-07-26 10:10
pipcet[m]absolutely not :-)
#asahi · 2021-07-26 10:08
pipcet[m]that.
#asahi · 2021-07-26 10:08
pipcet[m]sven: just in case it's of relevance: the old driver sometimes fails to bring up nvme, and the only thing that will "fix" it is to boot into recovery mode; a power cycle isn't enough. Your ans-bringup m1n1 branch gets it into that state if I call ans_setup(). Again, I think this is simply a bug in the old driver that probably won't affect what you're doing, but I think it's interesting that there's persistent hardware state for the IOP like
#asahi · 2021-07-26 09:25
pipcet[m]thanks, found it
#asahi · 2021-07-26 09:15
pipcet[m]do you mean the 0x60000000000220 thing? (If we're documenting this anywhere, I'm afraid I've missed it)
#asahi · 2021-07-26 09:04
pipcet[m]kettenis: do we know how to shut them down?
#asahi · 2021-06-08 20:27
pipcet[m]or are there major differences in behavior?
#asahi · 2021-06-08 20:26
pipcet[m]it's essentially the state machine turned back into linear code, right?
#asahi · 2021-06-08 12:05
pipcet[m]does that work for you? I tried briefly and it didn't immediately work, but I'm still using old phy sequences...
#asahi · 2021-06-08 12:02
pipcet[m]Emantor: ah, that's good to know. do you want to write a keyboard driver for barebox on the MBP? ;-)
#asahi · 2021-06-08 10:43
pipcet[m]thanks!
#asahi · 2021-06-08 10:04
pipcet[m]and sven was saying usb host mode might work as well, I think :-)
#asahi · 2021-06-08 10:03
pipcet[m]you probably need to ignore the NVME/mbox/DART/i2c stuff unless you're using my repo, but framebuffer and USB gadget should work without those (as long as you chainload from a new m1n1)
#asahi · 2021-06-08 09:59
pipcet[m]Emantor: https://gist.github.com/pipcet/8c4a019b2a9c6d242ef986c958cf051a, I'll put the device trees there in a second
#asahi · 2021-06-08 09:43
pipcet[m]is there a generic "this device only works once that device does" mechanism, maybe?
#asahi · 2021-06-08 09:42
pipcet[m]by the way, I stole your code for barebox experiments and found I needed to reorder the device tree so the SMC mbox is initialized before the ANS mbox... any idea on how to represent that in the DT properly, if it's actually correct?
#asahi · 2021-06-08 09:41
pipcet[m]good point. we just don't know how.
#asahi · 2021-06-08 09:34
pipcet[m]I think it's more interesting that you can't reboot the remote processors that you communicate with using the mailbox, so you can't leave the hardware in the state you found it.
#asahi · 2021-06-08 09:33
pipcet[m]64 KB or so
#asahi · 2021-06-07 20:16
pipcet[m]emantor: thanks. I'm probably doing something stupid...
#asahi · 2021-06-07 20:01
pipcet[m]emantor: do you happen to know whether nvme support in barebox works on other machines? I got something to work but I had to touch the generic code...
#asahi · 2021-06-07 19:21
pipcet[m](...my excuse is I didn't get much sleep since I tried to get nvme to work in barebox)
#asahi · 2021-06-07 19:20
pipcet[m]oh. doh.
#asahi · 2021-06-07 19:14
pipcet[m]...and then it goes back to the apple logo somehow?
#asahi · 2021-06-07 19:12
pipcet[m]are you running m1n1 without a logo? I'm confused by the apple logo
#asahi · 2021-06-07 19:10
pipcet[m]the frame buffer is black on black unless you apply the patch or hack the DT to claim x8r8g8b8 layout.
#asahi · 2021-06-07 19:07
pipcet[m]emantor: silly question, but you're passing an appropriate device tree?
#asahi · 2021-06-07 18:56
pipcet[m]cool
#asahi · 2021-06-07 18:51
pipcet[m]can't you fix it instead? pretty please?
#asahi · 2021-06-07 18:49
pipcet[m]sven: we can just reset the port once every few seconds except when it's connected :-)
#asahi · 2021-06-07 18:47
pipcet[m]so switching between host and gadget modes works now?
#asahi · 2021-06-07 18:44
pipcet[m]cool
#asahi · 2021-06-07 18:43
pipcet[m]gadget mode in barebox Just Works if you start it from linux :-)
#asahi · 2021-06-07 08:27
pipcet[m]sometimes I am.
#asahi · 2021-06-07 08:25
pipcet[m]but I'm not sure what I should be looking for
#asahi · 2021-06-07 08:25
pipcet[m]i've done that a lot with my kernel (based on corellium)
#asahi · 2021-06-07 08:23
pipcet[m]doing what?
#asahi · 2021-06-06 22:02
pipcet[m]jannau: also wouldn't make much sense to hardcode that in the ADT so you'd have to change the device tree to flip IRQ priorities
#asahi · 2021-06-06 18:40
pipcet[m](I assume it has no lid switch)
#asahi · 2021-06-06 18:40
pipcet[m]anyway, the SMC has a large number of four-character keys, most of which will need to be decoded at some point. I wonder which of those the mini has.
#asahi · 2021-06-06 18:37
pipcet[m]I ran down the battery on my MBP once, and it was very very unhappy.
#asahi · 2021-06-06 18:36
pipcet[m]does the mini have an AOP?
#asahi · 2021-06-06 18:30
pipcet[m]oh wait, sorry, all that's on the MBP, might be totally different on the mini
#asahi · 2021-06-06 18:29
pipcet[m]I haven't figured out how to decode that message yet, but essentially you get an interrupt from the SMC mailbox, discard the message, and you can check whether the power button was pressed, and whether it's currently pressed.
#asahi · 2021-06-06 18:28
pipcet[m]and it also sends an SMC message when pressed.
#asahi · 2021-06-06 18:28
pipcet[m]it's an SMC property
#asahi · 2021-06-06 18:28
pipcet[m]neither

plus ›