From patchwork Wed Jun 29 07:05:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1649886 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kkml4Ibl; dkim-atps=neutral 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=) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LXsvn34KMz9sFr for ; Wed, 29 Jun 2022 17:06:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A373084477; Wed, 29 Jun 2022 09:06:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kkml4Ibl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 66E8984474; Wed, 29 Jun 2022 09:06:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 033A1842C0 for ; Wed, 29 Jun 2022 09:05:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pf1-x434.google.com with SMTP id bo5so14246674pfb.4 for ; Wed, 29 Jun 2022 00:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jfw+yY0j8JlwPCEOU5MVxMODUW22q38jKXfoeT/SohE=; b=kkml4Ibl67A7KrPaM/2UqUIgOt2f3Ccj/SUrwnMwESi1hCIURn3IlIRxSit31PF3QF Z97rvYxTHJqyqFvjuWenKKZOm383ydGr9eF9Dmo9tw00nNoed84imtgVrRAXBAcLstgZ Cx2vS6R+DKYICz4Hyd5EvKDA39yHC8gP2lA6CGcJOyCgpUvqZEMIBPHPxg3CV20jcZBI MS+bF8bfF0FDFJWVpIKSYzW6XYmbMf/lZ/YU5poF7JeUR0cK6GjcdHXZUKtwnlqtHOGc U2D12i20WxCSUshrEwLJhUHV54hI6gh71214U0P1aNAatQifzfBQLA2eFvhAGhra5wpT y7UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Jfw+yY0j8JlwPCEOU5MVxMODUW22q38jKXfoeT/SohE=; b=59eLvL5U8OgVJMJD90dSsQSWo/Wx/TWwDAxxXBH4MXMICYJkjDrh6758N11wjtoaOB 6riYkSE5GLy2ny6D3a9+7o/uhgw3WoBJ4sBW77VefM3sLtBeA+u6kVWVEDh6gm3ntGkP KLUbZ+YQ8kvE2XyvOBhjBR89A7duKaPiPO0lpygdhSgCZQYL2ei2cL4XxIwQYQd+ZsYC nZVlQw3a4/RsPZyKa6/xAYnWl+bl4cfj8w3YfSLRYRljSS1dtPsxyCWMXL39NEBk6EYJ CKW10mo8zg0gVTdmVlrVkk7f306QcMK+ix/L6RaWPYL6JZWgW9QvfaiXDbITMB3pT2fu fJIg== X-Gm-Message-State: AJIora+dRNLNKFl2TcVVp88J0ErqWjiNQ4JQ2RMZ4MQf8npZphZ+FE8H LIvdrrFxNF48aYVxnWrWVRV+jWjG1JE= X-Google-Smtp-Source: AGRyM1vjkuyl+PljpXW/r467hn1ZfmE0KsS0Kwj5M6BaJ/3DT91Zl1OBNtwTR17qLtyXOLLgfpSImw== X-Received: by 2002:a63:115b:0:b0:40d:e7a0:37f9 with SMTP id 27-20020a63115b000000b0040de7a037f9mr1781329pgr.78.1656486352573; Wed, 29 Jun 2022 00:05:52 -0700 (PDT) Received: from voyager.lan ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id g2-20020a170902d5c200b0015e8d4eb29csm10531451plh.230.2022.06.29.00.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 00:05:51 -0700 (PDT) From: Joel Stanley To: u-boot@lists.denx.de, Ryan Chen , Chia-Wei Wang , BMC-SW@aspeedtech.com Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 5/7] ast2600: Configure u-boot-with-spl.bin target Date: Wed, 29 Jun 2022 16:35:23 +0930 Message-Id: <20220629070525.575426-6-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220629070525.575426-1-joel@jms.id.au> References: <20220629070525.575426-1-joel@jms.id.au> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean The normal way of loading u-boot is as a FIT, so configure u-boot.img as the SPL playload. The u-boot-with-spl.bin target will add padding according to CONFIG_SPL_MAX_SIZE which defaults to 64KB on the AST2600. With this the following simple steps can be used to build and boot a system: make u-boot-with-spl.bin truncate -s 64M u-boot-with-spl.bin qemu-system-arm -nographic -M ast2600-evb \ -drive file=u-boot-with-spl.bin,if=mtd,format=raw Reviewed-by: Cédric Le Goater Reviewed-by: Chia-Wei Wang Signed-off-by: Joel Stanley --- v2: Removed the change to include/configs/evb_ast2600.h configs/evb-ast2600_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig index 03f90c7818b7..51261e730f3b 100644 --- a/configs/evb-ast2600_defconfig +++ b/configs/evb-ast2600_defconfig @@ -21,6 +21,8 @@ CONFIG_SPL_SIZE_LIMIT=0x10000 CONFIG_SPL=y # CONFIG_ARMV7_NONSEC is not set CONFIG_SYS_LOAD_ADDR=0x83000000 +CONFIG_SPL_PAYLOAD="u-boot.img" +CONFIG_BUILD_TARGET="u-boot-with-spl.bin" # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_FIT=y CONFIG_SPL_FIT_SIGNATURE=y