mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
[Backport release-25.05] ubootVisionFive2: init (#415211)
This commit is contained in:
commit
3ae15af301
2 changed files with 22 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
armTrustedFirmwareRK3568,
|
armTrustedFirmwareRK3568,
|
||||||
armTrustedFirmwareRK3588,
|
armTrustedFirmwareRK3588,
|
||||||
armTrustedFirmwareS905,
|
armTrustedFirmwareS905,
|
||||||
|
opensbi,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
}@pkgs:
|
}@pkgs:
|
||||||
|
|
||||||
|
@ -808,6 +809,26 @@ in
|
||||||
# sf probe; sf update $loadaddr 0 80000
|
# 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 {
|
ubootWandboard = buildUBoot {
|
||||||
defconfig = "wandboard_defconfig";
|
defconfig = "wandboard_defconfig";
|
||||||
extraMeta.platforms = [ "armv7l-linux" ];
|
extraMeta.platforms = [ "armv7l-linux" ];
|
||||||
|
|
|
@ -11575,6 +11575,7 @@ with pkgs;
|
||||||
ubootSopine
|
ubootSopine
|
||||||
ubootTuringRK1
|
ubootTuringRK1
|
||||||
ubootUtilite
|
ubootUtilite
|
||||||
|
ubootVisionFive2
|
||||||
ubootWandboard
|
ubootWandboard
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue