summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPatrick Keroulas <patrick.keroulas@savoirfairelinux.com>2016-07-18 14:41:36 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-20 13:45:09 +0200
commit1cda15f494abe48fa81b1a0815af278d11cb05c1 (patch)
treedc1248320675fd033a8c697125df4bc4b4101964 /board
parenta80f0efa9c610b00b531b69d14c2ff9852fd721b (diff)
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 Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com> Signed-off-by: Patrick Keroulas <patrick.keroulas@savoirfairelinux.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board')
-rw-r--r--board/technologic/ts4800/genimage.cfg37
-rw-r--r--board/technologic/ts4800/linux.fragment3
-rwxr-xr-xboard/technologic/ts4800/post-image.sh19
-rw-r--r--board/technologic/ts4800/readme.txt50
4 files changed, 109 insertions, 0 deletions
diff --git a/board/technologic/ts4800/genimage.cfg b/board/technologic/ts4800/genimage.cfg
new file mode 100644
index 000000000..2070cc504
--- /dev/null
+++ b/board/technologic/ts4800/genimage.cfg
@@ -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
+ }
+}
diff --git a/board/technologic/ts4800/linux.fragment b/board/technologic/ts4800/linux.fragment
new file mode 100644
index 000000000..0451c8636
--- /dev/null
+++ b/board/technologic/ts4800/linux.fragment
@@ -0,0 +1,3 @@
+CONFIG_TOUCHSCREEN_TS4800=y
+CONFIG_TS4800_WATCHDOG=y
+CONFIG_TS4800_IRQ=y
diff --git a/board/technologic/ts4800/post-image.sh b/board/technologic/ts4800/post-image.sh
new file mode 100755
index 000000000..167dea812
--- /dev/null
+++ b/board/technologic/ts4800/post-image.sh
@@ -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 $?
diff --git a/board/technologic/ts4800/readme.txt b/board/technologic/ts4800/readme.txt
new file mode 100644
index 000000000..20b50e9de
--- /dev/null
+++ b/board/technologic/ts4800/readme.txt
@@ -0,0 +1,50 @@
+Technologic Systems TS-4800
+===========================
+
+This document explains how to set up a basic Buildroot system for the
+Technologic Systems TS-4800 System on Module.
+
+The TS-4800 is a TS-SOCKET macrocontroller board based on the Freescale
+i.MX515 ARM Cortex-A8 CPU running at 800MHz. The TS-4800 features 10/100
+Ethernet, high speed USB host and device (OTG), microSD card, and 256MB
+XNAND drive. More details on the board here:
+ http://wiki.embeddedarm.com/wiki/TS-4800
+
+The TS-4800 is supported by mainline Linux as of 4.5 and by U-boot as of
+v2016-07. The defconfig includes a custom 1st level bootloader located
+in boot/ts4800-mbrboot. This one scans the SD card's partition table to
+find partition having the 0xDA type, corresponding to U-boot.
+
+To build the default configuration you only have to:
+
+ $ make ts4800_defconfig
+ $ make
+
+The ouput looks like:
+ output/images/
+ ├── boot.vfat
+ ├── imx51-ts4800.dtb
+ ├── mbrboot.bin
+ ├── rootfs.ext2
+ ├── rootfs.ext4 -> rootfs.ext2
+ ├── rootfs.tar
+ ├── sdcard.img
+ ├── u-boot.bin
+ └── zImage
+
+The provided post-image script generates an image file containing 3
+partitions for U-boot, Linux kernel + device tree and rootfs
+respectively:
+ $ fdisk output/images/sdcard.img
+ Device Boot Start End Blocks Id System
+ output/images/sdcard.img1 1 512 256 da Non-FS data
+ output/images/sdcard.img2 513 16896 8192 c W95 FAT32 (LBA)
+ output/images/sdcard.img3 16897 541184 262144 83 Linux
+
+This image can be directly written to an SD card.
+
+ $ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0
+
+In order to test the image on TS-4800 board, a TS baseboard, such as
+TS-8xxx the serie, is needed to provide power, console header, RJ45
+connector etc.