From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=Fww9Foe/; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.46, mailfrom: mw@semihalf.com) Received: by mail-lf1-f46.google.com with SMTP id e15so40932728lfr.10 for ; Tue, 21 Sep 2021 04:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YEgkSuzpmM4eBWHlPir8gaPrBAXF0C9aqDdqTG3zPRo=; b=Fww9Foe/gjK2WszT5hAmW6pfb1XAAtSKwFGXmYbm/M7vk0/GiY8MU6Vf+or1R2kmsH wX+vg6R/iA5k/TTuuctJ4Zo1gbjWEZm4HZpztMxRtYBkuDp8aafVLNmdSjzbDeNbcAXi O3ddTtn3hPolgdiMFUbmgsC75/3ctHl7FlkGRWy6ouNxaIVeJubVmXkKVDiqkYVprRff V72T/Of+Hoke2qencqaKUXWq6vYCL0CNcdEOZIxisSPgIY9KgRHwrvp59r6Z+VtL2xch 9BBI9fZny4sr4t4eTV/mxsLQnnxcNVpcuGkMCWl2VTG+6uklJ88jKDO4kXRp9VQ5kuR7 e3cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YEgkSuzpmM4eBWHlPir8gaPrBAXF0C9aqDdqTG3zPRo=; b=HS8Dc4fLUoazz7pL+hOVxO8TMz85liyyzuSOnLE3C1wnUgvzE9U+/ZNYxEyB2uWRGn uyPk8thq8Z2bwY9LUgqdET+QnbOQBgR5lYAUvwh/FHC8Wwm86xLFFleBMb3ZW1i8NyGO dmDuzqSIDHz+zG4SsRxlgB7ieGCZoVEZghMiS0Bp0gKB1lzgUaaF0FW3U8g1V41x5e/n k43ht9ljJEgIiz2pttxpWZ1/R3kkSuvGlgZ5X75RorhLvAtFaoiKvYwI0wEwc4NOEQ9V vwrdeKKbJxUDMvtFYoODfwHUtAU4/1vzQTIB1Vj/DzETbiD/6+dj/Ibr5hOY2o+CHw55 9cxg== X-Gm-Message-State: AOAM533NQH+qPc2ulGiCKvmjMpKzGH1g+VqfN2VW59QcVw630f6uhuuB DLWhY/hIw2DpNvUkwwcwOYubsioSoRV2eQ== 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) Return-Path: 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-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> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210921110056.659697-1-mw@semihalf.com> References: <20210921110056.659697-1-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=0D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D +=0D +# Summary=0D +=0D +This is a port of 64-bit TianoCore EDK II firmware for the SolidRun Macchi= atoBin platform based on the Marvell ARMADA 8040 SoC.=0D +=0D +# Building the firmware=0D +=0D +## Prepare toolchain (for cross-compilation only):=0D +=0D +1. Download the toolchain:=0D +=0D + ```=0D + 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=0D + ```=0D +=0D +1. After extracting, setup the path and compiler prefix to GCC5\_AARCH64\_= PREFIX variable:=0D +=0D + ```=0D + export GCC5_AARCH64_PREFIX=3D/gcc-linaro-7.5.0-2019.12-= x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-=0D + ```=0D +=0D +## Prepare prerequisites=0D +=0D +1. Create a new folder (directory) on your local development machine=0D + for use as your workspace. This example uses `/work/git/tianocore`, mod= ify as=0D + appropriate for your needs.=0D +=0D + ```=0D + $ export WORKSPACE=3D/work/git/tianocore=0D + $ mkdir -p $WORKSPACE=0D + $ cd $WORKSPACE=0D + ```=0D +=0D +1. Clone the Trusted Firmware repository:=0D +=0D + ```=0D + $ cd ${WORKSPACE}=0D + $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git= =0D + ```=0D +1. Clone repository for auxiliary firmware on the SoC co-processors and ch= eckout to binaries-marvell-armada-SDK10.0.1.0:=0D +=0D + ```=0D + $ cd ${WORKSPACE}=0D + $ git clone https://github.com/MarvellEmbeddedProcessors/binaries-marve= ll.git=0D + $ cd binaries-marvell/=0D + $ git checkout -b binaries-marvell-armada-SDK10.0.1.0 origin/binaries-m= arvell-armada-SDK10.0.1.0=0D + ```=0D +1. Clone the DDR training code from:=0D +=0D + ```=0D + $ cd ${WORKSPACE}=0D + $ git clone https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell= .git=0D + ```=0D +## Prepare EDKII environment:=0D +=0D +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).=0D +=0D +## Build EDKII:=0D +=0D +1. Use below build command:=0D +=0D + ```=0D + $ cd ${WORKSPACE}=0D + $ build -a AARCH64 -t GCC5 -b RELEASE -D INCLUDE_TFTP_COMMAND -D X64EMU= _ENABLE -p Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc=0D + ```=0D +=0D +## Build the final firmware image:=0D +=0D +1. Set BL33 variable to path to EDK II output binary:=0D +=0D + ```=0D + $ export BL33=3D${WORKSPACE}/Build/Armada80x0McBin-AARCH64/RELEASE_GCC5= /FV/ARMADA_EFI.fd=0D + ```=0D +1. Export SCP_BL2 variable:=0D +=0D + ```=0D + $ export SCP_BL2=3D${WORKSKPACE}/binaries-marvell/mrvl_scp_bl2.img=0D + ```=0D +1. Export compiler variables (for cross-compilation only):=0D +=0D + ```=0D + $ export ARCH=3Darm64=0D + $ export CROSS_COMPILE=3D/gcc-linaro-7.5.0-2019.12-x86_= 64_aarch64-linux-gnu/bin/aarch64-linux-gnu-=0D + ```=0D +1. Build the image:=0D +=0D + ```=0D + $ cd ${WORKSPACE}/trusted-firmware-a/=0D + $ make LOG_LEVEL=3D20 MV_DDR_PATH=3D${WORKSPACE}/mv-ddr-marvell PLAT=3D= a80x0_mcbin all fip mrvl_flash=0D + ```=0D +The firmware image `flash-image.bin` can be found in `build/a80x0_mcbin/re= lease/` directory.=0D +=0D +# ARM System Ready certification.=0D +=0D +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).=0D --=20 2.29.0