Skip to contentSkip to conversation

board: add support for chiliBoard

PATCH New Marcin Niestroj 2 participants 4 messages Jan 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 board: add support for chiliBoard

Board support package includes:

* Buildroot defconfig
* Mainline Linux kernel v4.9.5
* Mainline U-Boot (current HEAD revision is used, as board support patches are not in stable release yet)
* genimage config to create sdcard image
* Board readme.txt

---
Changes v1 -> v2:
* U-Boot is fetched from mainline with specific git revision, as board support patches were just applied. This means that all U-Boot patches in Buildroot were dropped.
* s/liteBoard/chiliBoard/ in readme.txt (suggested by Baruch)

 board/grinn/chiliboard/genimage.cfg  | 31 ++++++++++++++++++++++++
 board/grinn/chiliboard/post-image.sh | 14 +++++++++++
 board/grinn/chiliboard/readme.txt    | 46 ++++++++++++++++++++++++++++++++++++
 configs/grinn_chiliboard_defconfig   | 28 ++++++++++++++++++++++
 4 files changed, 119 insertions(+)
 create mode 100644 board/grinn/chiliboard/genimage.cfg
 create mode 100755 board/grinn/chiliboard/post-image.sh
 create mode 100644 board/grinn/chiliboard/readme.txt
 create mode 100644 configs/grinn_chiliboard_defconfig
board/grinn/chiliboard/genimage.cfg new file +31 -0
new file mode 100644
index 000000000..ffe027e7a
@@ -0,0 +1,31 @@
+# Minimal microSD card image for Grinn's chiliBoard
+#
+
+image boot.vfat {
+  vfat {
+    files = {
+      "MLO",
+      "u-boot.img",
+      "am335x-chiliboard.dtb",
+      "zImage"
+    }
+  }
+  size = 16M
+}
+
+image sdcard.img {
+  hdimage {
+  }
+
+  partition u-boot {
+    partition-type = 0xC
+    bootable = "true"
+    image = "boot.vfat"
+    offset = 1M
+  }
+
+  partition rootfs {
+    partition-type = 0x83
+    image = "rootfs.ext4"
+  }
+}
board/grinn/chiliboard/post-image.sh new file +14 -0
new file mode 100755
index 000000000..1a076eecb
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+    --rootpath "${TARGET_DIR}" \
+    --tmppath "${GENIMAGE_TMP}" \
+    --inputpath "${BINARIES_DIR}" \
+    --outputpath "${BINARIES_DIR}" \
+    --config "${GENIMAGE_CFG}"
board/grinn/chiliboard/readme.txt new file +46 -0

46 lines not on this page · raw message

configs/grinn_chiliboard_defconfig new file +28 -0
new file mode 100644
index 000000000..f4fedfc97
@@ -0,0 +1,28 @@
+BR2_arm=y
+BR2_cortex_a8=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/grinn/chiliboard/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.6"
+BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-chiliboard"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.denx.de/u-boot.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="aac477eca88dd81b18b48573ababee5112d571f3"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="chiliboard"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="spl/u-boot-spl.bin"
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="MLO"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 2/2 DEVELOPERS: add Marcin Niestroj to all Grinn boards

---
Changes v1 -> v2: none

 DEVELOPERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
DEVELOPERS +2 -2
index b6e0c63c1..c7f2dd953 100644
@@ -973,8 +973,8 @@ F:	package/cc-tool/
 F:	package/ecryptfs-utils/
 
 N:	Marcin Niestroj <[email protected]>
-F:	board/grinn/liteboard/
-F:	configs/grinn_liteboard_defconfig
+F:	board/grinn/
+F:	configs/grinn_*
 F:	package/argparse/
 F:	package/easydbus/
 F:	package/rs485conf/
Signature · 1 line
2.11.0
#3 lore raw

PATCH v2 1/2 board: add support for chiliBoard

In reply to Marcin Niestroj
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Marcin" == Marcin Niestroj <[email protected]> writes:

Board support package includes:
* Buildroot defconfig
* Mainline Linux kernel v4.9.5

You're actually using 4.9.6.

Quoted 11 lines

* Mainline U-Boot (current HEAD revision is used, as board support patches are not in stable release yet)
* genimage config to create sdcard image
* Board readme.txt

---
Changes v1 -> v2:
* U-Boot is fetched from mainline with specific git revision, as board support patches were just applied. This means that all U-Boot patches in Buildroot were dropped.

Wee!

configs/grinn_chiliboard_defconfig line 4

Quoted 6 lines

+++ b/configs/grinn_chiliboard_defconfig

configs/grinn_chiliboard_defconfig new file +4 -0
@@ -0,0 +1,28 @@
+BR2_arm=y
+BR2_cortex_a8=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"

This is not strictly needed as you boot with console=ttyO0, and default is "console", but ok.

Quoted 4 lines
configs/grinn_chiliboard_defconfig new file +4 -0
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/grinn/chiliboard/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y

configs/grinn_chiliboard_defconfig line 18

Quoted 10 lines
configs/grinn_chiliboard_defconfig new file +10 -0
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.6"
+BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-chiliboard"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.denx.de/u-boot.git"

I've changed this to use http://git.denx.de/u-boot.git as some users are behind firewalls not allowing git://.

Committed with that changed, thanks.

Signature · 1 line
Bye, Peter Korsgaard