From patchwork Tue Jun 15 23:38:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1492532 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=L3OFXk+1; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=OdU8r0N8; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Q061qNvz9sWl for ; Wed, 16 Jun 2021 09:44:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C90182024; Wed, 16 Jun 2021 01:44:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800667; bh=afLFOiZiaQVQqwET9MhxfKLSPZEk53+/fqOWNVztQK4=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=L3OFXk+1PpajtKca7mYbzqU/9+fEO/iUynQ0ArpJWXZ04hvukeLVh3wd/7jgezIPJ UoOKnNfHq2aSNcTtBNyv4hH9LjdfO8SokouMh0rwGRYBbv8crOne/crgOwmW9eKX06 1yNVQFT6kDg3xPgHhwImtrEdG+UzHpV3SnURSaTL2LbnA+s3pJgG1Pa+42wdp5clSA CWUl7X6f+B8qbFnZiWzdWcl9WJ83KLdfLbJDRP1tiYuOs/5Am3GjBZtd1opepl2ZYw pYc53VTNGHUFpAU6Z73LlSw/45Zzd06+DEQpLaViypVAxYEVhDk38D4PF2CJrtFMK1 lHbbQlV5QvEOg== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:2c06:9033:1243:e52d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id DACD181671; Wed, 16 Jun 2021 01:38:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800333; bh=afLFOiZiaQVQqwET9MhxfKLSPZEk53+/fqOWNVztQK4=; h=From:To:Cc:Subject:Date:From; b=OdU8r0N895fjBqaDZImLTY+CP//dzvWshgUNY1lvHaXLsqinlPFtxMj6f+VtJTIto vGakrvvA6ILUuYIMM0EwSt7uIl79BzAZYM3qNR58Td/u4E/XQILOrK4vBK80qx1ycF 9QGcjxklVpF9D8Bn+Uc7pgPDrg3YQ8GETvqbfwN0Acu0joBGJV3fz/uKY0fFAZ3wQi nlCDr+88/+sV88r7DINsl9FD3EU8OG/pkva6B7LFU8ueC8M4h2JxqXJzL41BxrT5en AmjECxsoUOVibunCXJTNttuCqkNnos+puJj0xxkxb5I1vCPMSHoANw/KaVUUdXFrxd rFXk0WudaLUQg== From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH 1/3] smegw01: Allow booting the Yocto image by default Date: Tue, 15 Jun 2021 20:38:38 -0300 Message-Id: <20210615233840.2340227-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 16 Jun 2021 01:44:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On the Yocto image there is a single partition and the kernel and dtb are present in the 'boot' directory. Change it accordingly so that the board can boot the Yocto image by default. Use the generic 'load' command instead, which is able to read from an ext4 partition. Signed-off-by: Fabio Estevam --- include/configs/smegw01.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h index 50f00136ac46..a92c583c8669 100644 --- a/include/configs/smegw01.h +++ b/include/configs/smegw01.h @@ -29,11 +29,11 @@ "bootm_size=0x10000000\0" \ "mmcdev=0\0" \ "mmcpart=1\0" \ - "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \ + "mmcroot=/dev/mmcblk0p1 rootwait rw\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=${mmcroot}\0" \ - "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ - "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \ + "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \ + "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \ "mmcboot=echo Booting from mmc ...; " \ "run mmcargs; " \ "if run loadfdt; then " \ From patchwork Tue Jun 15 23:38:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1492533 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=CB+yMzv6; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=cn86KDlQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Q0F1fhHz9sWQ for ; Wed, 16 Jun 2021 09:44:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4181A82944; Wed, 16 Jun 2021 01:44:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800671; bh=Gp6SsUpmd9jk5gC1hC8dieGNY3YkSbnEIGysuUyiqxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=CB+yMzv6Vka4tMzZ+4KYw/qXZg4poP1JmCZg3h3z/iDMpM94t8IduotIcFv8amjAJ 3ZZIwEWopaG73eC75WPOGrsNEP/sgiplKEmQ9I2met4wvDxRgAep41v+uNE9n+6qZ/ OaPmHlmIGkKP3JXS7WMf4xnnnPzErkijE5FDkP32wzM2qDr61gCcXpnoHrOW6C0eY5 oofBxVG6Q0nR6gas+WpOLhnmD6bBoM8L/Phbl1EOxYH8KQpF3BMwYD2grPTcqjMnYP QQPi/ebi1BUsgQRxCO+qgVdm+KdrvrgUs9jgW1Vtr3t99Cx29Hr5ek+LWGaEQ7uc2f xHZnZJjFSlPpg== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:2c06:9033:1243:e52d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 0BCEB82935; Wed, 16 Jun 2021 01:38:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800335; bh=Gp6SsUpmd9jk5gC1hC8dieGNY3YkSbnEIGysuUyiqxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cn86KDlQXuUcuHFwkYjppqBDF6F4lCChQba1leSS6wyF1qCMrOCKOdb+cSK7nDKo8 4WQqX8rAGnsFovu+/67fmpvf5AM50cFV0EIOZSj2/8mnqfCsHYLGByTfbdys5b2rTu MiUQGQfTTDX6VMX/hRpLqET5QfnQxbqKTG18kq/f3Bvpa610YyHEKIEguyU1i3Zs+/ jUhwPDMBXIU6UriqzH8/3ysRMvEiolqk+e0gaOMzEZMXW370al0EEvQ1gaCBWneSgA pSwkpgipOys3CIXYuqUWFwYwF+ScUkw+eKiOoYBVYn0XBNhct/zlN17cl7NkdbGvkX O559oVuqr4pBg== From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH 2/3] smegw01: Re-sync the defconfig Date: Tue, 15 Jun 2021 20:38:39 -0300 Message-Id: <20210615233840.2340227-2-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210615233840.2340227-1-festevam@denx.de> References: <20210615233840.2340227-1-festevam@denx.de> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 16 Jun 2021 01:44:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Re-sync the defconfig by doing: make smegw01_defconfig make savedefconfig cp defconfig configs/smegw01_defconfig Signed-off-by: Fabio Estevam --- configs/smegw01_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig index aa10577a9f3f..9bfaa010ae77 100644 --- a/configs/smegw01_defconfig +++ b/configs/smegw01_defconfig @@ -6,12 +6,12 @@ CONFIG_SYS_MEMTEST_END=0xa0000000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xC0000 CONFIG_DM_GPIO=y +CONFIG_DEFAULT_DEVICE_TREE="imx7d-smegw01" CONFIG_TARGET_SMEGW01=y CONFIG_ARMV7_BOOT_SEC_DEFAULT=y # CONFIG_ARMV7_VIRT is not set CONFIG_IMX_RDC=y CONFIG_IMX_BOOTAUX=y -CONFIG_DEFAULT_DEVICE_TREE="imx7d-smegw01" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/storopack/smegw01/imximage.cfg" From patchwork Tue Jun 15 23:38:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1492534 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ICLX5E5w; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Cgdns6Y9; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Q0Q35Gqz9sWQ for ; Wed, 16 Jun 2021 09:44:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 63BBD8295B; Wed, 16 Jun 2021 01:44:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800677; bh=z0dge+FwvXRVPV26L/dWax/wUb80MEcZgGQjLUcA294=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ICLX5E5wxS+WSHA6TMmD8X9icdNmxbusqowx8FLPaXa6JVrtZqK9t6JxEWK7ry3uj AyMzapo2ZZptlZIhPj/+NDgFftUF92bxtJOJG5H+tDSlmPpYH1zGuHGSWmpJKNcun7 hSGZ83LSz2paUuBRXUaj29gF7vpxMbVZGyjy2ljUr5Jlgmoimc2pPfiNTHwVrVXaMF NkVNcnbHWCi5x7leuEuXhZnMhWfcpFxn+Ty/p0CCWX5BQoTASFURSWP7sZXC6dSbHB 6o2WDn7XP7Qwd+4FVhgr8lltssTL+UwbEufjQ9EPd+pivqgjcwKpq1gw8mnsouiYGH PxaYefk3KdW8g== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:2c06:9033:1243:e52d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1738581671; Wed, 16 Jun 2021 01:38:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623800337; bh=z0dge+FwvXRVPV26L/dWax/wUb80MEcZgGQjLUcA294=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cgdns6Y9cJkLFm0e5xC8vL+pV8pA2K5TcX5FSRXXeKU5ICMII0zE7tiCJfUkk2mxf qSFt2fKYWmuAyg6uNkA3wp2ngW3NJiFjFbQD4TIi5UCiRujBVh05RlPmYtWbbF4bwL AkmWRdpaQlrqt6LSYhHzflgW6vwzJkNf2uaYpxJtUAgAcxsOH2OZCPyPc+rQFU8fKM BFA9avrNTgG3je4z3awrqYCvdSa9BnO4JOtPzIPStlG3vvgT8f8VbeNGEqfEoIDU8z hPhnv6//JpiX/qP5bLxLqLUU02AiSJJUtz3f5DEvwt1Ks7W4TmfwvGjFI2XlcwW2Hx ZSopgi8TiT8gA== From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH 3/3] smegw01: Select the CMD_UNZIP option Date: Tue, 15 Jun 2021 20:38:40 -0300 Message-Id: <20210615233840.2340227-3-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210615233840.2340227-1-festevam@denx.de> References: <20210615233840.2340227-1-festevam@denx.de> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 16 Jun 2021 01:44:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Select the CMD_UNZIP option so that the 'gzwrite' command can be used to flash .gz image into the eMMC. Signed-off-by: Fabio Estevam --- configs/smegw01_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig index 9bfaa010ae77..75fd5bc24a81 100644 --- a/configs/smegw01_defconfig +++ b/configs/smegw01_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMI is not set # CONFIG_CMD_XIMG is not set CONFIG_CMD_MEMTEST=y +CONFIG_CMD_UNZIP=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y CONFIG_CMD_MMC=y