-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Welcome to the linux wiki!
###Download and compile DT kernel The 3.17 kernel supports DT(device tree). We can compile the *.dtb and put it in the rootfs/boot/ directory. Build the kernel zImage and put it in the rootfs/boot directory as well.
To get the kernel:
git clone [email protected]:gumstix/linux.git
Copy Kernel configuration file for your COM from Gumstix Yocto Project Meta-Gumstix repository into your Kernel directory and name it .config
.
For example, Kernel 3.17 configuration for Overo is here.
While working with older u-boot versions (< 2013) you would need a uImage, while more recent u-boot versions support booting with a zImage. So depending on that, you would then build your kernel as follows:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage LOADADDR=82000000
or
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage
In order to build only the dtbs,
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs
will build all the relavent device tree blobs.
Copy all the .dtb files from arch/arm/boot/dts/ and zImage
to /media/username/rootfs/boot
directory (not the /boot partition).
Reset the board and go.
The kernel should boot all the way to the console.
Build the kernel modules:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules -j 4
To install current kernel modules to SD card root file system, use:
sudo INSTALL_MOD_PATH=/media/username/rootfs make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install