<div dir="ltr"><div dir="ltr">Hi Riku,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 16 maj 2019 o 12:17 Riku Voipio <<a href="mailto:riku.voipio@linaro.org">riku.voipio@linaro.org</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Marcin,</div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 May 2019 at 18:48, Marcin Wojtas <<a href="mailto:mw@semihalf.com" target="_blank">mw@semihalf.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">wt., 14 maj 2019 o 17:03 <<a href="mailto:macchiattobin@kooman.org" target="_blank">macchiattobin@kooman.org</a>> napisał(a):<br>
><br>
> On Tue, May 14, 2019 at 03:44:18PM +0200, Marcin Wojtas wrote:<br>
> > Hi Stefan,<br>
> ><br>
> > Can you please try the most recent build of edk2 (latest PCIE support<br>
> > upstream patches):<br>
> > <a href="https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/files/flash-image-mcbin-mainline-r20190509.bin" rel="noreferrer" target="_blank">https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/files/flash-image-mcbin-mainline-r20190509.bin</a><br>
> > ?<br>
> ><br>
> > Contrary to Marvell tree, here the DTB has the 'unused clocks' issue<br>
> > resolved, so I hope it helps in your case. Please let know, how it goes.<br>
><br>
> It doesn't help with the Ubuntu installer unfortunately :/. It does help<br>
> with stable booting Debian (Buster) though. I've tested this on two<br>
> boards that with the older firmware giving pretty stable hangs ... with<br>
> the new firmware it boots perfectly without the need for<br>
> "clk_ignore_unused" kernel parameter.<br>
><br>
> Gr. Stefan<br>
><br>
> P.s. Marcin: Do you have detailed build instructions for building<br>
> "upstream"<br>
> ATF/MV_DDR/EDK2<br>
<br>
I plan to put it to wiki (once current and the next patchsets are<br>
merged in mainline), but for now I hope below will be sufficient:<br>
</blockquote><div><br></div><div>For base platform I used debian stable (docker run debian:strech) with following build-deps:</div><div><br></div><div> apt install --no-install-recommends crossbuild-essential-arm64 build-essential zip gcc-aarch64-linux-gnu uuid-dev python git device-tree-compiler acpica-tools nasm<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
mkdir edk2-workspace<br>
cd edk2-workspace<br>
export WORKSPACE=$PWD<br>
<br>
# Clone mv-ddr-marvell and set proper branch<br>
git clone <a href="https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git" rel="noreferrer" target="_blank">https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git</a><br>
cd mv-ddr-marvell<br>
git checkout -b mv_ddr-armada-atf-mainline origin/mv_ddr-armada-atf-mainline<br>
cd -<br>
<br>
# Same for SCP_BL2 binaries:<br>
git clone <a href="https://github.com/MarvellEmbeddedProcessors/binaries-marvell.git" rel="noreferrer" target="_blank">https://github.com/MarvellEmbeddedProcessors/binaries-marvell.git</a><br>
cd binaries-marvell<br>
git checkout -b binaries-marvell-armada-18.12<br>
origin/binaries-marvell-armada-18.12<br>
cd -<br>
<br>
# Below repos will be automatically set to 'master' branches<br>
git clone <a href="https://github.com/ARM-software/arm-trusted-firmware.git" rel="noreferrer" target="_blank">https://github.com/ARM-software/arm-trusted-firmware.git</a><br>
git clone <a href="https://github.com/tianocore/edk2" rel="noreferrer" target="_blank">https://github.com/tianocore/edk2</a></blockquote><div><br></div><div>inside edk2, one needs to:</div><div><br></div><div>git submodule update --init --recursive<br></div><div><br></div><div>to get latest openssl<br></div><div> </div></div></div></div></div></div></blockquote><div><br></div><div>Thanks, I forgot about this step. I guess it may be related to the problem with .fd file generation. Can you please try to remove output directory (rm -rf ${WORKSPACE}/Build) and retry the clean build?</div><div><br></div><div>Best regards,</div><div>Marcin</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
git clone <a href="https://github.com/tianocore/edk2-platforms.git" rel="noreferrer" target="_blank">https://github.com/tianocore/edk2-platforms.git</a><br>
<br>
make -C edk2/BaseTools/<br>
export PACKAGES_PATH=$PWD/edk2:$PWD/edk2-platforms<br>
source edk2/edksetup.sh<br>
<br>
# In case not building natively, export cross-compiler variable, e.g.:<br>
export GCC5_AARCH64_PREFIX=/opt/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-<br>
<br>
# Build edk2<br>
build -a AARCH64 -t GCC5 -b RELEASE -D INCLUDE_TFTP_COMMAND -p<br>
Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc<br></blockquote><div><br></div><div></div><div><div>This is as far as i got - the build of edk2 errors out with:</div><div><br></div><div>----<br></div><div>Generating FVMAIN_COMPACT FV<br>########################<br><br>build.py...<br> :
error F003: Output file for RAW section could not be found for
Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf<br></div><div>----</div><div><br></div><div>Slightly longer version of log at:</div><div><br></div></div><div><a href="http://paste.debian.net/1081704/" target="_blank">http://paste.debian.net/1081704/</a></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
export BL33=${WORKSPACE}/Build/Armada80x0McBin-AARCH64/RELEASE_GCC5/FV/ARMADA_EFI.fd<br>
<br>
# Build final binary and ARM-TF:<br>
cd arm-trusted-firmware<br>
<br>
# In case of cross-compiling<br>
export ARCH=arm64<br>
export CROSS_COMPILE=/opt/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-<br>
<br>
export SCP_BL2=${WORKSPACE}/binaries-marvell/mrvl_scp_bl2.img<br>
make USE_COHERENT_MEM=0 LOG_LEVEL=20<br>
MV_DDR_PATH=${WORKSPACE}/mv-ddr-marvell PLAT=a80x0_mcbin all fip<br>
export ARCH=<br>
cd -<br>
<br>
# Output binary (it can be burnt in SPI/SD/MMC) can be found in:<br>
${WORKSPACE}/arm-trusted-firmware/build/a80x0_mcbin/release/flash-image.bin<br>
<br>
Best regards,<br>
Marcin<br>
<br>
_______________________________________________<br>
Macchiato mailing list<br>
<a href="mailto:Macchiato@lists.einval.com" target="_blank">Macchiato@lists.einval.com</a><br>
<a href="https://lists.einval.com/cgi-bin/mailman/listinfo/macchiato" rel="noreferrer" target="_blank">https://lists.einval.com/cgi-bin/mailman/listinfo/macchiato</a></blockquote></div></div></div></div></div>
</blockquote></div></div>