Skip to content

Commit

Permalink
uboot: support CompuLab Utilite Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Nov 8, 2015
1 parent afff652 commit 91c9602
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
14 changes: 14 additions & 0 deletions pkgs/misc/uboot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,18 @@ in rec {
filesToInstall = ["u-boot"];
patches = [ ./vexpress-Use-config_distro_bootcmd.patch ];
};

# Non-upstream U-Boots:
ubootUtilitePro = common rec {
defconfig = "cm_fx6_config";
targetPlatforms = ["armv7l-linux"];
filesToInstall = ["cm-fx6-firmware"];
patches = [ ./u-boot-enable-distro-defaults-mx6.patch ];

preInstall = ''
dd if=/dev/zero count=500 bs=1K | tr '\000' '\377' > cm-fx6-firmware
dd if=SPL of=cm-fx6-firmware bs=1K seek=1 conv=notrunc
dd if=u-boot.img of=cm-fx6-firmware bs=1K seek=64 conv=notrunc
'';
};
}
13 changes: 13 additions & 0 deletions pkgs/misc/uboot/u-boot-enable-distro-defaults-mx6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h
index 12734a1..a5236fe 100644
--- a/include/configs/cm_fx6.h
+++ b/include/configs/cm_fx6.h
@@ -13,6 +13,8 @@

#include "mx6_common.h"

+#include <config_distro_defaults.h>
+
/* Machine config */
#define CONFIG_SYS_LITTLE_ENDIAN
#define CONFIG_MACH_TYPE 4273
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10365,9 +10365,9 @@ let
ubootPcduino3Nano
ubootRaspberryPi
ubootVersatileExpressCA9
ubootUtilitePro
;

# Non-upstream U-Boots:
ubootSheevaplug = callPackage ../misc/uboot/sheevaplug.nix { };

ubootNanonote = callPackage ../misc/uboot/nanonote.nix { };
Expand Down

0 comments on commit 91c9602

Please sign in to comment.