:: Re: [devuan-dev] Is there any possi…
Top Pagina
Delete this message
Reply to this message
Auteur: Simon Richter
Datum:  
Aan: devuan-dev
Onderwerp: Re: [devuan-dev] Is there any possible way to install Devuan Excalibur onto a SiFive RISC-V UnMatched board?
Hi,

On 6/30/24 06:29, Dennis Clarke wrote:

>     The trick then, as they say, is the boot loader ( GRUB2 ) and then
> the initramfs and goodies for the minimal installer. So I am thinking
> that I can certainly do some work on this.


grub2 is no fun on RISCV, as far as I can see. SiFive seem to prefer U-Boot.

If I understood the process right, a system is supposed to have a very 
small first stage that prepares a device tree with the mainboard 
resources that cannot be probed without special knowledge, that then 
loads OpenSBI, which provides a few generic boot services and emulation 
of missing instructions, and then another bootloader stage on top of 
that that can then load ELF or EFI kernels.

Bootloader internal handover is a device tree that is, for some 
inexplicable reason, flattened, and that needs to be converted to an 
ACPI tree (and flattened again, because that is how ACPI rolls) for EFI. 
Handover to an ELF kernel can just use the flat device tree directly, 
that's a little less silly.

    Simon