Creating Modules

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating Modules

546 Views
vishvapathi
Contributor V

Hi,

     i am getting error in my LTIB. is there a way to create .ko modules without using LTIB???

LTIB error link:https://community.freescale.com/thread/317021

i have build kernel separately. So if i can create modules i will insert it without using LTIB. i need to build for USB_web CAM, v4l and UVC.

Any help is appreciated.

DaianeAngolini

LeonardoSandovalGonzalez

YuriMuhin_ng

Labels (2)
0 Kudos
1 Reply

379 Views
Yuri
NXP Employee
NXP Employee

Please read carefully the README in the enclosed example package how to provide stand-alone module cross compilation.

For our case PATH should be set properly for the toolchain, somewhat as following  :

PATH=$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin

The next command builds the module assuming the module sources and makefile are in current directory.

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

Again, it is assumed that kernel is already prepatched and built after the first LTIB running.

./ltib -m prep -p kernel@

./ltib -m scbuild -p kernel

The next general link regarding module compilation may be useful :

http://tldp.org/LDP/lkmpg/2.6/html/index.html

0 Kudos