#
#asahi · 2022-08-03 07:42
_jannau_not sure if we want to or can support u-boot variable files on the esp. Our single use case is to boot "/EFI/BOOTAA64.EFI" from the matched ESP. anything else is not supported
#asahi · 2022-08-03 07:40
_jannau_I don't know yet if it will work
#asahi · 2022-08-03 07:40
VinDuvcould efibootmgr edit the u-boot variables files on the ESP?
#asahi · 2022-08-03 07:39
mpsnot sure how that will work but I trust you that you know solution
#asahi · 2022-08-03 07:36
_jannau_not for the case we want to support: boot "/EFI/BOOTAA64.EFI" from the matched ESP. the plan would be to build the variables for that on the fly
#asahi · 2022-08-03 07:34
mps_jannau_: does efibootmgr require some persistent storage for variables?
#asahi · 2022-08-03 07:27
_jannau_planned/ongoing work to change how distro-boot is implemented in u-boot. I want to look into implementing it using efibootmgr
#asahi · 2022-08-03 07:23
mpsmarcan: thanks again, tomorrow with new m1pro I will do it 'right way'
#asahi · 2022-08-03 07:23
marcanjannau, kettenis: was there a good reason why we're not upstreaming that yet?
#asahi · 2022-08-03 07:22
mpshmm, this maybe explains ktz_[m] problem few days ago
#asahi · 2022-08-03 07:22
mpsthanks
#asahi · 2022-08-03 07:22
marcanyou need this patch
#asahi · 2022-08-03 07:21
marcanhttps://github.com/AsahiLinux/u-boot/commit/20be5ea6a3c2a67c93bff0007ced92295dd12798
#asahi · 2022-08-03 07:21
mpsunderstood
#asahi · 2022-08-03 07:21
marcanif you don't have that patch, and you do 2 installs, both u-boots will try to boot the 1st install
#asahi · 2022-08-03 07:21
mpsaha
#asahi · 2022-08-03 07:21
marcanbut it's not *using* it
#asahi · 2022-08-03 07:21
marcanyes
#asahi · 2022-08-03 07:21
mpsI mean I have it with upstream u-boot
#asahi · 2022-08-03 07:21
marcanbut does your u-boot use it to find the efi binary?
#asahi · 2022-08-03 07:20
marcanyes
#asahi · 2022-08-03 07:20
mpsI have it
#asahi · 2022-08-03 07:20
marcanin u-boot
#asahi · 2022-08-03 07:20
marcanI mean *using* that
#asahi · 2022-08-03 07:20
marcanyes
#asahi · 2022-08-03 07:20
mpsyou mean '/proc/device-tree/chosen/asahi,efi-system-partition'
#asahi · 2022-08-03 07:20
marcan(if you're doing a distro, please, please test multiple installs)
#asahi · 2022-08-03 07:19
marcanif you don't use our release branch, you don't have the magic ESP handling, so unless you patch that in yourself, your builds are not multi-install compatible.
#asahi · 2022-08-03 07:17
mpsthough now I use upstream stable u-boot release
#asahi · 2022-08-03 07:16
mpsmarcan: nice
#asahi · 2022-08-03 07:14
marcan*just
#asahi · 2022-08-03 07:14
marcanjut wrote this up, mostly for Linus and for distro folks who want a TL;DR on how to manage the boot components: https://github.com/AsahiLinux/docs/wiki/Distro:Boot-process-guide
#asahi · 2022-08-03 06:16
mpsit works for me few months now
#asahi · 2022-08-03 06:15
mpsif is just POC code, and I know only one person use it beside me so I didn't extended it with more options
#asahi · 2022-08-03 06:14
mpsprincesszoey: nicolas17: I made quickly hacked daemon to control battery charge on M1 here https://www.arvanta.net/2x3d1kfg/charge-ctl.c
#asahi · 2022-08-03 05:58
nicolas17I don't have a mac handy atm, but according to a manpage db online... "man cloudpaird", "man tbtool" are just unmodified templates
#asahi · 2022-08-03 05:57
nicolas17there's some macos daemons that have a manpage but it's just the template :P
#asahi · 2022-08-03 05:47
marcan(vs. e.g. some of the advanced csrutil modes which are completely undocumented/secret)
#asahi · 2022-08-03 05:47
marcanso I guess that counts as documented
#asahi · 2022-08-03 05:47
marcanah, but --help does show it
#asahi · 2022-08-03 05:47
marcanso that one *is* undocumented (not that we hard-depend on it, I could work out the missing macho metadata to make the old documented way work again if it goes away)
#asahi · 2022-08-03 05:46
marcanyeah, it isn't :-)
#asahi · 2022-08-03 05:43
marcannot even sure if it's in the manpage yet?
#asahi · 2022-08-03 05:43
marcanit's not exactly controversial so I could see it just slipping by without a whole pile of management approval
#asahi · 2022-08-03 05:42
marcanthe raw image stuff though, I'm somewhat convinced the engineer in charge of re-working how kmutil/iBoot works with machos (which prompted all that) snuck it in for us, perhaps with some vaguely plausible excuse
#asahi · 2022-08-03 05:41
marcansome of the changes that help us also help advanced macOS use cases, like the command line tooling to set the boot volume stuff
#asahi · 2022-08-03 05:40
marcanTramtrist: we've had apple folks chatting in this channel before
#asahi · 2022-08-03 05:27
dottedmagsorry, wrong window
#asahi · 2022-08-03 05:26
dottedmagtelegra
#asahi · 2022-08-03 02:22
steevit's open source, you don't have to have anyone's permission to work on it

plus ›