[Macchiato] Ubuntu Bionic 18.04.2 install issues on Macchiatto bin
Marcin Wojtas
mw at semihalf.com
Thu May 16 11:24:05 BST 2019
Hi Riku,
czw., 16 maj 2019 o 12:17 Riku Voipio <riku.voipio at linaro.org> napisał(a):
> Hi Marcin,
>
> On Tue, 14 May 2019 at 18:48, Marcin Wojtas <mw at semihalf.com> wrote:
>
>> wt., 14 maj 2019 o 17:03 <macchiattobin at kooman.org> napisał(a):
>> >
>> > On Tue, May 14, 2019 at 03:44:18PM +0200, Marcin Wojtas wrote:
>> > > Hi Stefan,
>> > >
>> > > Can you please try the most recent build of edk2 (latest PCIE support
>> > > upstream patches):
>> > >
>> https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/files/flash-image-mcbin-mainline-r20190509.bin
>> > > ?
>> > >
>> > > Contrary to Marvell tree, here the DTB has the 'unused clocks' issue
>> > > resolved, so I hope it helps in your case. Please let know, how it
>> goes.
>> >
>> > It doesn't help with the Ubuntu installer unfortunately :/. It does help
>> > with stable booting Debian (Buster) though. I've tested this on two
>> > boards that with the older firmware giving pretty stable hangs ... with
>> > the new firmware it boots perfectly without the need for
>> > "clk_ignore_unused" kernel parameter.
>> >
>> > Gr. Stefan
>> >
>> > P.s. Marcin: Do you have detailed build instructions for building
>> > "upstream"
>> > ATF/MV_DDR/EDK2
>>
>> I plan to put it to wiki (once current and the next patchsets are
>> merged in mainline), but for now I hope below will be sufficient:
>>
>
> For base platform I used debian stable (docker run debian:strech) with
> following build-deps:
>
> 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
>
>
>> mkdir edk2-workspace
>> cd edk2-workspace
>> export WORKSPACE=$PWD
>>
>> # Clone mv-ddr-marvell and set proper branch
>> git clone https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git
>> cd mv-ddr-marvell
>> git checkout -b mv_ddr-armada-atf-mainline
>> origin/mv_ddr-armada-atf-mainline
>> cd -
>>
>> # Same for SCP_BL2 binaries:
>> git clone
>> https://github.com/MarvellEmbeddedProcessors/binaries-marvell.git
>> cd binaries-marvell
>> git checkout -b binaries-marvell-armada-18.12
>> origin/binaries-marvell-armada-18.12
>> cd -
>>
>> # Below repos will be automatically set to 'master' branches
>> git clone https://github.com/ARM-software/arm-trusted-firmware.git
>> git clone https://github.com/tianocore/edk2
>
>
> inside edk2, one needs to:
>
> git submodule update --init --recursive
>
> to get latest openssl
>
>
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?
Best regards,
Marcin
>
>> git clone https://github.com/tianocore/edk2-platforms.git
>>
>> make -C edk2/BaseTools/
>> export PACKAGES_PATH=$PWD/edk2:$PWD/edk2-platforms
>> source edk2/edksetup.sh
>>
>> # In case not building natively, export cross-compiler variable, e.g.:
>> export
>> GCC5_AARCH64_PREFIX=/opt/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
>>
>> # Build edk2
>> build -a AARCH64 -t GCC5 -b RELEASE -D INCLUDE_TFTP_COMMAND -p
>> Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc
>>
>
> This is as far as i got - the build of edk2 errors out with:
>
> ----
> Generating FVMAIN_COMPACT FV
> ########################
>
> build.py...
> : error F003: Output file for RAW section could not be found for
> Silicon/Marvell/Armada7k8k/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf
> ----
>
> Slightly longer version of log at:
>
> http://paste.debian.net/1081704/
>
>
> export
>> BL33=${WORKSPACE}/Build/Armada80x0McBin-AARCH64/RELEASE_GCC5/FV/ARMADA_EFI.fd
>>
>> # Build final binary and ARM-TF:
>> cd arm-trusted-firmware
>>
>> # In case of cross-compiling
>> export ARCH=arm64
>> export
>> CROSS_COMPILE=/opt/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
>>
>> export SCP_BL2=${WORKSPACE}/binaries-marvell/mrvl_scp_bl2.img
>> make USE_COHERENT_MEM=0 LOG_LEVEL=20
>> MV_DDR_PATH=${WORKSPACE}/mv-ddr-marvell PLAT=a80x0_mcbin all fip
>> export ARCH=
>> cd -
>>
>> # Output binary (it can be burnt in SPI/SD/MMC) can be found in:
>>
>> ${WORKSPACE}/arm-trusted-firmware/build/a80x0_mcbin/release/flash-image.bin
>>
>> Best regards,
>> Marcin
>>
>> _______________________________________________
>> Macchiato mailing list
>> Macchiato at lists.einval.com
>> https://lists.einval.com/cgi-bin/mailman/listinfo/macchiato
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einval.com/pipermail/macchiato/attachments/20190516/732e535f/attachment-0001.html>
More information about the Macchiato
mailing list