#
✕ nick:mps
#asahi · 2022-01-03 12:35
mpslandscape15[m]: this morning I asked kettenis should we change boot_targets to use 'usb0 nvme0' instead of 'nvme0 usb0' to boot from usb first if it plugged instead of nvme, to have simple rescue option ready
#asahi · 2022-01-03 12:31
mpsas400[m]: coincidence is that I'm u-boot maintainer for alpine ;)
#asahi · 2022-01-03 12:27
mpsas400[m]: sure, I plan to do this, but first want to finish other tasks to have script which would install alpine to usb in proper way
#asahi · 2022-01-03 12:25
mpsj`ey: np
#asahi · 2022-01-03 12:25
mpsas400[m]: I forgot exact text (that was more than a month ago) but iirc something like this
#asahi · 2022-01-03 12:24
mpsj`ey: doesn't matter, I tried without usb plugged and with it, result is same
#asahi · 2022-01-03 12:24
mpsas400[m]: I tried with extlinux but it didn't worked
#asahi · 2022-01-03 12:23
mpsj`ey: right, grub is loaded from nvme but it puts me in grub-rescue prompt
#asahi · 2022-01-03 12:04
mpsi.e. X86, arm64 and riscv64
#asahi · 2022-01-03 12:03
mpsj`ey: alpine uses grub-efi on all machines with efi support
#asahi · 2022-01-03 12:02
mpsnow I need to relearn it
#asahi · 2022-01-03 12:02
mpsI didn't used grub for more than 15 years (only syslinux and u-boot)
#asahi · 2022-01-03 12:02
mpsamw: tbh I have no idea
#asahi · 2022-01-03 12:00
mpsand it works fine with upper case 'EFI' on usb disk, so this shouldn't be issue
#asahi · 2022-01-03 11:59
mpsgrub setup I have works fine on some other arm64 machines
#asahi · 2022-01-03 11:59
mpsGlanzmann: on alpine it is 'abuild -r' :)
#asahi · 2022-01-03 11:58
mpstoday I decide to make proper alpine kernel package, would be easier to make changes, install and setup
#asahi · 2022-01-03 11:57
mpsGlanzmann: for me it boots fine from usb but not from nvme
#asahi · 2022-01-03 11:56
mpsmaybe we all should use alpine for now because it is simple and small, and would be lot easier to cooperate :D
#asahi · 2022-01-03 11:52
mpsamw: https://tpaste.us/xnqJ this is content of my ESP
#asahi · 2022-01-03 11:50
mpsamw: no
#asahi · 2022-01-03 11:45
mpslandscape15[m]: which image?
#asahi · 2022-01-03 11:36
mpskettenis: alpine does this
#asahi · 2022-01-03 11:20
mpsGlanzmann: does it looks similar to this https://arvanta.net/2x3d1kfg/u-boot-m1.jpg
#asahi · 2022-01-03 11:19
mpsGlanzmann: yesterday I posted image with u-boot trying to boot from nvme and looks like you hit the same problem
#asahi · 2022-01-03 11:08
mpsjannau: j`ey: thanks
#asahi · 2022-01-03 11:01
mpsthinking to try to map number keys to Fkeys with Fn key combo
#asahi · 2022-01-03 11:00
mpsjannau: in drivers/hid/hid-apple.c I see few key mapping tables. is the macbookair_fn_keys only for air or also for pro?
#asahi · 2022-01-03 10:45
mpsin 'our' case by m1n1
#asahi · 2022-01-03 10:44
mpsdtb is 'applied' by bootloader
#asahi · 2022-01-03 10:29
mpsGlanzmann: you can use just one for your machine and then have to cat it
#asahi · 2022-01-03 10:28
mpsthose from kernel doesn't work
#asahi · 2022-01-03 10:28
mpsGlanzmann: from u-boot
#asahi · 2022-01-03 09:47
mpsGlanzmann: this branch https://github.com/kettenis/u-boot/commits/apple-m1-m1n1-nvme
#asahi · 2022-01-03 09:46
mpsGlanzmann: yes
#asahi · 2022-01-03 09:46
mpsGlanzmann: on usb disk I use 512M, on nvme I followed Quickstart and it is 953M
#asahi · 2022-01-03 09:39
mpsamw: EFI System Partition is ESP (shorthand)
#asahi · 2022-01-03 09:38
mpsamw: parted also and some other partition tools
#asahi · 2022-01-03 09:37
mpsamw: with fdisk you change part type to efi system
#asahi · 2022-01-03 09:36
mpsheh, also I looked at it but decide to wait some time
#asahi · 2022-01-03 09:33
mpskettenis: ah, that is nice, thanks
#asahi · 2022-01-03 09:32
mpsamw: didn't tested wifi in u-boot but keyboard works
#asahi · 2022-01-03 09:31
mpsnice, I will put ready made u-boot on my site later (if something didn't trigger NMI on me)
#asahi · 2022-01-03 09:29
mpsj`ey: thanks
#asahi · 2022-01-03 09:28
mpsbtw, what is dtb file name for air
#asahi · 2022-01-03 09:28
mpsand maybe mini also
#asahi · 2022-01-03 09:27
mpsif I finish my $day_job on time I will create script to do this and put m1n1+u-boot+dtb for MB PRO and MB AIR somewhere
#asahi · 2022-01-03 09:26
mpsi.e. mount rootFS target partititon, mkdir /boot/efi on it, mount ESP under this dir, and do grub install
#asahi · 2022-01-03 09:23
mpsGlanzmann: I did it simply by install grub-efi on target partition
#asahi · 2022-01-03 09:12
mpsthis way we could 'rescue' boot in case nvme is non bootable for some reasons

plus ›