Source: u-boot
Version: 2014.10~rc2+dfsg1-2~exp1
Severity: wishlist
Tags: patch

I have one of these and am willing to test updates etc.

One caveat is that the Arndale platform requires a closed BSD licensed stage 1
blob. This can be downloaded from Linaro at
http://releases.linaro.org/12.12/components/kernel/arndale-bl1/ or
https://git.linaro.org/pkg/arndale-pre-boot.git

Clearly this is not suitable for main (or even contrib) and I would completely
understand if this were a blocker for including even the open source u-boot
bits in main.

FYI I have proposed a patch upstream to use the config_distro_defaults.h stuff
see: http://lists.denx.de/pipermail/u-boot/2014-September/189939.html

I'm also working on a patch to support the config_distro_bootcmd.h stuff, which
I hope to submit upstream in the next few days.

If Arndale is enabled then we may wish to consider backporting one or both of
those.

Ian.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf
armel

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information
>From 8025cfce555f084ddd2991db423877b9fb16bbc8 Mon Sep 17 00:00:00 2001
From: Ian Campbell <i...@debian.org>
Date: Sun, 28 Sep 2014 15:31:55 +0100
Subject: [PATCH] Add support for the Arndale board.

As well as the additional target this required adding a build-depends on the
device tree compiler as well as a patch to support "make spl/$(BOARD)-spl.bin"
from the top-level directory which is required by the current debian/rules
file.
---
 debian/changelog                   |  4 ++--
 debian/control                     |  2 +-
 debian/patches/board-spl-rule.diff | 17 +++++++++++++++++
 debian/patches/series              |  1 +
 debian/targets                     |  3 +++
 5 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 debian/patches/board-spl-rule.diff

diff --git a/debian/changelog b/debian/changelog
index 9252c5b..52e5e0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,7 @@
 u-boot (2014.10~rc2+dfsg1-2~exp2) UNRELEASED; urgency=medium
 
-  * Build tools out-of-tree too so as not to dirty the source used for the
-    actual platforms.
+  [ Ian Campbell ]
+  * Add support for the Arndale board.
 
  -- Ian Campbell <i...@debian.org>  Sat, 27 Sep 2014 09:48:00 +0100
 
diff --git a/debian/control b/debian/control
index 9548a77..08f8e99 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: Vagrant Cascadian <vagr...@debian.org>
 Uploaders: Loïc Minier <l...@debian.org>, Clint Adams <cl...@debian.org>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), device-tree-compiler
 Standards-Version: 3.9.5
 Homepage: http://www.denx.de/wiki/U-Boot/
 Vcs-Git: git://anonscm.debian.org/collab-maint/u-boot.git
diff --git a/debian/patches/board-spl-rule.diff b/debian/patches/board-spl-rule.diff
new file mode 100644
index 0000000..e2cf895
--- /dev/null
+++ b/debian/patches/board-spl-rule.diff
@@ -0,0 +1,17 @@
+Description: Enable generic spl/$(BOARD)-spl.bin rule
+Author: Ian Campbell <i...@debian.org>
+
+Needed for spl/arndale-spl.bin
+
+--- a/Makefile
++++ b/Makefile
+@@ -1142,6 +1142,9 @@
+ spl/sunxi-spl.bin: spl/u-boot-spl
+ 	@:
+ 
++spl/$(BOARD)-spl.bin: spl/u-boot-spl
++	@:
++
+ tpl/u-boot-tpl.bin: tools prepare
+ 	$(Q)$(MAKE) obj=tpl -f $(srctree)/scripts/Makefile.spl all
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 13ca41f..e97987c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -21,3 +21,4 @@ workaround-env-ftbfs
 
 sunxi/0001-sun7i-Add-support-for-Olimex-A20-OLinuXino-LIME.patch
 tools-generic-builds.patch
+board-spl-rule.diff
diff --git a/debian/targets b/debian/targets
index 1406927..54ed07b 100644
--- a/debian/targets
+++ b/debian/targets
@@ -80,6 +80,9 @@ armhf	imx		wandboard_solo	u-boot.imx
 # Hector Oron <zu...@debian.org>
 armhf	imx		nitrogen6q	u-boot.imx
 
+# Ian Campbell <i...@hellion.org.uk>
+armhf	-		arndale		u-boot-dtb.bin spl/arndale-spl.bin
+
 avr32	-		hammerhead	u-boot.img
 
 mips	-		dbau1100	u-boot.img
-- 
2.1.0

Reply via email to