git.iko.soy/typeable/nixpkgs
on master help sign in
U-Boot: Add SOPINE Baseboard build

This build is compatible with PINE A64-LTS. [dezgeg changed the original device tree patch to v4 of the patch series "sunxi: sync H3, H5, A64 DTs from mainline Linux" submitted to the upstream mailing list by Andre Przywara. Also install the u-boot-sunxi-with-spl.bin binary similar to 32-bit boards since it's now being built by the upstream build system.] (cherry picked from commit 2ff31f71ae1f10b3d1779b876ac94bf2a9998bd9) (cherry picked from commit 176d151f4d98d54adf293ee58427da649f28452c)

commit566d3feb4e5b785513f1ed1c6a23faee96d96077 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateSun 10 Dec 2017, 20:56 (9 years ago) parent7dffe0d
2 files changed+19−1
pkgs/misc/uboot/default.nix+18−1 pkgs/top-level/all-packages.nix+1
pkgs/misc/uboot/default.nix+18−1
@@ -1,11 +1,20 @@
11{ stdenv, fetchurl, fetchpatch, bc, dtc, openssl, python2, swig
2+, armTrustedFirmwareAllwinner
23, hostPlatform, buildPackages
34}:
45
56let
7+ # Various changes for 64-bit sunxi boards, (hopefully) destined for 2018.05
8+ sunxiPatch = fetchpatch {
9+ name = "sunxi.patch";
10+ url = "https://github.com/u-boot/u-boot/compare/v2018.03...dezgeg:2018-03-sunxi.patch";
11+ sha256 = "1pqn7c6c06hfygwpcgaraqvqxcjhz99j0rx5psfhj8igy0qvk2dq";
12+ };
13+
614 buildUBoot = { filesToInstall
715 , installDir ? "$out"
816 , defconfig
17+ , extraPatches ? []
918 , extraMakeFlags ? []
1019 , extraMeta ? {}
1120 , ... } @ args:
@@ -36,7 +45,7 @@ let
3645 url = https://github.com/dezgeg/u-boot/commit/extlinux-path-length-2018-03.patch;
3746 sha256 = "07jafdnxvqv8lz256qy29agjc2k1zj5ad4k28r1w5qkhwj4ixmf8";
3847 })
39− ];
48+ ] ++ extraPatches;
4049
4150 postPatch = ''
4251 patchShebangs tools
@@ -200,6 +209,14 @@ in rec {
200209 filesToInstall = ["u-boot.bin"];
201210 };
202211
212+ ubootSopine = buildUBoot rec {
213+ extraPatches = [sunxiPatch];
214+ defconfig = "sopine_baseboard_defconfig";
215+ extraMeta.platforms = ["aarch64-linux"];
216+ BL31 = "${armTrustedFirmwareAllwinner}/bl31.bin";
217+ filesToInstall = ["u-boot-sunxi-with-spl.bin"];
218+ };
219+
203220 ubootUtilite = buildUBoot rec {
204221 defconfig = "cm_fx6_defconfig";
205222 extraMeta.platforms = ["armv7l-linux"];
pkgs/top-level/all-packages.nix+1
@@ -13809,6 +13809,7 @@ with pkgs;
1380913809 ubootRaspberryPi3_32bit
1381013810 ubootRaspberryPi3_64bit
1381113811 ubootSheevaplug
13812+ ubootSopine
1381213813 ubootUtilite
1381313814 ubootWandboard
1381413815 ;