From nobody Mon Feb 9 12:26:56 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+80933+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+80933+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1632222139; cv=none; d=zohomail.com; s=zohoarc; b=fNpPvWFwmbhXfpNamsj+Cgyt7KMkZ5cyowRquYklczDyK/1o9bfiSat0Rcwb4IT7JBEuqsuHSOoaQn0rKQXr3E+gXgBMLDAcfnAldpIPrnSJcOKkxugegsghSGOhHWIb3nWLHqi9ANpm/0C54Zdnfg/LSBlyrfSnIHjKOo3E+3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632222139; 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=WQU6m85qdFHxR5mpakXIZB4xuoNzRrPbRxd+qBODAr0=; b=aqXeBmKLojKh4tFk180cbswbL84ESlYtuz5XyvPBCs36EyCHO3taH+eiCvHffOAL+BD/jbTxIT1kSJt15rXKjQpMyNcbm5W4Qy2QhKf0X+C8a/OsQmCCECi1BcooASpR5goNt9khNvcc4Ie4hflQzSuAydmLNj/ocaxLeBO6bEg= 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+80933+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1632222139348794.6394721246855; Tue, 21 Sep 2021 04:02:19 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 7391YY1788612xf1W90HgBiw; Tue, 21 Sep 2021 04:02:19 -0700 X-Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mx.groups.io with SMTP id smtpd.web10.5967.1632222138034330117 for ; Tue, 21 Sep 2021 04:02:18 -0700 X-Received: by mail-lf1-f41.google.com with SMTP id u8so28373347lff.9 for ; Tue, 21 Sep 2021 04:02:17 -0700 (PDT) X-Gm-Message-State: 1JCoajVnTpgBBszNYnWDwGyVx1787277AA= X-Google-Smtp-Source: ABdhPJy6MqfI9I1dNnbL/6Hv5mJzcV1C57PJxIx1xwHNj7kS1iA+Gv6flRjxQ2VtjSbFdb45QLWQIA== X-Received: by 2002:a05:6512:33c1:: with SMTP id d1mr22843677lfg.96.1632222134623; Tue, 21 Sep 2021 04:02:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 04:02:14 -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 3/4] Marvell/Cn913xDbA: Add Readme.md Date: Tue, 21 Sep 2021 13:00:55 +0200 Message-Id: <20210921110056.659697-4-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=1632222139; bh=rpVDs5Z3ML+/n+f4A17CF0OXSzH/iorbtO4PDysS2lY=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=CTlPitaJyuwyglaxkfoDqqVPC37R+mnWlwjv6B+K1tecUrLN4yZmHrEyFyJMpOqfUB7 69eezuugrTZ/rKGJKy2aYU2eLIIq0HTZCy5H40cwGh0XKdsUbqgbSZrx5T9vomIJKCIge k0FKSXqKjvzbLYomvGHCztw02vKrrv5yxKk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1632222141110100018 Content-Type: text/plain; charset="utf-8" Add the complete build instruction for CN913x Development Board. Signed-off-by: Marcin Wojtas --- Platform/Marvell/Cn913xDb/Readme.md | 98 ++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Platform/Marvell/Cn913xDb/Readme.md diff --git a/Platform/Marvell/Cn913xDb/Readme.md b/Platform/Marvell/Cn913xD= b/Readme.md new file mode 100644 index 0000000000..ecdb78302b --- /dev/null +++ b/Platform/Marvell/Cn913xDb/Readme.md @@ -0,0 +1,98 @@ +=EF=BB=BFMarvell CN913x Development Board +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 Marvell CN913x = Development Board. + +# 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 CN9132 -D INCLUDE_TFTP_COMMAND= -D CAPSULE_ENABLE -p Platform/Marvell/Cn913xDb/Cn913xDbA.dsc + ``` + +## Build the final firmware image: + +1. Set BL33 variable to path to EDK II output binary: + + ``` + $ export BL33=3D${WORKSPACE}/Build/Cn9132DbA-AARCH64/RELEASE_GCC5/FV/AR= MADA_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 CP_NUM= =3D3 PLAT=3Dt9130 all fip mrvl_flash + + ``` +The firmware image `flash-image.bin` can be found in `build/t9130/release/= ` directory. + +# ARM System Ready certification. + +CN913x Development Board is [System Ready ES](https://developer.arm.com/ar= chitectures/system-architectures/arm-systemready/es) certified. Release bin= ary and the firmware components' baselines list are available in a dedicate= d [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 (#80933): https://edk2.groups.io/g/devel/message/80933 Mute This Topic: https://groups.io/mt/85762840/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-