Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to build out of tree mt7610u driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Phobos4711
n00b
n00b


Joined: 04 Oct 2018
Posts: 5

PostPosted: Thu Oct 04, 2018 8:20 pm    Post subject: Unable to build out of tree mt7610u driver Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6222
Location: Dallas area

PostPosted: Thu Oct 04, 2018 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23098

PostPosted: Fri Oct 05, 2018 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Phobos4711
n00b
n00b


Joined: 04 Oct 2018
Posts: 5

PostPosted: Fri Oct 05, 2018 7:17 am    Post subject: Reply with quote

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! :D
Back to top
View user's profile Send private message
Phobos4711
n00b
n00b


Joined: 04 Oct 2018
Posts: 5

PostPosted: Wed Oct 17, 2018 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum