···497 filesToInstall = ["u-boot.bin"];
498 };
499500+ ubootRock64 = buildUBoot {
0000000501 defconfig = "rock64-rk3328_defconfig";
502+ extraMeta.platforms = [ "aarch64-linux" ];
000503 BL31="${armTrustedFirmwareRK3328}/bl31.elf";
504+ filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" ];
505+ };
506+507+ # A special build with much lower memory frequency (666 vs 1600 MT/s) which
508+ # makes ROCK64 V2 boards stable. This is necessary because the DDR3 routing
509+ # on that revision is marginal and not uncoditionally stable at the specified
510+ # frequency. If your ROCK64 is unstable you can try this u-boot variant to
511+ # see if it works better for you. The only disadvantage is lowered memory
512+ # bandwidth.
513+ ubootRock64v2 = buildUBoot {
514+ prePatch = ''
515+ substituteInPlace arch/arm/dts/rk3328-rock64-u-boot.dtsi \
516+ --replace rk3328-sdram-lpddr3-1600.dtsi rk3328-sdram-lpddr3-666.dtsi
517 '';
518+ defconfig = "rock64-rk3328_defconfig";
519+ extraMeta.platforms = [ "aarch64-linux" ];
520+ BL31="${armTrustedFirmwareRK3328}/bl31.elf";
521+ filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" ];
522 };
523524 ubootRockPro64 = buildUBoot {