Compare commits
10 commits
main
...
asonix/ubo
Author | SHA1 | Date | |
---|---|---|---|
asonix | 429207ada6 | ||
asonix | f6e3785b8c | ||
asonix | 0e92248132 | ||
asonix | ffbf7d057c | ||
asonix | ab1a3f718c | ||
asonix | e56a4432a4 | ||
asonix | 80314d9133 | ||
asonix | 7b1642c60c | ||
asonix | 407dbcfc12 | ||
asonix | e5c2ddf5bc |
|
@ -1,4 +1,5 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, fetchFromGitHub
|
||||
, buildUBoot
|
||||
, buildPackages
|
||||
|
@ -7,44 +8,70 @@
|
|||
|
||||
let
|
||||
bl31Blobs = fetchFromGitHub {
|
||||
owner = "JeffyCN";
|
||||
repo = "rockchip_mirrors";
|
||||
rev = "6186debcac95553f6b311cee10669e12c9c9963d";
|
||||
sha256 = "nH/g95QMv0bFgbT5jiKTAa3Vd0gnqtG4M6nkZ5R3S0E=";
|
||||
owner = "rockchip-linux";
|
||||
repo = "rkbin";
|
||||
rev = "87885c48747a358dc8eb1808db99e313935e129e";
|
||||
sha256 = "aQj4JHk67dlr9OGI5SdbQSypQllIasF0TZFoPNARuTo=";
|
||||
};
|
||||
|
||||
rkbinBlobs = fetchFromGitHub {
|
||||
owner = "rockchip-linux";
|
||||
repo = "rkbin";
|
||||
rev = "a4c6de9ea29f275bb1d08c94ccded51ff2ab5b92";
|
||||
sha256 = "e3RH/4hi+xc5cQpzt2txyZYNMGQvC1jGDJpzBY2QSHo=";
|
||||
};
|
||||
|
||||
buildQuartz64UBoot = (defconfig: buildUBoot {
|
||||
version = "2022.64-rc1";
|
||||
version = "2023.04-rc1";
|
||||
|
||||
defconfig = defconfig;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CounterPillow";
|
||||
repo = "u-boot-quartz64";
|
||||
rev = "2ea8c1c4db6d739273ae3821970c02e9d3b6180b";
|
||||
sha256 = "vtM8uTTrnwRG61CfATSzNFyW1Nij+nonSMMUs+AyHZY=";
|
||||
rev = "be645fef058885e2fc9882e839dacd6941693ac6";
|
||||
sha256 = "icoeVb9WGDRcQEzym9yd57sWX8PGYx2ufN3Dj3IT/2c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
ncurses # tools/kwboot
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl
|
||||
(buildPackages.python3.withPackages (p: [
|
||||
p.libfdt
|
||||
p.setuptools # for pkg_resources
|
||||
p.pyelftools
|
||||
]))
|
||||
swig
|
||||
which # for scripts/dtc-version.sh
|
||||
];
|
||||
|
||||
extraMakeFlags = [
|
||||
"ARCH=arm"
|
||||
];
|
||||
|
||||
extraMeta = {
|
||||
platforms = [ "aarch64-linux" ];
|
||||
license = lib.licenses.unfreeRedistributableFirmware;
|
||||
};
|
||||
|
||||
filesToInstall = [ "u-boot.itb" "idbloader.img" ];
|
||||
|
||||
BL31 = "${bl31Blobs}/bin/rk35/rk3568_bl31_v1.34.elf";
|
||||
ROCKCHIP_TPL = "${rkbinBlobs}/bin/rk35/rk3566_ddr_1056MHz_v1.13.bin";
|
||||
|
||||
preConfigure = ''
|
||||
make mrproper
|
||||
|
||||
cp "${bl31Blobs}/bin/rk35/rk3568_bl31_v1.28.elf" "bl31.elf"
|
||||
cp "${rkbinBlobs}/bin/rk35/rk3566_ddr_1056MHz_v1.13.bin" ram_init.bin
|
||||
'';
|
||||
});
|
||||
in
|
||||
{
|
||||
ubootSoQuartz = buildQuartz64UBoot "soquartz-rk3566_defconfig";
|
||||
ubootSoQuartzBlade = buildQuartz64UBoot "soquartz-blade-rk3566_defconfig";
|
||||
ubootSoQuartzCM4 = buildQuartz64UBoot "soquartz-cm4io-rk3566_defconfig";
|
||||
ubootSoQuartzModelA = buildQuartz64UBoot "soquartz-model-a-rk3566_defconfig";
|
||||
ubootQuartz64b = buildQuartz64UBoot "quartz64-b-rk3566_defconfig";
|
||||
ubootQuartz64a = buildQuartz64UBoot "quartz64-a-rk3566_defconfig";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue