[OpenWrt-Devel] ar71xxx + rtl8188eu
Luis Soltero
lsoltero at globalmarinenet.com
Sun Nov 23 19:58:40 EST 2014
Anyone have any luck getting the realtek 8188eu USB WiFi chipset working on mips ar71xxx?
i am trying to get the following two devices to get an alfa hornet and and alfa AWUS036NHV long range USB WiFi adapter
to communicate.
http://wiki.openwrt.org/toh/alfa.network/hornet-ub
http://www.amazon.com/Alfa-AWUS036NHV-802-11n-Wireless-N-Removable/dp/B00LU4D5N4/ref=sr_1_4?ie=UTF8&qid=1416790367&sr=8-4&keywords=alfa
I just downloaded a fresh copy of CC (r43350) and selected the rtl8188eu driver under kernel modules->wireless drivers.
the kernel module compiles and loads. dmesg shows that the device is detected. However a wlan interface is not created
for the device.
putting the module into debug mode shows that the driver can't read the EEPROM.
[ 1422.290000] R8188EU: bFWReady == false call reset 8051...
[ 1422.290000] R8188EU: =====> _8051Reset88E(): 8051 reset success .
[ 1422.310000] R8188EU: efuse_read_phymap_from_txpktbuf bcnhead:0
[ 1422.320000] R8188EU: efuse_read_phymap_from_txpktbuf len:3625, lenbak:109, aaa:3625, aaabak:109
[ 1422.370000] R8188EU: efuse_read_phymap_from_txpktbuf read count:512
[ 1422.370000] R8188EU: EEPROM ID(0x616c) is invalid!!
[ 1422.380000] R8188EU: EEPROM ID = 0x616c
[ 1422.380000] R8188EU: VID = 0x5678, PID = 0x1234
[ 1422.390000] R8188EU: Customer ID: 0xAB, SubCustomer ID: 0xCD
[ 1422.390000] R8188EU: [0x00008000,7]
[ 1422.390000] Hal_EfuseParseMACAddr_8188EU: Permanent Address = 00-e0-4c-81-88-02
the incorrect mac address is assigned to the device... the device never shows up in iwconfig or iw list
a similar problem is described for the lwfinger version of the driver discussed here.
https://github.com/lwfinger/rtl8188eu/issues/75
any ideas?
here is the full debug=8 log.
[ 1421.720000] usb 1-1: new high-speed USB device number 7 using ehci-platform
[ 1421.880000] R8188EU: [0x00100000,5]
[ 1421.880000] +rtw_drv_init
[ 1421.880000] R8188EU:
[ 1421.880000] usb_endpoint_descriptor(0):
[ 1421.890000] R8188EU: bLength=7
[ 1421.890000] R8188EU: bDescriptorType=5
[ 1421.890000] R8188EU: bEndpointAddress=81
[ 1421.900000] R8188EU: wMaxPacketSize=512
[ 1421.900000] R8188EU: bInterval=0
[ 1421.910000] R8188EU: RT_usb_endpoint_is_bulk_in = 1
[ 1421.910000] R8188EU:
[ 1421.910000] usb_endpoint_descriptor(1):
[ 1421.920000] R8188EU: bLength=7
[ 1421.920000] R8188EU: bDescriptorType=5
[ 1421.920000] R8188EU: bEndpointAddress=2
[ 1421.930000] R8188EU: wMaxPacketSize=512
[ 1421.930000] R8188EU: bInterval=0
[ 1421.930000] R8188EU: RT_usb_endpoint_is_bulk_out = 2
[ 1421.940000] R8188EU:
[ 1421.940000] usb_endpoint_descriptor(2):
[ 1421.940000] R8188EU: bLength=7
[ 1421.950000] R8188EU: bDescriptorType=5
[ 1421.950000] R8188EU: bEndpointAddress=3
[ 1421.960000] R8188EU: wMaxPacketSize=512
[ 1421.960000] R8188EU: bInterval=0
[ 1421.960000] R8188EU: RT_usb_endpoint_is_bulk_out = 3
[ 1421.970000] R8188EU: nr_endpoint=3, in_num=1, out_num=2
[ 1421.970000]
[ 1421.970000] R8188EU: USB_SPEED_HIGH
[ 1421.980000] R8188EU: CHIP TYPE: RTL8188E
[ 1421.980000] R8188EU: rtw_handle_dualmac(): pbuddy_padapter == NULL, Set pbuddy_padapter
[ 1421.990000] R8188EU: [0x00000800,8]
[ 1421.990000] +init_net_dev
[ 1422.000000] R8188EU: register rtw_netdev_ops to netdev_ops
[ 1422.000000] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 1422.010000] R8188EU: RF_Type is 3!!
[ 1422.010000] R8188EU: _ConfigNormalChipOutEP_8188E OutEpQueueSel(0x05), OutEpNumber(2)
[ 1422.030000] R8188EU: EEPROM type is E-FUSE
[ 1422.030000] R8188EU: ====> _ReadAdapterInfo8188EU
[ 1422.030000] R8188EU: Boot from EFUSE, Autoload OK !
[ 1422.050000] R8188EU: [0x00004000,8]
[ 1422.050000] HalPwrSeqCmdParsing: offset(0x6) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x2)
msk(0x2) value(0x2)
[ 1422.060000] R8188EU: [0x00004000,8]
[ 1422.060000] HalPwrSeqCmdParsing: PWR_CMD_POLLING
[ 1422.080000] R8188EU: [0x00004000,8]
[ 1422.080000] HalPwrSeqCmdParsing: offset(0x2) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x3) value(0x0)
[ 1422.090000] R8188EU: [0x00004000,8]
[ 1422.090000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.110000] R8188EU: [0x00004000,8]
[ 1422.110000] HalPwrSeqCmdParsing: offset(0x26) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x80) value(0x80)
[ 1422.120000] R8188EU: [0x00004000,8]
[ 1422.120000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.130000] R8188EU: [0x00004000,8]
[ 1422.140000] HalPwrSeqCmdParsing: offset(0x5) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x80) value(0x0)
[ 1422.150000] R8188EU: [0x00004000,8]
[ 1422.150000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.160000] R8188EU: [0x00004000,8]
[ 1422.160000] HalPwrSeqCmdParsing: offset(0x5) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x18) value(0x0)
[ 1422.170000] R8188EU: [0x00004000,8]
[ 1422.170000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.180000] R8188EU: [0x00004000,8]
[ 1422.180000] HalPwrSeqCmdParsing: offset(0x5) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x1) value(0x1)
[ 1422.190000] R8188EU: [0x00004000,8]
[ 1422.200000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.210000] R8188EU: [0x00004000,8]
[ 1422.210000] HalPwrSeqCmdParsing: offset(0x5) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x2)
msk(0x1) value(0x0)
[ 1422.220000] R8188EU: [0x00004000,8]
[ 1422.220000] HalPwrSeqCmdParsing: PWR_CMD_POLLING
[ 1422.230000] R8188EU: [0x00004000,8]
[ 1422.230000] HalPwrSeqCmdParsing: offset(0x23) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x1)
msk(0x10) value(0x0)
[ 1422.240000] R8188EU: [0x00004000,8]
[ 1422.250000] HalPwrSeqCmdParsing: PWR_CMD_WRITE
[ 1422.250000] R8188EU: [0x00004000,8]
[ 1422.250000] HalPwrSeqCmdParsing: offset(0x74) cut_msk(0xff) fab_msk(0xf) interface_msk(0x1) base(0x0) cmd(0x1)
msk(0x10) value(0x10)
[ 1422.270000] R8188EU: [0x00004000,8]
[ 1422.270000] HalPwrSeqCmdParsing: offset(0xffff) cut_msk(0xff) fab_msk(0xf) interface_msk(0xf) base(0x0) cmd(0x4)
msk(0x0) value(0x0)
[ 1422.280000] R8188EU: [0x00004000,8]
[ 1422.280000] HalPwrSeqCmdParsing: PWR_CMD_END
[ 1422.290000] R8188EU: bFWReady == false call reset 8051...
[ 1422.290000] R8188EU: =====> _8051Reset88E(): 8051 reset success .
[ 1422.310000] R8188EU: efuse_read_phymap_from_txpktbuf bcnhead:0
[ 1422.320000] R8188EU: efuse_read_phymap_from_txpktbuf len:3625, lenbak:109, aaa:3625, aaabak:109
[ 1422.370000] R8188EU: efuse_read_phymap_from_txpktbuf read count:512
[ 1422.370000] R8188EU: EEPROM ID(0x616c) is invalid!!
[ 1422.380000] R8188EU: EEPROM ID = 0x616c
[ 1422.380000] R8188EU: VID = 0x5678, PID = 0x1234
[ 1422.390000] R8188EU: Customer ID: 0xAB, SubCustomer ID: 0xCD
[ 1422.390000] R8188EU: [0x00008000,7]
[ 1422.390000] Hal_EfuseParseMACAddr_8188EU: Permanent Address = 00-e0-4c-81-88-02
[ 1422.400000] R8188EU: ======= Path 0, Channel 0 =======
[ 1422.410000] R8188EU: Index24G_CCK_Base[0][0] = 0x2d
[ 1422.410000] R8188EU: Index24G_BW40_Base[0][0] = 0x2d
[ 1422.420000] R8188EU: ======= Path 0, Channel 1 =======
[ 1422.420000] R8188EU: Index24G_CCK_Base[0][1] = 0x2d
[ 1422.430000] R8188EU: Index24G_BW40_Base[0][1] = 0x2d
[ 1422.430000] R8188EU: ======= Path 0, Channel 2 =======
[ 1422.440000] R8188EU: Index24G_CCK_Base[0][2] = 0x2d
[ 1422.440000] R8188EU: Index24G_BW40_Base[0][2] = 0x2d
[ 1422.450000] R8188EU: ======= Path 0, Channel 3 =======
[ 1422.450000] R8188EU: Index24G_CCK_Base[0][3] = 0x2d
[ 1422.460000] R8188EU: Index24G_BW40_Base[0][3] = 0x2d
[ 1422.460000] R8188EU: ======= Path 0, Channel 4 =======
[ 1422.470000] R8188EU: Index24G_CCK_Base[0][4] = 0x2d
[ 1422.470000] R8188EU: Index24G_BW40_Base[0][4] = 0x2d
[ 1422.480000] R8188EU: ======= Path 0, Channel 5 =======
[ 1422.480000] R8188EU: Index24G_CCK_Base[0][5] = 0x2d
[ 1422.490000] R8188EU: Index24G_BW40_Base[0][5] = 0x2d
[ 1422.490000] R8188EU: ======= Path 0, Channel 6 =======
[ 1422.500000] R8188EU: Index24G_CCK_Base[0][6] = 0x2d
[ 1422.500000] R8188EU: Index24G_BW40_Base[0][6] = 0x2d
[ 1422.510000] R8188EU: ======= Path 0, Channel 7 =======
[ 1422.510000] R8188EU: Index24G_CCK_Base[0][7] = 0x2d
[ 1422.520000] R8188EU: Index24G_BW40_Base[0][7] = 0x2d
[ 1422.520000] R8188EU: ======= Path 0, Channel 8 =======
[ 1422.530000] R8188EU: Index24G_CCK_Base[0][8] = 0x2d
[ 1422.530000] R8188EU: Index24G_BW40_Base[0][8] = 0x2d
[ 1422.540000] R8188EU: ======= Path 0, Channel 9 =======
[ 1422.540000] R8188EU: Index24G_CCK_Base[0][9] = 0x2d
[ 1422.550000] R8188EU: Index24G_BW40_Base[0][9] = 0x2d
[ 1422.550000] R8188EU: ======= Path 0, Channel 10 =======
[ 1422.560000] R8188EU: Index24G_CCK_Base[0][10] = 0x2d
[ 1422.560000] R8188EU: Index24G_BW40_Base[0][10] = 0x2d
[ 1422.570000] R8188EU: ======= Path 0, Channel 11 =======
[ 1422.570000] R8188EU: Index24G_CCK_Base[0][11] = 0x2d
[ 1422.580000] R8188EU: Index24G_BW40_Base[0][11] = 0x2d
[ 1422.580000] R8188EU: ======= Path 0, Channel 12 =======
[ 1422.590000] R8188EU: Index24G_CCK_Base[0][12] = 0x2d
[ 1422.590000] R8188EU: Index24G_BW40_Base[0][12] = 0x2d
[ 1422.600000] R8188EU: ======= Path 0, Channel 13 =======
[ 1422.600000] R8188EU: Index24G_CCK_Base[0][13] = 0x2d
[ 1422.610000] R8188EU: Index24G_BW40_Base[0][13] = 0x2d
[ 1422.610000] R8188EU: ======= TxCount 0 =======
[ 1422.620000] R8188EU: CCK_24G_Diff[0][0] = 0
[ 1422.620000] R8188EU: OFDM_24G_Diff[0][0] = 4
[ 1422.630000] R8188EU: BW20_24G_Diff[0][0] = 2
[ 1422.630000] R8188EU: BW40_24G_Diff[0][0] = 0
[ 1422.630000] R8188EU: ======= TxCount 1 =======
[ 1422.640000] R8188EU: CCK_24G_Diff[0][1] = -2
[ 1422.640000] R8188EU: OFDM_24G_Diff[0][1] = -2
[ 1422.650000] R8188EU: BW20_24G_Diff[0][1] = -2
[ 1422.650000] R8188EU: BW40_24G_Diff[0][1] = -2
[ 1422.660000] R8188EU: ======= TxCount 2 =======
[ 1422.660000] R8188EU: CCK_24G_Diff[0][2] = -2
[ 1422.660000] R8188EU: OFDM_24G_Diff[0][2] = -2
[ 1422.670000] R8188EU: BW20_24G_Diff[0][2] = -2
[ 1422.670000] R8188EU: BW40_24G_Diff[0][2] = -2
[ 1422.680000] R8188EU: ======= TxCount 3 =======
[ 1422.680000] R8188EU: CCK_24G_Diff[0][3] = -2
[ 1422.690000] R8188EU: OFDM_24G_Diff[0][3] = -2
[ 1422.690000] R8188EU: BW20_24G_Diff[0][3] = -2
[ 1422.690000] R8188EU: BW40_24G_Diff[0][3] = -2
[ 1422.700000] R8188EU: EEPROMRegulatory = 0x0
[ 1422.700000] R8188EU: [0x00008000,8]
[ 1422.710000] Hal_EfuseParseEEPROMVer(), EEVer = 1
[ 1422.710000] R8188EU: mlmepriv.ChannelPlan = 0x0a
[ 1422.720000] R8188EU: CrystalCap: 0x20
[ 1422.720000] R8188EU: EEPROM Customer ID: 0x 0
[ 1422.720000] R8188EU: EEPROM : AntDivCfg = 0, TRxAntDivType = 0
[ 1422.730000] R8188EU: Board Type: 0x 0
[ 1422.730000] R8188EU: ThermalMeter = 0x18
[ 1422.740000] R8188EU: <==== _ReadAdapterInfo8188EU in 710 ms
[ 1422.740000] R8188EU: [0x00000800,8]
[ 1422.750000] +rtw_init_drv_sw
[ 1422.750000] R8188EU: [0x00000040,8]
[ 1422.750000] rtw_alloc_stainfo: index=3R8188EU: [0x00000040,8]
[ 1422.760000] alloc number_1 stainfo with hwaddr = ff:ff:ff:ff:ff:ff
[ 1422.770000] R8188EU: [0x00000010,8]
[ 1422.770000] pregistrypriv->channel=1, pdev_network->Configuration.DSConfig=0x1
[ 1422.780000] R8188EU: [0x00000800,8]
[ 1422.780000] -rtw_init_drv_sw
[ 1422.780000] R8188EU: rtw_macaddr_cfg MAC Address = 00:e0:4c:81:88:02
[ 1422.790000] R8188EU: MAC Address from pnetdev->dev_addr = 00:e0:4c:81:88:02
[ 1422.820000] R8188EU: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 1422.830000] R8188EU: [0x00100000,5]
[ 1422.830000] -871x_drv - drv_init, success!
[ 1474.840000] R8188EU: [0x00000010,8]
[ 1474.840000] cmd_code =8b01
[ 1474.840000] R8188EU: [0x00000010,8]
[ 1474.840000] rtw_wx_get_essid
[ 1474.850000] R8188EU: [0x00000010,8]
[ 1474.850000] rtw_wx_get_mode
[ 1474.850000] R8188EU: [0x00000010,8]
[ 1474.860000] rtw_wx_get_range. cmd_code =8b0b
[ 1474.860000] R8188EU: [0x00000010,8]
[ 1474.860000] rtw_wx_get_wap
Thanks in advanced...
--luis
--
Luis Soltero, Ph.D., MCS
Director of Software Development, CTO
Global Marine Networks, LLC
StarPilot, LLC
Tel: +1.865.379.8723
Fax: +1.865.681.5017
E-Mail: lsoltero at globalmarinenet.net
Web: http://www.globalmarinenet.net
Web: http://www.redportglobal.com
Web: http://www.starpilotllc.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list