Received: by 2002:a17:504:17c4:b0:1be9:327d:8ee3 with SMTP id o4csp2178142njd; Tue, 22 Apr 2025 00:29:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW7syVR6xbxmJMXnR7Ew0pZOB4GcYWH+UM4uu98NcreHrwxFVFINf74Zfb/tWvnTuml4679cTREe64PVg==@linaro.org X-Google-Smtp-Source: AGHT+IEI9UvT2tIMsy5aIKEvGPLcLFkDbpvpeJcUI26kTQQiDQ1aBLlNP7mbntZFRaP7hD6rIE2J X-Received: by 2002:a05:622a:13cd:b0:476:7cc2:3f57 with SMTP id d75a77b69052e-47aec350ac1mr230845731cf.10.1745306981685; Tue, 22 Apr 2025 00:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745306981; cv=none; d=google.com; s=arc-20240605; b=JoMxkoLOR0xEMKzAi9Z3+VTOhR2sf4ZXDzRKTo5g3HzGXgYjpFR3id3iIZhiNYImg/ fLLx8XFN36KnUkXsiuMwAD9ipFRjU9gaL2iYVPcNKBceS+R8MwPhpzsK2ug4+tAhkFXE bj5vekFKAYV8xPrjfCetstaVvW8vd46zoymkXlfM098qTcsh1eDkVYZcw6c/+pllBNSI 1WjQ3SmQ07d307p4Aiqk/BD6eqsO5UX7+jFgAzfdB4/cdzlppjiucQf1fJX0zrBuEm8T x1BCaKqqJFe2AHQU7FGPFZecMbKwkS9JGM97kM5xEzNyE16uivd80zY0CPKuTui/hcWi Ng/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:autocrypt:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id; bh=QTfcsj1SwnjClbDmOS/TqlbwD8J8kZzK1GNqyVhexyk=; fh=aTXBRWvcUi1tLADA5DrDnV7F47mfdIt5smkQi/SmRpk=; b=DB2KU8zqsSrSvlSqXN5gKjNb41Mqj2h/Dor2kkqWSCKc2Yvwx7wMliGs/3OLnf+6wa 1LcwPJKjW0sMuOlMQg0ZZEfpSqZdhysalgUmbMukwm48WxnFfyZ5u0RUnLVBUsGPIrgw Loj4gZfiRA4yiT7Tazh9I110IS3RAbxFLLtI2HNHko/Gj2YCE41dlzWLegfkMkaaTj7c ihEiB92lToBtclOprNwae3VBao9090GGkH7zja9crOkpy/04V2N9q8AXykIeSatLQNrC RfqhafVOjwUNlfKOs7G3opkD7AHEcvvzAzCCKunPrI0B4zxRo1khT7830FRFNJ/ED48S BJtg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47ae9cbba53si108837931cf.443.2025.04.22.00.29.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Apr 2025 00:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u784I-00019v-2G; Tue, 22 Apr 2025 03:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u784G-00019P-LH; Tue, 22 Apr 2025 03:29:20 -0400 Received: from mail.ozlabs.org ([2404:9400:2221:ea00::3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u784C-0004Es-3U; Tue, 22 Apr 2025 03:29:20 -0400 Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4ZhYlB1fDCz4x1w; Tue, 22 Apr 2025 17:29:10 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mail.ozlabs.org (Postfix) with ESMTPSA id 4ZhYl65FRfz4x04; Tue, 22 Apr 2025 17:29:06 +1000 (AEST) Message-ID: Date: Tue, 22 Apr 2025 09:29:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 10/10] docs/system/arm/aspeed: Support vbootrom for AST2700 To: Jamin Lin , Peter Maydell , Steven Lee , Troy Lee , Andrew Jeffery , Joel Stanley , "open list:All patches CC here" , "open list:ASPEED BMCs" Cc: troy_lee@aspeedtech.com, nabihestefan@google.com References: <20250417031209.2647703-1-jamin_lin@aspeedtech.com> <20250417031209.2647703-11-jamin_lin@aspeedtech.com> Content-Language: en-US, fr From: =?UTF-8?Q?C=C3=A9dric_Le_Goater?= Autocrypt: addr=clg@kaod.org; keydata= xsFNBFu8o3UBEADP+oJVJaWm5vzZa/iLgpBAuzxSmNYhURZH+guITvSySk30YWfLYGBWQgeo 8NzNXBY3cH7JX3/a0jzmhDc0U61qFxVgrPqs1PQOjp7yRSFuDAnjtRqNvWkvlnRWLFq4+U5t yzYe4SFMjFb6Oc0xkQmaK2flmiJNnnxPttYwKBPd98WfXMmjwAv7QfwW+OL3VlTPADgzkcqj 53bfZ4VblAQrq6Ctbtu7JuUGAxSIL3XqeQlAwwLTfFGrmpY7M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785ui3A5U2Lqp6nWYWXz0eUZ0Ta d2zC71Gg9VazU9MXyWn749s0nXbVLcLS0yops302Gf3ZmtgfXTX/W+M25hiVRRKCH88yr6it +OMJBUndQVAA/fE9hYom6t/zqA248j0QAV/pLHH3hSirE1mv+7jpQnhMvatrwUpeXrOiEw1n HzWCqOJUZ4SY+HmGFW0YirWV2mYKoaGO2YBUwYF7O9TI3GEEgRMBIRT98fHa0NPwtlTktVIS l73LpgVscdW8yg9Gc82oe8FzU1uHjU8b10lUXOMHpqDDEV9//r4ZhkKZ9C4O+YZcTFu+mvAY 3GlqivBNkmYsHYSlFsbxc37E1HpTEaSWsGfAHQoPn9qrDJgsgcbBVc1gkUT6hnxShKPp4Pls ZVMNjvPAnr5TEBgHkk54HQRhhwcYv1T2QumQizDiU6iOrUzBThaMhZO3i927SG2DwWDVzZlt KrCMD1aMPvb3NU8FOYRhNmIFR3fcalYr+9gDuVKe8BVz4atMOoktmt0GWTOC8P4= In-Reply-To: <20250417031209.2647703-11-jamin_lin@aspeedtech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2404:9400:2221:ea00::3; envelope-from=SRS0=h5bN=XI=kaod.org=clg@ozlabs.org; helo=mail.ozlabs.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: yx7KqxV6R4/7 Jamin, On 4/17/25 05:12, Jamin Lin wrote: > Using the vbootrom image support and the boot ROM binary is > now passed via the -bios option, using the image located in > pc-bios/ast27x0_bootrom.bin. > > Signed-off-by: Jamin Lin > Reviewed-by: Nabih Estefan > --- > docs/system/arm/aspeed.rst | 29 ++++++++++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) > > diff --git a/docs/system/arm/aspeed.rst b/docs/system/arm/aspeed.rst > index 97fd6a0e7f..c87a2cf796 100644 > --- a/docs/system/arm/aspeed.rst > +++ b/docs/system/arm/aspeed.rst > @@ -250,7 +250,14 @@ under Linux), use : > Booting the ast2700-evb machine > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Currently, we have 2 sections for the Aspeed boards : 1. Aspeed family boards (ast2500-evb, ast2600-evb, ast2700-evb, ast2700fc, bletchley-bmc, fuji-bmc, fby35-bmc, fp5280g2-bmc, g220a-bmc, palmetto-bmc, qcom-dc-scm-v1-bmc, qcom-firework-bmc, quanta-q71l-bmc, rainier-bmc, romulus-bmc, sonorapass-bmc, supermicrox11-bmc, supermicrox11spi-bmc, tiogapass-bmc, witherspoon-bmc, yosemitev2-bmc) 2. Aspeed minibmc family boards (ast1030-evb) The first is quite big and relatively consistent for the AST2400, AST2500 and AST2600 SoCs. Since the AST2700 SoC boards boot differently, I think it is time to introduce a new section for the ast2700 machines. Thanks, C. > -Boot the AST2700 machine from the flash image, use an MTD drive : > +Boot the AST2700 machine from the flash image. > + > +There are two supported methods for booting the AST2700 machine with a flash image: > + > +Manual boot using ``-device loader``: > + > +It causes all 4 CPU cores to start execution from address ``0x430000000``, which > +corresponds to the BL31 image load address. > > .. code-block:: bash > > @@ -270,6 +277,26 @@ Boot the AST2700 machine from the flash image, use an MTD drive : > -drive file=${IMGDIR}/image-bmc,format=raw,if=mtd \ > -nographic > > +Boot using a virtual boot ROM (``-bios``): > + > +If users do not specify the ``-bios option``, QEMU will attempt to load the > +default vbootrom image ``ast27x0_bootrom.bin`` from either the current working > +directory or the ``pc-bios`` directory within the QEMU source tree. > + > +.. code-block:: bash > + > + $ qemu-system-aarch64 -M ast2700-evb \ > + -drive file=image-bmc,format=raw,if=mtd \ > + -nographic > + > +The ``-bios`` option allows users to specify a custom path for the vbootrom > +image to be loaded during boot. This will load the vbootrom image from the > +specified path in the ${HOME} directory. > + > +.. code-block:: bash > + > + -bios ${HOME}/ast27x0_bootrom.bin > + > Aspeed minibmc family boards (``ast1030-evb``) > ================================================================== >