View previous topic :: View next topic |
Author |
Message |
Phobos4711 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Oct 2018 Posts: 5
|
Posted: Thu Oct 04, 2018 8:20 pm Post subject: Unable to build out of tree mt7610u driver |
|
|
Hi,
I'm trying to build the mt7610u driver from https://github.com/ulli-kroll/mt7610u/
It fails with multiple kernel versions and always at the same file:
Code: |
➜ mt7610u git:(master) ✗ LANG=C make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.17.4-gentoo/build M=/home/promi/src/mt7610u modules
make[1]: Entering directory '/usr/src/linux-4.17.4-gentoo'
CC [M] /home/promi/src/mt7610u/os/linux/rt_profile.o
CC [M] /home/promi/src/mt7610u/sta/assoc.o
CC [M] /home/promi/src/mt7610u/sta/auth.o
CC [M] /home/promi/src/mt7610u/sta/auth_rsp.o
CC [M] /home/promi/src/mt7610u/sta/sync.o
CC [M] /home/promi/src/mt7610u/sta/sanity.o
CC [M] /home/promi/src/mt7610u/sta/rtmp_data.o
CC [M] /home/promi/src/mt7610u/sta/connect.o
CC [M] /home/promi/src/mt7610u/sta/wpa.o
CC [M] /home/promi/src/mt7610u/sta/sta_cfg.o
CC [M] /home/promi/src/mt7610u/mgmt/mgmt_vht.o
CC [M] /home/promi/src/mt7610u/common/vht.o
CC [M] /home/promi/src/mt7610u/common/crypt_md5.o
CC [M] /home/promi/src/mt7610u/common/crypt_sha2.o
CC [M] /home/promi/src/mt7610u/common/crypt_hmac.o
CC [M] /home/promi/src/mt7610u/common/crypt_aes.o
CC [M] /home/promi/src/mt7610u/common/crypt_arc4.o
CC [M] /home/promi/src/mt7610u/common/mlme.o
CC [M] /home/promi/src/mt7610u/common/cmm_wep.o
CC [M] /home/promi/src/mt7610u/common/action.o
CC [M] /home/promi/src/mt7610u/common/cmm_data.o
CC [M] /home/promi/src/mt7610u/common/rtmp_init.o
CC [M] /home/promi/src/mt7610u/common/rtmp_init_inf.o
CC [M] /home/promi/src/mt7610u/common/cmm_tkip.o
CC [M] /home/promi/src/mt7610u/common/cmm_aes.o
CC [M] /home/promi/src/mt7610u/common/cmm_sync.o
CC [M] /home/promi/src/mt7610u/common/cmm_sanity.o
CC [M] /home/promi/src/mt7610u/common/cmm_info.o
CC [M] /home/promi/src/mt7610u/common/cmm_cfg.o
CC [M] /home/promi/src/mt7610u/common/cmm_wpa.o
CC [M] /home/promi/src/mt7610u/common/cmm_radar.o
CC [M] /home/promi/src/mt7610u/common/spectrum.o
CC [M] /home/promi/src/mt7610u/common/rtmp_timer.o
CC [M] /home/promi/src/mt7610u/common/rt_channel.o
CC [M] /home/promi/src/mt7610u/common/cmm_profile.o
CC [M] /home/promi/src/mt7610u/common/cmm_asic.o
CC [M] /home/promi/src/mt7610u/common/scan.o
CC [M] /home/promi/src/mt7610u/common/cmm_cmd.o
CC [M] /home/promi/src/mt7610u/common/uapsd.o
CC [M] /home/promi/src/mt7610u/common/ps.o
CC [M] /home/promi/src/mt7610u/rate_ctrl/ra_ctrl.o
CC [M] /home/promi/src/mt7610u/rate_ctrl/alg_legacy.o
CC [M] /home/promi/src/mt7610u/rate_ctrl/alg_ags.o
CC [M] /home/promi/src/mt7610u/chips/rtmp_chip.o
CC [M] /home/promi/src/mt7610u/common/txpower.o
CC [M] /home/promi/src/mt7610u/mac/rtmp_mac.o
CC [M] /home/promi/src/mt7610u/mgmt/mgmt_entrytb.o
CC [M] /home/promi/src/mt7610u/phy/rlt_phy.o
CC [M] /home/promi/src/mt7610u/phy/rlt_rf.o
CC [M] /home/promi/src/mt7610u/rate_ctrl/alg_grp.o
CC [M] /home/promi/src/mt7610u/common/ba_action.o
CC [M] /home/promi/src/mt7610u/mgmt/mgmt_ht.o
CC [M] /home/promi/src/mt7610u/common/rt_os_util.o
CC [M] /home/promi/src/mt7610u/os/linux/sta_ioctl.o
CC [M] /home/promi/src/mt7610u/os/linux/rt_linux.o
/home/promi/src/mt7610u/os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/home/promi/src/mt7610u/os/linux/rt_linux.c:1144:13: error: ‘struct net_device’ has no member named ‘wireless_handlers’; did you mean ‘rx_handler’?
pNetDev->wireless_handlers = &rt28xx_iw_handler_def;
^~~~~~~~~~~~~~~~~
rx_handler
make[2]: *** [scripts/Makefile.build:313: /home/promi/src/mt7610u/os/linux/rt_linux.o] Error 1
make[1]: *** [Makefile:1571: _module_/home/promi/src/mt7610u] Error 2
make[1]: Leaving directory '/usr/src/linux-4.17.4-gentoo'
make: *** [Makefile:370: modules] Error 2
|
This seems to be a Gentoo specific problem as I don't have any problems building the module on Debian.
I reported this on the upstream repo, but got no response so far: https://github.com/ulli-kroll/mt7610u/issues/79
Any ideas on what to do? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Anon-E-moose Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/3064969284ad468b81342a.jpg)
Joined: 23 May 2008 Posts: 6222 Location: Dallas area
|
Posted: Thu Oct 04, 2018 8:31 pm Post subject: |
|
|
From https://github.com/jurobystricky/Netgear-A6210/issues/36 it's talking about 4.9 series kernel, but probably still applies.
Code: | lschneiderbauer commented on Apr 29, 2017
I fixed that error by enabling CONFIG_WIRELESS_EXT in the kernel. You cannot enable it directly though, you have to enable some wireless module which pulls CONFIG_WIRELESS_EXT in.
The module compiles now. |
_________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23098
|
Posted: Fri Oct 05, 2018 1:17 am Post subject: |
|
|
When you built the module on Debian, did you use the same configuration as you used on Gentoo? If not, then it's not an accurate comparison. Looking at the source, the issue that Anon-E-moose found seems to apply in v4.17 as well. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Phobos4711 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Oct 2018 Posts: 5
|
Posted: Fri Oct 05, 2018 7:17 am Post subject: |
|
|
I was just wondering, why it worked on Debian, but not Gentoo.
You are right of course, I was using the stock kernel from Debian, so it includes CONFIG_WIRELESS_EXT.
On the other hand I had removed all of the in-tree drivers for WIFI in the Gentoo config.
So it's not a Gentoo specific problem after all.
Thank you both very much! ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Phobos4711 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Oct 2018 Posts: 5
|
Posted: Wed Oct 17, 2018 7:11 pm Post subject: |
|
|
I tried your suggestion and now the driver builds successfully.
I enabled CONFIG_IPW2200 (Intel PRO/Wireless 2200BG and 2915ABG Network Connection) which did the trick just fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|