From nobody Mon Feb 9 12:43:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+80931+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80931+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1632222138; cv=none; d=zohomail.com; s=zohoarc; b=HkNzcSH79ejKVdQhmvK3hKuK0eR8X53cxzl5QClbFYNPlr+gpJQ2YLhcdSO8Xp19Z3jTYmx+sD3txoZ9npAiZW/kV6vAhP/TEhUsaW/ZZonDjQj33pv/nlfdahnf4j0FbVku/RR3w1xdWHu3qbe7/kgHyTDeyInLZ69Ja9mOgjs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632222138; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=dC3OabA8/2ea4IEkwm+EttA8TD5/XGY0Qc6ZwpFhsPc=; b=hqSH7iLJnrS/jlSLrdfxq0C4xOh49oGE1GsFCaUsljkkutDqS3leplDwo4n3Oymd+T9TmO7LvHderJAIICyh7gnd2U7nEqmSfUUZpRYpJCT3Wgru6IGSwJf5JrrXAE4eMLJSnOKaEmPKyx05USDm2JxXrFTviK31WmWGHpcnNgg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80931+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1632222138151752.19243406121; Tue, 21 Sep 2021 04:02:18 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id DWHYYY1788612xBsSH7UJk8k; Tue, 21 Sep 2021 04:02:17 -0700 X-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web10.5966.1632222136916351961 for ; Tue, 21 Sep 2021 04:02:17 -0700 X-Received: by mail-lf1-f46.google.com with SMTP id e15so40932728lfr.10 for ; Tue, 21 Sep 2021 04:02:16 -0700 (PDT) X-Gm-Message-State: OVt6rnbGZgvN13p8y9ZeoTKEx1787277AA= X-Google-Smtp-Source: ABdhPJyYggffIR61UE0pcS618Tl9jBnEHs2U/ascE7H2Fbw/m7jJ/IOKWmVWWkF+A6wgW8eciqsgnA== X-Received: by 2002:a05:6512:3f03:: with SMTP id y3mr22661461lfa.5.1632222133626; Tue, 21 Sep 2021 04:02:13 -0700 (PDT) X-Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id 131sm2101246ljj.52.2021.09.21.04.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 04:02:13 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, jaz@semihalf.com, gjb@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, alon.rotman@solid-run.com, Marcin Wojtas Subject: [edk2-devel] [edk2-platforms PATCH 2/4] SolidRun/Armada80x0McBin: Add Readme.md Date: Tue, 21 Sep 2021 13:00:54 +0200 Message-Id: <20210921110056.659697-3-mw@semihalf.com> In-Reply-To: <20210921110056.659697-1-mw@semihalf.com> References: <20210921110056.659697-1-mw@semihalf.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mw@semihalf.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1632222137; bh=IAx7/e4I5V0rNXVB5hlYR/LnOjFqARmb+tQ+xqcun34=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=e64J2uw7RbfIRUxqgXVJ0ryMWfvpbP+ILPMVSWGXA6ub4xFlpmaJGtLHGrH4WSiKHVe 3B31l+VvfDFlGVHdjD88SbBw0qn57JZ0H52Sg8PRHYWQHic97i6PuTA8catLWd5/Ig592 Y1U+rr/NiBVXTNSxP6tbZyNgblgGhODYyos= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1632222138805100010 Content-Type: text/plain; charset="utf-8" From: Grzegorz Bernacki Add the complete build instruction for MacchiatoBin platform. Signed-off-by: Marcin Wojtas --- Platform/SolidRun/Armada80x0McBin/Readme.md | 97 ++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Platform/SolidRun/Armada80x0McBin/Readme.md diff --git a/Platform/SolidRun/Armada80x0McBin/Readme.md b/Platform/SolidRu= n/Armada80x0McBin/Readme.md new file mode 100644 index 0000000000..c63cf41b2d --- /dev/null +++ b/Platform/SolidRun/Armada80x0McBin/Readme.md @@ -0,0 +1,97 @@ +=EF=BB=BFSolidRun MacchiatoBin +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +# Summary + +This is a port of 64-bit TianoCore EDK II firmware for the SolidRun Macchi= atoBin platform based on the Marvell ARMADA 8040 SoC. + +# Building the firmware + +## Prepare toolchain (for cross-compilation only): + +1. Download the toolchain: + + ``` + wget https://releases.linaro.org/components/toolchain/binaries/7.5-2019= .12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar= .xz + ``` + +1. After extracting, setup the path and compiler prefix to GCC5\_AARCH64\_= PREFIX variable: + + ``` + export GCC5_AARCH64_PREFIX=3D/gcc-linaro-7.5.0-2019.12-= x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- + ``` + +## Prepare prerequisites + +1. Create a new folder (directory) on your local development machine + for use as your workspace. This example uses `/work/git/tianocore`, mod= ify as + appropriate for your needs. + + ``` + $ export WORKSPACE=3D/work/git/tianocore + $ mkdir -p $WORKSPACE + $ cd $WORKSPACE + ``` + +1. Clone the Trusted Firmware repository: + + ``` + $ cd ${WORKSPACE} + $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git + ``` +1. Clone repository for auxiliary firmware on the SoC co-processors and ch= eckout to binaries-marvell-armada-SDK10.0.1.0: + + ``` + $ cd ${WORKSPACE} + $ git clone https://github.com/MarvellEmbeddedProcessors/binaries-marve= ll.git + $ cd binaries-marvell/ + $ git checkout -b binaries-marvell-armada-SDK10.0.1.0 origin/binaries-m= arvell-armada-SDK10.0.1.0 + ``` +1. Clone the DDR training code from: + + ``` + $ cd ${WORKSPACE} + $ git clone https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell= .git + ``` +## Prepare EDKII environment: + +Please follow instructions from "Obtaining source code" and "Manual buildi= ng" from the top level edk2-platforms [Readme.md](https://github.com/tianoc= ore/edk2-platforms#readme). + +## Build EDKII: + +1. Use below build command: + + ``` + $ cd ${WORKSPACE} + $ build -a AARCH64 -t GCC5 -b RELEASE -D INCLUDE_TFTP_COMMAND -D X64EMU= _ENABLE -p Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc + ``` + +## Build the final firmware image: + +1. Set BL33 variable to path to EDK II output binary: + + ``` + $ export BL33=3D${WORKSPACE}/Build/Armada80x0McBin-AARCH64/RELEASE_GCC5= /FV/ARMADA_EFI.fd + ``` +1. Export SCP_BL2 variable: + + ``` + $ export SCP_BL2=3D${WORKSKPACE}/binaries-marvell/mrvl_scp_bl2.img + ``` +1. Export compiler variables (for cross-compilation only): + + ``` + $ export ARCH=3Darm64 + $ export CROSS_COMPILE=3D/gcc-linaro-7.5.0-2019.12-x86_= 64_aarch64-linux-gnu/bin/aarch64-linux-gnu- + ``` +1. Build the image: + + ``` + $ cd ${WORKSPACE}/trusted-firmware-a/ + $ make LOG_LEVEL=3D20 MV_DDR_PATH=3D${WORKSPACE}/mv-ddr-marvell PLAT=3D= a80x0_mcbin all fip mrvl_flash + ``` +The firmware image `flash-image.bin` can be found in `build/a80x0_mcbin/re= lease/` directory. + +# ARM System Ready certification. + +MacchiatoBin is [System Ready ES](https://developer.arm.com/architectures/= system-architectures/arm-systemready/es) certified. Release binary and the = firmware components' baselines list are available in a dedicated [wiki page= ](https://github.com/semihalf/edk2-platforms/wiki). --=20 2.29.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80931): https://edk2.groups.io/g/devel/message/80931 Mute This Topic: https://groups.io/mt/85762838/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-