#
✕ nick:marcan
#asahi-dev · 2021-01-27 10:49
marcanarch linux arm does something like that, but the kernel can be in /boot (e.g. on the rpi), which means I can just make that FAT32 and not have to have a full ext4/whatever driver in m1n1
#asahi-dev · 2021-01-27 10:46
marcane.g. I think the boot chain for the google pixel c has like 4 stages
#asahi-dev · 2021-01-27 10:46
marcanthis isn't uncommon
#asahi-dev · 2021-01-27 10:46
marcanyeah, that too
#asahi-dev · 2021-01-27 10:46
marcanif the openbsd kernel can be loaded like a linux kernel and booted directly, then doing that directly from m1n1 would probably be the least-effort path
#asahi-dev · 2021-01-27 10:45
marcanso the thing about m1n1 is it'll handle CPU init and making a sane linux devicetree, which AIUI u-boot can also use?
#asahi-dev · 2021-01-27 10:44
marcanheh
#asahi-dev · 2021-01-27 10:44
marcanso how does openbsd work on the rpi?
#asahi-dev · 2021-01-27 10:43
marcannor on raspberry pi
#asahi-dev · 2021-01-27 10:43
marcane.g. no UEFI on android arm64
#asahi-dev · 2021-01-27 10:43
marcankettenis: well linux can be booted by just putting a kernel and a ramdisk in ram :)
#asahi-dev · 2021-01-27 10:42
marcanso it's not exactly that useful for linux
#asahi-dev · 2021-01-27 10:42
marcanj`ey: the final direction isn't set yet, but for example, we could wind up with m1n1 embedding u-boot as a built-in second stage, if it makes sense; but OTOH u-boot is mostly an embedded device bootloader, not a boot picker AFAIK
#asahi-dev · 2021-01-27 10:41
marcandoes it require UEFI or can it use a simpler interface?
#asahi-dev · 2021-01-27 10:41
marcanhow does the openbsd loader interface with firmware to load files from disk?
#asahi-dev · 2021-01-27 10:40
marcanbasically my current approach is: m1n1 is the first stage loader, and I want to shove as much M1-specific junk in there as possible. I'm fine teaching it to load multiple binary formats, and it will certainly have a boot picker menu and config file, like any other simple linux/OS loader
#asahi-dev · 2021-01-27 10:39
marcanand if u-boot reaches the point where it supersedes m1n1 for typical users then that's fine too, that depends on how things go in the long term
#asahi-dev · 2021-01-27 10:38
marcanm1n1 could be taught to boot u-boot in whatever format it gets built in, quite easily
#asahi-dev · 2021-01-27 10:38
marcanif OpenBSD needs UEFI, then it should use a second stage chained loader that does that
#asahi-dev · 2021-01-27 10:38
marcanno, I'm definitely not going to reimplement EFI
#asahi-dev · 2021-01-27 10:38
marcanit'll load a kernel from FAT32 (just because that's easy)
#asahi-dev · 2021-01-27 10:37
marcanthat's the entire point
#asahi-dev · 2021-01-27 10:37
marcanBluerise: m1n1 is already going to be a bootloader
#asahi-dev · 2021-01-25 19:49
marcanah heh
#asahi-dev · 2021-01-25 19:47
marcanI can try disabling it
#asahi-dev · 2021-01-25 19:47
marcanalready by the time m1n1 runs
#asahi-dev · 2021-01-25 19:47
marcanmodwizcode: the FIFO is enabled on real hardware I believe
#asahi-dev · 2021-01-23 15:29
marcanI was just going to reuse the structure of that code :>
#asahi-dev · 2021-01-23 15:29
marcanthis is why mini also uses the MMU
#asahi-dev · 2021-01-23 15:29
marcanat least the chips I've used (ARM926)
#asahi-dev · 2021-01-23 15:29
marcan*usably
#asahi-dev · 2021-01-23 15:29
marcanjn__: nor does aarch32 for that matter, not usabl
#asahi-dev · 2021-01-23 15:28
marcanwill test it out tomorrow
#asahi-dev · 2021-01-23 15:28
marcanI was thinking of writing that
#asahi-dev · 2021-01-23 15:28
marcansven: dammit, you beat me to it :D
#asahi-dev · 2021-01-22 14:35
marcandavidrysk[m]: that's a good point
#asahi-dev · 2021-01-21 14:01
marcanit's also what linux does, by the way!
#asahi-dev · 2021-01-21 14:01
marcanbut anyway, we already have the rela code, that works well
#asahi-dev · 2021-01-21 14:00
marcanoh you already said that :p
#asahi-dev · 2021-01-21 14:00
marcanthat always requires a runtime relocation
#asahi-dev · 2021-01-21 13:59
marcanconsider: int a; int *b = &a; at global scope
#asahi-dev · 2021-01-21 13:59
marcanyrlf: zero relocations is impossible
#asahi-dev · 2021-01-20 22:44
marcanthe mismatch isn't the problem, the UART driver assuming level-triggered support is the problem
#asahi-dev · 2021-01-20 22:44
marcanits output is level-triggered into AIC
#asahi-dev · 2021-01-20 22:44
marcan*that* has its sources edge-triggered
#asahi-dev · 2021-01-20 22:44
marcanthe UART has an internal interrupt controller
#asahi-dev · 2021-01-20 17:53
marcanlet me finish this
#asahi-dev · 2021-01-20 17:53
marcanshrug
#asahi-dev · 2021-01-19 18:08
marcanI have HA, I could literally give you an API endpoint that locks my computer, turns off the screen, sleeps the laptop, and turns off the lights
#asahi-dev · 2021-01-19 18:07
marcanI made a lot of garbage changes, those all have to be reverted now

plus ›