[elrepo] kmod-usb-serial ...
Clinton Lee Taylor
clintonlee.taylor at gmail.com
Mon Nov 23 07:17:42 EST 2009
Greetings ...
2009/11/22 Alan Bartlett <ajb at elrepo.org>:
> I have made a start on creating a kABI tracking ch341 kmod package and
> have made the tarball of the relevant source files available from my
> http://www.centos.toracat.org/ajb/tmp/ch341-0.0/ directory. Please
> feel free to download a copy and experiment with it. Assuming you have
> the kernel-devel package matching your running kernel installed, just
> a "make" command would set the build process in action. (The only
> other make target to note is "clean" -- as in a "make clean" command.)
> Once the ch341.c file has been suitably modified / hacked / patched a
> ch341.ko module will be produced. (Once that stage is reached and you
> have access to the physical device to test, a "insmod ./ch341.ko"
> would be appropriate.)
Mmm, downloaded, untared into a folder and ran make ...
[devs at devs64 ch341-0.0]$ make
make -C /lib/modules/2.6.18-164.6.1.el5/build
M=/home/devs/temp/kmod/ch341-0.0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-164.6.1.el5-x86_64'
CC [M] /home/devs/temp/kmod/ch341-0.0/usb-serial.o
CC [M] /home/devs/temp/kmod/ch341-0.0/generic.o
CC [M] /home/devs/temp/kmod/ch341-0.0/bus.o
LD [M] /home/devs/temp/kmod/ch341-0.0/usbserial.o
CC [M] /home/devs/temp/kmod/ch341-0.0/ch341.o
/home/devs/temp/kmod/ch341-0.0/ch341.c: In function âch341_openâ:
/home/devs/temp/kmod/ch341-0.0/ch341.c:329: warning: passing argument
1 of âusb_serial_generic_openâ from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:329: warning: passing argument
2 of âusb_serial_generic_openâ from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:329: error: too many arguments
to function âusb_serial_generic_openâ
/home/devs/temp/kmod/ch341-0.0/ch341.c: At top level:
/home/devs/temp/kmod/ch341-0.0/ch341.c:338: warning: âstruct ktermiosâ
declared inside parameter list
/home/devs/temp/kmod/ch341-0.0/ch341.c:338: warning: its scope is only
this definition or declaration, which is probably not what you want
/home/devs/temp/kmod/ch341-0.0/ch341.c: In function âwait_modem_infoâ:
/home/devs/temp/kmod/ch341-0.0/ch341.c:460: warning:
âinterruptible_sleep_onâ is deprecated (declared at
include/linux/wait.h:375)
/home/devs/temp/kmod/ch341-0.0/ch341.c: In function âch341_reset_resumeâ:
/home/devs/temp/kmod/ch341-0.0/ch341.c:545: error: implicit
declaration of function âusb_serial_resumeâ
/home/devs/temp/kmod/ch341-0.0/ch341.c: At top level:
/home/devs/temp/kmod/ch341-0.0/ch341.c:554: error:
âusb_serial_suspendâ undeclared here (not in a function)
/home/devs/temp/kmod/ch341-0.0/ch341.c:555: error: âusb_serial_resumeâ
undeclared here (not in a function)
/home/devs/temp/kmod/ch341-0.0/ch341.c:556: error: unknown field
âreset_resumeâ specified in initializer
/home/devs/temp/kmod/ch341-0.0/ch341.c:556: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:559: error: unknown field
âsupports_autosuspendâ specified in initializer
/home/devs/temp/kmod/ch341-0.0/ch341.c:559: warning: excess elements
in struct initializer
/home/devs/temp/kmod/ch341-0.0/ch341.c:559: warning: (near
initialization for âch341_driverâ)
/home/devs/temp/kmod/ch341-0.0/ch341.c:568: error: unknown field
âusb_driverâ specified in initializer
/home/devs/temp/kmod/ch341-0.0/ch341.c:568: warning: initialization
makes integer from pointer without a cast
/home/devs/temp/kmod/ch341-0.0/ch341.c:568: error: initializer element
is not computable at load time
/home/devs/temp/kmod/ch341-0.0/ch341.c:568: error: (near
initialization for âch341_device.num_interrupt_inâ)
/home/devs/temp/kmod/ch341-0.0/ch341.c:570: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:571: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:572: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:573: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:574: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:575: warning: initialization
from incompatible pointer type
/home/devs/temp/kmod/ch341-0.0/ch341.c:576: warning: initialization
from incompatible pointer type
make[2]: *** [/home/devs/temp/kmod/ch341-0.0/ch341.o] Error 1
make[1]: *** [_module_/home/devs/temp/kmod/ch341-0.0] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.6.1.el5-x86_64'
make: *** [modules] Error 2
But I seems to be getting an error, could I be so bold has to ask if
you might be able to help me ... I'm not a programmer and this goes
way over my head ...
Thanks
Mailed
LeeT
More information about the elrepo
mailing list