Skip to content

Instantly share code, notes, and snippets.

@Scott31393
Last active October 28, 2020 14:43
Show Gist options
  • Save Scott31393/dcf66321a23b716c87308ff5df23218a to your computer and use it in GitHub Desktop.
Save Scott31393/dcf66321a23b716c87308ff5df23218a to your computer and use it in GitHub Desktop.

Compile Kernel Script (GENERIC)

source /opt/fsl-imx-x11/4.19-warrior/environment-setup-cortexa9hf-neon-poky-linux-gnueabi

make imx_v7_defconfig
make zImage dtbs modules

sudo rm -r MODULES
mkdir MODULES
make -j16 modules_install CROSS_COMPILE=$CROSS_COMPILER ARCH=arm INSTALL_MOD_PATH=./MODULES 

Compile Linux Kernel script (IMX8)

#!/bin/bash


export ARCH=arm64
source /opt/fsl-imx-xwayland/4.19-warrior/environment-setup-aarch64-poky-linux
unset LD_LIBRARY_PATH
#make imx8qxp_mek_defconfig  seco-imx8qm-c26
#make seco_imx8qm_c26_defconfig
make seco_imx8mm_c61_defconfig
#make seco_imx8qm_c26_defconfig

rm -v ./u-boot.bin

#make clean
make -j20

rm -v ../imx-mkimage/iMX8M/u-boot.bin
rm -v ../imx-mkimage/iMX8M/flash.bin
rm -v ../flash-bin/flash.bin

cp -v u-boot.bin ../imx-mkimage/iMX8M/
cp -v u-boot-spl.bin ../imx-mkimage/iMX8M/
cp -v u-boot-dtb.bin ../imx-mkimage/iMX8M/
cd ../imx-mkimage/

./mk_imximage c61
cp -v iMX8M/flash.bin ../bin
cd ../bin
sudo uuu seco_flashing_cmd.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment