summaryrefslogtreecommitdiffstats
path: root/board/roseapplepi
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2016-05-23 15:33:49 +0200
committerPeter Korsgaard <peter@korsgaard.com>2016-05-26 10:35:55 +0200
commit9cacb5be8449f9033ade3b3336b81cac20ae94db (patch)
tree50064c23bceb76586168906a47790c0ab8bbfa04 /board/roseapplepi
parent7c4d98362802449bd5010f7c391cea348635b84d (diff)
downloadbuildroot-9cacb5be8449f9033ade3b3336b81cac20ae94db.tar.gz
buildroot-9cacb5be8449f9033ade3b3336b81cac20ae94db.zip
boards: add roseapple pi board support
Add basic support for the roseapple pi board, a SBC in a RPI form factor with an Actions Semiconductor S500 SoC. For details, see: http://roseapplepi.org/ The vendor kernel unfortunately needs a minor patch to build the XHCI driver, so include it here. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/roseapplepi')
-rw-r--r--board/roseapplepi/genimage.cfg43
-rw-r--r--board/roseapplepi/patches/linux/0001-unbreak-xhci-trace.patch31
-rwxr-xr-xboard/roseapplepi/post-image.sh18
-rwxr-xr-xboard/roseapplepi/uEnv.txt3
4 files changed, 95 insertions, 0 deletions
diff --git a/board/roseapplepi/genimage.cfg b/board/roseapplepi/genimage.cfg
new file mode 100644
index 0000000000..4d40e65bba
--- /dev/null
+++ b/board/roseapplepi/genimage.cfg
@@ -0,0 +1,43 @@
+# Minimal SD card image for the Roseapple Pi
+#
+image boot.vfat {
+ vfat {
+ files = {
+ "uEnv.txt",
+ "uImage"
+ }
+ file kernel.dtb {
+ image = "actduino_bubble_gum_sdboot_linux.dtb"
+ }
+ }
+ size = 10M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition s500-bootloader {
+ in-partition-table = "no"
+ image = "s500-bootloader.bin"
+ offset = 0x200200
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot-dtb.img"
+ offset = 0x300000
+ }
+
+ partition boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/roseapplepi/patches/linux/0001-unbreak-xhci-trace.patch b/board/roseapplepi/patches/linux/0001-unbreak-xhci-trace.patch
new file mode 100644
index 0000000000..79e8c800d2
--- /dev/null
+++ b/board/roseapplepi/patches/linux/0001-unbreak-xhci-trace.patch
@@ -0,0 +1,31 @@
+[PATCH] unbreak xhci-trace compilation
+
+When commit 84a99f6fc5d4 (xhci: add traces for debug messages in
+xhci_address_device) was backported to the owl tree as part of commit
+5b2ea66f15396 (usb: add owl usb driver), the specific CFLAGS needed for
+xhci-trace.c were missed, causing build breakage:
+
+ CC drivers/usb/host/xhci-trace.o
+In file included from drivers/usb/host/xhci-trace.h:151:0,
+ from drivers/usb/host/xhci-trace.c:15:
+include/trace/define_trace.h:79:43: fatal error: ./xhci-trace.h: No such file or directory
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ drivers/usb/host/Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+Index: linux-59dbf6a4998e967eb9c6bdcc9b506c0d96acb26b/drivers/usb/host/Makefile
+===================================================================
+--- linux-59dbf6a4998e967eb9c6bdcc9b506c0d96acb26b.orig/drivers/usb/host/Makefile
++++ linux-59dbf6a4998e967eb9c6bdcc9b506c0d96acb26b/drivers/usb/host/Makefile
+@@ -4,6 +4,9 @@
+
+ ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
+
++# tell define_trace.h where to find the xhci trace header
++CFLAGS_xhci-trace.o := -I$(src)
++
+ isp1760-y := isp1760-hcd.o isp1760-if.o
+
+ fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o
diff --git a/board/roseapplepi/post-image.sh b/board/roseapplepi/post-image.sh
new file mode 100755
index 0000000000..e8f2df23f3
--- /dev/null
+++ b/board/roseapplepi/post-image.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+cp "${BOARD_DIR}/uEnv.txt" "${BINARIES_DIR}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
+
+exit $?
diff --git a/board/roseapplepi/uEnv.txt b/board/roseapplepi/uEnv.txt
new file mode 100755
index 0000000000..f9646e498e
--- /dev/null
+++ b/board/roseapplepi/uEnv.txt
@@ -0,0 +1,3 @@
+# no ramdisk
+ramdisk_addr_r=-
+bootargs=clk_ignore_unused root=/dev/mmcblk0p2
OpenPOWER on IntegriCloud