Building kernel

Check sudo permission

sudo su

Run this script to change the environment.

. ~/local-export-conf.sh

Now you can start to build kernel

cd ~/ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.1.18+gitAUTOINC+bbe8cfc1da-gbbe8cfc/

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage

You can edit dts (device tree) file if needed.

vim ~/ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.1.18+gitAUTOINC+bbe8cfc1da-gbbe8cfc/arch/arm/boot/dts/am335x-bone-common.dtsi

Then

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-boneblack.dtb

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

Install modules

cd ~/ti-processor-sdk-linux-am335x-evm-03.03.00.04

make linux_install

The target image will locate in

cd ~/ti-processor-sdk-linux-am335x-evm-03.03.00.04/targetMLB

You can replace kernel and boot file via scp

scp –rp boot/* [email protected]:/boot/

scp –rp lib/modules/4.1.18-gbbe8cfc/kernel/* [email protected]:/lib/modules/4.1.18-gbbe8cfc/kernel/

results matching ""

    No results matching ""