Skip to contentSkip to conversation

configs: add defconfig for TS-4800

PATCH New Patrick Keroulas 2 participants 2 messages Jul 18, 2016 – Jul 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v8 1/1 configs: add defconfig for TS-4800

The TS-4800 is supported by mainline Linux as of 4.5 and by U-boot as of v2016-07.

The package requires the custom ts4800-mbrboot routine.

A post-image script is provided to generate an image that can be directly written to an SD card.

More details on the board here:
http://wiki.embeddedarm.com/wiki/TS-4800

---
Changes v7->v8:
- cleaned up defconfig and post-image script
- added a readme file
Changes v6->v7:
- moved package to boot/
Changes v5->v6:
- removed custom U-boot v2016.07 which is now the default version in BR
Changes v4->v5:
with Linaro toolchain
- delete all the unnecessary defconfig options

 board/technologic/ts4800/genimage.cfg   | 37 ++++++++++++++++++++++++
 board/technologic/ts4800/linux.fragment |  3 ++
 board/technologic/ts4800/post-image.sh  | 19 +++++++++++++
 board/technologic/ts4800/readme.txt     | 50 +++++++++++++++++++++++++++++++++
 configs/ts4800_defconfig                | 22 +++++++++++++++
 5 files changed, 131 insertions(+)
 create mode 100644 board/technologic/ts4800/genimage.cfg
 create mode 100644 board/technologic/ts4800/linux.fragment
 create mode 100755 board/technologic/ts4800/post-image.sh
 create mode 100644 board/technologic/ts4800/readme.txt
 create mode 100644 configs/ts4800_defconfig
board/technologic/ts4800/genimage.cfg new file +37 -0
new file mode 100644
index 0000000..2070cc5
@@ -0,0 +1,37 @@
+image boot.vfat {
+        vfat {
+                files = {
+                        "zImage",
+                        "imx51-ts4800.dtb"
+                }
+        }
+        size = 8M
+}
+
+image sdcard.img {
+        hdimage {
+        }
+
+        partition mbrboot {
+                in-partition-table = "no"
+                image = "mbrboot.bin"
+                offset = 0
+        }
+
+        partition uboot {
+                partition-type = 0xda
+                image = "u-boot.bin"
+                size = 256k
+        }
+
+        partition kernel {
+                partition-type = 0xC
+                image = "boot.vfat"
+        }
+
+        partition rootfs {
+                partition-type = 0x83
+                image = "rootfs.ext4"
+                size = 256M
+        }
+}
board/technologic/ts4800/linux.fragment new file +3 -0
new file mode 100644
index 0000000..0451c86
@@ -0,0 +1,3 @@
+CONFIG_TOUCHSCREEN_TS4800=y
+CONFIG_TS4800_WATCHDOG=y
+CONFIG_TS4800_IRQ=y
board/technologic/ts4800/post-image.sh new file +19 -0
new file mode 100755
index 0000000..167dea8
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Copyright (C) 2015 Savoir-faire Linux
+# Post image generation script.
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP=${BUILD_DIR}/.genimage_tmp
+
+rm -rf ${GENIMAGE_TMP}
+
+${HOST_DIR}/usr/bin/genimage \
+        --config ${GENIMAGE_CFG} \
+        --rootpath ${TARGET_DIR} \
+        --tmppath ${GENIMAGE_TMP} \
+        --inputpath $BINARIES_DIR \
+        --outputpath $BINARIES_DIR
+
+exit $?
board/technologic/ts4800/readme.txt new file +50 -0

50 lines not on this page · raw message

configs/ts4800_defconfig new file +22 -0
new file mode 100644
index 0000000..0999ebc
@@ -0,0 +1,22 @@
+BR2_arm=y
+BR2_cortex_a8=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6=y
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/technologic/ts4800/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.6.3"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/technologic/ts4800/linux.fragment"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx51-ts4800"
+BR2_PACKAGE_BUSYBOX_WATCHDOG=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_TS4800_MBRBOOT=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="ts4800"
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.07"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
Signature · 1 line
1.9.1
#1 lore raw

PATCH v8 1/1 configs: add defconfig for TS-4800

Hello,

Quoted 13 lines · Patrick Keroulas

The TS-4800 is supported by mainline Linux as of 4.5 and by U-boot as of v2016-07.

The package requires the custom ts4800-mbrboot routine.

A post-image script is provided to generate an image that can be directly written to an SD card.

More details on the board here:
http://wiki.embeddedarm.com/wiki/TS-4800

Quoted 12 lines

---
Changes v7->v8:
- cleaned up defconfig and post-image script
- added a readme file
Changes v6->v7:
- moved package to boot/
Changes v5->v6:
- removed custom U-boot v2016.07 which is now the default version in BR
Changes v4->v5:
with Linaro toolchain
- delete all the unnecessary defconfig options

Applied to master, thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com