On 2/4/24 14:36, Klemens Nanni wrote:
On Sun, Feb 04, 2024 at 01:58:17PM +0100, Peter J. Philipp wrote:Hi, I just reinstalled a host and noticed the following two conditions: 1. BOOTRISCV64.EFI does not get installed on the outer (non-sr0) partition i. in the installer. This means I cannot boot without booting from a different image and fixing it. It was a one time thing but it is a bit of a waste of time?Quite a surprise, I'm quite sure riscv64 was tested on real hardware when disk encryption support landed in the installer. MD installer code also reads the same between arm64 and riscv64, both EFI platforms share identical installboot(8) usage and code. I don't have a riscv64 (or arm64) machine at hand, but they really ought to work.2. After entering the crypted passphrase one can enter load commands at boot: pressing enter causes a long delay for some reason on a RISCV64 qemu on an amd64 vps running windows. It takes a lot longer than non-encrypted to load the bootblocks (which makes sense though its long) in "booting sr0a:/bsd:this\" and I'm guessing there is something in the offloading that is really slow. Once the kernel is booted there is 5% more CPU usage on the windows host probably due to the softraid crypto. As I wrote this entire email this is still in 'this\' we're looking at 9 minutes or so so far. Also during those 9 min, the CPU on the host OS (windows) is at 100% which is weird because afaik the BOOTRISCV64.EFI is not multithreaded (smp?). After 14 minutes it finally continued loading the second block (symbols?) this seems excessive. I have attached a screenshot on what I really mean.Have you tried real hardware? I don't quite trust QEMU and/or Windows to properly emulate riscv64. Does regress/usr.sbin/installboot/ pass in your VM? Here it does: http://bluhm.genua.de/regress/results/2024-02-03T16%3A17%3A05Z/logs/usr.sbin/installboot/make.log
OK this is something I'll do in the future. Also it looks like in a few weeks I have another riscv64 hardware available, I can test it on there. Thanks!
-peter (from thunderbird MUA) -- Over thirty years experience on UNIX-like Operating Systems starting with QNX.
