Creating Modules

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Creating Modules

1,001 次查看
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

标签 (2)
0 项奖励
回复
1 回复

833 次查看
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 项奖励
回复