#
✕ nick:sven
#asahi-dev · 2021-12-17 21:34
svenbut i don't know if u-boot uses the same bindings
#asahi-dev · 2021-12-17 21:33
svenand the sart node should be reg = <0x2 0x7bc50000 0x0 0x10000>;
#asahi-dev · 2021-12-17 21:33
svenreg = <0x2 0x7bcc0000 0x0 0x40000>, <0x2 0x77400000 0x0 0x4000>;
#asahi-dev · 2021-12-17 21:33
sventhat's certainly not how it's in the linux device tree
#asahi-dev · 2021-12-17 21:32
svenwhat makes you think that?
#asahi-dev · 2021-12-17 21:31
sveni'm not too familiar with u-boot but i know that it used to receive syslog messages
#asahi-dev · 2021-12-17 21:31
svenyes
#asahi-dev · 2021-12-17 21:30
svenunless apple changed something in the ANS firmware the nvme layer will not come up before at least crashlog and syslog have been initialised successfully
#asahi-dev · 2021-12-17 21:29
svenspecifically for drivers like sart/nvme that haven't been upstreamed yet
#asahi-dev · 2021-12-17 21:28
svenkeep in mind that the device tree for u-boot and linux probably still looks a bit different at this point
#asahi-dev · 2021-12-17 21:28
svenwhat you just said
#asahi-dev · 2021-12-17 21:27
svenno, that makes no sense
#asahi-dev · 2021-12-17 21:26
svenit looks like it's trying to configure SART at 0x277400000 while that should actually be at 0x27bc50000
#asahi-dev · 2021-12-17 21:25
svenpretty sure there's something wrong with the device tree you're using for u-boot
#asahi-dev · 2021-12-17 20:25
svenuh, yes?
#asahi-dev · 2021-12-17 20:12
svenhrm... now that i think about it again, i think you can actually install custom kexts without taking a detour through 1TR after security has been downgraded once
#asahi-dev · 2021-12-17 20:03
svenhttps://www.apple.com/ca/business/mac/pdf/aaw-platform-security.pdf
#asahi-dev · 2021-12-17 20:03
sveni don't know what mok is
#asahi-dev · 2021-12-17 20:02
sventhis entire design is pretty great :-)
#asahi-dev · 2021-12-17 20:02
sventhere's a security whitepaper from them somewhere that superficially explains all that
#asahi-dev · 2021-12-17 20:01
svenyeah
#asahi-dev · 2021-12-17 20:01
svenit'll also ask for your password during the update because SEPOS will have to re-encrypt anything that was encrypted with a key derived from the old firmware with the key derived from the new firmware
#asahi-dev · 2021-12-17 20:00
svendon't know the details but they can sign the kernel with their key
#asahi-dev · 2021-12-17 19:58
svenbut SEPOS will only do that if the machine is in 1TR
#asahi-dev · 2021-12-17 19:58
svenconfigure-boot talks to SEPOS and requests it to include the boot object's hash into this local policy thing and then sign that
#asahi-dev · 2021-12-17 19:58
sventhat just doesn't work
#asahi-dev · 2021-12-17 19:57
svenwhat do you mean with "bless a mach-o"?
#asahi-dev · 2021-12-17 19:57
svenyeah, apple has a stronger model
#asahi-dev · 2021-12-17 19:56
sventhe security model requires assertion of physical presence to update the boot object (i.e. long-press the power button to go into 1TR)
#asahi-dev · 2021-12-17 19:56
svenyeah, not gonna happen
#asahi-dev · 2021-12-17 19:55
sven*what we
#asahi-dev · 2021-12-17 19:55
svenwe we certainly can't do is upgrade and/or change the m1n1/uboot payload from linux
#asahi-dev · 2021-12-17 19:54
svenwhat use case do you have in mine for that?
#asahi-dev · 2021-12-17 17:43
sventhat old tree had a big “WIP” and “DO NOT MERGE” in the device tree commit that you people all just ignore :p
#asahi-dev · 2021-12-17 17:43
svenAnd I think in my current tree they’re called ans_mailbox and ans
#asahi-dev · 2021-12-17 17:42
svenThe kext and ioreg calls it ANS3 fwiw
#asahi-dev · 2021-12-17 13:52
sveni should fix the error recovery and submit a RFC as well
#asahi-dev · 2021-12-17 13:48
sven(also if you send invalid commands)
#asahi-dev · 2021-12-17 13:48
svennvme *does* some logging, but only if you saturate the link for a while
#asahi-dev · 2021-12-17 13:47
svenand if you do large transfers it's going to send some "new WhateverBuffer %d" created messages
#asahi-dev · 2021-12-17 13:47
svenit'll deadlock once rtkit's syslog ring buffer is full
#asahi-dev · 2021-12-17 13:41
svenor at least set that reset bit in the PMGR regs
#asahi-dev · 2021-12-17 13:41
svenyou need the "new" code to start them back up
#asahi-dev · 2021-12-17 13:37
sventpw_rules: yes, that code is newer than what's in the main branch
#asahi-dev · 2021-12-17 12:34
svenjust pushed what i have locally
#asahi-dev · 2021-12-17 12:12
svenbut I think that one only has changes to the nvme part
#asahi-dev · 2021-12-17 12:12
sveni can push my local branch later today
#asahi-dev · 2021-12-17 12:12
svenPretty much
#asahi-dev · 2021-12-17 11:00
svenfwiw, that thing doesn’t support the admin abort command. I’ll remove that one from the Linux driver as well
#asahi-dev · 2021-12-17 10:58
sven*and also please figure out how to reset them no matter which state they’re in ;)

plus ›