Compiling Linux Kernel Modules

Hello,

This is actually a follow up of a previous question, so you might want to check it out:

Compiling Linux Kernel - Toradex Community

I am trying to compile Linux kernel for Colibri T20 from source using the guide at

http://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code

Let me give you a brief overview of what I have done till now:

Git cloned the Linux source tree from Toradex git.

Setup the required tool-chain and libraries.

Setup environment variables as shown in guide.

I am able to successfully compile and build the kernel using:

$ make colibri_t20_defconfig
$ make -j3 uImage 2>&1 | tee build.log

Then I copy the generated zImage to my Colibri Evaluation board using the flashing utility provided by Toradex, and update the zImage on the T20 NAND using :

run setupdate
run prepare_ubi
run update_kernel

At this point I have what can be called the vanilla kernel image according to configuration specified in the colibri_t20_defconfig. It works fine and system boots up to LXDE.


Next I want to choose extra drivers that I want to use with the kernel:

$ make clean
$ make colibri_t20_defconfig
$ make menuinstall

At the configuration utility i have selected to add the following modules:
(M) Analog Devices ADV7180 decoder
(M) Analog Devices ADV7280 decoder
(M) MAX9526 Multiplexer
(Y) Tegra GMI Character Device Driver provided to me by mail by Toradex support (see attachement)

After this I compile using:

$ make -j3 uImage 2>&1 | tee build.log

I have attached the build.log.

After the build I copied the zImage as before and updated the kernel on my Colibri T20.
But I can’t seem to find any of the drivers I selected. Since, I compiled some of the drivers as (M) modules, maybe I am missing a step. But I cannot find the Tegra GMI driver that should be built in either.

When I do

$ dmesg | grep GMI
$ dmesg | grep gmi

I get no results. So, can someone help me. How do I find out if the Tegra GMI driver is installed?

Thank you very much.link text

Please also make sure to follow the procedure for deploying kernel modules.

I was trying to do the steps at
http://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#kernel-module-deployment
but I am unable to make it work

adwait@adwait-Lenovo-ideapad-100-15IBD:~/linux-toradex$ sudo -E make INSTALL_MOD_PATH=~/Colibri_T20_LinuxImageV2.6.1/rootfs/ modules_install
[sudo] password for adwait: 
cp: cannot stat ‘/home/adwait/linux-toradex/modules.order’: No such file or directory
make: *** [_modinst_] Error 1

You need to compile modules first:
make -j3 modules

I have decided to use the drivers as inbuilt kernel modules so that I can move forward with other things. Thanks for the help anyways!

Just for clarification, what is the meaning of the -j3 switch?

Refer the man page for make for the purpose of -j option.