STM32MP1-Old-Kits: Building Linux Kernel
This application note explains how to build Linux kernel images for the Emcraft STM32MP1 System-On-Module. Step through the following procedure:
Download the Yocto toolchain from the Emcraft website.
Install the toolchain to your development host. The toolchain can be installed to an arbitrary directory:
$ sh ./meta-toolchain-qt5-openstlinux-weston-stm32mp15-som-x86_64-toolchain-4.2.1-snapshot.sh...
Activate the cross-build environment:
$ source /opt/st/stm32mp15-som/4.2.1-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi $ unset CCACHE_PATH
Clone the Emcraft Linux tree:
$ mkdir build$ cd build $ git clone -b linux-stm32mp1-4.0.1 $ cd linux-stm32mp
Configure the kernel tree build:
Build the kernel image:
Build DTB (the device tree name is
stm32mp157d-som.dtb
for the 800MHz STM32MP1-SOM variant):Build kernel modules: