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 " \