OpenWrt Forum Archive

Topic: Problem adding an MT7601u USB WiFI dongle to a Seagate GoFLEX Home

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Someone once gave me this 360 WiFi Mini USB dongle (sans the built-in 8GB storage). It is based on the MediaTek MT7601u chipset as shown below (from a dmesg dump). So, I re-build OpenWRT for my PogoPlug Pro 02 to include both the kmod-mt76 and kmod-mt7601u package (selected as built-in drivers). When I plugged the device into my PogoPlug Pro 02 unit, its LED lights up very bright, dmesg shows it is recognized with the MT7601u driver as shown below, and LuCI shows Generic 802.11bgn Wireless Controller (radio1) in its Wireless section.

[  406.930053] usb 1-1.4: new high-speed USB device number 4 using oxnas-ehci
[  407.440048] usb 1-1.4: new high-speed USB device number 5 using oxnas-ehci
[  407.651822] usb 1-1.4: New USB device found, idVendor=148f, idProduct=760b
[  407.744271] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  407.842245] usb 1-1.4: Product: 802.11 n WLAN
[  407.900559] usb 1-1.4: Manufacturer: MediaTek
[  407.958886] usb 1-1.4: SerialNumber: 1.0
[  408.100152] usb 1-1.4: reset high-speed USB device number 5 using oxnas-ehci
[  408.306347] mt7601u 1-1.4:1.0: ASIC revision: 76010001 MAC revision: 76010500
[  408.480527] mt7601u 1-1.4:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[  409.156177] mt7601u 1-1.4:1.0: Warning: unsupported EEPROM version 0d
[  409.242690] mt7601u 1-1.4:1.0: EEPROM ver:0d fae:00
[  409.610470] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[root@PogoPlug:/root 4%] #

Since my PogoPlug Pro 02 already has a built-in WiFI (based on the MediaTek MT7601 chipset), I thought perhaps I should hack this to use on my Seagate GoFLEX Home unit. So, I reconfigured my OpenWRT source through the make menuconfig and changed its Target System setting to Marvell Kirkwood with a Target Profile for a Seagate GoFLEX Home. I still have the kmod-mt7601u package selected (built-in) with kmod-mt76 selected (as module). I recompiled to build OpenWRT firmware for my Seagate GoFLEX Home. Upon booting this newly built firmware, I plugged the 360 WiFi Mini USB dongle into the USB port on my Seagate GoFLEX Home. Its LED does lite up, but dimmer. The dmesg dumps is different as shown below. It looks like the mt7601u driver does not get loaded. Am I missing something?

[35992.714214] usb 1-1: new high-speed USB device number 3 using orion-ehci
[35992.965981] usb 1-1: New USB device found, idVendor=148f, idProduct=760b
[35993.062480] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[35993.165158] usb 1-1: Product: 802.11 n WLAN
[35993.225257] usb 1-1: Manufacturer: MediaTek
[35993.285412] usb 1-1: SerialNumber: 1.0
[goflex@GoFLEX:/home/local/goflex 10%] ~

Did you resolve this problem? I'm looking to use one on a pogoplug-V4-A3-01.

With Linux kernel v4.4.x, the MediaTek MT7601U (USB) driver is now supported (see below) I no longer enable the kmod-mt76u package. This driver depends on NETDEVICES & WLAN. I just executed make kernel_menuconfig to include such a driver into the kernel and it works just fine. However, I have not gotten sometimes to play and/or test it to see how good is the USB dongle I have.

 .config - Linux/arm 4.4.0 Kernel Configuration
 [...] rivers > Network device support > Wireless LAN > Mediatek Wireless LAN support
  ┌──────────────────────── Mediatek Wireless LAN support ─────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty        │  
  │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> │  
  │  excludes, <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help,  │  
  │  </> for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < > module   │  
  │ ┌────────────────────────────────────────────────────────────────────────────┐ │  
  │ │    --- Mediatek Wireless LAN support                                       │ │  
  │ │    <*>   MediaTek MT7601U (USB) support                                    │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ │                                                                            │ │  
  │ └────────────────────────────────────────────────────────────────────────────┘ │  
  ├────────────────────────────────────────────────────────────────────────────────┤  
  │            <Select>    < Exit >    < Help >    < Save >    < Load >            │  
  └────────────────────────────────────────────────────────────────────────────────┘  
    

I'm not altogether up to speed here. Does this mean trunk, or build-your-own with the 4.4.0 kernel? If so, is there a guide?

Yes and this is from OpenWRT trunk. You can find the compiled version from snapshots. What I don't know if the Linux kernel will have a built-in mt7601u driver. However, it should have an external kernel module for mt7601u.

[debian@debian:/opt/openwrt-git-trunk 1330%] ~ grep mt7601 .config
# CONFIG_PACKAGE_mt7601u-firmware is not set
# CONFIG_PACKAGE_kmod-mt7601u is not set
[debian@debian:/opt/openwrt-git-trunk 1331%] ~

The discussion might have continued from here.