#
✕ nick:Shiz
#asahi · 2021-01-12 13:15
Shizwould it be useful for me to make an NVRAM page on the wiki to document variables?
#asahi · 2021-01-12 13:11
Shizi still wonder why setting auto-boot to false causes boot to completely fail :p
#asahi · 2021-01-12 13:10
Shiz:)
#asahi · 2021-01-12 13:10
Shizso that the usb-c plug would only work one way around
#asahi · 2021-01-12 13:10
Shizreminds me when someone at my hackerspace bodged their board layout
#asahi · 2021-01-12 13:09
Shizyep
#asahi · 2021-01-12 13:09
Shizthe connector is in a physical quantum state that only collapses once you've tried both ways
#asahi · 2021-01-12 13:08
Shiznobody can
#asahi · 2021-01-12 12:50
Shizbitbanging kernel go brrr
#asahi · 2021-01-12 11:39
Shizgood progress here
#asahi · 2021-01-11 21:45
Shiz5 components?
#asahi · 2021-01-11 21:45
Shizxnu-7195.50.7.100.1
#asahi · 2021-01-11 21:45
Shizi wonder what's up with xnu's latest version number
#asahi · 2021-01-11 21:34
Shizi typed the url from the top of my head, it was possibly not exactly that
#asahi · 2021-01-11 16:05
Shizso right now my guess is stage1 iboot reads boot-volume from nvram and goes from there
#asahi · 2021-01-11 16:04
Shizthat, firmware and syscfg
#asahi · 2021-01-11 16:04
Shizah, the nvram is inside the NOR according ot the device tree
#asahi · 2021-01-11 15:44
Shizmaybe something special needs to be done?
#asahi · 2021-01-11 15:44
Shizalso, fun fact, you can't write to boot-volume, even from 1TR
#asahi · 2021-01-11 15:37
Shizcan still boot into 1TR
#asahi · 2021-01-11 15:37
Shizokay, setting nvram auto-boot to false gives you a nice "cant boot, visit apple.com/restore" prompt on boot :)
#asahi · 2021-01-11 15:27
Shizecept the partition UUID is mangled and the first 3 components are byteswapped?
#asahi · 2021-01-11 15:25
Shizboot-volume is in the format <efi-partition-type-uuid>:<partition-uuid>:<volume-group-uuid>
#asahi · 2021-01-11 15:24
Shizokay, figured out the structure
#asahi · 2021-01-11 15:18
Shizhmm.
#asahi · 2021-01-11 15:18
Shiz based systems, the efi-boot-device variable is changed. This is not supported on Apple Silicon based systems.
#asahi · 2021-01-11 15:18
Shiz --setBoot Set the system to boot off the specified partition. This is implemented in a platform-specific manner. On Open Firmware-based systems, the boot-device variable is modified. On EFI-
#asahi · 2021-01-11 15:16
Shizif it's only used, that might be how iBoot decides which volume to boot form
#asahi · 2021-01-11 15:16
Shizthere's also a boot-volume nvram variable, but i'm not sure if that's *set* or *used* by iBoot
#asahi · 2021-01-11 15:14
Shizit seems to be high-entropy binary tho
#asahi · 2021-01-11 15:13
Shizyah, I alluded to that key above :p
#asahi · 2021-01-11 15:08
Shizfor iphones it's in the NOR apparently
#asahi · 2021-01-11 15:08
Shizdo we know where nvram comes from/is stored in the m1?
#asahi · 2021-01-11 10:23
Shizno issues here yet
#asahi · 2021-01-11 10:14
Shizthere was some opaque iboot-related blob in nvram that i wonder is related
#asahi · 2021-01-11 10:11
Shizit might just iterate all directories looking for the local policy file with that hash
#asahi · 2021-01-11 10:10
ShizI don't think so, it does get the current local policy hash from the SEP without vgid input
#asahi · 2021-01-11 10:10
Shizoh right, by flags you mean it'd iterate over every file?
#asahi · 2021-01-11 10:09
Shizmy guess is 'nvram, somehow'
#asahi · 2021-01-11 10:09
Shiz:p
#asahi · 2021-01-11 10:09
Shizbecause the boot volume vgid is part of the localpolicy path
#asahi · 2021-01-11 10:09
Shizmarcan: as per SW:Boot, localpolicy is selected *after* the boot volume is chosen
#asahi · 2021-01-11 02:41
Shizor is this post-revival
#asahi · 2021-01-11 02:41
Shizrwhitby: but how are you booting to 1TR if the internal disk is wiped
#asahi · 2021-01-11 02:40
Shizso it's an unstable strategy to begin with
#asahi · 2021-01-11 02:39
Shiznot saying 1TR is flawless, but you bet if you exploited a vuln in 1TR to run unsigned code apple would have it patched before you can blink :p
#asahi · 2021-01-11 02:39
Shizif it was hackable it would lose its entire purpose as a controlled environment for more privileged SEP access
#asahi · 2021-01-11 02:39
Shizit's signed and only runs signed code
#asahi · 2021-01-11 02:39
Shizno
#asahi · 2021-01-11 02:09
Shiz(note that they contain your ECID and such)

plus ›