diff options
| author | 2024-11-28 16:31:59 +0200 | |
|---|---|---|
| committer | 2025-02-07 15:06:22 +0100 | |
| commit | b5d377d912dd9cfd48b89e3084d6dd49ed9bbcad (patch) | |
| tree | e02651fd0c494d6afdf7d9f21363fe5e27285794 /components | |
| parent | 4b4a83b33f8eff8f7f13f35b61b4f5464ea4444a (diff) | |
| download | kiwi-descriptions-b5d377d912dd9cfd48b89e3084d6dd49ed9bbcad.tar.gz kiwi-descriptions-b5d377d912dd9cfd48b89e3084d6dd49ed9bbcad.zip | |
Initial riscv64 support
Most of the changes are self-explanatory and just follow what's
already happening for existing architectures.
Two things are worth pointing out:
* we need to use shim-unsigned instead of shim-signed because
riscv64 is not fully integrated into Fedora yet and so we
can't do Secure Boot signing for the time being;
* we use ext4 as bootfilesystem since in most cases the
underlying firmware is going to be U-Boot, which needs to be
able to load the board's DTB from /boot and doesn't support
XFS.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
Diffstat (limited to 'components')
| -rw-r--r-- | components/boot.xml | 8 | ||||
| -rw-r--r-- | components/liveinstall.xml | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/components/boot.xml b/components/boot.xml index ee27d4f..d801c01 100644 --- a/components/boot.xml +++ b/components/boot.xml @@ -7,7 +7,7 @@ <requires profile="BootCore"/> </profile> </profiles> - <preferences profiles="BootDiskCore" arch="x86_64"> + <preferences profiles="BootDiskCore" arch="x86_64,riscv64"> <type image="oem" filesystem="btrfs" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" fsmountoptions="x-systemd.growfs,compress=zstd:1" kernelcmdline="rhgb quiet" devicepersistency="by-uuid" @@ -86,6 +86,8 @@ <packages type="image" patternType="plusRecommended" profiles="BootCore"> <package name="grub2-efi-aa64" arch="aarch64"/> <package name="grub2-efi-aa64-modules" arch="aarch64"/> + <package name="grub2-efi-riscv64" arch="riscv64"/> + <package name="grub2-efi-riscv64-modules" arch="riscv64"/> <package name="grub2-efi-x64" arch="x86_64"/> <package name="grub2-efi-x64-modules" arch="x86_64"/> <package name="grub2-pc" arch="x86_64"/> @@ -94,6 +96,7 @@ <package name="s390utils-base" arch="s390x"/> <package name="shim-signed-aa64" arch="aarch64"/> <package name="shim-signed-x64" arch="x86_64"/> + <package name="shim-unsigned-riscv64" arch="riscv64"/> <package name="kernel-core"/> <package name="systemd-oomd-defaults"/> <package name="systemd-resolved"/> @@ -101,6 +104,7 @@ <packages type="image" patternType="plusRecommended" profiles="BootCoreUKI"> <package name="shim-signed-aa64" arch="aarch64"/> <package name="shim-signed-x64" arch="x86_64"/> + <package name="shim-unsigned-riscv64" arch="riscv64"/> <package name="systemd-oomd-defaults"/> <package name="systemd-resolved"/> <package name="kernel-uki-virt"/> @@ -109,6 +113,7 @@ </packages> <packages type="iso" patternType="plusRecommended" profiles="BootCore"> <package name="grub2-efi-aa64-cdboot" arch="aarch64"/> + <package name="grub2-efi-riscv64-cdboot" arch="riscv64"/> <package name="grub2-efi-x64-cdboot" arch="x86_64"/> </packages> <packages type="image" patternType="plusRecommended" profiles="BootDiskCore"> @@ -121,5 +126,6 @@ <package name="btrfs-progs"/> <package name="udisks2-btrfs"/> <package name="uboot-images-armv8" arch="aarch64"/> + <package name="uboot-images-riscv64" arch="riscv64"/> </packages> </image> diff --git a/components/liveinstall.xml b/components/liveinstall.xml index 814dd76..ea6029a 100644 --- a/components/liveinstall.xml +++ b/components/liveinstall.xml @@ -23,6 +23,15 @@ <bootloader name="grub2" grub_template="grub-arm.cfg.iso-template" console="console" timeout="10"/> </type> </preferences> + <preferences profiles="LiveInstall" arch="riscv64"> + <type image="iso" + publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" + primary="true" flags="dmsquash" filesystem="squashfs" squashfscompression="xz" mediacheck="true" + firmware="uefi" efiparttable="gpt" efifatimagesize="30" kernelcmdline="quiet rhgb" + > + <bootloader name="grub2" grub_template="grub-riscv64.cfg.iso-template" console="console" timeout="10"/> + </type> + </preferences> <preferences profiles="LiveInstall" arch="ppc64le"> <type image="iso" publisher="Fedora Project" volid="Fedora_Linux" application_id="Fedora_Linux" |