#
#asahi · 2022-09-28 11:06
jannauif you plan to look into mesa/drm on m1 it might be a good opportunity to make yourself familiar with proxyclient/m1n1 HV and usb booting
#asahi · 2022-09-28 10:54
eric_engestrom(btw, I'm a mesa dev with some kernel driver experience, so I'm happy to dive in the code, do custom builds and debug anything :)
#asahi · 2022-09-28 10:53
eric_engestrom_jannau_: thx, reading now
#asahi · 2022-09-28 10:53
_jannau_eric_engestrom: https://github.com/AsahiLinux/docs/issues/37#issuecomment-1229406384 has the instructions to boot directly from u-boot. partition numbers might need to be changed
#asahi · 2022-09-28 10:49
eric_engestromI might just wipe it and start over, but I wanted to get my "fix broken boot" tools ready for when wiping is no longer an option
#asahi · 2022-09-28 10:48
_jannau_that should work
#asahi · 2022-09-28 10:48
eric_engestromto be clear, it worked when linux was fully booted
#asahi · 2022-09-28 10:48
eric_engestromyep
#asahi · 2022-09-28 10:47
j`eyeric_engestrom: so you're using the builtin keyboard?
#asahi · 2022-09-28 10:47
eric_engestromor maybe run a vm backed by the asahi partition
#asahi · 2022-09-28 10:46
eric_engestromis there a way to chroot from macos? the keyboard works there :P
#asahi · 2022-09-28 10:46
eric_engestrom^^
#asahi · 2022-09-28 10:46
_jannau_I have instructions how to boot directly from u-boot but if your keyboard doesn't work there that's kind of moot
#asahi · 2022-09-28 10:45
eric_engestromit's an m2 air, in case it matters (for the maybe-usb keyboard)
#asahi · 2022-09-28 10:44
eric_engestrom_jannau_: I broke grub because I tried to replace it with systemd-boot; I'm doing something users don't normally do, it's not a "normal" issue for asahi devs to worry about :)
#asahi · 2022-09-28 10:43
_jannau_you might have an usb keyboard which currently doesn't work
#asahi · 2022-09-28 10:42
eric_engestromright, I saw the "hit any key" prompt with a 3sec count down, but I pressed space and it just continued
#asahi · 2022-09-28 10:42
_jannau_eric_engestrom: describe how it hangs? I would expect u-boot to simply not load anything from an ESP prepared for x86
#asahi · 2022-09-28 10:41
das_j_jannau_: makes sense
#asahi · 2022-09-28 10:41
das_jeric_engestrom: any regular key iirc
#asahi · 2022-09-28 10:41
_jannau_das_j: pcie support required for the usb-a ports on the mini is currently missing
#asahi · 2022-09-28 10:41
eric_engestromj`ey: I'm guessing by pressing escape? trying that
#asahi · 2022-09-28 10:39
das_jor is it not implemented no matter the firmware requirements?
#asahi · 2022-09-28 10:39
das_j_jannau_: ah does that mean I bought a usb-c stick for nothing? :D
#asahi · 2022-09-28 10:39
j`eyeric_engestrom: you need to stop u-boot autoboot
#asahi · 2022-09-28 10:39
_jannau_the usb-a ports on the mac mini do not need firmware though
#asahi · 2022-09-28 10:39
j`eydas_j: but that's only the case for some USB A ports anyway, the mac mini ones will eventually work in uboot
#asahi · 2022-09-28 10:38
_jannau_that's not the only problem. u-boot has currently no pcie support on apple silicon. after that the pci-xhci driver needs support for the custome firmware loading like the linux driver
#asahi · 2022-09-28 10:38
das_joh that makes sense, thanks for clairifying
#asahi · 2022-09-28 10:38
j`eydas_j: well the support isnt there, even if you build uboot yourself
#asahi · 2022-09-28 10:37
eric_engestrommaybe it's because I don't have an arm (or even asahi-specific) archiso on the usb key, but I can't seem to get any menu past the asahi/macos/options menu; if I pick asahi it starts uboot and hangs on my broken grub
#asahi · 2022-09-28 10:36
das_jI know the firmware cannot be redistributed but how do I build uboot with said firmware without distributing it?
#asahi · 2022-09-28 10:35
das_j_jannau_: First bullet point here: https://github.com/AsahiLinux/docs/wiki/U-Boot#known-issues
#asahi · 2022-09-28 10:33
_jannau_das_j: which doc? booting from usb connected to the usb-c ports works in u-boot
#asahi · 2022-09-28 10:33
_jannau_if u-boot is broken m1n1/boot.bin on the ESP has be recovered manually from MacOS (recovery)
#asahi · 2022-09-28 10:31
das_j_jannau_: btw, the docs state that booting the drive from usb-a does not work as there are blobs that need to be compiled into uboot. Is there a documented way I can compile them in if I build uboot myself anyway?
#asahi · 2022-09-28 10:31
_jannau_currently would have to stop the u-boot auto boot and type "run bootcmd_usb0", subject to change
#asahi · 2022-09-28 10:29
_jannau_you would need an asahi build of archiso until ebnough drivers are upstream
#asahi · 2022-09-28 10:29
das_j(You usually have the choice between "Macintosh HD", whatever you called your Asahi - that's m1n1 and "Options")
#asahi · 2022-09-28 10:28
das_jm1n1 starts a u-boot which does the efi stuff where you can actually boot the drive
#asahi · 2022-09-28 10:28
das_jNo, you can pick m1n1 there
#asahi · 2022-09-28 10:27
eric_engestromI assume holding the power button to get the "what to boot" menu is how I can pick the usb key?
#asahi · 2022-09-28 10:27
eric_engestromthanks; so I guess all I need is an arm build of archiso
#asahi · 2022-09-28 10:26
das_j(Disclaimer: I'm not an asahi developer)
#asahi · 2022-09-28 10:25
das_jeric_engestrom: As long as you get into m1n1, you can boot any EFI USB drive
#asahi · 2022-09-28 10:24
eric_engestromon my x86 laptop, when I mess up to the point of not booting I can just plug my trusted archiso usb key, unlock & chroot into my ssd, and fixup whatever I messed up this time; is there an equivalent here? (it doesn't have to be from a usb, if there's a way to do that from macos that works for me too)
#asahi · 2022-09-27 22:06
mpsStroller: https://arvanta.net/alpine/install-alpine-m1/
#asahi · 2022-09-27 21:57
StrollerActually, I think there's someone already distributing a USB like that, isn't there?
#asahi · 2022-09-27 21:56
j`eyyeah
#asahi · 2022-09-27 21:56
StrollerOh, excuse me. But u-boot has to be installed on the primary drive, right?

plus ›