Hi,
I'm trying to bring-up IW611 with Linux kernel 4.19. I'm using mwifiex branch if-6.12.49_2.20.
Configuration file contains following:
SDIW612 = {
cal_data_cfg=none
hw_name=IW611
fw_name=nxp/sduart_nw61x_v1.bin
drv_mode=0x1
auto_ds=2
pm_keep_power=1
cntry_txpwr=0
slew_rate=0
}
Chip is recognized by MMC bus driver, nwifiex driver is loaded. But when I try to bring mlan0 interface up, I get an write error. Can someone tell me what is missconfigured or get wrong?
Here is my dmesg output:
[ 8.423408] wlan: Loading MWLAN driver
[ 8.427639] No module param cfg file specified
[ 8.632441] wlan: Register to Bus Driver...
[ 8.666463] vendor=0x0471 device=0x0205 class=0 function=1
[ 8.711324] Attach moal handle ops, card interface type: 0x109
[ 8.764392] SDIW612: init module param from usr cfg
[ 8.769688] card_type: SDIW612, config block: 0
[ 8.774488] cal_data_cfg=none
[ 8.777622] hw_name=IW611
[ 8.780414] fw_name=nxp/sduart_nw61x_v1.bin
[ 8.784838] drv_mode = 1
[ 8.787512] auto_ds = 2
[ 8.790109] pm_keep_power on
[ 8.793152] cntry_txpwr = 0
[ 8.796102] slew_rate = 0
[ 8.798916] SDIO: sdio_blk_size=256 max_blk_count=65535 max_segs=64 max_seg_size=65536
[ 8.807287] rx_work=0 cpu_num=1
[ 8.810624] Enable moal_recv_amsdu_packet
[ 9.101160] Attach mlan adapter operations.card_type is 0x109.
[ 9.118472] wlan: Enable TX SG mode
[ 9.122181] wlan: mpa_tx.buf_size=65280
[ 9.126231] wlan: Enable RX SG mode
[ 9.129954] wlan: mpa_rx.buf_size=65280
[ 9.261877] Request firmware: nxp/sduart_nw61x_v1.bin
[ 10.067400] Wlan: FW download over, firmwarelen=913892 downloaded 837692
[ 10.467947] WLAN FW is active
[ 10.471106] on_time is 10463342042
[ 10.494983] VDLL image: len=76200
[ 10.498741] fw_cap_info=0x487cff03, dev_cap_mask=0xffffffff
[ 10.504665] uuid: e139b70377da5b6fbc71c709b955b9a7
[ 10.509761] max_p2p_conn = 8, max_sta_conn = 16
[ 10.529596] IOCTL failed: 1b0efb8f id=0x200000, sub_id=0x200046 action=1, status_code=0x3 [FW_CMDRESP]
[ 10.544554] Register NXP 802.11 Adapter mlan0
[ 10.549385] wlan: version = SDIW612---18.99.2.p19.10-MM6X18540.p33-GPL-(FP92)
[ 10.567328] Set REG 0x90002328: 0x10d57 slew_rate=0
[ 10.576793] usbcore: registered new interface driver usbxxx
[ 10.584854] wlan: Register to Bus Driver Done
[ 10.589480] wlan: Driver loaded successfully
Here I try to bring mlan0 up
[ 76.346952] cmd53 write error=-110
[ 76.353352] host_to_card, write iomem (1) failed: -1
[ 76.359014] write CFG reg failed
[ 76.362560] cmd53 write error=-110
[ 76.366184] host_to_card, write iomem (2) failed: -1
[ 76.371495] write CFG reg failed
[ 76.374999] cmd53 write error=-110
[ 76.402254] host_to_card, write iomem (3) failed: -1
[ 76.407537] write CFG reg failed
[ 76.410971] Error: host_to_card failed: 0xFFFFFFFF
[ 76.416043] DNLD_CMD: Host to Card Failed
[ 76.420306] IOCTL failed: ef7a4e76 id=0x90000, sub_id=0x90001 action=1, status_code=0x80000006 [CMD_DNLD_FAIL]
[ 76.430903] ------------Dump info-----------
[ 76.435415] Command to card failure
[ 76.439111] pending command id: 0x10 ioctl_buf= (null)
[ 76.444634] pending command id: 0x28 ioctl_buf=a69aa9f8
[ 76.450155] No pending scan command
[ 76.453847] CurCmd Empty
[ 76.456521] mlan_processing =1
[ 76.459753] main_lock_flag =0
[ 76.462885] main_process_cnt =75
[ 76.466292] delay_task_flag =0
[ 76.469523] mlan_rx_processing =0
[ 76.473022] rx_pkts_queued=0
[ 76.476061] more_task_flag = 0
[ 76.479292] num_cmd_timeout = 0
[ 76.482607] last_cmd_index = 2
[ 76.485830] last_cmd_id =
[ 76.485834] 0x27c
[ 76.488698] 0x27c
[ 76.490818] 0x243
[ 76.492938] 0xe4
[ 76.495058] 0x5b
[ 76.497086] 0x242
[ 76.499123] 0x4d
[ 76.501243] 0xd1
[ 76.503271] 0x10
[ 76.505299] 0x28
[ 76.510935] last_cmd_act =
[ 76.510937] 0x0
[ 76.513885] 0x1
[ 76.515821] 0x0
[ 76.517757] 0xff
[ 76.519704] 0x1
[ 76.521732] 0x1
[ 76.523668] 0x1
[ 76.525604] 0x0
[ 76.527540] 0x1
[ 76.529486] 0x213
[ 76.535109] last_cmd_resp_index = 2
[ 76.538799] last_cmd_resp_id =
[ 76.538802] 0x827c
[ 76.542117] 0x827c
[ 76.544329] 0x8243
[ 76.546540] 0x805b
[ 76.548761] 0x805b
[ 76.550973] 0x8242
[ 76.553185] 0x804d
[ 76.555396] 0x80d1
[ 76.557608] 0x8010
[ 76.559828] 0x8028
[ 76.565819] last_event_index = 1
[ 76.569233] last_event =
[ 76.569236] 0x0
[ 76.571999] 0x81
[ 76.573936] 0x0
[ 76.575963] 0x0
[ 76.577907] 0x0
[ 76.579844] 0x0
[ 76.581780] 0x0
[ 76.583716] 0x0
[ 76.585652] 0x0
[ 76.587587] 0x0
[ 76.593035] num_data_h2c_failure = 0
[ 76.596809] num_cmd_h2c_failure = 1
[ 76.600500] num_data_c2h_failure = 0
[ 76.604275] num_cmdevt_c2h_failure = 0
[ 76.608241] num_int_read_failure = 0
[ 76.612015] last_int_status = 64
[ 76.615422] num_alloc_buffer_failure = 0
[ 76.619572] num_pkt_dropped = 0
[ 76.622888] num_no_cmd_node = 0
[ 76.626202] num_event_deauth = 0
[ 76.629617] num_event_disassoc = 0
[ 76.633208] num_event_link_lost = 0
[ 76.636890] num_cmd_deauth = 0
[ 76.640121] num_cmd_assoc_success = 0
[ 76.643987] num_cmd_assoc_failure = 0
[ 76.647860] num_cons_assoc_failure = 0
[ 76.651818] cmd_resp_received=0
[ 76.655133] event_received=0
[ 76.658180] max_tx_buf_size=4096
[ 76.661587] tx_buf_size=3072
[ 76.664626] curr_tx_buf_size=3072
[ 76.668134] data_sent=0 cmd_sent=0
[ 76.671725] ps_mode=1 ps_state=0
[ 76.675133] wakeup_dev_req=0 wakeup_tries=0 wakeup_timeout=0
[ 76.681121] hs_configured=0 hs_activated=0
[ 76.685448] pps_uapsd_mode=0 sleep_pd=0
[ 76.689506] tx_lock_flag = 0
[ 76.692545] scan_processing = 0
[ 76.695859] scan_state = 0x0
[ 76.698907] bypass_pkt_count=0
[ 76.702132] mp_rd_bitmap=0x0 curr_rd_port=0x0
[ 76.706734] mp_wr_bitmap=0xffffffff curr_wr_port=0x0
[ 76.711987] mp_data_port_mask = 0xffffffff
[ 76.716314] last_recv_rd_bitmap=0x0 mp_invalid_update=0
[ 76.721843] last_recv_wr_bitmap=0xffffffff last_mp_index=0
[ 76.727641] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.734364] 0x00
[ 76.734367] 0x00
[ 76.736395] 0x00
[ 76.738432] 0x00
[ 76.740460] 0x00
[ 76.742488] 0x00
[ 76.744516] 0x00
[ 76.746543] 0x00
[ 76.748580] 0x00
[ 76.750609] 0x00
[ 76.752637] 0x00
[ 76.754665] 0x00
[ 76.756692] 0x00
[ 76.758729] 0x00
[ 76.760757] 0x00
[ 76.762785] 0x00
[ 76.768417] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.775131] 0x00
[ 76.775133] 0x00
[ 76.777162] 0x00
[ 76.779199] 0x00
[ 76.781227] 0x00
[ 76.783255] 0x00
[ 76.785283] 0x00
[ 76.787311] 0x00
[ 76.789348] 0x00
[ 76.791376] 0x00
[ 76.793404] 0x00
[ 76.795437] 0x00
[ 76.797465] 0x00
[ 76.799502] 0x00
[ 76.801531] 0x00
[ 76.803559] 0x00
[ 76.809192] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.815906] 0x00
[ 76.815908] 0x00
[ 76.817944] 0x00
[ 76.819973] 0x00
[ 76.822001] 0x00
[ 76.824029] 0x00
[ 76.826057] 0x00
[ 76.828093] 0x00
[ 76.830121] 0x00
[ 76.832149] 0x00
[ 76.834177] 0x00
[ 76.836205] 0x00
[ 76.838241] 0x00
[ 76.840269] 0x00
[ 76.842297] 0x00
[ 76.844325] 0x00
[ 76.849957] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.856671] 0x00
[ 76.856673] 0x00
[ 76.858711] 0x00
[ 76.860739] 0x00
[ 76.862774] 0x00
[ 76.864803] 0x00
[ 76.866831] 0x00
[ 76.868868] 0x00
[ 76.870897] 0x00
[ 76.872925] 0x00
[ 76.874953] 0x00
[ 76.876981] 0x00
[ 76.879018] 0x00
[ 76.881046] 0x00
[ 76.883074] 0x00
[ 76.885102] 0x00
[ 76.890734] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.897448] 0x00
[ 76.897451] 0x00
[ 76.899488] 0x00
[ 76.901516] 0x00
[ 76.903544] 0x00
[ 76.905572] 0x00
[ 76.907599] 0x00
[ 76.909636] 0x00
[ 76.911665] 0x00
[ 76.913693] 0x00
[ 76.915721] 0x00
[ 76.917749] 0x00
[ 76.919785] 0x00
[ 76.921813] 0x00
[ 76.923841] 0x00
[ 76.925869] 0x00
[ 76.931501] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.938223] 0x00
[ 76.938226] 0x00
[ 76.940254] 0x00
[ 76.942282] 0x00
[ 76.944310] 0x00
[ 76.946337] 0x00
[ 76.948374] 0x00
[ 76.950402] 0x00
[ 76.952430] 0x00
[ 76.954457] 0x00
[ 76.956485] 0x00
[ 76.958521] 0x00
[ 76.960550] 0x00
[ 76.962578] 0x00
[ 76.964605] 0x00
[ 76.966633] 0x00
[ 76.972265] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 76.978987] 0x00
[ 76.978990] 0x00
[ 76.981018] 0x00
[ 76.983046] 0x00
[ 76.985074] 0x00
[ 76.987102] 0x00
[ 76.989138] 0x00
[ 76.991167] 0x00
[ 76.993195] 0x00
[ 76.995222] 0x00
[ 76.997250] 0x00
[ 76.999286] 0x00
[ 77.001315] 0x00
[ 77.003343] 0x00
[ 77.005371] 0x00
[ 77.007399] 0x00
[ 77.013031] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 77.019753] 0x00
[ 77.019756] 0x00
[ 77.021784] 0x00
[ 77.023812] 0x00
[ 77.025840] 0x00
[ 77.027876] 0x00
[ 77.029905] 0x00
[ 77.031940] 0x00
[ 77.033969] 0x00
[ 77.035997] 0x00
[ 77.038033] 0x00
[ 77.040062] 0x00
[ 77.042090] 0x00
[ 77.044118] 0x00
[ 77.046145] 0x00
[ 77.048182] 0x00
[ 77.053806] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 77.060529] 0x00
[ 77.060531] 0x00
[ 77.062560] 0x00
[ 77.064587] 0x00
[ 77.066615] 0x00
[ 77.068652] 0x00
[ 77.070681] 0x00
[ 77.072708] 0x00
[ 77.074736] 0x00
[ 77.076764] 0x00
[ 77.078801] 0x00
[ 77.080829] 0x00
[ 77.082857] 0x00
[ 77.084884] 0x00
[ 77.086912] 0x00
[ 77.088949] 0x00
[ 77.094572] mp_wr_bitmap: 0x0 mp_wr_ports=0x0 len=0 curr_wr_port=0x0
[ 77.101295] 0x00
[ 77.101297] 0x00
[ 77.103326] 0x00
[ 77.105354] 0x00
[ 77.107381] 0x00
[ 77.109418] 0x00
[ 77.111446] 0x00
[ 77.113474] 0x00
[ 77.115502] 0x00
[ 77.117529] 0x00
[ 77.119566] 0x00
[ 77.121595] 0x00
[ 77.123623] 0x00
[ 77.125650] 0x00
[ 77.127678] 0x00
[ 77.129715] 0x00
[ 77.135341] bss_index = 0, tx_pkts_queued = 0 tx_pause
[ 77.140796] Host:chillair-r1234yf-00050 Timestamp:9c6953b9
[ 77.146691] Driver version = SDIW612---18.99.2.p19.10-MM6X18540.p33-GPL-(FP92)
[ 77.154431] main_state = 3
[ 77.157287] ioctl_pending = 1
[ 77.160428] tx_pending = 0
[ 77.163285] wmm_tx_pending[0] = 0
[ 77.166783] wmm_tx_pending[1] = 0
[ 77.170291] wmm_tx_pending[2] = 0
[ 77.173790] wmm_tx_pending[3] = 0
[ 77.177288] rx_pending = 0
[ 77.180152] lock_count = 44
[ 77.183100] malloc_count = 49
[ 77.186231] mbufalloc_count = 0
[ 77.189554] hs_skip_count = 0
[ 77.192685] hs_force_count = 0
[ 77.195909] Media state = "Disconnected"
[ 77.200059] carrier off
[ 77.202641] tx queue 0: stopped
[ 77.205956] tx queue 1: stopped
[ 77.209279] tx queue 2: stopped
[ 77.212595] tx queue 3: stopped
[ 77.215911] mlan0: num_tx_timeout = 0
[ 77.219799] -------- Dump info End---------
[ 77.237865] IPv6: ADDRCONF(NETDEV_UP): mlan0: link is not ready
[ 77.270404] SDIO Func0 (0x0-0x9): ERR
[ 77.274349] SDIO Func1 (0x10-0x17): ERR
[ 77.278454] SDIO Func1: (0x8) ERR
[ 77.282147] SDIO Func1 (0xe8-0xff): ERR
[ 77.387444] SDIO Func1 (0xe8-0xff): ERR
[ 77.391567] set pending clean
[ 77.471612] SDIO Write ERR
[ 77.474573] SDIO Write ERR
[ 77.477436] ==== DEBUG MODE OUTPUT START: 77.469673 ====
[ 77.483111] SDIO Write ERR
[ 77.485995] SDIO Write ERR
[ 77.488871] ==== DEBUG MODE END ====
[ 77.492866] IOCTL failed: a69aa9f8 id=0x20000, sub_id=0x20007 action=1, status_code=0x80000007 [CMD_CANCEL]