A8040 Kernel

Introduction

The below kernel is based on Marvell releases that are kernel 4.4.8 based.
Mainlining the patches upstream activity has already started; but as for writing this document it is not ready to be consumed by users, but can definitely be by kernel developers.

Building from sources

Sources below are based on release 17.02 from Marvell with mcbin patches

git clone https://github.com/MarvellEmbeddedProcessors/linux-marvell/ -b linux-4.4.8-armada-17.02-macchiatobin
export CROSS_COMPILE=<your arm64 cross compiler path>
export ARCH=arm64
make mvebu_v8_lsp_defconfig
make Image modules dtbs

The result kernel is at

arch/arm64/boot/Image

and the device tree is at

arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb