[Macchiato] Ubuntu Bionic 18.04.2 install issues on Macchiatto bin
Marcin Wojtas
mw at semihalf.com
Tue May 14 16:47:44 BST 2019
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:
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
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
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
More information about the Macchiato
mailing list