-
Notifications
You must be signed in to change notification settings - Fork 403
install: rpi3/4 targets #482
Comments
@sgielen would you see a vested disadvantage using the uefi firmware over raspberry foundation firmware? This is it's default
devicetrees themselves are taken from upstream and probably are not too volatile. |
I actually have no experience with using firmware other than the default. To be clear, are you talking about the firmware flashed onto the Pi's ROM or the firmware residing on the boot partition of the SD card? A pull request by @brian-provenzano (sgielen/picl-k3os-image-generator#15) was merged today that allows defining what Raspberry Pi firmware version to use for the SD card boot partition; perhaps the code could be amended to choose other firmware sources as well. |
Thanks for letting me know. I was referring to the firmware that gets placed on the SD card, indeed. I'd hope to get the discussion going to get it upstreamed. |
Any impact if booting using USB? Raspberry PI 4's eeprom supports USB boot now. https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md |
Hello @blaggacao I'm trying to use your script to get k3os running on a RPI3. There is at least one typo inside Finally I managed to burn the SD, but got an error It boots up, I can enter the shell and the Firmware menu, but it wont boot k3os. I get this error:
Kind regards |
@blaggacao this is awesome 👍 Did you tested this on a RPi4? as per the uefi firmware the default RAM is limited to 3Gigs. I really like this solution since it uses the kernel packaged with k3os |
@frezbo Out of convenience, I have shifted away from k3os in favor of NixOS (combined with deploy-rs) for host os deployments. I'm in the adoption of Sure enough k3os could be packages as nix package and be deployed as nix module in a similar way, based on my inital work above and based on the referenced work in the nix ecosystem. |
@blaggacao That seems interesting, I also checked out the mentioned links and it seems nix is using u-boot, is that a fair assumption? I'm not much familiar with Nix, do you have anything that can help me get started |
@frezbo Nix is three things:
To get started with a NixOS based environment I highly recommend forking the The learning curve is a bit stretched, in general, but the rewards are nothing short of a devops dream. NixOS can use u-boot, and as far as I eemember does by default for aarch64/arm7 based boards. https://github.com/nix-community/nixos-generators might be a good tool for easily generating images that NixOS stock (or Reading through this thread again, nothing stops us from proposinh to build and deploy k3os through nix-lang and nixpkgs' powerful configuration module system. That would be quite interesting and my initial command history that I posted here might actually be reused for that. |
I've been biting through with some inspiration taken from the
./installer.sh
My proposal would be to incorporate the relevant bits into the installer to enable a RPi3/4 installation. Please give feedback on the design in order to check if it's worth weaving this into the installer.sh.
If so, it would require a
--rpi4
/--rpi3
flag, since it branches quite a bit on the preparation of theesp
partition. All other boards, that shall be eventually supported could be implemented through a different branch for preparing this esp partition.Using EFISTUB
I wonder if it's necesary on behalf of k3os to run with grub, or if, instead we could use https://www.kernel.org/doc/html/latest/admin-guide/efi-stub.html
Looks like at least, focal fossa, has it enabled: https://kernel.ubuntu.com/git/ubuntu/ubuntu-focal.git/tree/debian.master/config/config.common.ubuntu#n3041
On the other hand, that would forgo the benefits of squashfs.
grup prefix
from the host ProblemIt would be nice, to have this prefix properly set to
k3os
, instead. It might be even a bug of grub-install to not respect--bootloader-id=k3os
when bundling theprefix
into the efi image. Maybe the only viable alternative is usinggrub-mkimage
orgrub-mkstandalone
to work around this.Rpi 3 / 4 for k3os
create two boot partitions:
Unpack filesystems:
Downaload grub-efi from debian:
Grub install with efi to K3OS_ESP
The text was updated successfully, but these errors were encountered: