Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40F07C77B78 for ; Wed, 3 May 2023 00:06:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFFF784727; Wed, 3 May 2023 02:06:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gateworks.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5CA1084751; Wed, 3 May 2023 02:06:05 +0200 (CEST) Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7F6D4846B2 for ; Wed, 3 May 2023 02:06:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gateworks.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tharvey@gateworks.com Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1pu00N-0059KV-HS; Wed, 03 May 2023 00:05:59 +0000 From: Tim Harvey To: sbabic@denx.de, Fabio Estevam Cc: u-boot@lists.denx.de, Tim Harvey Subject: [PATCH 0/5] allow boot firmware to go in user/boot0/boot1 Date: Tue, 2 May 2023 17:05:52 -0700 Message-Id: <20230503000557.2275982-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The Gateworks Venice board family uses a combination of imx8mm, imx8mn, and imx8mp SoC's. Because boot firmware for these are not binary compatible and have different flash offsets it is highly desirable to place boot firmware in an emmc boot partition instead of the current user hardware partition to minimize unintended corruption of boot firmware by flashing the wrong image or to the wrong location. This series of patches allows the same boot firmware to be placed in either boot0, boot1, or user hardware partition by detecting the boot device and adjusting env device as well as u-boot sector. Additionally the firmware script is updated to automate device, offset, and soc. Tim Harvey (5): board: gateworks: venice: dynamically determine U-Boot raw sector board: gateworks: venice: dynamically determine U-Boot env partition board: gateworks: venice: dynamically update the update_firmware script board: gateworks: venice: move env location board: gateworks: venice: update board doc to show other emmc parts board/gateworks/venice/spl.c | 15 +++++ board/gateworks/venice/venice.c | 86 +++++++++++++++++++++++++++ board/gateworks/venice/venice.env | 6 +- configs/imx8mm_venice_defconfig | 4 +- configs/imx8mn_venice_defconfig | 4 +- configs/imx8mp_venice_defconfig | 4 +- doc/board/gateworks/imx8mm_venice.rst | 4 +- doc/board/gateworks/imx8mn_venice.rst | 4 +- doc/board/gateworks/imx8mp_venice.rst | 4 +- include/configs/imx8mm_venice.h | 1 - include/configs/imx8mn_venice.h | 1 - include/configs/imx8mp_venice.h | 1 - 12 files changed, 119 insertions(+), 15 deletions(-) -- 2.25.1