#asahi-dev · 2023-06-07 13:04
tpw_rulesjannau: do you know why this behavior changed? did u-boot change a default?#asahi-dev · 2023-06-07 05:32
tpw_rulesmarcan: have not investigated in detail but the new 2023.04 u-boot won't boot a flash drive that 2023.01 u-boot will. i do the "run bootcmd_usb0" but then the grub on the internal disk starts instead of the one on the flash drive. any idea what's up?#asahi-dev · 2023-01-31 06:15
tpw_rulest: might be helpful: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md#nixos-uninstallation#asahi-dev · 2023-01-28 00:14
tpw_rulesyou can't extract it from the ipsw?#asahi-dev · 2023-01-28 00:03
tpw_rulesif it is, then could you do anything useful without having done that initial setup to create the machine owner?#asahi-dev · 2023-01-26 00:35
tpw_rulesnix darwin my beloved#asahi-dev · 2023-01-20 20:58
tpw_rulesdid you start usbmuxd?#asahi-dev · 2023-01-20 20:38
tpw_rulesyeah that means it's pretty much worked#asahi-dev · 2023-01-20 20:25
tpw_ruleshttps://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md#recovering-from-boot-failure-with-idevicerestore#asahi-dev · 2023-01-20 20:25
tpw_rulesjeffmiw: you are not in DFU mode#asahi-dev · 2023-01-14 03:41
tpw_rulesi wonder if that has implications for wear leveling....#asahi-dev · 2023-01-14 03:40
tpw_rulescause it would be dumb not to and you can swap around the m1 studio modules is i guess how you have intuited that#asahi-dev · 2023-01-14 03:40
tpw_rulesi assume the FTL is encrypted in some way too#asahi-dev · 2023-01-14 03:38
tpw_ruleschadmed: i would appreciate adding the point about DFU wipe destroying the disk encryption keys for those interested#asahi-dev · 2023-01-14 03:36
tpw_rulesi think it fscks it#asahi-dev · 2023-01-14 03:35
tpw_rulesalso the VEK and xART are destroyed by a DFU restore, right?#asahi-dev · 2023-01-14 03:35
tpw_rulesthat's the thing i don't ultra love about instantaneous enablement, there's no way to actually entirely regenerate the key material#asahi-dev · 2023-01-14 03:34
tpw_rulesor change your filevault password#asahi-dev · 2023-01-14 03:34
tpw_rulesso there is no way to sneak out the VEK/xART before someone has enabled filevault#asahi-dev · 2023-01-10 05:47
tpw_rules(under nixos, never tested with the reference distro)#asahi-dev · 2023-01-10 05:47
tpw_rulesit did work on average at least as of the stable edge kernel#asahi-dev · 2023-01-10 05:46
tpw_rulesit seemed to fail to start occasionally possibly due to some dcp race IME but#asahi-dev · 2022-12-26 18:46
tpw_rulesmarcan: do you have the mesa releases tagged or something? i am looking through some of the older PKGBUILDs for mesa-asahi-edge and seeing commits which are not pulled down directly by a "git clone" of the repository, e.g. 08ff98967079a2e43a04f11fc646eef51a9103f1. concerned that they might be eligible for garbage collection#asahi-dev · 2022-12-07 05:24
tpw_rulesthank you!#asahi-dev · 2022-12-07 05:14
tpw_rulesmarcan: if you are taking kernel config suggestions, can you do me a favor and flip on CONFIG_SQUASHFS_ZSTD?#asahi-dev · 2022-12-05 21:45
tpw_rulesyeah#asahi-dev · 2022-12-02 06:03
tpw_rulesbut if it comes back as an audio stream then maybe moving it closer to userspace and using that plumbing makes more sense. i think i take back my idea to put it in the kernel. but yeah i very strongly suspect those numbers will be (N/65535)*3.75A/14V full scale value listed#asahi-dev · 2022-12-02 05:59
tpw_rules(of which pdf)#asahi-dev · 2022-12-02 05:59
tpw_ruleswhich page?#asahi-dev · 2022-12-02 05:58
tpw_ruleschadmed: got nerd sniped again and i really cannot see how those v/isense values would be floats. they will just be counts relative to the full scale in the datasheet#asahi-dev · 2022-12-02 05:46
tpw_rulesman i am awful at words tonight. probably a sign it's way past my bedtime. good luck and bye#asahi-dev · 2022-12-02 05:45
tpw_rulesfp-safe*#asahi-dev · 2022-12-02 05:45
tpw_rulesi recognize actually activating fp mode in the kernel is a path to sadness#asahi-dev · 2022-12-02 05:44
tpw_rulessorry i meant to write driver there#asahi-dev · 2022-12-02 05:44
tpw_rulesor even 32#asahi-dev · 2022-12-02 05:44
tpw_rulesand i mean 16 bit float for this purpose can surely be done as 64 bit fixed point integers to an acceptable level of accuracy#asahi-dev · 2022-12-02 05:43
tpw_rulesdoes it get feedback from the speakers?#asahi-dev · 2022-12-02 05:42
tpw_ruleshow does macos handle this? if it's just a function of V/ISENSE, why is a (perhaps configurable) model in the kernel not doing the math#asahi-dev · 2022-12-02 04:20
tpw_rulesthere is also the RAII approach. i admit i might be misleading you on the panic hook. i think about it a decent amount in embedded rust but maybe it's not a big thing in desktop rust now that i poke a bit#asahi-dev · 2022-12-02 04:17
tpw_rulesunwrap_or_else will call a function on None and return that functions value but obviously if it panics or std::process::exit()s then that won't happen#asahi-dev · 2022-12-02 04:15
tpw_rulesthey do unconditionally panic on failure, but imo that's what you should hook into if you are just going to complain and die#asahi-dev · 2022-12-02 04:13
tpw_ruleswhy would you want to avoid them?#asahi-dev · 2022-12-02 04:12
tpw_rulesthe || introduces a lambda which is only called if get_integer returns None to avoid the (likely negligible) cost of formatting the string in the happy path#asahi-dev · 2022-12-02 04:11
tpw_ruleslooked it up and you would want let val: i32 = self.level.val.get_integer(0).unwrap_or_else(|| panic!("level of {} is readable", self.drv))#asahi-dev · 2022-12-02 04:10
tpw_rulescertainly a lot less likely than in C but it's not absolutely impossible. just saying you would have to register a separate signal handler for that case#asahi-dev · 2022-12-02 04:08
tpw_rules(though a real segfault will not go through the panic mechanism)#asahi-dev · 2022-12-02 04:08
tpw_rulesand save you if some library or the runtime itself explodes#asahi-dev · 2022-12-02 04:07
tpw_rulesthe fail() function, yes. instead of calling it#asahi-dev · 2022-12-02 04:07
tpw_rulesyou would also want to register a panic hook to do your emergency ioctl#asahi-dev · 2022-12-02 04:06
tpw_rulesnot sure off the top of my head how to best put the device name in there