ubootVisionFive2: init (#414583)

Aleksana 0d7af977 89a8851b

Changed files
+22
pkgs
misc
uboot
top-level
+21
pkgs/misc/uboot/default.nix
···
armTrustedFirmwareRK3568,
armTrustedFirmwareRK3588,
armTrustedFirmwareS905,
+
opensbi,
buildPackages,
}@pkgs:
···
# sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx
# sf probe; sf update $loadaddr 0 80000
};
+
+
ubootVisionFive2 =
+
let
+
opensbi_vf2 = opensbi.overrideAttrs (attrs: {
+
makeFlags = attrs.makeFlags ++ [
+
# Matches u-boot documentation: https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html
+
"FW_TEXT_START=0x40000000"
+
"FW_OPTIONS=0"
+
];
+
});
+
in
+
buildUBoot {
+
defconfig = "starfive_visionfive2_defconfig";
+
extraMeta.platforms = [ "riscv64-linux" ];
+
OPENSBI = "${opensbi_vf2}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin";
+
filesToInstall = [
+
"spl/u-boot-spl.bin.normal.out"
+
"u-boot.itb"
+
];
+
};
ubootWandboard = buildUBoot {
defconfig = "wandboard_defconfig";
+1
pkgs/top-level/all-packages.nix
···
ubootSopine
ubootTuringRK1
ubootUtilite
+
ubootVisionFive2
ubootWandboard