Skip to content

Commit 4dbff0e

Browse files
committed
uBootPineTab2: enable video and USB keyboard
Don't apply quartz patches that don't seem to be needed for this device.
1 parent 7b9baa6 commit 4dbff0e

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

pkgs/uboot-rockchip.nix

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,39 @@ in
141141
defconfig = "soquartz-model-a-rk3566_defconfig";
142142
spi = false;
143143
};
144-
uBootPineTab2 = buildRK3566UBoot { defconfig = "pinetab2-rk3566_defconfig"; };
144+
uBootPineTab2 = buildUBoot rec {
145+
# Pick 2025.07 for now since that's what the vop2 patchset
146+
# is against
147+
version = "2025.07";
148+
src = fetchFromGitHub {
149+
owner = "u-boot";
150+
repo = "u-boot";
151+
rev = version;
152+
sha256 = "sha256-X+JhVkDudkvQo08hGwAChOeMZZR+iunT9aU6tSAuMmg=";
153+
};
154+
defconfig = "pinetab2-rk3566_defconfig";
155+
filesToInstall = [
156+
"u-boot-rockchip.bin"
157+
"u-boot-rockchip-spi.bin"
158+
];
159+
extraConfig = ''
160+
CONFIG_BOOTCOMMAND="usb start; bootflow scan -lb"
161+
'';
162+
extraPatches = [
163+
# using fetchurl instead of fetchpatch here because it seems fetchpatch
164+
# mucks with the ordering and that is relevant here.
165+
# https://lists.denx.de/pipermail/u-boot/2025-January/thread.html#577641
166+
(fetchurl {
167+
name = "rockchip-video-output-processor-2.patch";
168+
url = "https://raw.githubusercontent.com/dreemurrs-embedded/danctnix-packages/d2ba844cb9fdcda092f54f87827f8705727ce261/pine64/uboot-pinetab2/vop2.patch";
169+
hash = "sha256-m04GQUvovmo7EuMvHjvxALc+dcBnn9l4TClOspd5i0k=";
170+
})
171+
];
172+
env = {
173+
BL31 = "${pkgs.armTrustedFirmwareRK3568}/bl31.elf";
174+
ROCKCHIP_TPL = pkgs.rkbin.TPL_RK3568;
175+
};
176+
};
145177
uBootPinebookPro = buildRK3399UBoot "pinebook-pro-rk3399_defconfig";
146178
uBootRockPro64 = buildRK3399UBoot "rockpro64-rk3399_defconfig";
147179
uBootROCPCRK3399 = buildRK3399UBoot "roc-pc-rk3399_defconfig";

0 commit comments

Comments
 (0)