From patchwork Wed May 28 12:19:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Hoffmann X-Patchwork-Id: 353418 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 61B921400E2 for ; Wed, 28 May 2014 22:59:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2B79A32B00; Wed, 28 May 2014 12:59:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ZJwKKg5kv0E; Wed, 28 May 2014 12:59:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8B48331D3D; Wed, 28 May 2014 12:59:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5AE091BF857 for ; Wed, 28 May 2014 12:59:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 58C168961B for ; Wed, 28 May 2014 12:59:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7mVfYrD1cEE5 for ; Wed, 28 May 2014 12:59:45 +0000 (UTC) X-Greylist: delayed 00:40:36 by SQLgrey-1.7.6 Received: from relinux.info (relinux.info [84.200.83.24]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 17CA2889BB for ; Wed, 28 May 2014 12:59:45 +0000 (UTC) Received: from p5b0457bd.dip0.t-ipconnect.de ([91.4.87.189] helo=stephan-desktop.nowhere.de) by relinux.info with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Wpcp0-0004Ob-P8 for buildroot@buildroot.org; Wed, 28 May 2014 14:19:06 +0200 Received: from stephan by stephan-desktop.nowhere.de with local (Exim 4.82) (envelope-from ) id 1Wpcov-0007X5-Fi for buildroot@buildroot.org; Wed, 28 May 2014 14:19:01 +0200 From: Stephan Hoffmann To: buildroot@buildroot.org Date: Wed, 28 May 2014 14:19:01 +0200 Message-Id: <1401279541-28922-1-git-send-email-sho@relinux.de> X-Mailer: git-send-email 2.0.0.rc2 Subject: [Buildroot] [PATCH 1/1] Add support for Congatec QMX6 SoC X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Add support for the iMX6 based conga-QMX6 family of Qseven modules. This patch is based on Linux 3.0.35 from Congatec's kernel git reporitory Signed-off-by: Stephan Hoffmann --- There has been a similar patch set from Lahoudere Fabien last year adding a patch to the freescale kernel repository, but it seems more logical to me to start from the manufacturer's repo (which might not have been availeable at that time). board/congatec/qmx6/6q_bootscript.txt | 6 ++++++ board/congatec/qmx6/post-build.sh | 8 ++++++++ board/congatec/qmx6/readme.txt | 32 ++++++++++++++++++++++++++++++++ configs/qmx6_defconfig | 13 +++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 board/congatec/qmx6/6q_bootscript.txt create mode 100755 board/congatec/qmx6/post-build.sh create mode 100644 board/congatec/qmx6/readme.txt create mode 100644 configs/qmx6_defconfig diff --git a/board/congatec/qmx6/6q_bootscript.txt b/board/congatec/qmx6/6q_bootscript.txt new file mode 100644 index 0000000..0c9517d --- /dev/null +++ b/board/congatec/qmx6/6q_bootscript.txt @@ -0,0 +1,6 @@ +set bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p1 rootwait consoleblank=0 ; +setenv bootargs $bootargs video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 +setenv bootargs $bootargs video=mxcfb1:dev=lcd,CLAA-WVGA,if=RGB666 +setenv bootargs $bootargs fbmem=28M,10M +${fs}load mmc ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; echo "Error loading kernel image" + diff --git a/board/congatec/qmx6/post-build.sh b/board/congatec/qmx6/post-build.sh new file mode 100755 index 0000000..d2173a0 --- /dev/null +++ b/board/congatec/qmx6/post-build.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +TARGET_DIR=$1 +BOARD_DIR="$(dirname $0)" +MKIMAGE=$1/../host/usr/bin/mkimage + +$MKIMAGE -A arm -O linux -T script -C none -a 0 -e 0 -n "boot script" -d $BOARD_DIR/6q_bootscript.txt $TARGET_DIR/6q_bootscript + diff --git a/board/congatec/qmx6/readme.txt b/board/congatec/qmx6/readme.txt new file mode 100644 index 0000000..f038fef --- /dev/null +++ b/board/congatec/qmx6/readme.txt @@ -0,0 +1,32 @@ +This is the minimal buildroot support for the Congatec QMX6 Qseven CoM + +conga-QMX6 is based on the freescale iMX6 SoC. For more information please +have a look at http://www.congatec.com/products/qseven/conga-qmx6.html + +The configuration is based on the currently latest kernel release from +Congatec's git repository which is based on 3.0.35. The bootloader u-boot +is preconfigured on the CPU module and does not need to be replaced. + +To build the default configuration you only have to: + + make qmx6_defconfig && make + +You will need a microSD card of sufficient size and the first or only +partition configured as Linux type. + +To transfer the system to the card you have zwo options: + +1. $ sudo dd if=output/images/rootfs.ext2 of=/dev/sdX1 + +2. only once: sudo mkfs.ext3 /dev/sdX1 + $ sudo mount /dev/sdX1 /mnt + $ sudo tar xf output/images/rootfs.tar -C + $ sudo umount /mnt + +Connect a terminal program to the rs232 connector marked "CONSOLE", +insert the microSD card into the socket on the CPU module and power +the board to watch the system boot. + +Booting from the SD card slot on the base board is currently not +supported. + diff --git a/configs/qmx6_defconfig b/configs/qmx6_defconfig new file mode 100644 index 0000000..8cc8de3 --- /dev/null +++ b/configs/qmx6_defconfig @@ -0,0 +1,13 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/congatec/qmx6/post-build.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://git.congatec.com/arm/qmx6_kernel.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_3.0.35_4.1.0_QMX6_R1.1.2" +BR2_LINUX_KERNEL_DEFCONFIG="qmx6" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y