Hi
I need build a module but i think i have problem with the Makefile,
because i take the usbmouse.c from ../linux24/drivers/usb and compile
with the next Makefile:
ARCH=arm
CROSS_COMPILE=/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux
# TS-7300 kernel version and modules install path
KERNEL_VERSION=2.4.26-ts11
MOD_INSTALL_PATH=/home/nachofx/embedded/linux24-modules
CC=$(CROSS_COMPILE)gcc
MODCFLAGS = -D__KERNEL__ -DMODULE -O2 -Wall
INCLUDES=-I$(MOD_INSTALL_PATH)/lib/modules/$(KERNEL_VERSION)/build/include
all: mouse2.o
mouse2.o: mouse2.c
$(CC) $(MODCFLAGS) $(INCLUDES) -c mouse2.c
clean:
-rm -f *.o *~
and then insmod ./mouse2
and restart X, the Xorg.log show me:
(II) LoadModule: "mouse2"
(II) Loading /usr/lib/xorg/modules/input/mouse2.o
(EE) LoadModule: Module mouse2 does not have a mouse2ModuleData data
object.
(II) UnloadModule: "mouse2"
(II) Unloading /usr/lib/xorg/modules/input/mouse2.o
(EE) Failed to load module "mouse2" (invalid module, 0)
whats is the correct makefile?
or what is the best way to build a module?
all this is for make and build my own touchscreen (egalax) driver
Thanks for yours replies.
Ignacio Zamora
Santiago de Chile
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|