Linux Build Process

Requirements

  • Linux OS
  • Linux development environment

Process

Open up a terminal and set the environment path for the cross-compiler.

TODO Update the sysroot directory

[ export PATH="/home/dawild/ti-processor-sdk-linux-am437x-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH" ]

Navigate to the Linux source directory in TODO fill in and initialize the build

[ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 mrproper ]

[ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 interceptor_bootlogo_defconfig ]

Build the device tree and the zImage

[ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 am437x-interceptor-reva.dtb ]

[ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 zImage ]

Build and install the modules

[ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 modules ]

[ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build_dir -j6 INSTALL_MOD_PATH=/media/rootfs modules_install ]

[ #replace /media/rootfs with the destination directory ]

Install the zImage and device tree blob into the rootfs TODO check paths

[ sudo cp -v build_dir/arch/arm/boot/zImage /media/rootfs/boot/ ]

[ sudo cp -v build_dir/arch/arm/boot/am437x-interceptor-reva.dtb /media/rootfs/boot/ ]

Eject the rootfs, insert the media into the QuarterMaster, turn on the QuarterMaster, and verify that the boot was successful.

Related Links

  • Creating a Bootable SD Card
  • U-Boot Build Process
sudo apt-get install minicom

Next doc

Please add items to the CMS collection!