All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Hoffmann <sho@relinux.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] Add support for Congatec QMX6
Date: Tue, 01 Jul 2014 11:02:35 +0200	[thread overview]
Message-ID: <53B2792B.8050001@relinux.de> (raw)
In-Reply-To: <1404204998-11780-1-git-send-email-sho@relinux.de>

I forgot one point, v4 will follow soon

Stephan
On 01.07.2014 10:56, Stephan Hoffmann wrote:
> 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 reporitory
>
> Signed-off-by: Stephan Hoffmann <sho@relinux.de>
> ---
> There has been a similar patch set from
> Lahoudere Fabien <fabien.lahoudere@openwide.fr> last year adding a patch
> to the freescale kernel repository, but it seems more logical to me to
> start from the board manufacturer's repo (which might not have been
> availeable at that time).
>
> Changes v1 -> v2
>   - fix whitespace errors
>
> Changes v2 -> v3
>   Fixes according to Peter Korsgaard's review
>   - removed unneeded boot options
>   - fix post build script
>   - add host uboot tools to defconfig
>   - fix readme.txt
>   - remove cpio from defconfig
> ---
>  board/congatec/qmx6/6q_bootscript.txt |  2 ++
>  board/congatec/qmx6/post-build.sh     |  7 +++++++
>  board/congatec/qmx6/readme.txt        | 36 +++++++++++++++++++++++++++++++++++
>  configs/qmx6_defconfig                | 13 +++++++++++++
>  4 files changed, 58 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..1382220
> --- /dev/null
> +++ b/board/congatec/qmx6/6q_bootscript.txt
> @@ -0,0 +1,2 @@
> +set bootargs console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait consoleblank=0
> +${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..5fc52b0
> --- /dev/null
> +++ b/board/congatec/qmx6/post-build.sh
> @@ -0,0 +1,7 @@
> +#!/bin/sh
> +
> +TARGET_DIR=$1
> +BOARD_DIR="$(dirname $0)"
> +MKIMAGE=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..d2e0dca
> --- /dev/null
> +++ b/board/congatec/qmx6/readme.txt
> @@ -0,0 +1,36 @@
> +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 do:
> +
> +	$ sudo dd if=output/images/rootfs.ext2 of=/dev/sdX1
> +
> +You can optionally extend the filesystem size to the whole partition:
> +
> +	$ sudo resize2fs /dev/sdX1
> +
> +You can also update the card image without completely rewriting it:
> +
> +	$ sudo mount /dev/sdX1 /mnt
> +	$ sudo tar xf output/images/rootfs.tar -C /mnt
> +	$ sudo umount /mnt
> +
> +Connect a terminal program to the rs232 connector marked "CONSOLE"
> +with baudrate set to 115200, 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..4a83b29
> --- /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_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_3=y
> +BR2_PACKAGE_HOST_UBOOT_TOOLS=y


-- 
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de Stephan at reLinux.de

      reply	other threads:[~2014-07-01  9:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  8:56 [Buildroot] [PATCH v3] Add support for Congatec QMX6 Stephan Hoffmann
2014-07-01  9:02 ` Stephan Hoffmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B2792B.8050001@relinux.de \
    --to=sho@relinux.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.