2011-10-11, 19:27
#1
NAS:/mnt/md3/NAS/driver# make install ******************************************************************* # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v1.2 # # for Linux Kernel 2.6.x # # # # release date : 03/23/2009 # ******************************************************************* make -C /lib/modules/2.6.22.18/build SUBDIRS=/mnt/md3/NAS/driver modules make[1]: Entering directory `/lib/modules/2.6.22.18/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.22.18/build' make: *** [module] Error 2
NAS:/mnt/md3/NAS/driver# make install ******************************************************************* # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v1.2 # # for Linux Kernel 2.6.x # # # # release date : 03/23/2009 # ******************************************************************* make -C /lib/modules/2.6.22.18/build SUBDIRS=/mnt/md3/NAS/driver modules make[1]: Entering directory `/lib/modules/2.6.22.18/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.22.18/build' make: *** [module] Error 2
all: module install: module mkdir -p /lib/modules/$(KVER)/kernel/drivers/usb/serial cp -f ./$(TARGET).ko /lib/modules/$(KVER)/kernel/drivers/usb/serial mkdir -p /lib/modules/$(KVER)/misc/ cp -f ./$(TARGET).ko /lib/modules/$(KVER)/misc/ depmod -a ifeq "$(findstring fc6, $(KDISVER))" "fc6" CFLAGS += -D__FC6__ endif ifneq ($(KERNELRELEASE),) obj-m := $(TARGET).o else module: @echo " *******************************************************************" @echo " # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v$(DRV_VER) #" @echo " # for Linux Kernel 2.6.x #" @echo " # #" @echo " # release date : $(REL_DATE) #" @echo " *******************************************************************" $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules endif
all: module install: module mkdir -p /lib/modules/$(KVER)/kernel/drivers/usb/serial cp -f ./$(TARGET).ko /lib/modules/$(KVER)/kernel/drivers/usb/serial mkdir -p /lib/modules/$(KVER)/misc/ cp -f ./$(TARGET).ko /lib/modules/$(KVER)/misc/ depmod -a ifeq "$(findstring fc6, $(KDISVER))" "fc6" CFLAGS += -D__FC6__ endif ifneq ($(KERNELRELEASE),) obj-m := $(TARGET).o else module: @echo " *******************************************************************" @echo " # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v$(DRV_VER) #" @echo " # for Linux Kernel 2.6.x #" @echo " # #" @echo " # release date : $(REL_DATE) #" @echo " *******************************************************************" $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules endif
make -C /lib/modules/2.6.22.18/build SUBDIRS=/mnt/md3/NAS/driver modules make[1]: Entering directory `/lib/modules/2.6.22.18/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.22.18/build' make: *** [module] Error 2
NAS:~# uname -a Linux NAS 2.6.22.18 #1 Thu Nov 5 16:01:23 CST 2009 v0.2.4 armv5tejl GNU/Linux
Package linux-source is a virtual package provided by: linux-source-2.6.26 2.6.26-27
make oldconfig && make prepare
rasmus@rasmus-P420:~/tmp/driver$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ******************************************************************* # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v1.2 # # for Linux Kernel 2.6.x # # # # release date : 03/23/2009 # ******************************************************************* make -C /home/rasmus/tmp/driver/linux-2.6.22 SUBDIRS=/home/rasmus/tmp/driver modules make[1]: Entering directory `/home/rasmus/tmp/driver/linux-2.6.22' WARNING: Symbol version dump /home/rasmus/tmp/driver/linux-2.6.22/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/rasmus/tmp/driver/mxu11x0.o In file included from include/asm/tsc.h:1:0, from include/asm/timex.h:15, from include/linux/timex.h:187, from include/linux/jiffies.h:8, from include/linux/ktime.h:25, from include/linux/timer.h:5, from include/linux/workqueue.h:8, from include/linux/slub_def.h:11, from include/linux/slab.h:121, from /home/rasmus/tmp/driver/mxu11x0.c:23: include/asm-i386/tsc.h: In function ‘get_cycles’: include/asm-i386/tsc.h:29:2: warning: left shift count >= width of type [enabled by default] include/asm-i386/tsc.h: In function ‘get_cycles_sync’: include/asm-i386/tsc.h:57:2: warning: left shift count >= width of type [enabled by default] /home/rasmus/tmp/driver/mxu11x0.c: In function ‘mxu1_close’: include/asm/semaphore.h:128:2: error: impossible constraint in ‘asm’ include/asm/semaphore.h:170:2: error: impossible constraint in ‘asm’ make[2]: *** [/home/rasmus/tmp/driver/mxu11x0.o] Error 1 make[1]: *** [_module_/home/rasmus/tmp/driver] Error 2 make[1]: Leaving directory `/home/rasmus/tmp/driver/linux-2.6.22' make: *** [module] Error 2
make oldconfig && make prepare
rasmus@rasmus-P420:~/tmp/driver$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ******************************************************************* # MOXA UPort 1110/1130/1150/1150I USB to Serial Hub Driver v1.2 # # for Linux Kernel 2.6.x # # # # release date : 03/23/2009 # ******************************************************************* make -C /home/rasmus/tmp/driver/linux-2.6.22 SUBDIRS=/home/rasmus/tmp/driver modules make[1]: Entering directory `/home/rasmus/tmp/driver/linux-2.6.22' WARNING: Symbol version dump /home/rasmus/tmp/driver/linux-2.6.22/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/rasmus/tmp/driver/mxu11x0.o In file included from include/asm/tsc.h:1:0, from include/asm/timex.h:15, from include/linux/timex.h:187, from include/linux/jiffies.h:8, from include/linux/ktime.h:25, from include/linux/timer.h:5, from include/linux/workqueue.h:8, from include/linux/slub_def.h:11, from include/linux/slab.h:121, from /home/rasmus/tmp/driver/mxu11x0.c:23: include/asm-i386/tsc.h: In function ‘get_cycles’: include/asm-i386/tsc.h:29:2: warning: left shift count >= width of type [enabled by default] include/asm-i386/tsc.h: In function ‘get_cycles_sync’: include/asm-i386/tsc.h:57:2: warning: left shift count >= width of type [enabled by default] /home/rasmus/tmp/driver/mxu11x0.c: In function ‘mxu1_close’: include/asm/semaphore.h:128:2: error: impossible constraint in ‘asm’ include/asm/semaphore.h:170:2: error: impossible constraint in ‘asm’ make[2]: *** [/home/rasmus/tmp/driver/mxu11x0.o] Error 1 make[1]: *** [_module_/home/rasmus/tmp/driver] Error 2 make[1]: Leaving directory `/home/rasmus/tmp/driver/linux-2.6.22' make: *** [module] Error 2
Flashback finansieras genom donationer från våra medlemmar och besökare. Det är med hjälp av dig vi kan fortsätta erbjuda en fri samhällsdebatt. Tack för ditt stöd!
Swish: 123 536 99 96 Bankgiro: 211-4106
Flashback finansieras genom donationer från våra medlemmar och besökare. Det är med hjälp av dig vi kan fortsätta erbjuda en fri samhällsdebatt. Tack för ditt stöd!
Swish: 123 536 99 96 Bankgiro: 211-4106