Originally Posted by
Odur
I've successfully compiled the sk98lin on Kubuntu 9.10 by doing this little modification to the installation script.
Open the file "functions" and replace all occurrences of "/source" with "/build".
After this the ./install.sh runs without problem and the driver module compiles smoothly.
Just remember to run it with bash
sudo bash ./install.sh
Good luck.
I haven't tried it for a while, I did what you wrote but again some kind of problem:
Code:
+++ Install mode: User
+++ Driver version: 10.81.5.3 (Oct-14-2009)
+++ Kernel version 2.6.31-20-generic
+++ smp_count=1
+++ cpu_number=2
+++ kernel_machine=x86_64
+++ Architecture: x86_64
+++ modpost available
+++ Unpack the sources
+++ ====================================
+++ tar xfv sk98lin.tar
2.6/
2.6/h/
2.6/h/skdrv1st.h
2.6/h/skdrv2nd.h
2.6/Makefile
2.6/skge.c
2.6/skproc.c
2.6/skdim.c
2.6/sky2.c
2.6/skethtool.c
common/
common/h/
common/h/lm80.h
common/h/mvyexhw.h
common/h/skaddr.h
common/h/skcsum.h
common/h/skdebug.h
common/h/skerror.h
common/h/skgedrv.h
common/h/skgehw.h
common/h/skgehwt.h
common/h/skgeinit.h
common/h/skgepnm2.h
common/h/skgepnmi.h
common/h/skgesirq.h
common/h/skgetwsi.h
common/h/skpcidevid.h
common/h/skqueue.h
common/h/skrlmt.h
common/h/sktimer.h
common/h/sktwsi.h
common/h/sktypes.h
common/h/skversion.h
common/h/skvpd.h
common/h/sky2le.h
common/h/xmac_ii.h
common/skaddr.c
common/skcsum.c
common/skgehwt.c
common/skgeinit.c
common/skgemib.c
common/skgepnmi.c
common/skgesirq.c
common/sklm80.c
common/skqueue.c
common/skrlmt.c
common/sktimer.c
common/sktwsi.c
common/skvpd.c
common/skxmac2.c
common/sky2le.c
common/vpdcheck.c
common/sk98lin.txt
common/sk98lin.htm
common/sk98lin.4
misc/
misc/Configure.help
misc/Kconfig
+++ Compile the driver
+++ ====================================
make: Entering directory `/usr/src/linux-headers-2.6.31-20-generic'
make -C /lib/modules/2.6.31-20-generic/build \
KBUILD_SRC=/usr/src/linux-headers-2.6.31-20-generic \
KBUILD_EXTMOD="/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all" -f /usr/src/linux-headers-2.6.31-20-generic/Makefile \
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.tmp_versions ; rm -f /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.tmp_versions/*
make -f /usr/src/linux-headers-2.6.31-20-generic/scripts/Makefile.build obj=/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all
rm -f /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/built-in.o; ar rcs /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/built-in.o
cc -Wp,-MD,/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.skge.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include -I/usr/src/linux-headers-lbm- -Iinclude -Iinclude2 -I/usr/src/linux-headers-2.6.31-20-generic/include -I/usr/src/linux-headers-2.6.31-20-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -I/usr/src/linux-headers-2.6.31-20-generic/ubuntu/include -I/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -fstack-protector-all -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -I/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all -DSK_USE_CSUM -DSK_DIAG_SUPPORT -DGENESIS -DYUKON -DYUK2 -DCONFIG_SK98LIN_ZEROCOPY -DSK_EXTREME -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(skge)" -D"KBUILD_MODNAME=KBUILD_STR(sk98lin)" -c -o /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.tmp_skge.o /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c
cc -Wp,-MD,/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.sky2.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include -I/usr/src/linux-headers-lbm- -Iinclude -Iinclude2 -I/usr/src/linux-headers-2.6.31-20-generic/include -I/usr/src/linux-headers-2.6.31-20-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -I/usr/src/linux-headers-2.6.31-20-generic/ubuntu/include -I/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -fstack-protector-all -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -I/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all -DSK_USE_CSUM -DSK_DIAG_SUPPORT -DGENESIS -DYUKON -DYUK2 -DCONFIG_SK98LIN_ZEROCOPY -DSK_EXTREME -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(sky2)" -D"KBUILD_MODNAME=KBUILD_STR(sk98lin)" -c -o /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/.tmp_sky2.o /tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/sky2.c
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c: In function ‘sk98lin_init_device’:
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c:624: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c: In function ‘SkGeTestMsi’:
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c:1963: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
include/linux/interrupt.h:116: note: expected ‘irq_handler_t’ but argument is of type ‘int (*)(int, void *)’
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c: In function ‘SkDrvEvent’:
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c:6680: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.c:7017: error: ‘struct net_device’ has no member named ‘priv’
make[2]: *** [/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all/skge.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/Sk98IFOlFZTGFmgNHgmWnLpmF/all] Error 2
make: *** [sub-make] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.31-20-generic'
+++ Compiler error
Bookmarks