[opensuse] Problem compiling driver
Hi, I am trying to install the driver for my ethernet card on my laptop, and can't get it to build right. So I need some help to figure this out. I don't recognize what is causing the error when I try to "make clean modules." I have enclosed the readout from terminal for you to look over. The system is 11.3, with the default kde4 at fresh install. The driver that I am trying to compile is for a Realtek r8101 ethernet card built into the motherboard. The kernel-desktop was installed automatically at install. I couldn't make the driver with that kernel, so I uninstalled that kernel and installed kernel-default. I still have the same errors. Along with kernel-default I have kernel-default-base, and kernel-source installed. Here is the readout: make clean modules make -C src/ clean make[1]: Entering directory `/home/lxmark/Realtek/r8101-1.013.00/src' rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order make[1]: Leaving directory `/home/lxmark/Realtek/r8101-1.013.00/src' make -C src/ modules make[1]: Entering directory `/home/lxmark/Realtek/r8101-1.013.00/src' make -C /lib/modules/2.6.34-12-default/build SUBDIRS=/home/lxmark/Realtek/r8101-1.013.00/src modules make[2]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/default' make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/default/. modules CC [M] /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.o /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_get_ethtool_stats’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:1239:2: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: At top level: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:1332:2: error: unknown field ‘get_stats_count’ specified in initializer /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:1332:2: warning: initialization from incompatible pointer type /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_init_board’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2438:6: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2442:3: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_init_one’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2786:5: error: ‘struct net_device’ has no member named ‘open’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2787:5: error: ‘struct net_device’ has no member named ‘hard_start_xmit’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2788:5: error: ‘struct net_device’ has no member named ‘get_stats’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2790:5: error: ‘struct net_device’ has no member named ‘stop’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2791:5: error: ‘struct net_device’ has no member named ‘tx_timeout’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2792:5: error: ‘struct net_device’ has no member named ‘set_multicast_list’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2796:5: error: ‘struct net_device’ has no member named ‘change_mtu’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2797:5: error: ‘struct net_device’ has no member named ‘set_mac_address’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2798:5: error: ‘struct net_device’ has no member named ‘do_ioctl’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2813:5: error: ‘struct net_device’ has no member named ‘poll_controller’ /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_open’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:2926:2: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_hw_start’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:3183:2: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:3185:2: warning: ‘DMA_nnBIT_MASK’ is deprecated /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: At top level: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:433:1: warning: ‘rtl8101_phyio_read’ defined but not used /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:481:1: warning: ‘rtl8101_ephy_read’ defined but not used make[5]: *** [/home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.o] Error 1 make[4]: *** [_module_/home/lxmark/Realtek/r8101-1.013.00/src] Error 2 make[3]: *** [sub-make] Error 2 make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/default' make[1]: *** [modules] Error 2 make[1]: Leaving directory `/home/lxmark/Realtek/r8101-1.013.00/src' make: *** [modules] Error 2 Thanks in advance for the help! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, I am trying to install the driver for my ethernet card on my laptop, and can't get it to build right. So I need some help to figure this out.
I don't recognize what is causing the error when I try to "make clean modules." I have enclosed the readout from terminal for you to look over.
The system is 11.3, with the default kde4 at fresh install. The driver that I am trying to compile is for a Realtek r8101 ethernet card built into the motherboard.
The kernel-desktop was installed automatically at install. I couldn't make the driver with that kernel, so I uninstalled that kernel and installed kernel-default. I still have the same errors. Along with kernel-default I have kernel-default-base, and kernel-source installed.
Here is the readout: make clean modules make -C src/ clean make[1]: Entering directory `/home/lxmark/Realtek/r8101-1.013.00/src' rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order make[1]: Leaving directory `/home/lxmark/Realtek/r8101-1.013.00/src' make -C src/ modules make[1]: Entering directory `/home/lxmark/Realtek/r8101-1.013.00/src' make -C /lib/modules/2.6.34-12-default/build SUBDIRS=/home/lxmark/Realtek/r8101-1.013.00/src modules make[2]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/default' make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/default/. modules CC [M] /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.o /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c: In function ‘rtl8101_get_ethtool_stats’: /home/lxmark/Realtek/r8101-1.013.00/src/r8101_n.c:1239:2: warning: ‘DMA_nnBIT_MASK’ is deprecated Why do you try to use driver version 1.0.13 ? This version is probably too
Am Mittwoch, 8. September 2010 schrieb Mark Misulich: old and not working with current kernels. Try version 1.0.19 instead. You can download it at <http://www.realtek.com/Downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Mark Misulich
-
Markus Koßmann