Linux Kernel¶
The following instructions are for compiling the Linux Kernel for the MitySOM-A5E outside of Yocto. These instructions are specifically to support the MitySOM-A5E as installed in the MitySOM-A5E DevKit Carrier board.
Prerequisites¶
Need to have the GCC-ARM-11.2 toolchain. The toolchain can be downloaded and sourced via the following:
wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz tar xf gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz rm -f gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz export PATH=`pwd`/gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu/bin:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-none-linux-gnu-
Obtaining the Linux Kernel source¶
| Description | Repository | Branch |
| Linux Kernel | git://support.criticallink.com/home/git/linux-socfpga.git | socfpga-6.12.33-lts |
The kernel source can be fetched using git:
git clone -b socfpga-6.12.33-lts git://support.criticallink.com/home/git/linux-socfpga.git cd linux-socfpga
| defconfig | mity_a5e_devkit_defconfig |
| device tree | intel/socfpga_agilex5_mitysom_mini_devkit.dts |
Compile the kernel¶
Apply the defconfig¶
make mity_a5e_devkit_defconfig
Kernel Image¶
make -j 7 Image
The resulting Image file can be installed into the /boot directory of the SD card (ext partition)
Device Tree¶
The following command will build the device tree for the MitySOM-A5E loaded into the MitySOM-A5E DevKit board.
make dtbs
The resulting dtb file of interest (E.g. socfpga_agilex5_mitysom_mini_devkit.dtb) can be installed into /boot directory of the SD card (ext partition)
Modules¶
make -j 7 modules mkdir modules make INSTALL_MOD_PATH=modules modules_install
The resulting modules/lib/modules/6.12.33-g* directory should be copied into /lib/modules directory of the SD card (ext partition)
Go to top