ubootVisionFive2: init (#414583)

authored by Aleksana and committed by GitHub 0d7af977 89a8851b

+22
+21
pkgs/misc/uboot/default.nix
··· 27 armTrustedFirmwareRK3568, 28 armTrustedFirmwareRK3588, 29 armTrustedFirmwareS905, 30 buildPackages, 31 }@pkgs: 32 ··· 807 # sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx 808 # sf probe; sf update $loadaddr 0 80000 809 }; 810 811 ubootWandboard = buildUBoot { 812 defconfig = "wandboard_defconfig";
··· 27 armTrustedFirmwareRK3568, 28 armTrustedFirmwareRK3588, 29 armTrustedFirmwareS905, 30 + opensbi, 31 buildPackages, 32 }@pkgs: 33 ··· 808 # sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx 809 # sf probe; sf update $loadaddr 0 80000 810 }; 811 + 812 + ubootVisionFive2 = 813 + let 814 + opensbi_vf2 = opensbi.overrideAttrs (attrs: { 815 + makeFlags = attrs.makeFlags ++ [ 816 + # Matches u-boot documentation: https://docs.u-boot.org/en/latest/board/starfive/visionfive2.html 817 + "FW_TEXT_START=0x40000000" 818 + "FW_OPTIONS=0" 819 + ]; 820 + }); 821 + in 822 + buildUBoot { 823 + defconfig = "starfive_visionfive2_defconfig"; 824 + extraMeta.platforms = [ "riscv64-linux" ]; 825 + OPENSBI = "${opensbi_vf2}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"; 826 + filesToInstall = [ 827 + "spl/u-boot-spl.bin.normal.out" 828 + "u-boot.itb" 829 + ]; 830 + }; 831 832 ubootWandboard = buildUBoot { 833 defconfig = "wandboard_defconfig";
+1
pkgs/top-level/all-packages.nix
··· 11515 ubootSopine 11516 ubootTuringRK1 11517 ubootUtilite 11518 ubootWandboard 11519 ; 11520
··· 11515 ubootSopine 11516 ubootTuringRK1 11517 ubootUtilite 11518 + ubootVisionFive2 11519 ubootWandboard 11520 ; 11521