add support for TS-4800
cover add support for TS-4800
This patchset brings the support for the TS-4800 manufactured by Technologic Systems. While we're at it, rename the ts directory to technologic to be consistent with Linux and U-Boot.
Damien Riegel (2):
board: rename ts to technologic
configs: add defconfig for TS-4800
board/technologic/ts4800/genimage.cfg | 37 ++++++++++++++
board/technologic/ts4800/linux.fragment | 3 ++
board/technologic/ts4800/mbrboot.bin | Bin 0 -> 446 bytes
...800-add-CONFIG_SYS_FSL_ERRATUM_ESDHC_A001.patch | 36 ++++++++++++++
.../uboot/ts4800-patch-env-to-boot-dts.patch | 55 +++++++++++++++++++++
board/technologic/ts4800/post-image.sh | 25 ++++++++++
.../ts5x00/fs-overlay/boot/syslinux/syslinux.cfg | 0
board/{ts => technologic}/ts5x00/linux-3.17.config | 0
board/{ts => technologic}/ts5x00/readme.txt | 0
configs/ts4800_defconfig | 27 ++++++++++
configs/ts5x00_defconfig | 4 +-
11 files changed, 185 insertions(+), 2 deletions(-)
create mode 100644 board/technologic/ts4800/genimage.cfg
create mode 100644 board/technologic/ts4800/linux.fragment
create mode 100644 board/technologic/ts4800/mbrboot.bin
create mode 100644 board/technologic/ts4800/patches/uboot/ts4800-add-CONFIG_SYS_FSL_ERRATUM_ESDHC_A001.patch
create mode 100644 board/technologic/ts4800/patches/uboot/ts4800-patch-env-to-boot-dts.patch
create mode 100755 board/technologic/ts4800/post-image.sh
rename board/{ts => technologic}/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg (100%)
rename board/{ts => technologic}/ts5x00/linux-3.17.config (100%)
rename board/{ts => technologic}/ts5x00/readme.txt (100%)
create mode 100644 configs/ts4800_defconfigSignature · 1 line
2.5.0
PATCH 1/2 board: rename ts to technologic
Other projects, such as Linux [1] and U-Boot [2], use "technologic" for this manufacturer. To be more consistent across all of them, rename the board/ts folder to board/technologic.
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/vendor-prefixes.txt
[2] http://git.denx.de/?p=u-boot.git;a=tree;f=board/technologic;hb=HEAD
---
.../{ts => technologic}/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg | 0
board/{ts => technologic}/ts5x00/linux-3.17.config | 0
board/{ts => technologic}/ts5x00/readme.txt | 0
configs/ts5x00_defconfig | 4 ++--
4 files changed, 2 insertions(+), 2 deletions(-)
rename board/{ts => technologic}/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg (100%)
rename board/{ts => technologic}/ts5x00/linux-3.17.config (100%)
rename board/{ts => technologic}/ts5x00/readme.txt (100%)board/technologic/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg renamed from board/ts/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg +0 -0
board/technologic/ts5x00/linux-3.17.config renamed from board/ts/ts5x00/linux-3.17.config +0 -0
board/technologic/ts5x00/readme.txt renamed from board/ts/ts5x00/readme.txt +0 -0
configs/ts5x00_defconfig +2 -2
@@ -7,14 +7,14 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_17=y # system BR2_TARGET_GENERIC_GETTY_PORT="ttyS1" -BR2_ROOTFS_OVERLAY="board/ts/ts5x00/fs-overlay" +BR2_ROOTFS_OVERLAY="board/technologic/ts5x00/fs-overlay" # kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.17.8" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/ts/ts5x00/linux-3.17.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/technologic/ts5x00/linux-3.17.config" BR2_LINUX_KERNEL_INSTALL_TARGET=y # rootfs
Signature · 1 line
2.5.0
Thomas Petazzoni
AppliedPATCH 1/2 board: rename ts to technologic
Hello,
Quoted 8 lines · Damien Riegel
Other projects, such as Linux [1] and U-Boot [2], use "technologic" for this manufacturer. To be more consistent across all of them, rename the board/ts folder to board/technologic.
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/vendor-prefixes.txt
[2] http://git.denx.de/?p=u-boot.git;a=tree;f=board/technologic;hb=HEADSigned-off-by Damien Riegel <[email protected]>
Quoted 9 lines
---
.../{ts => technologic}/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg | 0
board/{ts => technologic}/ts5x00/linux-3.17.config | 0
board/{ts => technologic}/ts5x00/readme.txt | 0
configs/ts5x00_defconfig | 4 ++--
4 files changed, 2 insertions(+), 2 deletions(-)
rename board/{ts => technologic}/ts5x00/fs-overlay/boot/syslinux/syslinux.cfg (100%)
rename board/{ts => technologic}/ts5x00/linux-3.17.config (100%)
rename board/{ts => technologic}/ts5x00/readme.txt (100%)Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 configs: add defconfig for TS-4800
In reply to Damien RiegelThis patch adds support for the TS-4800 SoM manufactured by Technologic Systems based on the Freescale i.MX515 SoC.
The TS-4800 is supported by mainline Linux as of 4.5. There are two patches for U-Boot. The first one modifies the default environment to more sane values. The second defines an errata that seems to affect the board. These patches will be sent upstream and hopefully they will be removed from Buildroot at some point.
mbrboot.bin is a MBR routine which was extracted from the image provided by Technologic Systems. Basically, it scans every partition with the 0xda type and copies the first file to a given offset, and then jump where the first file was copied to start its execution. In our case, we use it to load u-boot. This routine is loaded by the companion FPGA and the board won't be able to boot if this is missing.
A post-image script is provided to generate an image that can be "dd" directly to an SD card.
More details on the board here:
http://wiki.embeddedarm.com/wiki/TS-4800
--- board/technologic/ts4800/genimage.cfg | 37 ++++++++++++++ board/technologic/ts4800/linux.fragment | 3 ++ board/technologic/ts4800/mbrboot.bin | Bin 0 -> 446 bytes ...800-add-CONFIG_SYS_FSL_ERRATUM_ESDHC_A001.patch | 36 ++++++++++++++ .../uboot/ts4800-patch-env-to-boot-dts.patch | 55 +++++++++++++++++++++ board/technologic/ts4800/post-image.sh | 25 ++++++++++ configs/ts4800_defconfig | 27 ++++++++++ 7 files changed, 183 insertions(+) create mode 100644 board/technologic/ts4800/genimage.cfg create mode 100644 board/technologic/ts4800/linux.fragment create mode 100644 board/technologic/ts4800/mbrboot.bin create mode 100644 board/technologic/ts4800/patches/uboot/ts4800-add-CONFIG_SYS_FSL_ERRATUM_ESDHC_A001.patch create mode 100644 board/technologic/ts4800/patches/uboot/ts4800-patch-env-to-boot-dts.patch create mode 100755 board/technologic/ts4800/post-image.sh create mode 100644 configs/ts4800_defconfig
board/technologic/ts4800/genimage.cfg new file +37 -0
@@ -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 = 8M + } + + 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
@@ -0,0 +1,3 @@ +CONFIG_TOUCHSCREEN_TS4800=y +CONFIG_TS4800_WATCHDOG=y +CONFIG_TS4800_IRQ=y
board/technologic/ts4800/mbrboot.bin new file binary +0 -0
zcmd^%F$%&!6htRRVUY;hibzTe(G;R$l?w;~J%C5>02U!?8PLW$#!1ALLVsNU at cb zf5Sr1I~Z55;WUq7n76-0iX~%d%s7E_syLhqJ|3V3?5H?H&P~+*#eQm{Gj at Im#V<C z=m>SkB(;G0#Sz5pP+o6>O10o|h9JXR%h(oVGMwrrmR*#BmM1Z&(GnmWZU_=r}WD6 o`cQ8GPmc|xusIEMXGtiVnkQg)HL!~{-<t5T0kG{<${PQi51aE=0ssI2
literal 0
HcmV?d00001
board/technologic/ts4800/patches/uboot/ts4800-add-CONFIG_SYS_FSL_ERRATUM_ESDHC_A001.patch new file +36 -0
@@ -0,0 +1,36 @@ +From dd52f1df6da0c03c8a8367385a375d6abdf67b0b Mon Sep 17 00:00:00 2001 +From: Sebastien Bourdelin <[email protected]> +Date: Thu, 21 Apr 2016 11:49:31 -0400 +Subject: [PATCH] ts4800: add CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 + +This commit fixes the MMC data transactions timeout problem on the +TS4800. + +The changes introduced in the commit e978a31 on the timeout calculation +for the MMC data transactions has revealed there is something wrong with +the timeout setting of the eSDHC controller used in the IMX51. + +The IMX51 seems to be concerned by this erratum and without this change +the MMC driver is unable to do any transactions. + +Signed-off-by: Sebastien Bourdelin <[email protected]> +--- + include/configs/ts4800.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/configs/ts4800.h b/include/configs/ts4800.h +index fcc9d80..5e5e4d3 100644 +--- a/include/configs/ts4800.h ++++ b/include/configs/ts4800.h +@@ -63,6 +63,8 @@ + #define CONFIG_FSL_ESDHC + #define CONFIG_SYS_FSL_ESDHC_ADDR MMC_SDHC1_BASE_ADDR + ++#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 ++ + #define CONFIG_MMC + + #define CONFIG_CMD_MMC +-- +2.5.0 +
board/technologic/ts4800/patches/uboot/ts4800-patch-env-to-boot-dts.patch new file +55 -0
55 lines not on this page · raw message
board/technologic/ts4800/post-image.sh new file +25 -0
@@ -0,0 +1,25 @@ +#!/bin/bash +# +# Copyright (C) 2015 Savoir-faire Linux +# Post image generation script. + +IDIR="$1" + +BOARD_DIR="board/technologic/ts4800" +GENIMAGE_CFG_DEFAULT="${BOARD_DIR}/genimage.cfg" +GENIMAGE_CFG=${2:-$GENIMAGE_CFG_DEFAULT} +GENIMAGE_TMP=${BUILD_DIR}/.genimage_tmp + +cp -f ${BOARD_DIR}/mbrboot.bin ${IDIR}/ + +${HOST_DIR}/usr/bin/genimage \ + --config ${GENIMAGE_CFG} \ + --rootpath ${TARGET_DIR} \ + --tmppath ${GENIMAGE_TMP} \ + --inputpath $IDIR \ + --outputpath $IDIR + +ret=${?} +rm -rf ${GENIMAGE_TMP} +exit ${ret} +
configs/ts4800_defconfig new file +27 -0
@@ -0,0 +1,27 @@ +BR2_arm=y +BR2_cortex_a8=y +BR2_ARM_FPU_NEON=y +BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/board/technologic/ts4800/patches/" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_5=y +BR2_TOOLCHAIN_BUILDROOT_LOCALE=y +BR2_BINUTILS_VERSION_2_24_X=y +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0" +BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y +# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/technologic/ts4800/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(TOPDIR)/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_PACKAGE_FBTERM=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="ts4800" +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_SQUASHFS=y
Signature · 1 line
2.5.0
PATCH 2/2 configs: add defconfig for TS-4800
Hello,
Quoted 16 lines · Damien Riegel
This patch adds support for the TS-4800 SoM manufactured by Technologic Systems based on the Freescale i.MX515 SoC.
The TS-4800 is supported by mainline Linux as of 4.5. There are two patches for U-Boot. The first one modifies the default environment to more sane values. The second defines an errata that seems to affect the board. These patches will be sent upstream and hopefully they will be removed from Buildroot at some point.
mbrboot.bin is a MBR routine which was extracted from the image provided by Technologic Systems. Basically, it scans every partition with the
0xdatype and copies the first file to a given offset, and then jump where the first file was copied to start its execution. In our case, we use it to load u-boot. This routine is loaded by the companion FPGA and the board won't be able to boot if this is missing.
Quoted 7 lines
A post-image script is provided to generate an image that can be "dd" directly to an SD card.
More details on the board here:
http://wiki.embeddedarm.com/wiki/TS-4800Signed-off-by Damien Riegel <[email protected]>
I think you said on IRC you would post a new version of this patch, so I've marked this first version as "Changes Requested" in our patch tracking system. So don't forget to send a new version, otherwise we'll forget about it!
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 configs: add defconfig for TS-4800
Hello,
Quoted 10 lines · Thomas Petazzoni
Hello,
Quoted 3 lines · Damien Riegel
This patch adds support for the TS-4800 SoM manufactured by Technologic Systems based on the Freescale i.MX515 SoC.
...I think you said on IRC you would post a new version of this patch, so I've marked this first version as "Changes Requested" in our patch tracking system. So don't forget to send a new version, otherwise we'll forget about it!
You're right, I asked you to delay the integration of this patch because I got early feedbacks on IRC about one of the U-Boot patches (I was messing with CONDIG_LOADADDR and that was just wrong). I'll send the v2 in a few minutes!
Thank you,
Damien