#asahi-dev · 2021-01-27 11:06
kettenisit would just leave them spinning, so as long as it doesn't toch the memory where they're spinning it should be fine#asahi-dev · 2021-01-27 11:05
kettenisu-boot doesn't spin up the other CPUs#asahi-dev · 2021-01-27 11:04
kettenisanyway, I'll look at using u-boot as a payload#asahi-dev · 2021-01-27 11:02
kettenisj'ey: it'll drop down to EL1; no virtualization support yet#asahi-dev · 2021-01-27 11:01
kettenisbut another reason why we really need raw disk access instead of filesystem access#asahi-dev · 2021-01-27 11:01
kettenisanyway, these are not really details you need to care about#asahi-dev · 2021-01-27 11:00
kettenisyes, disklabels can live in a GPT partition#asahi-dev · 2021-01-27 10:59
kettenisnote that the BSDs have their own cross-architecture "partition table" called disklabel#asahi-dev · 2021-01-27 10:58
kettenisso we only really need raw disk access#asahi-dev · 2021-01-27 10:58
ketteniswe have our own ufs/ufs2 implementation in the shared bootloader code#asahi-dev · 2021-01-27 10:57
kettenisso it really needs a minimal set#asahi-dev · 2021-01-27 10:57
ketteniswe adopted the stuff that agraf did really early on#asahi-dev · 2021-01-27 10:57
kettenisjust UEFI#asahi-dev · 2021-01-27 10:56
kettenisbut I'm interested in seeing what I can do with m1n1#asahi-dev · 2021-01-27 10:55
kettenisfull-disclosure, I'm currently using corelliums preloader-m1 to load the kernel#asahi-dev · 2021-01-27 10:55
kettenisyes, cause the rpi doesn't have PSCI either if you use u-boot ;)#asahi-dev · 2021-01-27 10:54
kettenisand I don't think Linux cares as much either#asahi-dev · 2021-01-27 10:54
kettenisanyway, PSCI isn't essential for OpenBSD#asahi-dev · 2021-01-27 10:54
kettenisheh#asahi-dev · 2021-01-27 10:54
kettenisdownside of course is that then your kernel would run in EL1 instead of EL2 which means you lose virtualisation#asahi-dev · 2021-01-27 10:53
kettenisyes, but you can choose between smc and hvc#asahi-dev · 2021-01-27 10:52
kettenisPSCI doesn't really require trustzone#asahi-dev · 2021-01-27 10:52
kettenisPSCI isn't a bad idea#asahi-dev · 2021-01-27 10:51
kettenisARM (the company) keeps pushing ACPI and some of the newer server systems only support that#asahi-dev · 2021-01-27 10:50
kettenisUEFI has support for device trees#asahi-dev · 2021-01-27 10:50
kettenisyup#asahi-dev · 2021-01-27 10:48
kettenis2. the kernel gets loaded from an UFS filesystem such that you can simply copy it into /. and reboot#asahi-dev · 2021-01-27 10:48
kettenis1. bootloader reads some entropy from a file in an UFS filesystem and passes that to the kernel in a special ELF segment#asahi-dev · 2021-01-27 10:47
kettenissome essential bits in that picture are:#asahi-dev · 2021-01-27 10:47
kettenisso what we really want on OpenBSD is to have as much the same boot flow as possible across architectures#asahi-dev · 2021-01-27 10:46
kettenisyes, so u-boot as a relatively simple payload would work fine#asahi-dev · 2021-01-27 10:45
kettenisthat's what I'm currently doing#asahi-dev · 2021-01-27 10:45
kettenisloading the OpenBSD kernel in RAM and exuting it works as well#asahi-dev · 2021-01-27 10:44
kettenisyou can either use u-boot or the EDK2 on the rpi#asahi-dev · 2021-01-27 10:43
kettenis(whether UEFI can be called a sensible interface is debatable)#asahi-dev · 2021-01-27 10:42
kettenisbut it really only needs a sensible interface to access raw disk blocks and send/receive network packets#asahi-dev · 2021-01-27 10:42
kettenison armv7 and arm64 it currently uses UEFI#asahi-dev · 2021-01-27 10:41
kettenis@marcan it depends on the architecture#asahi-dev · 2021-01-27 10:40
kettenisbut no device drivers yet, so you don't get to run a shell#asahi-dev · 2021-01-27 10:40
kettenisthe OpenBSD kernel boots and has a framebuffer console#asahi-dev · 2021-01-27 10:40
kettenisanyway, nothing exciting yet#asahi-dev · 2021-01-27 10:39
kettenis@marcan: we need an API to access raw disk such that we can read files from an OpenBSD UFS/FFS filesystem#asahi-dev · 2021-01-27 10:37
ketteniscurrently it needs one tiny little patch to fake a Linux kernel header#asahi-dev · 2021-01-27 10:37
ketteniswe don't do forks ;)#asahi-dev · 2021-01-27 10:36
kettenischeat!#asahi-dev · 2021-01-27 10:35
kettenisalthough a remote reset would be nice ;)#asahi-dev · 2021-01-27 10:35
kettenisI'm past the point where I really need something like m1n1 ;)#asahi-dev · 2021-01-27 10:33
kettenisdon't have the right hardware unfortunately#asahi-dev · 2021-01-27 10:31
kettenis'cause I'm getting tired of reinstalling the macho bundled OpenBSD kernel over and over again ;)#asahi-dev · 2021-01-27 10:30
kettenisI'll probably see if I can make a start on that