summaryrefslogtreecommitdiff
path: root/package/u-boot
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-11-08 21:19:20 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-11-08 21:19:42 +0100
commit0fc2c05139c69ab8acb8fd287214c2a51b3b16e4 (patch)
tree78eb7ac77e5090e49bc77e685d30d463e4f62fe5 /package/u-boot
parent5197e574887904883051c2d544821d14c9358fc8 (diff)
add basic clearfog support
Diffstat (limited to 'package/u-boot')
-rw-r--r--package/u-boot/Makefile9
-rw-r--r--package/u-boot/files/boot.script.clearfog4
-rw-r--r--package/u-boot/patches/patch-include_configs_clearfog_h20
3 files changed, 32 insertions, 1 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile
index ee0f022aa..72635a6c1 100644
--- a/package/u-boot/Makefile
+++ b/package/u-boot/Makefile
@@ -16,7 +16,7 @@ PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SYSTEM_DEPENDS:= beaglebone-black raspberry-pi raspberry-pi2 atmel-ngw100 banana-pro solidrun-imx6
+PKG_SYSTEM_DEPENDS:= beaglebone-black raspberry-pi raspberry-pi2 atmel-ngw100 banana-pro solidrun-imx6 solidrun-clearfog
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
@@ -25,6 +25,10 @@ $(eval $(call HOST_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
UBOOT:= u-boot.bin
+ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG),y)
+CONFIG:= clearfog_defconfig
+UBOOT:= u-boot-spl.kwb
+endif
ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
CONFIG:= mx6cuboxi_defconfig
UBOOT:= u-boot.img
@@ -94,6 +98,9 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
$(INSTALL_BIN) ./files/boot.script.bpi $(FW_DIR)
endif
+ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG),y)
+ $(INSTALL_BIN) ./files/boot.script.clearfog $(FW_DIR)
+endif
ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
$(INSTALL_BIN) $(WRKBUILD)/SPL $(FW_DIR)
$(INSTALL_BIN) ./files/boot.script.imx6 $(FW_DIR)
diff --git a/package/u-boot/files/boot.script.clearfog b/package/u-boot/files/boot.script.clearfog
new file mode 100644
index 000000000..78c2bfdc3
--- /dev/null
+++ b/package/u-boot/files/boot.script.clearfog
@@ -0,0 +1,4 @@
+setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait'
+ext2load mmc 0:1 0x01800000 /boot/armada-388-clearfog.dtb
+ext2load mmc 0:1 0x02000000 /boot/kernel
+bootz 0x02000000 - 0x01800000
diff --git a/package/u-boot/patches/patch-include_configs_clearfog_h b/package/u-boot/patches/patch-include_configs_clearfog_h
new file mode 100644
index 000000000..ba8b83a55
--- /dev/null
+++ b/package/u-boot/patches/patch-include_configs_clearfog_h
@@ -0,0 +1,20 @@
+--- u-boot-2016.09.orig/include/configs/clearfog.h 2016-09-12 16:05:51.000000000 +0200
++++ u-boot-2016.09/include/configs/clearfog.h 2016-11-08 05:49:59.000000000 +0100
+@@ -7,6 +7,8 @@
+ #ifndef _CONFIG_CLEARFOG_H
+ #define _CONFIG_CLEARFOG_H
+
++#include <config_distro_defaults.h>
++
+ /*
+ * High Level Configuration Options (easy to change)
+ */
+@@ -151,6 +153,8 @@
+ #endif
+ #endif
+
++#include <config_distro_bootcmd.h>
++
+ /*
+ * mv-common.h should be defined after CMD configs since it used them
+ * to enable certain macros