2014-06-07 16:44:19

by Powerful Notageek

[permalink] [raw]
Subject: MT7630e availability in kernel by default

Hello,?

I was wondering if anyone here would know when the drivers for this card will be added to the kernel by default.?

03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

Thank you.?


2014-06-10 06:39:52

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On Sat, Jun 07, 2014 at 02:47:58PM -0500, Larry Finger wrote:
> On 06/07/2014 02:13 PM, Powerful Notageek wrote:
> >dmesg says nothing and there's probably no firmware for the device (although linux-firmware is installed)
> >
> >These are the firmwares available to me:
> >
> >[root@localhost ~]# ll /usr/lib/firmware/rt2*
> >-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561.bin
> >-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561s.bin
> >-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2661.bin
> >-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2860.bin
> >-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2870.bin
>
> I looked more closely at the code in
> https://github.com/anthonywong/mt7630. There are a number of places
> where there are branches specific to the MT7630.
This driver is quite nice mix of rt2800pci and Mediatek/Ralink driver,
where MT7xx code was copied into rt2x00 from venodr driver. It can be
good start for adding support for mt7xx devices to rt2x00.

> It also needs a
> firmware file named mt7630.bin. Unfortunately, that file is not
> found in the repo, and a quick Google search failed to find it. The
> linux-firmware git repo has a file named mt7650.bin, but I think
> that is Bluetooth firmware.

Indeed, it is hard to find it.

> Unfortunately, there does not seem to be an easy fix, and only
> someone with the hardware could modify rt2800pci to support this
> device.

Yep, some substantial amount of work is needed to add support to new
MT7xxx chips properly to rt2x00.

Stanislaw

2014-06-07 19:13:46

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

dmesg says nothing and there's probably no firmware for the device (although linux-firmware is installed)?

These are the firmwares available to me:?

[root@localhost ~]# ll /usr/lib/firmware/rt2*
-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561.bin
-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561s.bin
-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2661.bin
-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2860.bin
-rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2870.bin

Thank you.?



On Sunday, 8 June 2014 12:24 AM, Larry Finger <[email protected]> wrote:
On 06/07/2014 01:25 PM, Powerful Notageek wrote:
> I tried them and here's the output: (verbose)
>
> [root@localhost ~]# modprobe -v rt2800pci
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/lib/crc-ccitt.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/wireless/cfg80211.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/mac80211/mac80211.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/misc/eeprom/eeprom_93cx6.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00mmio.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800mmio.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
> [root@localhost ~]# echo "14c3 7630" > /sys/bus/pci/drivers/rt2800pci/new_id
> [root@localhost ~]# iwconfig
> p3p1? ? ? no wireless extensions.
>
> lo? ? ? ? no wireless extensions.

When you do the above, what ends up in the dmesg output? In particular, is the
firmware available?




Larry

2014-06-07 17:51:50

by Larry Finger

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On 06/07/2014 11:38 AM, Powerful Notageek wrote:
> Hello,
>
> I was wondering if anyone here would know when the drivers for this card will be added to the kernel by default.
>
> 03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

Supplying the line from 'lspci -nn' is a lot more helpful than just lspci.

According to the Web, the wireless chip is from Ralink. There is a git repo that
is supposed to have a driver for the device, but it is full of the standard
rt2xxx driver files. Perhaps it will work with newer kernels, or by adding the
PCI ID to an existing driver. In any case, we need the PCI ID.

Larry


2014-06-07 18:32:22

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

I tried them and here's the output: (verbose)

[root@localhost ~]# modprobe -v rt2800pci?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/lib/crc-ccitt.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/wireless/cfg80211.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/mac80211/mac80211.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/misc/eeprom/eeprom_93cx6.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00mmio.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800mmio.ko?
insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko?
[root@localhost ~]# echo "14c3 7630" > /sys/bus/pci/drivers/rt2800pci/new_id
[root@localhost ~]# iwconfig?
p3p1 no wireless extensions.

lo no wireless extensions.


Also lspci -v?

03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
?Subsystem: Foxconn International, Inc. Device e074
?Flags: fast devsel, IRQ 17
?Memory at f7900000 (32-bit, non-prefetchable) [size=1M]
?Capabilities: [40] Power Management version 3
?Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
?Capabilities: [70] Express Endpoint, MSI 00
?Capabilities: [100] Advanced Error Reporting
?Capabilities: [140] Device Serial Number 00-00-b1-93-a0-b6-5a-48
?Capabilities: [150] Latency Tolerance Reporting

[root@localhost ~]# uname -r?
3.14.4-200.fc20.x86_64

Thanks you.?




On Saturday, 7 June 2014 11:46 PM, Larry Finger <[email protected]> wrote:
On 06/07/2014 12:59 PM, Powerful Notageek wrote:
> Here's lspci -nn
>
> 03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
>
> I have tried using the drivers available on RALink/Mediatek on a pretty recent kernel of Fedora20, didn't seem to work.
>
> Thanks

That PCI ID is not in the latest Ralink driver, which is essentially what will
be in kernel 3.16.

Please try the following:

su -
modprobe -v rt2800pci
echo "14c3 7630" > /sys/bus/pci/drivers/rt2800pci/new_id

Does that yield a wireless lan device?




Larry

2014-06-08 05:26:58

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

I'd also be willing to help you test your changes. I can follow instructions, if you'd tell me what to do.?

Thanks.?



On Sunday, 8 June 2014 9:16 AM, Powerful Notageek <[email protected]> wrote:
:) Wow! Thanks!?






On Sunday, 8 June 2014 9:07 AM, Larry Finger <[email protected]> wrote:
On 06/07/2014 09:05 PM, Powerful Notageek wrote:
> Thank you for taking time to investigate it with me. Essentially, the driver for it doesn't exist in any form and maybe it will be introduced at a later release after 3.16.
>
> Thanks again, appreciate it very much.

I bought such a device on EBay for $6.99. nce it arrives, I will try to modify
rt2800pci to handle it when I get some time.




Larry

2014-06-07 18:54:56

by Larry Finger

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On 06/07/2014 01:25 PM, Powerful Notageek wrote:
> I tried them and here's the output: (verbose)
>
> [root@localhost ~]# modprobe -v rt2800pci
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/lib/crc-ccitt.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/wireless/cfg80211.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/net/mac80211/mac80211.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/misc/eeprom/eeprom_93cx6.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00mmio.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800mmio.ko
> insmod /lib/modules/3.14.4-200.fc20.x86_64/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
> [root@localhost ~]# echo "14c3 7630" > /sys/bus/pci/drivers/rt2800pci/new_id
> [root@localhost ~]# iwconfig
> p3p1 no wireless extensions.
>
> lo no wireless extensions.

When you do the above, what ends up in the dmesg output? In particular, is the
firmware available?

Larry



2014-06-08 03:46:08

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

:) Wow! Thanks!?



On Sunday, 8 June 2014 9:07 AM, Larry Finger <[email protected]> wrote:
On 06/07/2014 09:05 PM, Powerful Notageek wrote:
> Thank you for taking time to investigate it with me. Essentially, the driver for it doesn't exist in any form and maybe it will be introduced at a later release after 3.16.
>
> Thanks again, appreciate it very much.

I bought such a device on EBay for $6.99. nce it arrives, I will try to modify
rt2800pci to handle it when I get some time.




Larry

2014-06-08 02:05:36

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

Thank you for taking time to investigate it with me. Essentially, the driver for it doesn't exist in any form and maybe it will be introduced at a later release after 3.16.?

Thanks again, appreciate it very much.?



On Sunday, 8 June 2014 1:18 AM, Larry Finger <[email protected]> wrote:
On 06/07/2014 02:13 PM, Powerful Notageek wrote:
> dmesg says nothing and there's probably no firmware for the device (although linux-firmware is installed)
>
> These are the firmwares available to me:
>
> [root@localhost ~]# ll /usr/lib/firmware/rt2*
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561.bi
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561s.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2661.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2860.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2870.bin

I looked more closely at the code in https://github.com/anthonywong/mt7630.
There are a number of places where there are branches specific to the MT7630. It
also needs a firmware file named mt7630.bin. Unfortunately, that file is not
found in the repo, and a quick Google search failed to find it. The
linux-firmware git repo has a file named mt7650.bin, but I think that is
Bluetooth firmware.

Unfortunately, there does not seem to be an easy fix, and only someone with the
hardware could modify rt2800pci to support this device.




Larry

2014-06-07 17:59:42

by Powerful Notageek

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

Here's lspci -nn

03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]

I have tried using the drivers available on RALink/Mediatek on a pretty recent kernel of Fedora20, didn't seem to work.?

Thanks



On Saturday, 7 June 2014 11:21 PM, Larry Finger <[email protected]> wrote:
On 06/07/2014 11:38 AM, Powerful Notageek wrote:



> Hello,
>
> I was wondering if anyone here would know when the drivers for this card will be added to the kernel by default.
>
> 03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

Supplying the line from 'lspci -nn' is a lot more helpful than just lspci.

According to the Web, the wireless chip is from Ralink. There is a git repo that
is supposed to have a driver for the device, but it is full of the standard
rt2xxx driver files. Perhaps it will work with newer kernels, or by adding the
PCI ID to an existing driver. In any case, we need the PCI ID.

Larry

2014-06-07 18:16:12

by Larry Finger

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On 06/07/2014 12:59 PM, Powerful Notageek wrote:
> Here's lspci -nn
>
> 03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
>
> I have tried using the drivers available on RALink/Mediatek on a pretty recent kernel of Fedora20, didn't seem to work.
>
> Thanks

That PCI ID is not in the latest Ralink driver, which is essentially what will
be in kernel 3.16.

Please try the following:

su -
modprobe -v rt2800pci
echo "14c3 7630" > /sys/bus/pci/drivers/rt2800pci/new_id

Does that yield a wireless lan device?

Larry



2014-06-08 03:37:29

by Larry Finger

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On 06/07/2014 09:05 PM, Powerful Notageek wrote:
> Thank you for taking time to investigate it with me. Essentially, the driver for it doesn't exist in any form and maybe it will be introduced at a later release after 3.16.
>
> Thanks again, appreciate it very much.

I bought such a device on EBay for $6.99. nce it arrives, I will try to modify
rt2800pci to handle it when I get some time.

Larry



2014-06-07 19:48:01

by Larry Finger

[permalink] [raw]
Subject: Re: MT7630e availability in kernel by default

On 06/07/2014 02:13 PM, Powerful Notageek wrote:
> dmesg says nothing and there's probably no firmware for the device (although linux-firmware is installed)
>
> These are the firmwares available to me:
>
> [root@localhost ~]# ll /usr/lib/firmware/rt2*
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2561s.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2661.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2860.bin
> -rw-r--r--. 1 root root 8192 Mar 18 00:08 /usr/lib/firmware/rt2870.bin

I looked more closely at the code in https://github.com/anthonywong/mt7630.
There are a number of places where there are branches specific to the MT7630. It
also needs a firmware file named mt7630.bin. Unfortunately, that file is not
found in the repo, and a quick Google search failed to find it. The
linux-firmware git repo has a file named mt7650.bin, but I think that is
Bluetooth firmware.

Unfortunately, there does not seem to be an easy fix, and only someone with the
hardware could modify rt2800pci to support this device.

Larry