From patchwork Tue Jul 9 09:57:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1129673 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="e32KjL2X"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45jd675FBPz9sMr for ; Tue, 9 Jul 2019 19:57:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D637386246; Tue, 9 Jul 2019 09:57:29 +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 3NDcGvFR5Vzg; Tue, 9 Jul 2019 09:57:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BBB0F864E0; Tue, 9 Jul 2019 09:57:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 916B41BF29D for ; Tue, 9 Jul 2019 09:57:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8B4952047A for ; Tue, 9 Jul 2019 09:57:27 +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 MiUgYvr9Ihzq for ; Tue, 9 Jul 2019 09:57:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by silver.osuosl.org (Postfix) with ESMTPS id A1E432040C for ; Tue, 9 Jul 2019 09:57:26 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id y4so11704938wrm.2 for ; Tue, 09 Jul 2019 02:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Rosk/mNme2vVyU2VCggd5PaEBL1P2r6+qcZiCvNAJlk=; b=e32KjL2XbhiqwfudTTmnKhGE9zrJZw5PtRqHwsLgecHpCaOejzT167neQpVAyy2xRg VjtFRA8NgNOBdOANlS1PPdS5jaAxdFc9VJj7nQw2rhuAHEQ+WJrtlX4JKakfariH2gx0 EktYPMGDcrpZaBdx2D63uQf3asv0nF28KFQ+mu5IfqEK2h/5jVj/bu6EuV5T3BjRRU/R oFX+YS5p3NSB9hBbQtkiudigHxq9BRn21GoOElnKRcuVQN06YIa43rPBZ8hPl8iFygOk 78V9pO3VbiRIRMPz9x7Ju3L7+frQdOaUsG/4tKlz5DZGdWMyrpTrNW9yEsrQlxUbd7/4 qLzQ== 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; bh=Rosk/mNme2vVyU2VCggd5PaEBL1P2r6+qcZiCvNAJlk=; b=eqWloBI6GPF13cO8I/xMgRFwU+0ZA3xFW2R8JwUlr7464yFbhlxRioX8qeeLvfuSwE smOVKIVfKowSQ8dCjgsHluelIm/iBn8iO0Pu0QQe6FGb07XpWumJns4p6k9YexjycRpR Nfa1FJmlwkYRZmX+cNdo6VkxXufJNQKyqU6Ot+eEYKHDGO1NPOfmgo5j9wywVD08a/Yr SJURguDXNQptRX5NTw6TLViF2fUW2UISZD36i1olKGp0yC22J7N6d2zOLtdjFYSgopNh MNZoCCKhQ2Y2cRV0rNdSCsctKMx4PIcE3LjrpD7HKN7gog2Dqxu2xqXmKAemmwzaB61g ZhNQ== X-Gm-Message-State: APjAAAUOCaFwX0C34l8vWFeF9TWfN0HBPvMj31vug3JuRJ+QOYLVCvxY 5Y1c4oQdiGn6cCpN7tQEUd4oFHG9 X-Google-Smtp-Source: APXvYqzwqcQlSHlCJ+BM2DWNDtO+kA0oliTZ3FMgYFXPM3XNxlPBCuT4CUQ3wg20drq2qT5IHzOgsQ== X-Received: by 2002:a05:6000:10c1:: with SMTP id b1mr21296523wrx.126.1562666244813; Tue, 09 Jul 2019 02:57:24 -0700 (PDT) Received: from localhost.localdomain ([37.58.205.20]) by smtp.gmail.com with ESMTPSA id g25sm1846032wmk.39.2019.07.09.02.57.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 02:57:24 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Tue, 9 Jul 2019 11:57:02 +0200 Message-Id: <20190709095703.24229-1-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/2] board/freescale: Introduce UBOOTBIN in spl template X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joris Offouga MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For board like imx7d-pico u-boot.img change to u-boot-dtb.img in U-Boot v2019.07 so replace hard code u-boot.img with variable Signed-off-by: Joris Offouga --- .../common/imx/genimage.cfg.template_no_boot_part_spl | 4 ++-- board/freescale/common/imx/genimage.cfg.template_spl | 4 ++-- board/freescale/common/imx/post-image.sh | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl index 9cdecc6ce0..c29032572a 100644 --- a/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl +++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl @@ -17,9 +17,9 @@ image sdcard.img { offset = 1024 } - partition u-boot-img { + partition u-boot { in-partition-table = "no" - image = "u-boot.img" + image = "%UBOOTBIN%" offset = 69K } diff --git a/board/freescale/common/imx/genimage.cfg.template_spl b/board/freescale/common/imx/genimage.cfg.template_spl index 0b6e22864b..d2d810777b 100644 --- a/board/freescale/common/imx/genimage.cfg.template_spl +++ b/board/freescale/common/imx/genimage.cfg.template_spl @@ -26,9 +26,9 @@ image sdcard.img { offset = 1024 } - partition u-boot-img { + partition u-boot { in-partition-table = "no" - image = "u-boot.img" + image = "%UBOOTBIN%" offset = 69K } diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index 12756c63d5..ab51dc2098 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -66,6 +66,10 @@ uboot_image() echo "u-boot-dtb.imx" elif grep -Eq "^BR2_TARGET_UBOOT_FORMAT_IMX=y$" ${BR2_CONFIG}; then echo "u-boot.imx" + elif grep -Eq "^BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y$" ${BR2_CONFIG}; then + echo "u-boot-dtb.img" + elif grep -Eq "^BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y$" ${BR2_CONFIG}; then + echo "u-boot.img" fi } From patchwork Tue Jul 9 09:57:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1129674 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Cw2wlMBz"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45jd6C4pByz9sMr for ; Tue, 9 Jul 2019 19:57:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id ADC392047E; Tue, 9 Jul 2019 09:57:35 +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 9O+R5t722vc6; Tue, 9 Jul 2019 09:57:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8B82C2040C; Tue, 9 Jul 2019 09:57:33 +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 F2BD01BF29D for ; Tue, 9 Jul 2019 09:57:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EF8818742F for ; Tue, 9 Jul 2019 09:57:31 +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 S5C1NMgkH9VY for ; Tue, 9 Jul 2019 09:57:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id DFDB9873DE for ; Tue, 9 Jul 2019 09:57:30 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id g17so10153805wrr.5 for ; Tue, 09 Jul 2019 02:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FqYe9DJcuIIncKjN7SPF0voPR6ZXKJ7WR7+pXsDcZ5o=; b=Cw2wlMBzC9pFP/GqUmN/HbZpolhK5UClUxIjygfJBqL62s73Wo/EP+/L9pDHEU6u+F 1veFxa8Y1Gi4D6v5zeVDTLwtcGi1g50D9FnEsypyw5eXplSYJcRJlMgPHWB9LU/uurK3 GCw0N5J5JARcEOxmvypv4L7e4eDEqwY7uqlWfoIuNpKrAoQlrg3QIMMWbNQdjzX8QG/a EDiW9d8PmLL4fMh0128rICZXSarSeGDdPCuUE9x6J5hlcU2pOykaa80IdbvyFWndZLIM mGJ8vV40UrpTyPvRHL7niejTrlD2P794iLQBQM2uefAqLZyBQpGaFFGZR92Tc6BtMxRO tWLA== 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=FqYe9DJcuIIncKjN7SPF0voPR6ZXKJ7WR7+pXsDcZ5o=; b=q4zNvvANvHbSCjLH6vS57DiUwve0P5ai4wFlHOoE2eKn9wKBNW4Neb2AC8/kpo7RVQ zRJQ75lphej/PVotmidseol8AdMxxZTkV4vG0OX6splW/i/pHSazrmyk7EqNfYUHRdt/ OwoJFYsl4JMPjQpagQbwP1oCNmFMIm3A+Iolx2IvgDj1Ku07zb2DQYkM0jTZI7blStFw BxCqf9Aso3OfDmA/+F07HCqr7gmhMTQNOl5OEQ1nwC50DbFlhGInSEx7lHymOU5y62+g qO2KDRin87TSyoEfJC88KhHQ5tJv0Q8g9O+YtaBrzyyBHkG3AZAEMWX3Qd213XM3gK90 Z2NA== X-Gm-Message-State: APjAAAVB8De+0Up6hnE9GPOhkarBSX5uWPhEQkCGHKXZ4T5WhnwMAmcC t5a2k1qeBuKh6TZ+nA9cT7fDN/NA X-Google-Smtp-Source: APXvYqwnVm7tMUI+WZrBUCxubkS/qaSEQbgA4eVlKEocdFrPxzknx8qyGrlY+PzChvJQg2Ij/qsbiw== X-Received: by 2002:adf:cd04:: with SMTP id w4mr3352612wrm.230.1562666249081; Tue, 09 Jul 2019 02:57:29 -0700 (PDT) Received: from localhost.localdomain ([37.58.205.20]) by smtp.gmail.com with ESMTPSA id g25sm1846032wmk.39.2019.07.09.02.57.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 02:57:28 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Tue, 9 Jul 2019 11:57:03 +0200 Message-Id: <20190709095703.24229-2-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709095703.24229-1-offougajoris@gmail.com> References: <20190709095703.24229-1-offougajoris@gmail.com> Subject: [Buildroot] [PATCH 2/2] configs/imx7dpico: Bump U-Boot to 2019.07 and kernel to version 5.1.16. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joris Offouga , Fabio Estevam MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Also - adjust the U-Boot binary name after DM conversion. - add missing notes about flashing U-Boot and SPL Signed-off-by: Joris Offouga --- board/technexion/imx7dpico/readme.txt | 55 ++++++++++++++++++++++++++- configs/imx7dpico_defconfig | 6 +-- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/board/technexion/imx7dpico/readme.txt b/board/technexion/imx7dpico/readme.txt index 1b9e80a0fd..53197d458d 100644 --- a/board/technexion/imx7dpico/readme.txt +++ b/board/technexion/imx7dpico/readme.txt @@ -20,10 +20,63 @@ You will find in output/images/ the following files: - rootfs.ext4 - rootfs.tar - sdcard.img - - u-boot.img + - u-boot-dtb.img - SPL - zImage +Flash U-Boot and SPL +===== + +Note: This method is convenient for development purposes. +If the eMMC has already a U-Boot flashed with DFU support then +the user can go to step 2 below in order to update U-Boot. + +Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide +page 3) + +Connect a USB to serial adapter between the host PC and pico. + +Connect a USB cable between the OTG pico port and the host PC. + +Note: Some computers may be a bit strict with USB current draw and will +shut down their ports if the draw is too high. The solution for that is +to use an externally powered USB hub between the board and the host computer. + +Open a terminal program such as minicom. + +Copy SPL and u-boot-dtb.img to the imx_usb_loader folder. + +Load the SPL binary via USB: + +$ sudo ./imx_usb SPL + +Load the u-boot-dtb.img binary via USB: + +$ sudo ./imx_usb u-boot-dtb.img + +Then U-Boot starts and its messages appear in the console program. + +Use the default environment variables: + +=> env default -f -a +=> saveenv + +Run the DFU agent so we can flash the new images using dfu-util tool: + +=> dfu 0 mmc 0 + +Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC: + +$ sudo dfu-util -D SPL -a spl + +$ sudo dfu-util -D u-boot-dtb.img -a u-boot + +Remove power from the pico board. + +Put pico board into normal boot mode. + +Power up the board and the new updated U-Boot should boot from eMMC. + Flash the eMMC ============== diff --git a/configs/imx7dpico_defconfig b/configs/imx7dpico_defconfig index a5d41657f1..151b7fd65a 100644 --- a/configs/imx7dpico_defconfig +++ b/configs/imx7dpico_defconfig @@ -12,7 +12,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttymxc4" # kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.1.6" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.1.16" BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7d-pico-pi" @@ -25,8 +25,8 @@ BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="SPL" BR2_TARGET_UBOOT_BOARDNAME="pico-pi-imx7d" BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" -BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07" +BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y # wifi firmware for brcm43439 BR2_PACKAGE_LINUX_FIRMWARE=y