Can you provide steps to build and flash Linux sdk image (using SDK release baseline + commit from Github)?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Can you provide steps to build and flash Linux sdk image (using SDK release baseline + commit from Github)?
To build ti-linux-kernel code before flashing, follow the below steps:
chmod +x ./ti-processor-sdk-linux-[platform]-<version>-Linux-x86-Install.bin ./ti-processor-sdk-linux-[platform]-<version>-Linux-x86-Install.bin
cd <path>/ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"/bin sudo ./mksdboot.sh --sdk <path>/ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"/ --device /dev/sd<x> sync
git clone https://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git //checkout to required tag git checkout tags/{specify the tag}
//Go to path of downloaded repository cd Downloads/ti-linux-kernel //if building from SDK cd <path of SDK>/board-support/linux-rt...
//sdk path is the path of the downloaded sdk export PATH=<sdk path>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH //Command to clean kernel make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- distclean //Build defconfig from kernel git repository //for version before 9.0 ti_config_fragments/defconfig_builder.sh -t ti_sdk_arm64_release || ti_config_fragments/defconfig_builder.sh make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- ti_sdk_arm64_rt_release_defconfig //for 9.0 or later versions make ARCH=arm64 CROSS_COMPILE=$V8_CROSS defconfig ti_arm64_prune.config //Build Image make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- Image //Build device tree binaries make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- dtbs //Compiling kernel modules make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- modules //Copying kernal image and device tree binaries to rootfs partition of sd card cd <kernel sources dir> sudo cp arch/arm64/boot/Image /media/rootfs/boot sudo cp arch/arm64/boot/dts/ti/*.dtb /media/rootfs/boot sudo cp arch/arm64/boot/dts/ti/*.dtbo /media/rootfs/boot //Installing kernel modules sudo make ARCH=arm64 INSTALL_MOD_PATH=/media/rootfs modules_install