@@ -6,10 +6,10 @@
66}:
77
88let
9− defaultVersion = "2019.10";
9+ defaultVersion = "2020.01";
1010 defaultSrc = fetchurl {
1111 url = "ftp://ftp.denx.de/pub/u-boot/u-boot-${defaultVersion}.tar.bz2";
12− sha256 = "053hcrwwlacqh2niisn0zas95zkbffw5aw5sdhixs8lmfdq60vcd";
12+ sha256 = "1w9ml4jl15q6ixpdqzspxjnl7d3rgxd7f99ms1xv5c8869h3qida";
1313 };
1414 buildUBoot = {
1515 version ? null
@@ -28,19 +28,7 @@ let
2828
2929 src = if src == null then defaultSrc else src;
3030
31− patches = [
32− # Submitted upstream: https://patchwork.ozlabs.org/patch/1203693/
33− (fetchpatch {
34− url = https://github.com/dezgeg/u-boot/commit/extlinux-path-length-2018-03.patch;
35− sha256 = "07jafdnxvqv8lz256qy29agjc2k1zj5ad4k28r1w5qkhwj4ixmf8";
36− })
37− # Submitted upstream: https://patchwork.ozlabs.org/patch/1203678/
38− (fetchpatch {
39− name = "rockchip-allow-loading-larger-kernels.patch";
40− url = "https://marc.info/?l=u-boot&m=157537843004298&q=raw";
41− sha256 = "0l3l88cc9xkxkraql82pfgpx6nqn4dj7cvfaagh5pzfwkxyw0n3p";
42− })
43− ] ++ extraPatches;
31+ patches = extraPatches;
4432
4533 postPatch = ''
4634 patchShebangs tools
@@ -53,7 +41,7 @@ let
5341 dtc
5442 flex
5543 openssl
56− (buildPackages.python2.withPackages (p: [ p.libfdt ]))
44+ (buildPackages.python3.withPackages (p: [ p.libfdt ]))
5745 swig
5846 ];
5947 depsBuildBuild = [ buildPackages.stdenv.cc ];
@@ -124,6 +112,12 @@ in {
124112 filesToInstall = ["u-boot-sunxi-with-spl.bin"];
125113 };
126114
115+ ubootAmx335xEVM = buildUBoot {
116+ defconfig = "am335x_evm_defconfig";
117+ extraMeta.platforms = ["armv7l-linux"];
118+ filesToInstall = ["MLO" "u-boot.img"];
119+ };
120+
127121 ubootBananaPi = buildUBoot {
128122 defconfig = "Bananapi_defconfig";
129123 extraMeta.platforms = ["armv7l-linux"];
@@ -143,12 +137,6 @@ in {
143137 filesToInstall = ["u-boot-sunxi-with-spl.bin"];
144138 };
145139
146− ubootBeagleboneBlack = buildUBoot {
147− defconfig = "am335x_boneblack_defconfig";
148− extraMeta.platforms = ["armv7l-linux"];
149− filesToInstall = ["MLO" "u-boot.img"];
150− };
151−
152140 # http://git.denx.de/?p=u-boot.git;a=blob;f=board/solidrun/clearfog/README;hb=refs/heads/master
153141 ubootClearfog = buildUBoot {
154142 defconfig = "clearfog_defconfig";