Xilinx cable driver pod 2.6.14
Jakub Ladman
ladmanj@volny.cz
Pondělí Leden 23 13:59:02 CET 2006
Omluva se prijima :-)
Dne po 23. ledna 2006 13:52 MK napsal(a):
> Promin, ale reagoval jsem dle meho soudu adekvatne k Tvemu prohlaseni:
Zde je pro zajimavost vypis procesu instalace prvniho z modulu.
Ale stejne to nikdo asi cist nebude.
Jakub Ladman
trotl driver # cd linuxdrivers.2.6/windrvr/
trotl windrvr # ./configure
creating cache ./config.cache
checking for WinDriver root
directory... /home/ladmanj/downloads/xilinx_install/driver/linuxdrivers.2.6
checking for linux kernel source... found
at /lib/modules/2.6.14-gentoo-r2/build
checking for lib directory... /usr/lib
checking which directories to include...
-I/lib/modules/2.6.14-gentoo-r2/build/include
-I/lib/modules/2.6.14-gentoo-r2/build/include/asm/mach-default
checking linux kernel version... 2.6.14-gentoo-r2
checking for modules installation
directory... /lib/modules/2.6.14-gentoo-r2/kernel/drivers/misc
checking for gcc kernel version... 3
checking output directory... LINUX.2.6.14-gentoo-r2.i386
checking target... LINUX.2.6.14-gentoo-r2.i386/windrvr6.ko
checking for usb support... yes
checking for regparm kernel option... 0
checking for right linked object... windrvr_gcc_v3.a
checking for modpost
location... /lib/modules/2.6.14-gentoo-r2/build/scripts/mod/modpost
checking for udev support... yes
updating cache ./config.cache
creating ./config.status
creating makefile
trotl windrvr # make
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -nostdinc -iwithprefix
include -Wstrict-prototypes -Wno-trigraphs -fno-common -pipe
-DKBUILD_MODNAME=windrvr6 -O -I/lib/modules/2.6.14-gentoo-r2/build/include
-I/lib/modules/2.6.14-gentoo-r2/build/include/asm/mach-default
-fno-strict-aliasing -DUDEV_SUPPORT -c -o
LINUX.2.6.14-gentoo-r2.i386/linux_wrappers.o linux_wrappers.c
linux_wrappers.c: In function `LINUX_register_chrdev':
linux_wrappers.c:335: warning: implicit declaration of function
`class_simple_create'
linux_wrappers.c:335: warning: assignment makes pointer from integer without a
cast
linux_wrappers.c:342: warning: implicit declaration of function
`class_simple_device_add'
linux_wrappers.c:355: warning: implicit declaration of function
`class_simple_device_remove'
linux_wrappers.c:356: warning: implicit declaration of function
`class_simple_destroy'
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -nostdinc -iwithprefix
include -Wstrict-prototypes -Wno-trigraphs -fno-common -pipe
-DKBUILD_MODNAME=windrvr6 -O -I/lib/modules/2.6.14-gentoo-r2/build/include
-I/lib/modules/2.6.14-gentoo-r2/build/include/asm/mach-default
-fno-strict-aliasing -DUDEV_SUPPORT -c -o
LINUX.2.6.14-gentoo-r2.i386/wdusb_linux.o wdusb_linux.c
ld -m elf_i386 -r -o LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
LINUX.2.6.14-gentoo-r2.i386/linux_wrappers.o
LINUX.2.6.14-gentoo-r2.i386/wdusb_linux.o windrvr_gcc_v3.a
/lib/modules/2.6.14-gentoo-r2/build/scripts/mod/modpost
LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -nostdinc -iwithprefix
include -Wstrict-prototypes -Wno-trigraphs -fno-common -pipe
-DKBUILD_MODNAME=windrvr6 -O -I/lib/modules/2.6.14-gentoo-r2/build/include
-I/lib/modules/2.6.14-gentoo-r2/build/include/asm/mach-default
-fno-strict-aliasing -DUDEV_SUPPORT -c -o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.c
ld -m elf_i386 -r -o LINUX.2.6.14-gentoo-r2.i386/windrvr6.ko
LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.o
trotl windrvr # make install
ld -m elf_i386 -r -o LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
LINUX.2.6.14-gentoo-r2.i386/linux_wrappers.o
LINUX.2.6.14-gentoo-r2.i386/wdusb_linux.o windrvr_gcc_v3.a
/lib/modules/2.6.14-gentoo-r2/build/scripts/mod/modpost
LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -nostdinc -iwithprefix
include -Wstrict-prototypes -Wno-trigraphs -fno-common -pipe
-DKBUILD_MODNAME=windrvr6 -O -I/lib/modules/2.6.14-gentoo-r2/build/include
-I/lib/modules/2.6.14-gentoo-r2/build/include/asm/mach-default
-fno-strict-aliasing -DUDEV_SUPPORT -c -o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.c
ld -m elf_i386 -r -o LINUX.2.6.14-gentoo-r2.i386/windrvr6.ko
LINUX.2.6.14-gentoo-r2.i386/windrvr6.o
LINUX.2.6.14-gentoo-r2.i386/windrvr6.mod.o
./setup_inst_dir
ln
-sf /home/ladmanj/downloads/xilinx_install/driver/linuxdrivers.2.6/lib/libwd_utils.so /usr/lib/libwd_utils.so
Installing the WinDriver kernel module
--------------------
WinDriver's kernel module (windrvr6.o) can be reloaded upon every boot.
The kernel module will only be loaded after executing the following command
upon boot:
/sbin/insmod windrvr6
It is recommended to add this call in your rc.local file.
NOTE: Due to security reasons, by default, /dev/windrvr6 is created with
permissions only for the root user. To enable other user access,
add the line windrvr6:root:root:0666
to /etc/udev/permissions.d/50-udev.permissions
mkdir -p /lib/modules/2.6.14-gentoo-r2/kernel/drivers/misc
cp
LINUX.2.6.14-gentoo-r2.i386/windrvr6.ko /lib/modules/2.6.14-gentoo-r2/kernel/drivers/misc
./wdreg windrvr6 yes
FATAL: Error inserting windrvr6
(/lib/modules/2.6.14-gentoo-r2/kernel/drivers/misc/windrvr6.ko): Invalid
module format
make: *** [install] Error 1
trotl windrvr #
Další informace o konferenci Hw-list