From patchwork Thu Jul 19 07:32:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 946079 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="n/6NxGD0"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WQqm1mDSz9s1R for ; Thu, 19 Jul 2018 17:38:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5CAA88E78; Thu, 19 Jul 2018 07:38:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PBACQHvr9uKF; Thu, 19 Jul 2018 07:38:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id ED92088E4C; Thu, 19 Jul 2018 07:38:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B9EC71C0AD2 for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B826587587 for ; Thu, 19 Jul 2018 07:38:36 +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 2KpFRxE74Slv for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) X-Greylist: delayed 00:05:33 by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 08B1A8740A for ; Thu, 19 Jul 2018 07:38:36 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id c4-v6so6979890wrs.12 for ; Thu, 19 Jul 2018 00:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=17QKJTkHtHFohSs7wASEWBhJpcnjrb8B41gMna7ESEs=; b=n/6NxGD0s0wGCzLepKW3HismUW7ZhvPgFOBdKFdN+WkZNx5yT2gMSHrp4fo0eM5nSj yDQ4FbQTktqKtQ+y2KHWhyoDv637s6lMAgMq8yN4x0Rki1uE+YSaCc02KAumCeWuoQRN I8MxIW7jh/N7qEScUDvmtRbS1bq0wsdXmUB+z2yY4jKbS1YOiN2fA2tX+sV9BI3xRLpD xsU+IX+z1/siUqrtkcMjNZDIAmMLXtqTVVr8wAyV3LbHnnoM81el/NasOrUIf5hTttbf eNWp3z7jpdFCkDHFYUyszZAzhTzcd/ZBJiYhl4F5kfHDQKJXIYybXc/wWcbEgR096B4H CNYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=17QKJTkHtHFohSs7wASEWBhJpcnjrb8B41gMna7ESEs=; b=sP+tmKbB+7ISPdWp+9qAAGhFfYgUy1N91UnEA23qGop7NULyhYalovN+xh9ZQcV1PO tEgffHX6hCWHSkl9L0Lfypa6wsfxQNzvbBjYz5nbYxx41AEK7QwNwCNptsQwkUhd57xx WtglH8RoQ/4wv6HrIAAwn1nPJCmlRanGbjuI0pOF/CQMt0RwFtTVjhXTjDc0mXuVH8Jv CkkbnUBADeOIBqYHBrIT54mRt5f589CtGoxpgLS/8ebKr4KkptA1tOSui0V1S9YZCujw JDCihn05F5h2MXEwo4XkVilk9L29VdPtItkDKTfAleMnavNgqRUjaWuu49GFZ1K2pxvG duBQ== X-Gm-Message-State: AOUpUlHKwHjjqol8qvT7CVjxMUuM45Zd5spP9khce0jCWFNUUaZUJqR+ mV3sqk6lfLt+0f0PTUPjy5+AezaeVm0= X-Google-Smtp-Source: AAOMgpedjGc9tR4LBLTaV0VfqjimCH99ZbtHYGAs73jDXbUGfsFqiGmjlzGqiD2TfJewttJ5bHB/Lw== X-Received: by 2002:adf:c4f0:: with SMTP id o45-v6mr6475938wrf.173.1531985582550; Thu, 19 Jul 2018 00:33:02 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id 131-v6sm6260466wmm.31.2018.07.19.00.33.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 00:33:01 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 09:32:49 +0200 Message-Id: <20180719073253.22433-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719073253.22433-1-gary.bisson@boundarydevices.com> References: <20180719073253.22433-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 1/5] board/freescale/common/imx: make imx8-bootloader-prepare more generic X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" Allow user to override the hardcoded dtb name by using BR2_ROOTFS_POST_SCRIPT_ARGS. Signed-off-by: Gary Bisson --- .../freescale/common/imx/imx8-bootloader-prepare.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/board/freescale/common/imx/imx8-bootloader-prepare.sh b/board/freescale/common/imx/imx8-bootloader-prepare.sh index 2648147ab0..ce2c3405a0 100755 --- a/board/freescale/common/imx/imx8-bootloader-prepare.sh +++ b/board/freescale/common/imx/imx8-bootloader-prepare.sh @@ -2,9 +2,17 @@ main () { - # Currently we support imx8mqevk. + if [ $# -le 1 ]; then + UBOOT_DTB=${BINARIES_DIR}/fsl-imx8mq-evk.dtb + else + UBOOT_DTB=$2 + fi + if [ ! -e $UBOOT_DTB ]; then + echo "ERROR: couldn't find $UBOOT_DTB" + exit 1 + fi cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin - BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot.bin ${HOST_DIR}/bin/mkimage_fit_atf.sh ${BINARIES_DIR}/fsl-imx8mq-evk.dtb > ${BINARIES_DIR}/u-boot.its + BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot.bin ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb rm -f ${BINARIES_DIR}/u-boot.its From patchwork Thu Jul 19 07:32:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 946081 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="1sLMfFIe"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WQtb0d8wz9s1R for ; Thu, 19 Jul 2018 17:41:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4B01F88F2D; Thu, 19 Jul 2018 07:41:08 +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 qYJmXj6CulsS; Thu, 19 Jul 2018 07:41:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id AD17288F3E; Thu, 19 Jul 2018 07:41:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5C0EE1C0AD2 for ; Thu, 19 Jul 2018 07:41:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5874789DFA for ; Thu, 19 Jul 2018 07:41:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id THQETRftqcB0 for ; Thu, 19 Jul 2018 07:41:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id 881A089060 for ; Thu, 19 Jul 2018 07:41:05 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id g6-v6so7019370wrp.0 for ; Thu, 19 Jul 2018 00:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aN88+Iie6Pvd9JitKz5fQV8wEnk+tO1ze5snacAzPVE=; b=1sLMfFIePgfAFbnVmfbh9VBJzWaly8GVF7R2M1cNh5PUl9+ltZxNq6WwTiALF0akH9 wi647//yKX9F1Nj/4ymS3Ly8srlEGXdT13afIcqTl7cLFkmZpkjDfag4+9ftQY7CGuhs S07oO1Dfha5aARXTq9q7OSIyAkv82Dd75801KrDIj9r/vubw6fNiMuQaaf0lSWKYxhAv mqYv780XogqU8JAoa8LPm0XlNyryjhDg4/KVBJDkta2ex/ZDOcflkRa31B8yHLM9JNjG GzYaLAD80/bTLuoGniRbklRUVGbO3CZtdKGUGNKZT0QggR4eVjTYanExphrhxkg4bk8S grJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aN88+Iie6Pvd9JitKz5fQV8wEnk+tO1ze5snacAzPVE=; b=eTJP6RDdbAc8PtjoVUIF351+KwvQAk7G1nGkMQw0nqpLE+6MP/YbXu9DDrumasdZ1Z e34DLPINO+0xcswootzxOSD2nLq2YwnGnmXsLIaQ8uCx2rtULrRrXwfRHn+xhu1kgTxF e9h20eSJ9DpNTuYv8n26EHkQPI2uG+ce3VM7Gd5vTcDV0d+SsDHsg3MjvHgk/r4ZRG2V yw6akDSfRp/JfcAEM61ZtzzKqwWZ9WDOrsG/3cBtBQv0z5TgJicLCgDQ8gJ54Mc7ohzs v8XifIaHkCPusgPnObdI9wTisg97hJk2VupLFl3dYryXuNGk3R9N/buI+12CBMWvyo0L cz8w== X-Gm-Message-State: AOUpUlF+enasMOCjJ5afArWtIjZsKUrthZYcW4YCttr5Zyc5Hh/P+idp /nbYuF1DhqouFMM3XpAJbfuBSzAU X-Google-Smtp-Source: AAOMgpcPh6H6xQLEKO90+A0BLfJtfJ4IF8MrTYMWPhd8JmfMcgfNod1z9aZHoz6pznoB14oqDMabfQ== X-Received: by 2002:adf:ea0a:: with SMTP id q10-v6mr6604931wrm.224.1531985583671; Thu, 19 Jul 2018 00:33:03 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id 131-v6sm6260466wmm.31.2018.07.19.00.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 00:33:02 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 09:32:50 +0200 Message-Id: <20180719073253.22433-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719073253.22433-1-gary.bisson@boundarydevices.com> References: <20180719073253.22433-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 2/5] board/boundarydevices: update post-build.sh for i.MX8MQ platforms X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" - Making sure to use proper ARCH for mkimage command - Remove obsolete 6x_bootscript/6x_upgrade references - Copy bootloader as u-boot. Signed-off-by: Gary Bisson --- board/boundarydevices/common/post-build.sh | 28 ++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/board/boundarydevices/common/post-build.sh b/board/boundarydevices/common/post-build.sh index b8abb26540..161ec0643f 100755 --- a/board/boundarydevices/common/post-build.sh +++ b/board/boundarydevices/common/post-build.sh @@ -6,20 +6,24 @@ # BOARD_DIR="$(dirname $0)" +UBOOT_DEFCONFIG="$(grep BR2_TARGET_UBOOT_BOARD_DEFCONFIG ${BR2_CONFIG} | sed 's/.*\"\(.*\)\"/\1/')" + +if grep -Eq "^BR2_aarch64=y$" ${BR2_CONFIG}; then + MKIMAGE_ARCH=arm64 + UBOOT_BINARY=imx8-boot-sd.bin +else + MKIMAGE_ARCH=arm + UBOOT_BINARY=u-boot.imx +fi # bd u-boot looks for standard bootscript -install -m 0644 -D $BINARIES_DIR/boot.scr $TARGET_DIR/boot/ -# legacy 6x_bootscript script -$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ --n "boot script" -d $BOARD_DIR/6x_bootscript.txt $TARGET_DIR/6x_bootscript +$HOST_DIR/bin/mkimage -A $MKIMAGE_ARCH -O linux -T script -C none -a 0 -e 0 \ + -n "boot script" -d $BOARD_DIR/boot.cmd $TARGET_DIR/boot/boot.scr # u-boot / update script for bd upgradeu command -if [ -e $BINARIES_DIR/u-boot.imx ]; -then - install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx - $HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ - -n "upgrade script" -d $BOARD_DIR/upgrade.cmd $TARGET_DIR/upgrade.scr - # legacy 6x_upgrade script - $HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ - -n "upgrade script" -d $BOARD_DIR/6x_upgrade.txt $TARGET_DIR/6x_upgrade +if [ -e $BINARIES_DIR/$UBOOT_BINARY ]; then + install -D -m 0644 $BINARIES_DIR/$UBOOT_BINARY \ + $TARGET_DIR/u-boot.$UBOOT_DEFCONFIG + $HOST_DIR/bin/mkimage -A $MKIMAGE_ARCH -O linux -T script -C none -a 0 -e 0 \ + -n "upgrade script" -d $BOARD_DIR/upgrade.cmd $TARGET_DIR/upgrade.scr fi From patchwork Thu Jul 19 07:32:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 946080 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="gZcH6p4i"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WQs03njTz9s1R for ; Thu, 19 Jul 2018 17:39:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CD2E389CC2; Thu, 19 Jul 2018 07:39:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2sMz7q0YKFQ2; Thu, 19 Jul 2018 07:39:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C445289C3E; Thu, 19 Jul 2018 07:39:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3DE4E1C0AD2 for ; Thu, 19 Jul 2018 07:39:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3B1DF89DCE for ; Thu, 19 Jul 2018 07:39:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id II-94wPhsdxm for ; Thu, 19 Jul 2018 07:39:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5017689060 for ; Thu, 19 Jul 2018 07:39:41 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id b15-v6so6986095wrv.10 for ; Thu, 19 Jul 2018 00:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qKLWXQ5WfoQ+DB9I8N5L3n8QpiDurTEWAlJyR5WNRnU=; b=gZcH6p4iQZez4H+1GSZ6NTEbfQEm+oTb4d6bbrwWqQZvP/p/3BLKWFPpgQ1VUFTUlD LfpnDhn1IsOElRb9gQ+2R3nK31iNzjwmbX8B+1NVR8Z9+W3WcXdLoLs4N1ZI23C/7kn+ LvruNQnLwPsHKcFI4JGEtHfhbDfD9B4cZpVEhQrsU+s7Nv51cRKfnrao/qWOsr64VmUt 2PcY6dmHAetY2LdpzGy9hgjeIiVfBXrjYSpJlXWap3lz2WAnEjyLL6ZjXjamjQRkZSLo tJEY/j6DcdLMtQTOmq0msdKzh2s3ha88qZ5kmbZrPsxrfhubG55/ahYZ3pHRfFyJPmAr tbZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qKLWXQ5WfoQ+DB9I8N5L3n8QpiDurTEWAlJyR5WNRnU=; b=o8cjhHcgNvXKEEmLJaAFZhrJRWsRyE+sv2km5dQS5P/SIgAnk/F8cM5TBj/GTxw+hP wfE1EwPpzXfvLfjiyTSNbphzo3tjlZHK7HXEmkGYgDKuBxVbmQUJQs4UDck3HGBLCgzn N/ZiK4nynfe6/17VkX7NvZFDoyGYxmljC+yQ2fHp2qZGCZHsvjSq3Nb2XV8L7S+I1M4u hKbzCvtuH5b0qTzIUIVx2Fm+Zf8rgxBCoxguaak7ZU9UqTLm9mrDbl2FPu9jpTBRLNIW 0tqHIXLdN8v3MZ1bsPbGYpsBNbbCqSj9LI6Cjl5ehWHcQsj7SlrCtasknW+QYo5JUO8+ 5M6A== X-Gm-Message-State: AOUpUlH3L8h1PMtSsL3dYArqvRcN82x66yGL8XaBNpnUtN7Zxdieh5c7 ZoDWLzJPIZLK/JNJEPLFNptKeOpb X-Google-Smtp-Source: AAOMgpfui+XxWEYAPMpEbPzzDcNVfXQ2lw1u0HWGXZwGDEdkVRpBntYaSVCvP48hWumF86dqwOaD0w== X-Received: by 2002:adf:ec04:: with SMTP id x4-v6mr6141182wrn.245.1531985584555; Thu, 19 Jul 2018 00:33:04 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id 131-v6sm6260466wmm.31.2018.07.19.00.33.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 00:33:03 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 09:32:51 +0200 Message-Id: <20180719073253.22433-4-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719073253.22433-1-gary.bisson@boundarydevices.com> References: <20180719073253.22433-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 3/5] board/boundarydevices: remove obsolete u-boot scripts X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" - 6x_bootscript/6x_upgrade have been deprecated for more than a year Signed-off-by: Gary Bisson --- .../boundarydevices/common/6x_bootscript.txt | 131 ------------------ board/boundarydevices/common/6x_upgrade.txt | 69 --------- 2 files changed, 200 deletions(-) delete mode 100644 board/boundarydevices/common/6x_bootscript.txt delete mode 100644 board/boundarydevices/common/6x_upgrade.txt diff --git a/board/boundarydevices/common/6x_bootscript.txt b/board/boundarydevices/common/6x_bootscript.txt deleted file mode 100644 index af5822a88b..0000000000 --- a/board/boundarydevices/common/6x_bootscript.txt +++ /dev/null @@ -1,131 +0,0 @@ -setenv bootargs '' - -if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then - a_script=0x80800000 - a_zImage=0x80800000 - a_fdt=0x83000000 - m4='' - if itest.s "x1" == "x$m4enabled" ; then - run m4boot; - m4='-m4'; - fi -else - a_script=0x10800000 - a_zImage=0x10800000 - a_fdt=0x13000000 -fi - -setenv initrd_high 0xffffffff -if itest.s "x" == "x${dtbname}" ; then - if itest.s x6SOLO == "x${cpu}" ; then - dtbname=imx6dl-${board}.dtb; - elif itest.s x6DL == "x${cpu}" ; then - dtbname=imx6dl-${board}.dtb; - elif itest.s x6QP == "x${cpu}" ; then - dtbname=imx6qp-${board}.dtb; - elif itest.s x6SX == "x${cpu}" ; then - dtbname=imx6sx-${board}${m4}.dtb; - elif itest.s x7D == "x${cpu}" ; then - dtbname=imx7d-${board}${m4}.dtb; - else - dtbname=imx6q-${board}.dtb; - fi -fi - -if load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then - env import -t ${a_script} ${filesize} -fi - -if itest.s x == x${bootdir} ; then - bootdir=/boot/ -fi - -if itest.s x${bootpart} == x ; then - bootpart=1 -fi - -if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname} ; then - fdt addr ${a_fdt} - setenv fdt_high 0xffffffff -else - echo "!!!! Error loading ${bootdir}${dtbname}"; - exit; -fi - -cmd_xxx_present= -fdt resize -if itest.s "x" != "x${cmd_custom}" ; then - run cmd_custom - cmd_xxx_present=1; -fi - -if itest.s "x" != "x${cmd_hdmi}" ; then - run cmd_hdmi - cmd_xxx_present=1; - if itest.s x == x${allow_noncea} ; then - setenv bootargs ${bootargs} mxc_hdmi.only_cea=1; - echo "only CEA modes allowed on HDMI port"; - else - setenv bootargs ${bootargs} mxc_hdmi.only_cea=0; - echo "non-CEA modes allowed on HDMI, audio may be affected"; - fi -fi - -if itest.s "x" != "x${cmd_lcd}" ; then - run cmd_lcd - cmd_xxx_present=1; -fi -if itest.s "x" != "x${cmd_lvds}" ; then - run cmd_lvds - cmd_xxx_present=1; -fi -if itest.s "x" != "x${cmd_lvds2}" ; then - run cmd_lvds2 - cmd_xxx_present=1; -fi - -if itest.s "x" == "x${cmd_xxx_present}" ; then - echo "!!!!!!!!!!!!!!!!" - echo "warning: your u-boot may be outdated, please upgrade" - echo "!!!!!!!!!!!!!!!!" -fi - -setenv bootargs "${bootargs} console=${console},115200 vmalloc=400M consoleblank=0 rootwait fixrtc" - -if test "sata" = "${dtype}" ; then - setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ; -elif test "usb" = "${dtype}" ; then - setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ; -else - setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bootpart}" -fi - -if itest.s "x" != "x${disable_giga}" ; then - setenv bootargs ${bootargs} fec.disable_giga=1 -fi - -if itest.s "x" != "x${wlmac}" ; then - setenv bootargs ${bootargs} wlcore.mac=${wlmac} - setenv bootargs ${bootargs} wlan.mac=${wlmac} -fi - -if itest.s "x" != "x${gpumem}" ; then - setenv bootargs ${bootargs} galcore.contiguousSize=${gpumem} -fi - -if itest.s "x" != "x${cma}" ; then - setenv bootargs ${bootargs} cma=${cma} -fi - -if itest.s "x" != "x${show_fdt}" ; then - fdt print / -fi - -if itest.s "x" != "x${show_env}" ; then - printenv -fi - -if load ${dtype} ${disk}:${bootpart} ${a_zImage} ${bootdir}/zImage ; then - bootz ${a_zImage} - ${a_fdt} -fi -echo "Error loading kernel image" diff --git a/board/boundarydevices/common/6x_upgrade.txt b/board/boundarydevices/common/6x_upgrade.txt deleted file mode 100644 index e012ff97ac..0000000000 --- a/board/boundarydevices/common/6x_upgrade.txt +++ /dev/null @@ -1,69 +0,0 @@ -if itest.s a$uboot_defconfig == a; then - echo "Please set uboot_defconfig to the appropriate value" - exit -fi - -offset=0x400 -a_uImage1=0x12000000 -a_uImage2=0x12400000 - -if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then - a_uImage1=0x82000000 - a_uImage2=0x82400000 -fi - -setenv stdout serial,vga -echo "check U-Boot" ; - -if load ${dtype} ${disk}:1 ${a_uImage1} u-boot.$uboot_defconfig ; then -else - echo "No U-Boot image found on SD card" ; - exit -fi -echo "read $filesize bytes from SD card" ; -if sf probe || sf probe || sf probe 1 27000000 || sf probe 1 27000000 ; then - echo "probed SPI ROM" ; -else - echo "Error initializing EEPROM" ; - exit -fi ; -if sf read ${a_uImage2} $offset $filesize ; then -else - echo "Error reading boot loader from EEPROM" ; - exit -fi -if cmp.b ${a_uImage1} ${a_uImage2} $filesize ; then - echo "------- U-Boot versions match" ; - exit -fi -echo "Need U-Boot upgrade" ; -echo "Program in 5 seconds" ; -for n in 5 4 3 2 1 ; do - echo $n ; - sleep 1 ; -done -echo "erasing" ; -sf erase 0 0xC0000 ; - -# two steps to prevent bricking -echo "programming" ; -setexpr a1 ${a_uImage1} + 0x400 -setexpr o1 ${offset} + 0x400 -setexpr s1 ${filesize} - 0x400 -sf write ${a1} ${o1} ${s1} ; -sf write ${a_uImage1} $offset 0x400 ; - -echo "verifying" ; -if sf read ${a_uImage2} $offset $filesize ; then -else - echo "Error re-reading EEPROM" ; - exit -fi -if cmp.b ${a_uImage1} ${a_uImage2} $filesize ; then -else - echo "Read verification error" ; - exit -fi -while echo "---- U-Boot upgraded. reset" ; do - sleep 120 -done From patchwork Thu Jul 19 07:32:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 946076 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="l4TbBNMB"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WQjQ6RGHz9s1R for ; Thu, 19 Jul 2018 17:33:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6A5B888F54; Thu, 19 Jul 2018 07:33:12 +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 mKYHVzCIXqff; Thu, 19 Jul 2018 07:33:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CDE6388F56; Thu, 19 Jul 2018 07:33:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 984E91C0AD2 for ; Thu, 19 Jul 2018 07:33:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 956C189CBC for ; Thu, 19 Jul 2018 07:33:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id an4JIc7XZxop for ; Thu, 19 Jul 2018 07:33:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 57CA089CBB for ; Thu, 19 Jul 2018 07:33:08 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id a19-v6so5258253wmb.2 for ; Thu, 19 Jul 2018 00:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iibH0nBPLF5GH8iKt2TEeT1747xJuHLC+l/CZHKXyuM=; b=l4TbBNMBxEe8VnYDJW6ob6zEaW/7X/FsQBaOjeZL/WubJBAS8zEaStVaOkYVD1+5wF 5fmlQs7pQR3aNKhLFlBk9axldJQ/WecmU3BM4JKS9Yee4k0cm3PQHf2qoWQcvf3sTjOg TsUhYCtBDek5fjD7kmGavsxbMPbvdbl9SQlNNaiUBls4sWW1eOro6b4zuR1YSYagTWqg 26fd6j143ItLK/VMLaNS5bMp+q6+00EjeUWll0XNO71+MSItZamYILjMSPtKZV67UEVN gp2hSU0E4s3wAkReXe3FtjyQy5C9G1wR1U53WJNBgVXfEiiSU8opSLiuTGm3CPnIKmU0 +iUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iibH0nBPLF5GH8iKt2TEeT1747xJuHLC+l/CZHKXyuM=; b=Q+tUesmAaNKHIwKvwygGCc7U2jtFdYvqYzk0xiYQoP5ZVgeBsHYi35Zo+pilft1JOn ktB/AEKjID7GdklG5W14OYEWrHSeRAl1lQbs7J8HPEc+dqDoAOjmFwG6TA1RiytzEdXF 1gwh7ZtjPPLbHVH6lHqC6eGYGY5300/roYMl22kybh7fkvxOlSrijoFovVgaCKzY/4R6 Bty+3TCrQst3tzZPKfAtqblJ7CtgX70I2ntGJmoA2CGfZCC+sheqlt9PkqQypXx+fhgn 8d6na25rs0TjoB6PrtEvg14DIHu6UtoXcj+VQriydYTxe01ETu/xDTA5k/0SGT/XRVop WU5w== X-Gm-Message-State: AOUpUlEtAj/ZI1NWaH3HRAwhefUqdfMgqgmqe6XcXiropC/+/m6Kc5rv TfGIzpMrG3ADNqBalwk4ofoEDg6V X-Google-Smtp-Source: AAOMgpca/hIcMXzlj5fUR2V1M+rkDhVoTxQv6YFII03dgady/T56x6wsz+5VdwMWbLyiP5dWkqtnag== X-Received: by 2002:a1c:d892:: with SMTP id p140-v6mr3719970wmg.76.1531985586749; Thu, 19 Jul 2018 00:33:06 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id 131-v6sm6260466wmm.31.2018.07.19.00.33.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 00:33:05 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 19 Jul 2018 09:32:53 +0200 Message-Id: <20180719073253.22433-6-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719073253.22433-1-gary.bisson@boundarydevices.com> References: <20180719073253.22433-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 5/5] configs/nitrogen8m: Add new defconfig X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" NXP i.MX8MQ based SBC with 2GB of LPDDR4 and 8GB eMMC. More details on the platform here: https://boundarydevices.com/product/nitrogen8m Signed-off-by: Gary Bisson --- configs/nitrogen8m_defconfig | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 configs/nitrogen8m_defconfig diff --git a/configs/nitrogen8m_defconfig b/configs/nitrogen8m_defconfig new file mode 100644 index 0000000000..9b758f0b97 --- /dev/null +++ b/configs/nitrogen8m_defconfig @@ -0,0 +1,54 @@ +# Architecture +BR2_aarch64=y +BR2_cortex_a53=y + +# System +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/boundarydevices/common/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/common/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mq-nitrogen8m.dtb" +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_IMX_MKIMAGE=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Linux headers same as kernel, a 4.9 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y + +# DDR training binaries +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y +BR2_PACKAGE_FIRMWARE_IMX=y + +# ARM Trusted Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y +# Latest revision of branch boundary-imx_4.9.51_imx8m_ga +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/imx-atf/archive/67c68675.tar.gz" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mq" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen8m" +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y +# Latest revision of branch boundary-imx_v2017.03_4.9.51_imx8m_ga +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/b661d854.tar.gz" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_SPL=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +# Latest revision of branch boundary-imx_4.9.x_2.0.0_ga +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/7777e14d.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="boundary" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mq-nitrogen8m freescale/imx8mq-nitrogen8m-m4"