mwl8k: Add 0x2a02 PCI device-id (Marvell 88W8361)
Subsystems (4)
PATCH 1/1 mwl8k: Add 0x2a02 PCI device-id (Marvell 88W8361)
User lautriv asked for belkin N-1 WLAN device support on IRC.
Further informations from lautriv:
* marvell 80W8031, card-id 11ab:2a02
* Debian/sid 3.2.x
On [1] I found a report by Jim Cromie concerning same PCI device-id:
00:0e.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88W8361 [TopDog] 802.11n Wireless [11ab:2a02] (rev 03)
Subsystem: Marvell Technology Group Ltd. 88W8361 [TopDog] 802.11n Wireless [11ab:2a02]
So, let's add 0x2a02 to PCI device table.
[1] http://www.spinics.net/lists/newbies/msg46601.html
--- drivers/net/wireless/mwl8k.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/mwl8k.c +1 -0
@@ -5264,6 +5264,7 @@ MODULE_FIRMWARE("mwl8k/fmimage_8366.fw");MODULE_FIRMWARE (MWL8K_8366_AP_FW (MWL8K_8366_AP_FW_API ));static DEFINE_PCI_DEVICE_TABLE (mwl8k_pci_id_table) = { + {PCI_VDEVICE (MARVELL ,0x2a02 ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a0a ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a0c ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a24 ), .driver_data =MWL8363 , },
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Sedat Dilek
User lautriv asked for belkin N-1 WLAN device support on IRC.
Further informations from lautriv:
* marvell 80W8031, card-id 11ab:2a02
* Debian/sid 3.2.x
Quoted 7 lines
On [1] I found a report by Jim Cromie concerning same PCI device-id:
00:0e.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88W8361 [TopDog] 802.11n Wireless [11ab:2a02] (rev 03)
Subsystem: Marvell Technology Group Ltd. 88W8361 [TopDog] 802.11n Wireless [11ab:2a02]So, let's add
0x2a02to PCI device table.
Let's not. There's no firmware for the 8361 that implements the firmware interface currently implemented by the mwl8k driver, so this is pretty useless.
Quoted 3 lines
[1] http://www.spinics.net/lists/newbies/msg46601.html
From that link:
| I have a card which modprobes, despite a PCI-ID mismatch | | [...] | | Given the pci-id mismatch shouldnt this just fail to modprobe ?
No. That's not a bug -- you are free to load drivers for hardware not currently in your system.
drivers/net/wireless/mwl8k.c MODULE_FIRMWARE("mwl8k/fmimage_8366.fw"); · line 5268
Quoted 3 lines
static
DEFINE_PCI_DEVICE_TABLE(mwl8k_pci_id_table)= {drivers/net/wireless/mwl8k.c +1
-0+ { PCI_VDEVICE(MARVELL, 0x2a02), .driver_data = MWL8363, }, { PCI_VDEVICE(MARVELL, 0x2a0a), .driver_data = MWL8363, },
A 8361 is certainly not a 8363.
Quoted 35 lines · Lennert Buytenhek
Quoted 6 lines · Sedat Dilek
User lautriv asked for belkin N-1 WLAN device support on IRC.
Further informations from lautriv:
* marvell 80W8031, card-id 11ab:2a02
* Debian/sid 3.2.xQuoted 7 lines
On [1] I found a report by Jim Cromie concerning same PCI device-id:
00:0e.0 Ethernet controller [0200]: Marvell Technology Group Ltd.
88W8361 [TopDog] 802.11n Wireless [11ab:2a02] (rev 03)
Subsystem: Marvell Technology Group Ltd. 88W8361 [TopDog] 802.11n Wireless [11ab:2a02]So, let's add
0x2a02to PCI device table.Let's not. There's no firmware for the 8361 that implements the firmware interface currently implemented by the mwl8k driver, so this is pretty useless.
Quoted 1 line
From that link:
| I have a card which modprobes, despite a PCI-ID mismatch | | [...] | | Given the pci-id mismatch shouldnt this just fail to modprobe ?No. That's not a bug -- you are free to load drivers for hardware not currently in your system.
Quoted 5 lines
Quoted 3 lines
static
DEFINE_PCI_DEVICE_TABLE(mwl8k_pci_id_table)= {
+ {PCI_VDEVICE(MARVELL, 0x2a02), .driver_data = MWL8363, }, {PCI_VDEVICE(MARVELL, 0x2a0a), .driver_data = MWL8363, },A 8361 is certainly not a 8363.
Damn, I got confused by all the numbers. More coffee. Thanks for the clarification. I will inform the user on IRC. Sorry, for the noise.
Are you planning to or even working on support (for) 8361 devices?
- Sedat -
Quoted 1 line · Sedat Dilek
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Quoted 5 lines · Lennert Buytenhek
Quoted 1 line · Sedat Dilek
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support? Does a firmware file exist (name?)? Asking just out of curiosity?
- Sedat -
Quoted 5 lines · Sedat Dilek
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 10 lines · Lennert Buytenhek
Quoted 5 lines · Sedat Dilek
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
Quoted 10 lines
Quoted 2 lines
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?
- Sedat -
Quoted 9 lines · Sedat Dilek
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?
I'm not sure. I've never tried to get a 8361 work under Linux.
Quoted 26 lines · Lennert Buytenhek
Quoted 9 lines · Sedat Dilek
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patch
Quoted 33 lines · Sedat Dilek
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Quoted 8 lines
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patch
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Quoted 40 lines · Lennert Buytenhek
Quoted 38 lines · Sedat Dilek
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
Quoted 7 lines
Quoted 3 lines
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchI doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
### HELP-1: https://forum.openwrt.org/viewtopic.php?pid=103243#p103243
### HELP-2: https://forum.openwrt.org/viewtopic.php?pid=110004#p110004
### From HELP-1:
To extract the firmware for the mwl8k driver, open your Ubuntu terminal:
sudo apt-get install cabextract unshield
mkdir mwl8k
cd mwl8k
wget -O mrv8k_extract_fw.c 'http://marc.info/?l=linux-wireless&m=126540674419330&q=p3' wget ftp://downloads.netgear.com/files/wn311t_4_2_setup.exe
mkdir mess
cabextract -F Disk1/data*.* -d mess wn311t_4_2_setup.exe unshield -g Driver -d mess x mess/Disk1/data1.cab gcc -o mrv8k_extract_fw mrv8k_extract_fw.c ./mrv8k_extract_fw mess/Driver/netmw145.sys
rm -r mess
md5sum -b *.fw
mv fmimage_8XX1.fw fmimage_8363.fw
mv helper_8XX1.fw helper_8363.fw
### From HELP-2: For Marwell 8361P
md5sum -b *.fw | egrep '48c79b085f7f5a590d3dbc15647e519f|0fe11f415adbbd5e8ca03641705c4a6c' [ OUTPUT ]48c79b085f7f5a590d3dbc15647e519f *fmimage_8XX0.fw 0fe11f415adbbd5e8ca03641705c4a6c *helper_8XX0.fw
mv fmimage_8XX0.fw fmimage_8361p.fw
mv helper_8XX0.fw helper_8361p.fw
### PATCH: https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patch
-dileks // 27-Apr-2012
Quoted 46 lines · Sedat Dilek
Quoted 44 lines · Lennert Buytenhek
Quoted 41 lines · Sedat Dilek
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patch
Quoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to /lib/firmware/mwl8k/ and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:
$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)
$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image -rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P: Helper image -rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fw
As said... ***compile-tested*** only here.
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic /etc/network/interfaces.
After resetting his router mwl8k worked nicely.
Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
So, Lennert if you want more testing - What? How? etc.
Thanks in advance.
- Sedat -
From 1a586a1f21f820de0ea06c5382a69191d93d80fe Mon Sep 17 00:00:00 2001
From: Sedat Dilek <[email protected]>
Date: Fri, 27 Apr 2012 13:46:02 +0200
Subject: [PATCH] mwl8k: Add support for MWL8361P
Follow discussion in [1] for more details about adding driver support and howto extract firmware files.
$ sudo modinfo mwl8k | egrep -i '8361p|2a02' firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw alias: pci:v000011ABd00002A02sv*sd*bc*sc*i*
Compile-tested against Linux-3.4-rc4+.
[1] http://marc.info/?t=133551792600004&r=1&w=2
--- drivers/net/wireless/mwl8k.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/net/wireless/mwl8k.c +9 -0
@@ -5225,6 +5225,7 @@ static void mwl8k_finalize_join_worker(struct work_struct *work) }enum { +MWL8361P =0 ,MWL8363 =0 ,MWL8687 ,MWL8366 ,
@@ -5235,6 +5236,11 @@ enum {#define MWL8K_8366_AP_FW (api) _MWL8K_8366_AP_FW(api)static struct mwl8k_device_info mwl8k_info_tbl[]__devinitdata = { + [MWL8361P ] = { + .part_name ="88w8361p" , + .helper_image ="mwl8k/helper_8361p.fw" , + .fw_image_sta ="mwl8k/fmimage_8361p.fw" , + }, [MWL8363 ] = { .part_name ="88w8363" , .helper_image ="mwl8k/helper_8363.fw" ,
@@ -5255,6 +5261,8 @@ static struct mwl8k_device_info mwl8k_info_tbl[] __devinitdata = { }, }; +MODULE_FIRMWARE ("mwl8k/helper_8361p.fw" ); +MODULE_FIRMWARE ("mwl8k/fmimage_8361p.fw" );MODULE_FIRMWARE ("mwl8k/helper_8363.fw" );MODULE_FIRMWARE ("mwl8k/fmimage_8363.fw" );MODULE_FIRMWARE ("mwl8k/helper_8687.fw" );
@@ -5264,6 +5272,7 @@ MODULE_FIRMWARE("mwl8k/fmimage_8366.fw");MODULE_FIRMWARE (MWL8K_8366_AP_FW (MWL8K_8366_AP_FW_API ));static DEFINE_PCI_DEVICE_TABLE (mwl8k_pci_id_table) = { + {PCI_VDEVICE (MARVELL ,0x2a02 ), .driver_data =MWL8361P , }, {PCI_VDEVICE (MARVELL ,0x2a0a ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a0c ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a24 ), .driver_data =MWL8363 , },
Signature · 1 line
1.7.9.5
Quoted 101 lines · Sedat Dilek
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchQuoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to
/lib/firmware/mwl8k/and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image(quoted diff) +0
-5-rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P:Helper image
(quoted diff) +0
-2-rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fw
Quoted 1 line
As said... ***compile-tested*** only here.
Which doesn't say much at all, but..
Quoted 7 lines
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)
Quoted 7 lines
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic/etc/network/interfaces.
After resetting his router mwl8k worked nicely.Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
..but this is pretty interesting. I thought that the only available 8361p firmware used an incompatible firmware API, and I didn't know of the existence of an apparently compatible firmware.
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
thanks,
Lennert
Quoted 103 lines · Lennert Buytenhek
Quoted 101 lines · Sedat Dilek
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchQuoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to
/lib/firmware/mwl8k/and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image(quoted diff) +0
-5-rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P:Helper image
(quoted diff) +0
-2-rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fw
Quoted 4 lines
Quoted 1 line
As said... ***compile-tested*** only here.
Which doesn't say much at all, but..
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
Quoted 25 lines
Quoted 8 lines
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)Quoted 7 lines
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic/etc/network/interfaces.
After resetting his router mwl8k worked nicely.Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
..but this is pretty interesting. I thought that the only available 8361p firmware used an incompatible firmware API, and I didn't know of the existence of an apparently compatible firmware.
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Quoted 8 lines
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
thanks,
Lennert
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,00173f3bdde3, STA firmware 2.1.4.25
But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
* e_n_a (/etc/network/interfaces)
* ifconfig output
* iwconfig output
* iw_phy output
* ps_axu (WPA) output
lautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.
Hope you have fun, together!
- Sedat -
Quoted 163 lines · Sedat Dilek
Quoted 103 lines · Lennert Buytenhek
Quoted 101 lines · Sedat Dilek
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchQuoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to
/lib/firmware/mwl8k/and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image(quoted diff) +0
-5-rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P:Helper image
(quoted diff) +0
-2-rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fwQuoted 4 lines
Quoted 1 line
As said... ***compile-tested*** only here.
Which doesn't say much at all, but..
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
Quoted 25 lines
Quoted 8 lines
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)Quoted 7 lines
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic/etc/network/interfaces.
After resetting his router mwl8k worked nicely.Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
..but this is pretty interesting. I thought that the only available 8361p firmware used an incompatible firmware API, and I didn't know of the existence of an apparently compatible firmware.
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Quoted 8 lines
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
thanks,
LennertOn 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) output
Quoted 7 lines
lautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
[dropped lkml from cc]
Quoted 169 lines · Sedat Dilek
Quoted 167 lines · Sedat Dilek
Quoted 103 lines · Lennert Buytenhek
Quoted 101 lines · Sedat Dilek
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchQuoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to
/lib/firmware/mwl8k/and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image(quoted diff) +0
-5-rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P:Helper image
(quoted diff) +0
-2-rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fwQuoted 4 lines
Quoted 1 line
As said... ***compile-tested*** only here.
Which doesn't say much at all, but..
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
Quoted 25 lines
Quoted 8 lines
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)Quoted 7 lines
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic/etc/network/interfaces.
After resetting his router mwl8k worked nicely.Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
..but this is pretty interesting. I thought that the only available 8361p firmware used an incompatible firmware API, and I didn't know of the existence of an apparently compatible firmware.
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Quoted 8 lines
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
thanks,
LennertOn 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.
Quoted 8 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on mwl8k.c
bottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) output
devs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0a
loudly () {
echo "# $@"
fname=`echo $@ | sed -e 's/ /-/g'`
$@ 2> $fname-err | tee $fname
[ $? != 0 ] && echo non-zero exit on $fname: $?
[ -s $fname-err ] || rm $fname-err
}( iw --debug event -f > iw-event-f )&
pid_event=$!
for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
done
loudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collection
for dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
done
for phy in $phys ; do
loudly iw phy $phy info
done
# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmac
for N in 0 1 ; do
loudly iw dev fish$N del
done
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_event
dmesg > dmesg
grep -vE '^#|key' /etc/network/interfaces > e_n_a
exit
Quoted 251 lines · Jim Cromie
[dropped lkml from cc]
Quoted 169 lines · Sedat Dilek
Quoted 167 lines · Sedat Dilek
Quoted 103 lines · Lennert Buytenhek
Quoted 101 lines · Sedat Dilek
Quoted 42 lines
Quoted 42 lines
Quoted 41 lines
Quoted 24 lines
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Are you planning to or even working on support (for) 8361 devices?
I don't have any such plans, and I don't know of anyone who does.
Does 8361 require firmware support?
What do you mean by that?
IIRC ath5k for example needs no external firmware file.
The 8361 requires firmware to be loaded into it before it'll do anything useful.
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Does a firmware file exist (name?)?
There's firmware for the 8361 out there, however, that version of the firmware implements a firmware API that is different from the one that mwl8k currently implements.
You could add 8361 support to mwl8k, but then you'd have to go over all the firmware command invocations in mwl8k and make sure that they will work on the 8361 firmware that you're trying to support as well.
Quoted 8 lines
Quoted 6 lines
Without having a 8361 this will be even harder to walk through.
Anyway, thanks for your detailed explanations.
What's the alternative for such affected users?
Use ndis-wrapper?I'm not sure. I've never tried to get a 8361 work under Linux.
Just found on [1] this same wrong patch in [2] :-). Dunno if [3] worked and from where they have stolen fw-files.
- Sedat -
[1] https://dev.openwrt.org/ticket/7209
[2] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_fix_pci_id.patch
[3] https://dev.openwrt.org/attachment/ticket/7209/mwl8k_8361p.patchQuoted 8 lines
Quoted 3 lines
I doubt that [3] is really all that's needed to make it work. But if there's someone for whom it works, I'd like them to run some tests on mwl8k + [3] on 88w8361p.
Just asked lautriv to do so (he will do against linux-3.3.3), lets' see. Also, I refreshed and adapted a bit the instructions (see attachment).
- Sedat -
[ CC Jim Cromie ]
Now, with extracted firmware files renamed & copied to
/lib/firmware/mwl8k/and applied patch (see attachment) against Linux-3.4-rc4+ I am seeing with modinfo:$ sudo modinfo mwl8k filename: /lib/modules/3.4.0-rc4-5-generic/kernel/drivers/net/wireless/mwl8k.ko license: GPL author: Lennert Buytenhek <[email protected]> version: 0.13 description: Marvell TOPDOG(R) 802.11 Wireless Network Driver firmware: mwl8k/fmimage_8366_ap-2.fw firmware: mwl8k/fmimage_8366.fw firmware: mwl8k/helper_8366.fw firmware: mwl8k/fmimage_8687.fw firmware: mwl8k/helper_8687.fw firmware: mwl8k/fmimage_8363.fw firmware: mwl8k/helper_8363.fw firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw srcversion: 9E1479A05C8D67E6AE90746 alias: pci:v000011ABd00002A43sv*sd*bc*sc*i* alias: pci:v000011ABd00002A40sv*sd*bc*sc*i* alias: pci:v000011ABd00002A30sv*sd*bc*sc*i* alias: pci:v000011ABd00002A2Bsv*sd*bc*sc*i* alias: pci:v000011ABd00002A24sv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Csv*sd*bc*sc*i* alias: pci:v000011ABd00002A0Asv*sd*bc*sc*i* alias: pci:v000011ABd00002A02sv*sd*bc*sc*i* <--- 8361P: 0x2a02 PCI device-id depends: mac80211,cfg80211 vermagic: 3.4.0-rc4-5-generic SMP mod_unload modversions parm: ap_mode_default:Set to 1 to make ap mode the default instead of sta mode (bool)$ ls -l /lib/firmware/mwl8k/ insgesamt 456 -rw-r--r-- 1 root root 75848 Apr 27 13:49 fmimage_8361p.fw <--- 8361P: Firmware image(quoted diff) +0
-5-rw-r--r-- 1 root root 101780 Mär 19 19:32 fmimage_8366_ap-1.fw -rw-r--r-- 1 root root 101976 Mär 19 19:32 fmimage_8366_ap-2.fw -rw-r--r-- 1 root root 96664 Mär 19 19:32 fmimage_8366.fw -rw-r--r-- 1 root root 73252 Feb 23 20:07 fmimage_8687.fw -rw-r--r-- 1 root root 2476 Apr 27 13:49 helper_8361p.fw <--- 8361P:Helper image
(quoted diff) +0
-2-rw-r--r-- 1 root root 2476 Mär 19 19:32 helper_8366.fw -rw-r--r-- 1 root root 2476 Feb 23 20:07 helper_8687.fwQuoted 4 lines
Quoted 1 line
As said... ***compile-tested*** only here.
Which doesn't say much at all, but..
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
Quoted 25 lines
Quoted 8 lines
I had a short query with lautriv on #linux-wireless this afternoon:
* mwl8k kernel-module was autoloaded
* wlan0 interface got fired up
* ESSID was accepted
* logs reported 802.11bgn support is active
* (he tested on Linux-3.3.3)Quoted 7 lines
With WPA/WPA2 lautriv had some problems as his installation was missing wpasupplicant.
He setup a classic/etc/network/interfaces.
After resetting his router mwl8k worked nicely.Unfortunately, he was on the run and promised me to send logs and do more testing this evening.
..but this is pretty interesting. I thought that the only available 8361p firmware used an incompatible firmware API, and I didn't know of the existence of an apparently compatible firmware.
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Quoted 8 lines
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
thanks,
LennertOn 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Quoted 8 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () {
echo "# $@"
fname=echo $@ | sed -e 's/ /-/g'
$@ 2> $fname-err | tee $fname
[ $? != 0 ] && echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err
}( iw --debug event -f > iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
done
Quoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg > dmesg
grep -vE '^#|key'
/etc/network/interfaces>e_n_aexit
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
Hope this helps to get native Linux support for 8361p.
Regards,
- Sedat -
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for /etc/network/interfaces file, but e_n_a sounds more female and nicer :-).
Quoted 4 lines · Sedat Dilek
Quoted 2 lines · Jim Cromie
Quoted 2 lines
Quoted 2 lines
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
(I had to leave that one..:-)
Quoted 85 lines
Quoted 76 lines
Quoted 5 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () {
echo "# $@"
fname=echo $@ | sed -e 's/ /-/g'
$@ 2> $fname-err | tee $fname
[ $? != 0 ] && echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err
}( iw --debug event -f > iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
doneQuoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg > dmesg
grep -vE '^#|key'
/etc/network/interfaces>e_n_aexit
Quoted 8 lines
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
I havent tested reliability in any way.
in fact, I havent tested any data-xfer per se,
will do an iperf test soon.
That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/s
my laptop is much faster than both cards in the soekris box, to same AP
Connected to 00:14:d1:e8:65:0a (on wlan0)
SSID: yoduh freq: 2447 RX: 191134302 bytes (2120068 packets) TX: 17440426 bytes (120666 packets) signal: -45 dBm tx bitrate: 54.0 MBit/s bss flags: dtim period: 0 beacon int: 100
If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too.
Quoted 2 lines
Hope this helps to get native Linux support for 8361p.
hear hear.
FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant)
Quoted 6 lines
Regards,
- Sedat -
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for/etc/network/interfacesfile, bute_n_asounds more female and nicer :-).
I caught that, but it wasnt worth "correcting" ;-)
thanks
Jim
Quoted 145 lines · Jim Cromie
Quoted 4 lines · Sedat Dilek
Quoted 2 lines · Jim Cromie
Quoted 2 lines
Quoted 2 lines
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
(I had to leave that one..:-)
Quoted 85 lines
Quoted 76 lines
Quoted 5 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () {
echo "# $@"
fname=echo $@ | sed -e 's/ /-/g'
$@ 2> $fname-err | tee $fname
[ $? != 0 ] && echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err
}( iw --debug event -f > iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
doneQuoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg > dmesg
grep -vE '^#|key'
/etc/network/interfaces>e_n_aexit
Quoted 8 lines
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
I havent tested reliability in any way.
in fact, I havent tested any data-xfer per se,
will do an iperf test soon.That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/smy laptop is much faster than both cards in the soekris box, to same AP
Connected to 00:14:d1:e8:65:0a (on wlan0)
SSID: yoduh
freq: 2447
RX: 191134302 bytes (2120068 packets)
TX: 17440426 bytes (120666 packets)
signal: -45 dBm
tx bitrate: 54.0 MBit/sbss flags:
dtim period: 0
beacon int: 100If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too.
Quoted 2 lines
Hope this helps to get native Linux support for 8361p.
hear hear.
FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant)Quoted 3 lines
Regards,
- Sedat -
Quoted 8 lines
Quoted 3 lines
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for/etc/network/interfacesfile, bute_n_asounds more female and nicer :-).I caught that, but it wasnt worth "correcting" ;-)
thanks
Jim
Unfortunately, [1] says not much about debugging.
Anyway, Lennert has some new informations.
Let's see what the experts will say.
- Sedat -
[1] http://wireless.kernel.org/en/users/Drivers/mwl8k
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 145 lines · Sedat Dilek
Quoted 137 lines · Jim Cromie
Quoted 3 lines · Sedat Dilek
Quoted 2 lines · Jim Cromie
Quoted 2 lines
Quoted 2 lines
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
(I had to leave that one..:-)
Quoted 82 lines
Quoted 74 lines
Quoted 4 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () { echo "# $@" fname=`echo $@ | sed -e 's/ /-/g'` $@ 2> $fname-err | tee $fname [ $? != 0 ]&& echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err }( iw --debug event -f> iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
doneQuoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg> dmesg
grep -vE '^#|key'
/etc/network/interfaces>e_n_aexit
Quoted 8 lines
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
I havent tested reliability in any way.
in fact, I havent tested any data-xfer per se,
will do an iperf test soon.That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/smy laptop is much faster than both cards in the soekris box, to same AP
Connected to 00:14:d1:e8:65:0a (on wlan0)
SSID: yoduh freq: 2447 RX: 191134302 bytes (2120068 packets) TX: 17440426 bytes (120666 packets) signal: -45 dBm tx bitrate: 54.0 MBit/s bss flags: dtim period: 0 beacon int: 100If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too.
Quoted 1 line
Hope this helps to get native Linux support for 8361p.
hear hear.
FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant)Quoted 3 lines
Regards,
- Sedat -Quoted 7 lines
Quoted 3 lines
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for/etc/network/interfacesfile, bute_n_asounds more female and nicer :-).I caught that, but it wasnt worth "correcting" ;-)
thanks
Jim
Quoted 8 lines
Unfortunately, [1] says not much about debugging.
Anyway, Lennert has some new informations.
Let's see what the experts will say.- Sedat -
ok, as far as i can see for now, it looks like the actual solution is ignoring/rejecting any manual command to set parameters, neither iwconfig nor iw will change any settings. wpa_sup brings the card up and does also WPA2 but nothing else is tuneable thus a connection via 1Mb/s.
attaching a tarball from the results of the script which produced 42 files of output.
Quoted 169 lines · admin
Quoted 159 lines · Sedat Dilek
Quoted 148 lines · Jim Cromie
Quoted 6 lines · Sedat Dilek
Quoted 3 lines · Jim Cromie
Quoted 3 lines
Quoted 3 lines
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
(I had to leave that one..:-)
Quoted 84 lines
Quoted 75 lines
Quoted 4 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () {
echo "# $@"
fname=echo $@ | sed -e 's/ /-/g'
$@ 2> $fname-err | tee $fname
[ $? != 0 ]&& echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err
}( iw --debug event -f> iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
doneQuoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg> dmesg
grep -vE '^#|key'
/etc/network/interfaces> e_n_aexit
Quoted 8 lines
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
I havent tested reliability in any way.
in fact, I havent tested any data-xfer per se,
will do an iperf test soon.That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/smy laptop is much faster than both cards in the soekris box, to same AP
Connected to 00:14:d1:e8:65:0a (on wlan0)
SSID: yoduh
freq: 2447
RX: 191134302 bytes (2120068 packets)
TX: 17440426 bytes (120666 packets)
signal: -45 dBm
tx bitrate: 54.0 MBit/sbss flags:
dtim period: 0
beacon int: 100If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too.
Quoted 1 line
Hope this helps to get native Linux support for 8361p.
hear hear.
FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant)Quoted 3 lines
Regards,
- Sedat -Quoted 8 lines
Quoted 3 lines
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for/etc/network/interfacesfile, bute_n_asounds more female and nicer :-).I caught that, but it wasnt worth "correcting" ;-)
thanks
JimQuoted 8 lines
Unfortunately, [1] says not much about debugging.
Anyway, Lennert has some new informations.
Let's see what the experts will say.- Sedat -
Quoted 8 lines
ok, as far as i can see for now, it looks like the actual solution is ignoring/rejecting any manual command to set parameters, neither iwconfig nor iw will change any settings.
wpa_supbrings the card up and does also WPA2 but nothing else is tuneable thus a connection via 1Mb/s.attaching a tarball from the results of the script which produced 42 files of output.
Credits for the script go to Jim, not me!
- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 163 lines · Sedat Dilek
Quoted 162 lines · admin
Quoted 148 lines · Sedat Dilek
Quoted 140 lines · Jim Cromie
Quoted 4 lines · Sedat Dilek
Quoted 2 lines · Jim Cromie
Quoted 2 lines
Quoted 2 lines
As already pointed out, no Marwell WLAN hardware here. Marvell comics of course :-).
(I had to leave that one..:-)
Quoted 82 lines
Quoted 74 lines
Quoted 4 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
- Sedat -
heres my logs, using firmware extracted by Sedat's script, and the patch on
mwl8k.cbottom-line, it appears to be working.
its contents are a bit more pedantic, and includes data for another wifi card (rtl8180 based) also in the box. It was obtained by this script:
#!/bin/bash
# dmesg (Linux-3.3.3) # e_n_a (/etc/network/interfaces) # ifconfig output # iwconfig output # iw_phy output # ps_axu (WPA) outputdevs="wlan0 wlan1"
apmac=00:14:d1:e8:65:0aloudly () { echo "# $@" fname=`echo $@ | sed -e 's/ /-/g'` $@ 2> $fname-err | tee $fname [ $? != 0 ]&& echo non-zero exit on $fname: $? [ -s $fname-err ] || rm $fname-err }( iw --debug event -f> iw-event-f )&
pid_event=$!for N in 0 1 ; do
loudly iw dev wlan$N interface add fish$N type monitor # flags none loudly iw dev fish$N set channel 8
loudly ifconfig fish$N up
( tcpdump -i fish$N -s 65000 -p -U -w fish$N.dump )& pid_dump_fish$N=$!
doneloudly iw list
#loudly iwspy
# gives: Interface doesn't support wireless statistic collectionfor dev in $devs ; do
loudly ifconfig $dev
loudly iwconfig $dev
loudly iwlist $dev scan
loudly iw dev $dev info
loudly iw dev $dev link
loudly iw dev $dev scan
loudly iw dev $dev survey dump
donefor phy in $phys ; do
loudly iw phy $phy info
done# these are unsupported on wlan0 loudly iw dev wlan1 survey dump loudly iw dev wlan1 station dump loudly iw dev wlan1 station get $apmacfor N in 0 1 ; do
loudly iw dev fish$N del
doneQuoted 8 lines
kill $pid_dump_fish0 $pid_dump_fish0
kill $pid_eventdmesg> dmesg
grep -vE '^#|key'
/etc/network/interfaces>e_n_aexit
Quoted 8 lines
Hi Jim,
thanks for your testing and the nice testcase-script!
lautriv you wanna run some more tests with Jim's script?
Jim, how stable/fast/reliable is your WLAN connection? Suspend/resume tested?
I havent tested reliability in any way.
in fact, I havent tested any data-xfer per se,
will do an iperf test soon.That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/smy laptop is much faster than both cards in the soekris box, to same AP
Connected to 00:14:d1:e8:65:0a (on wlan0)
SSID: yoduh freq: 2447 RX: 191134302 bytes (2120068 packets) TX: 17440426 bytes (120666 packets) signal: -45 dBm tx bitrate: 54.0 MBit/s bss flags: dtim period: 0 beacon int: 100If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too.
Quoted 1 line
Hope this helps to get native Linux support for 8361p.
hear hear.
FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant)Quoted 3 lines
Regards,
- Sedat -Quoted 7 lines
Quoted 3 lines
P.S.: BTW, only to clarify it should be "e_n_i" as short-form for/etc/network/interfacesfile, bute_n_asounds more female and nicer :-).I caught that, but it wasnt worth "correcting" ;-)
thanks
JimQuoted 8 lines
Unfortunately, [1] says not much about debugging.
Anyway, Lennert has some new informations.
Let's see what the experts will say.- Sedat -
ok, as far as i can see for now, it looks like the actual solution is ignoring/rejecting any manual command to set parameters, neither iwconfig nor iw will change any settings.
wpa_supbrings the card up and does also WPA2 but nothing else is tuneable thus a connection via 1Mb/s.
Quoted 7 lines
Quoted 3 lines
attaching a tarball from the results of the script which produced 42 files of output.
Credits for the script go to Jim, not me!
- Sedat -
So i investigated in a bit further testing, where my router was taken into account too.......
Seems the patch/driver/hardware works a bit better than one can see from the output.
i changed my router to different setups with a/b/g/n g/n and n only and even the testbox reported always 1Mb/s , my router found the device connected to certain other speeds such as 24/84/120/240 depending on his own rules.
When in N-only, the router insisted on AES instead TKIP which may be somewhere defined, however the card itself followed the rule silently ( i held wlan0 up ).
speed result was not that magic, gave me an average of 2.2MB/s in mixed mode and 3.6 MB/s in N-only ( where the router showed a connection with 240 Mb/s ) while my signal was always between 96 and 100%.
Because this device was made for winblows only, i could imagine they byte-swapped or moved an offset and it may be worth to compare some kind of register-dump right after init with another topdog like 8363.
Helmut.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Sedat Dilek
Quoted 8 lines
Quoted 1 line
So, Lennert if you want more testing - What? How? etc.
For one, the output of 'iw phy', please.
Also, does monitor mode work? Do you get plausible channel/rxpower values in tcpdump in monitor mode?
Are there any messages in the syslog about failing commands?
Quoted 7 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
iwconfig saying "Bit Rate=1 Mb/s" can be safely ignored. If there is a bitrate indication on transmitted packets in tcpdump, then that's bogus too, as rate control is done in hardware. (I.e. if you want to verify the rate at which a packet is transmitted, you'll have to sniff from another machine.)
Quoted 20 lines · Sedat Dilek
Quoted 20 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.
Quoted 6 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Jim Cromie
That said, bitrate is quite low, I havent looked at why.
jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/s
You can ignore those values, they don't reflect the actual transmittion rate in use.
Quoted 22 lines · Lennert Buytenhek
Quoted 20 lines · Sedat Dilek
Quoted 20 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
[ CC hauke (OpenWrt) and Ben Hutchings (linux-firmware maintainer) ]
Quoted 4 lines
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
I can't say much about the firmware [1] inclusion or the procedure of it into linux-firmware [2].
Maybe, Ben can explain the procedure and what has to be considered before inclusion in linux-firmware.
The original firmware and helper images were extracted from a Netgear Windows driver [1].
Quoted 1 line
From what I read in the OpenWrt forum posting [3]: You wanted to care
for inclusion:
"Firmware isn't included in the kernel tree anymore, there's the linux-firmware git tree for that these days. I will contact some people at Marvell to ask whether 8361P firmware can be included there."
Some more concerns...
Dunno, if [4] is really correct and how to use one and same device-id for 8363 ***and*** 8361P:
...
{ PCI_VDEVICE(MARVELL, 0x2a02), .driver_data = MWL8363, },
...
Curious about a statement from hauke...
Adding the device-id in case of 8361P is not enough (see attached patch)
I am looking forward to having support for 8361P soon.
- Sedat -
P.S.: I have re-added Readme and patch as there are new CCs.
[1] ftp://downloads.netgear.com/files/wn311t_4_2_setup.exe
[2] http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary
[3] https://forum.openwrt.org/viewtopic.php?pid=110039#p110039
[4] https://dev.openwrt.org/changeset/21167
##### HOWTO: Extract the firmware for the mwl8k Linux WLAN driver #####
### HELP-1: https://forum.openwrt.org/viewtopic.php?pid=103243#p103243
### HELP-2: https://forum.openwrt.org/viewtopic.php?pid=110004#p110004
### THREAD: http://marc.info/?t=133551792600004&r=1&w=2
### Install some tools to inspect file containing firmware blob
sudo apt-get install cabextract unshield
### Working directory
mkdir mwl8k
cd mwl8k
### Download c-file (extract firmware) and Windows setup file (incl. firmware)
mkdir files
cd files
wget -O mrv8k_extract_fw.c 'http://marc.info/?l=linux-wireless&m=126540674419330&q=p3' wget ftp://downloads.netgear.com/files/wn311t_4_2_setup.exe
### Extract firmware blob
mkdir .tmp ../firmware
cabextract -F Disk1/data*.* -d .tmp wn311t_4_2_setup.exe unshield -g Driver -d .tmp x .tmp/Disk1/data1.cab gcc -o mrv8k_extract_fw mrv8k_extract_fw.c ./mrv8k_extract_fw .tmp/Driver/netmw145.sys
mv *.fw ../firmware/
rm -r -f .tmp
### Check MD5SUM and rename firmware/helper image files for 8361P/8363
[ Known MD5SUMS for 8361P ]48c79b085f7f5a590d3dbc15647e519f *fmimage_8XX0.fw0fe11f415adbbd5e8ca03641705c4a6c *helper_8XX0.fw
cd ../firmware
md5sum -b *.fw
mv fmimage_8XX0.fw fmimage_8361p.fw
mv helper_8XX0.fw helper_8361p.fw
mv fmimage_8XX1.fw fmimage_8363.fw
mv helper_8XX1.fw helper_8363.fw
-dileks // 27-Apr-2012
From 1a586a1f21f820de0ea06c5382a69191d93d80fe Mon Sep 17 00:00:00 2001
From: Sedat Dilek <[email protected]>
Date: Fri, 27 Apr 2012 13:46:02 +0200
Subject: [PATCH] mwl8k: Add support for MWL8361P
Follow discussion in [1] for more details about adding driver support and howto extract firmware files.
$ sudo modinfo mwl8k | egrep -i '8361p|2a02' firmware: mwl8k/fmimage_8361p.fw firmware: mwl8k/helper_8361p.fw alias: pci:v000011ABd00002A02sv*sd*bc*sc*i*
Compile-tested against Linux-3.4-rc4+.
[1] http://marc.info/?t=133551792600004&r=1&w=2
--- drivers/net/wireless/mwl8k.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/net/wireless/mwl8k.c +9 -0
@@ -5225,6 +5225,7 @@ static void mwl8k_finalize_join_worker(struct work_struct *work) }enum { +MWL8361P =0 ,MWL8363 =0 ,MWL8687 ,MWL8366 ,
@@ -5235,6 +5236,11 @@ enum {#define MWL8K_8366_AP_FW (api) _MWL8K_8366_AP_FW(api)static struct mwl8k_device_info mwl8k_info_tbl[]__devinitdata = { + [MWL8361P ] = { + .part_name ="88w8361p" , + .helper_image ="mwl8k/helper_8361p.fw" , + .fw_image_sta ="mwl8k/fmimage_8361p.fw" , + }, [MWL8363 ] = { .part_name ="88w8363" , .helper_image ="mwl8k/helper_8363.fw" ,
@@ -5255,6 +5261,8 @@ static struct mwl8k_device_info mwl8k_info_tbl[] __devinitdata = { }, }; +MODULE_FIRMWARE ("mwl8k/helper_8361p.fw" ); +MODULE_FIRMWARE ("mwl8k/fmimage_8361p.fw" );MODULE_FIRMWARE ("mwl8k/helper_8363.fw" );MODULE_FIRMWARE ("mwl8k/fmimage_8363.fw" );MODULE_FIRMWARE ("mwl8k/helper_8687.fw" );
@@ -5264,6 +5272,7 @@ MODULE_FIRMWARE("mwl8k/fmimage_8366.fw");MODULE_FIRMWARE (MWL8K_8366_AP_FW (MWL8K_8366_AP_FW_API ));static DEFINE_PCI_DEVICE_TABLE (mwl8k_pci_id_table) = { + {PCI_VDEVICE (MARVELL ,0x2a02 ), .driver_data =MWL8361P , }, {PCI_VDEVICE (MARVELL ,0x2a0a ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a0c ), .driver_data =MWL8363 , }, {PCI_VDEVICE (MARVELL ,0x2a24 ), .driver_data =MWL8363 , },
Signature · 1 line
1.7.9.5
Quoted 5 lines · Sedat Dilek
Some more concerns...
Dunno, if [4] is really correct and how to use one and same device-id for 8363 ***and*** 8361P:
...
{PCI_VDEVICE(MARVELL, 0x2a02), .driver_data = MWL8363, },
No, you'll have to add a MWL8361P to the enum, and add a mwl8k_device_info table entry for that, and then add the PCI ID table entry with the MWL8361P identifier.
drivers/net/wireless/mwl8k.c static void mwl8k_finalize_join_worker(struct work_struct *work) · line 5231
Quoted 10 lines · Sedat Dilek
drivers/net/wireless/mwl8k.c +1
-0@@ -5225,6 +5225,7 @@ static void mwl8k_finalize_join_worker(struct work_struct *work) }enum { +MWL8361P =0 ,MWL8363 =0 ,MWL8687 ,MWL8366 ,
I'm not an expert, but isn't this giving both 8361P and 8363 the same values in the enum?
Is that intended?
Pat Erley
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Pat Erley
Quoted 5 lines
drivers/net/wireless/mwl8k.c +0
-0@@ -5225,6 +5225,7 @@ static void mwl8k_finalize_join_worker(struct work_struct *work) }
Quoted 8 lines
drivers/net/wireless/mwl8k.c static void mwl8k_finalize_join_worker(struct work_struct *work) · line 5231
Quoted 5 lines
drivers/net/wireless/mwl8k.c +1
-0enum { +MWL8361P =0 ,MWL8363 =0 ,MWL8687 ,MWL8366 ,I'm not an expert, but isn't this giving both 8361P and 8363 the same values in the enum?
Yeah, this is broken.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 45 lines · Sedat Dilek
Quoted 22 lines · Lennert Buytenhek
Quoted 20 lines · Sedat Dilek
Quoted 20 lines
On 1st sight, logs look fine:
[21:52:52]<lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
[ CC hauke (OpenWrt) and Ben Hutchings (linux-firmware maintainer) ]
Quoted 4 lines
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
I can't say much about the firmware [1] inclusion or the procedure of it into linux-firmware [2].
Maybe, Ben can explain the procedure and what has to be considered before inclusion in linux-firmware.
The original firmware and helper images were extracted from a Netgear Windows driver [1].
Quoted 7 lines
From what I read in the OpenWrt forum posting [3]: You wanted to care
for inclusion:"Firmware isn't included in the kernel tree anymore, there's the linux-firmware git tree for that these days. I will contact some people at Marvell to ask whether 8361P firmware can be included there."
Basically, all firmware in linux-firmware repository should be accompanied with license information. Also you are signing off the patch to add the firmware to the repository so you are bound to the Developer's Certificate of Origin 1.1 in [1]. Having the firmware extracted from a windows driver does not fall under that statement, unless Marvell is ok with its redistribution. Recently a patch was submitted for a README in the linux-firmware repository about the process. It must be a binary patch. Easiest way is to use 'git format-patch -B'.
Gr. AvS
[1] http://lxr.linux.no/linux+v3.3.4/Documentation/SubmittingPatches
[2] https://lkml.org/lkml/2012/4/21/177
Quoted 16 lines · Lennert Buytenhek
Quoted 5 lines · Pat Erley
Quoted 5 lines
drivers/net/wireless/mwl8k.c +0
-0@@ -5225,6 +5225,7 @@ static void mwl8k_finalize_join_worker(struct work_struct *work) }Quoted 8 lines
drivers/net/wireless/mwl8k.c static void mwl8k_finalize_join_worker(struct work_struct *work) · line 5231
Quoted 5 lines
drivers/net/wireless/mwl8k.c +1
-0enum { + MWL8361P = 0, MWL8363 = 0, MWL8687, MWL8366,I'm not an expert, but isn't this giving both 8361P and 8363 the same values in the enum?
Quoted 1 line
Yeah, this is broken.
Before this email, Helmut pointed me to the enum thingie in a private query. As I was busy with OverlayFS the last days, I couldn't give that information back.
So, this should be:
...
enum {
MWL8361P = 0,
MWL8363,
MWL8687,
MWL8366,...
Shall I cook up a new patch with a proper history and documented origin (original patch is from OpenWrt, I refreshed it against upstream)?
...add some Tested-by (Helmut, Jim)...
...send that to linux-wireless ML for a review?
- Sedat -
Quoted 38 lines · Sedat Dilek
Quoted 22 lines · Lennert Buytenhek
Quoted 20 lines · Sedat Dilek
Quoted 20 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Hope you have fun, together!
- Sedat -
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
[ CC hauke (OpenWrt) and Ben Hutchings (linux-firmware maintainer) ]
Quoted 4 lines
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
Quoted 6 lines
I can't say much about the firmware [1] inclusion or the procedure of it into linux-firmware [2].
Maybe, Ben can explain the procedure and what has to be considered before inclusion in linux-firmware.
The original firmware and helper images were extracted from a Netgear Windows driver [1].
[...]
Even assuming that the original driver binary is freely redistributable, it's not at all clear that these extracted blobs would be.
If there's some difficulty in getting a sensible licence for the firmware, you can consider providing a tool to do this extraction, as has been done for some other drivers whose vendors don't provide the firmware blobs alone. However, as yet, linux-firmware doesn't include any such extraction tools and I would need to discuss such an addition with David (and maybe other distribution maintainers). Hopefully that won't be necessary, though.
Ben.
Signature · 2 lines
Ben Hutchings Design a system any fool can use, and only a fool will want to use it.
Quoted 26 lines · Lennert Buytenhek
Quoted 24 lines · Sedat Dilek
Quoted 23 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Hope you have fun, together!
- Sedat -
Quoted 7 lines
Quoted 2 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
So Marvell sent John a driver for TopDog a long time ago, which he put up on kernel.org. That driver was reworked by Louis and put up in a git tree, but both were lost to the kernel.org hack. I have git backups of both git trees. I put Louis' cleanup here:
http://people.redhat.com/dcbw/mrvl_cb82.tar.bz2
That driver (mrvl_cb82) has the following PCI IDs:
static const struct pci_device_id mwl_id_tbl[] __devinitdata = {
{ PCI_VDEVICE(MARVELL, 0x2a02), 0 },
{ PCI_VDEVICE(MARVELL, 0x2a03), 1 },
{ PCI_VDEVICE(MARVELL, 0x2a06), 2 },
{ PCI_VDEVICE(MARVELL, 0x2a07), 3 },
{ PCI_VDEVICE(MARVELL, 0x2a04), 4 },
{ PCI_VDEVICE(MARVELL, 0x2a08), 5 },
{ PCI_VDEVICE(MARVELL, 0x2a0a), 6 },
{ PCI_VDEVICE(MARVELL, 0x2a0b), 7 },
{ PCI_VDEVICE(MARVELL, 0x2a0c), 8 },
{ 0 }
};and supposedly works for CB82 + CB85. The firmware helper for CB82 looks pretty close to the mwl8k one.
The firmware API exposed by mrvl_cb82 looks very close to mwl8k actually. I only checked the HostCmd bits, not the structures, so I would expect a few differences. There are some commands that mwl8k exposes that mrvl_cb82 does not and vice versa, but I'm not sure if the drivers actually use those commands.
Hope this helps.
Dan
Quoted 57 lines · Dan Williams
Quoted 26 lines · Lennert Buytenhek
Quoted 24 lines · Sedat Dilek
Quoted 23 lines
On 1st sight, logs look fine:
[21:52:52] <lautriv> [ 6.050967] ieee80211 phy0: 88w8361p v4,
00173f3bdde3, STA firmware 2.1.4.25But WLAN connection is not that fast and stable as lautriv reports (several abnormalities were observed).
I requested a tarball which includes:
* dmesg (Linux-3.3.3)
*e_n_a(/etc/network/interfaces)
* ifconfig output
* iwconfig output
*iw_phyoutput
*ps_axu(WPA) outputlautriv will be so kind to be around on #linux-wireless/Freenode the next days (UTC+2: German/Swiss local-time).
Just ping him.Hope you have fun, together!
- Sedat -
Quoted 7 lines
Quoted 2 lines
A new tarball from lautriv with same outputs as before, but now tested with Linux-3.4-rc4.
The output looks good enough for me to ACK adding the PCI ID.
Can the firmware being used here be submitted to the linux-firmware git tree?
So Marvell sent John a driver for TopDog a long time ago, which he put up on kernel.org. That driver was reworked by Louis and put up in a git tree, but both were lost to the kernel.org hack. I have git backups of both git trees. I put Louis' cleanup here:
http://people.redhat.com/dcbw/mrvl_cb82.tar.bz2
That driver (
mrvl_cb82) has the following PCI IDs:static const struct pci_device_id mwl_id_tbl[] __devinitdata = { { PCI_VDEVICE(MARVELL, 0x2a02), 0 }, { PCI_VDEVICE(MARVELL, 0x2a03), 1 }, { PCI_VDEVICE(MARVELL, 0x2a06), 2 }, { PCI_VDEVICE(MARVELL, 0x2a07), 3 }, { PCI_VDEVICE(MARVELL, 0x2a04), 4 }, { PCI_VDEVICE(MARVELL, 0x2a08), 5 }, { PCI_VDEVICE(MARVELL, 0x2a0a), 6 }, { PCI_VDEVICE(MARVELL, 0x2a0b), 7 }, { PCI_VDEVICE(MARVELL, 0x2a0c), 8 }, { 0 } };
Quoted 8 lines
and supposedly works for CB82 + CB85. The firmware helper for CB82 looks pretty close to the mwl8k one.
The firmware API exposed by
mrvl_cb82looks very close to mwl8k actually. I only checked the HostCmd bits, not the structures, so I would expect a few differences. There are some commands that mwl8k exposes thatmrvl_cb82does not and vice versa, but I'm not sure if the drivers actually use those commands.
As for AP mode, the Marvell Extranet does have AP-mode drivers for the 8361 and 8363, but the zipfiles are password-protected and I have no idea what license they are supposed to be under due to that. Thus I cannot get the AP mode firmware for those either to submit to linux-firmware.
Dan
Hi,
Let me see if the topdog firmware that FreeBSD ships with supports hostap mode.
I'm having aggregation issues but I think that's driver side, not firmware side.
Adrian
Quoted 10 lines · Adrian Chadd
Hi,
Let me see if the topdog firmware that FreeBSD ships with supports hostap mode.
I'm having aggregation issues but I think that's driver side, not firmware side.
Adrian
i didn't change anything since the manual addition of the patch into 3.4-rc and it looks like only the reported speed is worse, taking the card up with wpa_sup gives me enought speed to transfer audiovisual content without loss or stutter.
( card is on a mythfrontend using DVD-quality streams ).
may be comfortable to have certain commands working or using the AP capabilities but at least the gerneric usage is given.
Helmut