Support for WAVE 300 Wi-Fi chip

Hello, i taked a look this days on a WAVE300 device

  • i have an Speedport W921
  • compiled driver from vittorio git, using the 18.06 source
  • i succede to bring interface up, phone and laptop see-it but when connect, i not get an ip from dhcp
  • if i set ip manualy, i got connected, but without internet acces
  • look down to see few logs
  • any help is welcome, thank u

root@OpenWrt:/# lspci

00:0e.0 Wireless controller: Lantiq Wave300 PSB8224 [Hyperion III] (rev 01)                                            
01:00.0 PCI bridge: Infineon Technologies AG Device 0011 (rev 01)                                                      
02:00.0 Wireless controller: Lantiq Wave300 PSB8231 [Hyperion III] (rev 01)

root@OpenWrt:/# lspci -v

00:0e.0 Wireless controller: Lantiq Wave300 PSB8224 [Hyperion III] (rev 01)                                            
        Subsystem: Lantiq Device 0680                                                                                  
        Flags: medium devsel, IRQ 30                                                                                   
        Memory at 18800000 (32-bit, prefetchable) [disabled] [size=4K]                                                 
        Memory at 18000000 (32-bit, prefetchable) [disabled] [size=8M]                                                 
lspci: Unable to load libkmod resources: error -12                                                                     
                                                                                                                       
01:00.0 PCI bridge: Infineon Technologies AG Device 0011 (rev 01) (prog-if 00 [Normal decode])                         
        Flags: bus master, fast devsel, latency 0, IRQ 144                                                             
        Bus: primary=01, secondary=02, subordinate=02, sec-latency=0                                                   
        I/O behind bridge: None                                                                                        
        Memory behind bridge: None                                                                                     
        Prefetchable memory behind bridge: 1c000000-1cbfffff [size=12M]                                                
        Capabilities: [40] Power Management version 3                                                                  
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-                                                     
        Capabilities: [70] Express Root Port (Slot-), MSI 00                                                           
        Capabilities: [100] Advanced Error Reporting                                                                   
        Capabilities: [140] Virtual Channel                                                                            
        Capabilities: [160] Power Budgeting <?>                                                                        
                                                                                                                       
02:00.0 Wireless controller: Lantiq Wave300 PSB8231 [Hyperion III] (rev 01)                                            
        Subsystem: Lantiq Device 0711                                                                                  
        Flags: fast devsel, IRQ 144                                                                                    
        Memory at 1c800000 (32-bit, prefetchable) [disabled] [size=4K]                                                 
        Memory at 1c000000 (32-bit, prefetchable) [disabled] [size=8M]                                                 
        Capabilities: [40] Power Management version 3                                                                  
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+                                                     
        Capabilities: [70] Express Endpoint, MSI 00                                                                    
        Capabilities: [100] Advanced Error Reporting                                                                   
        Capabilities: [140] Virtual Channel

root@OpenWrt:/lib/firmware# insmod mtlkroot.ko cdebug=3

[  439.216498] mtlkroot: module license 'Proprietary' taints kernel.
[  439.221247] Disabling lock debugging due to kernel taint
[  439.230458] [0000139004] mtlk0(mtlk_cdev_init:316): Max nodex set to 1048575

root@OpenWrt:/lib/firmware# insmod mtlk.ko ap=1

[  475.924100] [0000175700] mtlk0(__mtlk_print_endianess:3867): The system is Big endian (0xbeadfeed, 0xedfeadbe)
[  475.932807] [0000175708] mtlk1(mtlk_df_proc_node_create:125): Proc node root/ created
[  475.940669] [0000175716] mtlk1(mtlk_df_proc_node_create:127): Proc node root/mtlk created
[  475.948821] [0000175724] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry mtlk/version created
[  475.957954] [0000175732] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry mtlk/topology created
[  475.967259] [0000175740] mtlk0(mtlk_fast_mem_print_info:105): Using normal memory for hot context
[  475.976064] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[  475.981983] [0000175756] mtlk0(_mtlk_df_user_alloc_devname:6511): NDEV Name pattern: wlan%d
[  475.990122] [0000175764] mtlk1(mtlk_df_proc_node_create:127): Proc node mtlk/wlan0 created
[  475.998350] [0000175772] mtlk1(mtlk_df_proc_node_create:127): Proc node wlan0/Debug created
[  476.006715] [0000175780] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/hw_limits created
[  476.016124] [0000175792] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/reg_limits created
[  476.025594] [0000175800] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/antenna_gain created
[  476.035258] [0000175808] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry wlan0/do_debug_assert created
[  476.044918] [0000175820] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry wlan0/lm created
[  476.053446] [0000175828] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry wlan0/um created
[  476.061977] [0000175836] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry wlan0/shram created
[  476.070767] [0000175844] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/General created
[  476.079993] [0000175856] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/MACStats created
[  476.089308] [0000175864] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/igmp created
[  476.098331] [0000175872] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry Debug/ResetStats created
[  476.107503] [0000175880] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/aocs_history created
[  476.117155] [0000175892] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/aocs_table created
[  476.126650] [0000175900] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/aocs_channels created
[  476.136396] [0000175912] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/aocs_penalties created
[  476.146243] [0000175920] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/L2NAT created
[  476.155284] [0000175928] mtlk1(_mtlk_df_proc_node_add_entry:229): Proc entry Debug/L2NAT_ClearTable created
[  476.165035] [0000175940] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/ReorderingStats created
[  476.174951] [0000175948] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry wlan0/EECaps created
[  476.184103] [0000175960] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/SendQueue created
[  476.193500] [0000175968] mtlk1(mtlk_df_proc_node_add_seq_entry:438): Proc entry Debug/serializer_dump created
[  476.203405] [0000175976] mtlk1(mtlk_print_drv_info:8042): *********************************************************
[  476.213847] [0000175988] mtlk1(mtlk_print_drv_info:8043): * Driver Compilation Details:
[  476.221842] [0000175996] mtlk1(mtlk_print_drv_info:8044): *********************************************************
[  476.232312] [0000176008] mtlk1(mtlk_print_drv_info:8046): * CONFIG=PLATFORM_UGW51_VRX288 COMPONENTS LIN_DRV LIN_RTLOG_COMPONENTS BUS_PCI_PCIE LINDRV_HW LINDRV_HW_PCIE LINDRV_HW_PCIG3 RF_MANAGEMENT_MTLK TXMM_HISTORY_LENGTH=0 RT_LOGGER_FUNCTIONS MAX_DLEVEL=1 USE_GENL_DEF USE_GENL ENVIRONMENT_NAME="ugw5.1-vrx288" HOST_TYPE="mips-linux" 
[  476.261879] [0000176036] mtlk1(mtlk_print_drv_info:8046): * CFLAGS=
[  476.268165] [0000176044] mtlk1(mtlk_print_drv_info:8046): * MTLK_KERNEL_CFLAGS=-mlong-calls
[  476.276519] [0000176052] mtlk1(mtlk_print_drv_info:8046): * KERNELDIR=/home/cornelus/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-4.9.120
[  476.290713] [0000176064] mtlk1(mtlk_print_drv_info:8046): * CROSS_COMPILE=/home/cornelus/WAVE300/driver/builds/ugw5.1-vrx288/../../support/mtlkfront.sh /home/cornelus/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-
[  476.312462] [0000176088] mtlk1(mtlk_print_drv_info:8046): * HOSTNAME=
[  476.318923] [0000176092] mtlk1(mtlk_print_drv_info:8049): *********************************************************
[  476.329363] [0000176104] mtlk0(mtlk_core_pdb_fast_handles_open:33): Open Hot-path parameters
[  476.337865] [0000176112] mtlk1(mtlk_qos_set_map:152): Set 802.11 TID-to-AC mapping
[  476.345373] [0000176120] mtlk4(_mtlk_core_get_max_stas_supported_by_fw:3227): Cannot get MAX STAs supported by FW. Forcing default
[  476.357204] [0000176132] mtlk1(_mtlk_core_get_max_stas_supported_by_fw:3231): MAX STAs supported by FW: 32
[  476.536716] [0000176312] mtlk1(_mtlk_mmb_init_fw_capabilities:2735): FW supports 32 STAs 5 VAPs
[  476.568800] [0000176344] mtlk0(_mtlk_core_start:9001): CID-0000: Driver version: 3.2.1.1.48..PciG3.PcieG3.Release
[  476.568800] MAC/PHY versions:
[  476.568800] ap_upper.bin: @@@ VERSION INFO @@@ version number: FW_3.2.1_r5437 MIPS:  Upper CPU(TMC AGG AP) interface: PCI  phy type: real phy on Mar 28 2012 at 11:00:01@@@ END @@@
[  476.568800] contr_lm.bin: @@@ VERSION INFO @@@ version number: FW_3.2.1_r5437 MIPS:  Lower MAC  interface: --  phy type: real phy on Mar 28 2012 at 10:59:46@@@ END @@@
[  476.568800] 
[  476.613405] [0000176388] mtlk1(mtlk_core_set_net_state:681): Going from NET_STATE_HALTED to NET_STATE_IDLE
[  476.622937] [0000176396] mtlk1(mtlk_flctrl_register:67): mtlk_flctrl_register id = 0x1
[  477.728470] [0000177504] mtlk1(mtlk_pdb_set_mac:401): << set MAC param: id(2) MAC(00:12:34:00:02:42) 
[  477.736349] [0000177512] mtlk1(_mtlk_core_set_mac_addr:3557): CID-0000: New MAC: 00:12:34:00:02:42
[  477.745322] [0000177520] mtlk0(mtlk_eeprom_check_ee_data:2094): Options mask is 0x00
[  477.753610] [0000177528] mtlk1(mtlk_pdb_set_int:353): << set param: id(13) value(0)
[  477.760753] [0000177536] mtlk1(_mtlk_core_country_code_set_default:11828): CID-0000: Country is set to (on init): ??(0x00)
[  477.772008] [0000177548] mtlk4(load_default_hw_table:1768): No HW limits is available for this platform (0x1a30:0x0700, type 0x3a rev 0x42)
[  477.784437] [0000177560] mtlk1(mtlk_pdb_set_binary:385): << set binary param: res(0) id(36) 
[  477.792856] [0000177568] mtlk1(mtlk_pdb_set_binary:385): << set binary param: res(0) id(37) 
[  477.801820] [0000177576] mtlk1(mtlk_flctrl_register:67): mtlk_flctrl_register id = 0x2
[  477.809244] [0000177584] mtlk1(mtlk_flctrl_register:67): mtlk_flctrl_register id = 0x4
[  477.817160] [0000177592] mtlk1(mtlk_pdb_set_int:353): << set param: id(24) value(0)
[  477.824789] [0000177600] mtlk1(mtlk_pdb_set_int:353): << set param: id(25) value(0)
[  477.832453] [0000177608] mtlk1(mtlk_pdb_set_int:353): << set param: id(23) value(8)
[  477.840108] [0000177616] mtlk1(mtlk_pdb_set_int:353): << set param: id(22) value(8)
[  477.848188] [0000177624] mtlk1(mtlk_core_set_net_state:681): Going from NET_STATE_IDLE to NET_STATE_READY
[  477.859699] [0000177632] mtlk0(mtlk_fast_mem_print_info:105): Using normal memory for hot context
[  477.867513] PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
[  477.873151] [0000177648] mtlk3(_mtlk_bus_drv_setup_interrupts:224): Failed to enable MSI interrupts for the device, error code: -89
[  477.884899] [0000177660] mtlk3(MTLK_STEPS_ERROR_SD:54): STARTCTRL: bus_drv:BUS_SETUP_INTERRUPTS_INIT FAILED! step (256)
[  477.895737] [0000177672] mtlk3(MTLK_STEPS_ERROR_S:48): STARTCTRL: bus_drv INIT FAILED! Initiating rollback...
[  477.906192] [0000177680] mtlk1(_mtlk_core_activate:3370): CID-0000: open interface
[  477.913413] [0000177688] mtlk3(_mtlk_core_ap_set_initial_channel:3319): CID-0000: Failed to open - Country not specified
[  477.924291] [0000177700] mtlk3(_mtlk_core_activate:3384): Cannot set initial channel (-14)
[  477.932959] [0000177708] mtlk1(_mtlk_df_user_process_core_retval:462): Core request 0x1000000 failed with error #0
[  477.946383] br-lan: port 2(wlan0) entered blocking state
[  477.950334] br-lan: port 2(wlan0) entered disabled state
[  477.956480] device wlan0 entered promiscuous mode

root@OpenWrt:/lib/firmware# iwpriv wlan0 sCountry GB
root@OpenWrt:/lib/firmware# iwpriv wlan0 sMAC 12:34:56:78:90:ab
root@OpenWrt:/lib/firmware# iwconfig wlan0 essid openwrt

[  538.552743] [0000238328] mtlk1(_mtlk_core_set_country_from_ui:11901): CID-0000: Country is set to (from ui): GB(0xe9)
[  538.562087] [0000238336] mtlk1(mtlk_pdb_set_int:353): << set param: id(13) value(233)


[  553.927167] [0000253700] mtlk1(mtlk_pdb_set_mac:401): << set MAC param: id(2) MAC(12:34:56:78:90:AB) 
[  553.935083] [0000253708] mtlk1(_mtlk_core_set_mac_addr:3557): CID-0000: New MAC: 12:34:56:78:90:AB


[  570.678278] [0000270452] mtlk1(mtlk_pdb_set_string:368): << set string param: res(0) id(21) val(openwrt)

root@OpenWrt:/lib/firmware# ifconfig wlan0 up

[  602.039431] [0000301812] mtlk1(_mtlk_core_activate:3370): CID-0000: open interface
[  602.045708] [0000301820] mtlk1(mtlk_pdb_set_int:353): << set param: id(10) value(0)
[  602.060840] [0000301836] mtlk1(mtlk_set_mib_values_ex:382): l2nat_aging_timeout set to 150000
[  602.068300] [0000301844] mtlk0(mtlk_mbss_init:2736): CID-0000: _mtlk_core_mbss_check_activation_params returned successfully
[  602.079268] [0000301852] mtlk0(_mtlk_mbss_send_preactivate:2188): CID-0000: Pre-activation started with parameters:
[  602.089674] [0000301864] mtlk0(mtlk_core_configuration_dump:10274): CID-0000: Country             : GB
[  602.099011] [0000301872] mtlk0(mtlk_core_configuration_dump:10275): CID-0000: Domain              : 48
[  602.108348] [0000301884] mtlk0(mtlk_core_configuration_dump:10276): CID-0000: Network mode        : 802.11an
[  602.118186] [0000301892] mtlk0(mtlk_core_configuration_dump:10277): CID-0000: Band                : 5.2
[  602.127579] [0000301900] mtlk0(mtlk_core_configuration_dump:10278): CID-0000: Prog Model Spectrum : 40 MHz
[  602.137208] [0000301912] mtlk0(mtlk_core_configuration_dump:10279): CID-0000: Selected Spectrum   : 40 MHz
[  602.146905] [0000301920] mtlk0(mtlk_core_configuration_dump:10280): CID-0000: Bonding             : 0
[  602.156130] [0000301932] mtlk0(mtlk_core_configuration_dump:10281): CID-0000: HT mode             : enabled
[  602.165890] [0000301940] mtlk0(mtlk_core_configuration_dump:10283): CID-0000: SM enabled          : enabled
[  602.175665] [0000301952] mtlk0(_mtlk_mbss_send_preactivate:2199): CID-0000: Start AOCS
[  602.183818] [0000301960] mtlk0(_mtlk_mbss_send_preactivate:2211): CID-0000: ap_scan_band_cfg = 0
[  602.192318] [0000301968] mtlk1(mtlk_pdb_set_int:353): << set param: id(24) value(0)
[  602.200007] [0000301976] mtlk0(_mtlk_core_perform_initial_scan:2056): CID-0000: AOCS is ON (ch=0 type=0): doing the Initial Scan
[  602.211568] [0000301984] mtlk0(_mtlk_core_perform_initial_scan:2059): CID-0000: Initial scan started SPECTRUM_40MHZ
[  602.222024] [0000301996] mtlk0(do_scan:535): Starting normal scan...
[  602.228360] [0000302004] mtlk1(mtlk_progmodel_create:133): Progmodel initialized
[  602.235758] [0000302012] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_CB.bin
[  602.252097] [0000302028] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_CB_3A_RevB.bin
[  602.262207] [0000302036] mtlk1(mtlk_get_chnl_switch_mode:2631): Spectrum 40MHz, bonding upper, is silent: no - 0x10
[  602.271502] [0000302044] mtlk1(mtlk_flctrl_stop_data:89): mtlk_flctrl_stop, data stopped with id = 0x2
[  602.280631] [0000302056] mtlk1(mtlk_flctrl_stop_data:92): mask is 0x2
[  604.103694] [0000303880] mtlk1(mtlk_flctrl_start_data:115): mtlk_flctrl_start, data started with id = 0x2
[  604.112095] [0000303888] mtlk0(_mtlk_core_perform_initial_scan:2067): CID-0000: Initial scan started SPECTRUM_20MHZ
[  604.122391] [0000303896] mtlk0(do_scan:535): Starting normal scan...
[  604.128726] [0000303904] mtlk1(mtlk_progmodel_create:133): Progmodel initialized
[  604.136128] [0000303912] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_nCB.bin
[  604.152777] [0000303928] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_nCB_3A_RevB.bin
[  604.162896] [0000303936] mtlk1(mtlk_get_chnl_switch_mode:2631): Spectrum 20MHz, bonding upper, is silent: no - 0x00
[  604.172464] [0000303948] mtlk1(mtlk_flctrl_stop_data:89): mtlk_flctrl_stop, data stopped with id = 0x2
[  604.181363] [0000303956] mtlk1(mtlk_flctrl_stop_data:92): mask is 0x2
[  607.639693] [0000307416] mtlk1(mtlk_flctrl_start_data:115): mtlk_flctrl_start, data started with id = 0x2
[  607.647937] [0000307424] mtlk1(mtlk_flctrl_stop_data:89): mtlk_flctrl_stop, data stopped with id = 0x2
[  607.657223] [0000307432] mtlk1(mtlk_flctrl_stop_data:92): mask is 0x2
[  608.346258] [0000308120] mtlk1(mtlk_flctrl_start_data:115): mtlk_flctrl_start, data started with id = 0x2
[  608.354657] [0000308128] mtlk1(aocs_change_bonding:1507): Bonding changed to lower
[  608.362084] [0000308136] mtlk1(mtlk_pdb_set_int:353): << set param: id(10) value(104)
[  608.369904] [0000308144] mtlk1(mtlk_pdb_set_int:353): << set param: id(24) value(0)
[  608.377567] [0000308152] mtlk1(mtlk_progmodel_create:133): Progmodel initialized
[  608.384954] [0000308160] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_CB.bin
[  608.394994] [0000308168] mtlk1(mtlk_progmodel_load_from_os:194): Requesting firmware ProgModel_A_CB_3A_RevB.bin
[  608.416144] [0000308192] mtlk1(mtlk_pdb_set_int:353): << set param: id(6) value(1)
[  608.422404] [0000308196] mtlk1(mtlk_pdb_set_int:353): << set param: id(33) value(1)
[  608.430066] [0000308204] mtlk1(mtlk_pdb_set_int:353): << set param: id(29) value(1)
[  608.445026] [0000308220] mtlk1(mtlk_set_mib_values_ex:382): l2nat_aging_timeout set to 150000
[  608.452665] [0000308228] mtlk1(mtlk_get_chnl_switch_mode:2631): Spectrum 40MHz, bonding lower, is silent: no - 0x30
[  608.462706] [0000308236] mtlk0(_mtlk_channels_frequency_element_dump:2700): CID-0000: Channel        : 104
[  608.472311] [0000308248] mtlk0(_mtlk_channels_frequency_element_dump:2701): CID-0000: ChannelACT     : 60
[  608.481904] [0000308256] mtlk0(_mtlk_channels_frequency_element_dump:2702): CID-0000: ScanType       : 1
[  608.491373] [0000308264] mtlk0(_mtlk_channels_frequency_element_dump:2703): CID-0000: ChannelSwCnt   : 0
[  608.500856] [0000308276] mtlk0(_mtlk_channels_frequency_element_dump:2704): CID-0000: SwitchMode     : 48
[  608.510433] [0000308284] mtlk0(_mtlk_channels_frequency_element_dump:2705): CID-0000: SmRequired     : 0
[  608.519933] [0000308296] mtlk0(_mtlk_channels_frequency_element_dump:2706): CID-0000: CbTxPowerLim   : 168
[  608.529581] [0000308304] mtlk0(_mtlk_channels_frequency_element_dump:2707): CID-0000: nCbTxPowerLim  : 168
[  608.539262] [0000308312] mtlk0(_mtlk_channels_frequency_element_dump:2708): CID-0000: AntennaGain    : 0
[  608.548731] [0000308324] mtlk0(_mtlk_channels_frequency_element_dump:2709): CID-0000: ChannelLoad    : 0
[  608.558234] [0000308332] mtlk0(_mtlk_channels_frequency_element_dump:2711): CID-0000: MaxTxPwr[0]    : 0
[  608.567709] [0000308344] mtlk0(_mtlk_channels_frequency_element_dump:2712): CID-0000: MaxTxPwrIdx[0] : 0
[  608.577266] [0000308352] mtlk0(_mtlk_channels_frequency_element_dump:2711): CID-0000: MaxTxPwr[1]    : 0
[  608.586689] [0000308360] mtlk0(_mtlk_channels_frequency_element_dump:2712): CID-0000: MaxTxPwrIdx[1] : 0
[  608.596184] [0000308372] mtlk0(_mtlk_channels_frequency_element_dump:2711): CID-0000: MaxTxPwr[2]    : 0
[  608.605666] [0000308380] mtlk0(_mtlk_channels_frequency_element_dump:2712): CID-0000: MaxTxPwrIdx[2] : 0
[  608.615160] [0000308388] mtlk0(_mtlk_channels_frequency_element_dump:2714): CID-0000: SwitchType     : 0
[  608.625970] [0000308400] mtlk0(_mtlk_mbss_send_preactivate:2333): CID-0000: mtlk_txmm_msg_send_blocked, MsgId = 0x451
[  608.796855] [0000308572] mtlk1(_handle_bss_created:7380): Network created, BSSID 00:00:00:00:00:00
[  608.804712] [0000308580] mtlk0(_mtlk_mbss_send_preactivate:2352): CID-0000: _mtlk_mbss_send_preactivate returned successfully
[  608.815760] [0000308592] mtlk0(mtlk_mbss_init:2743): CID-0000: _mtlk_mbss_send_preactivate_if_needed returned successfully
[  608.826839] [0000308600] mtlk0(mtlk_mbss_send_vap_activate:2415): CID-0000: Entering mtlk_mbss_send_vap_activate
[  608.837024] [0000308612] mtlk0(mtlk_mbss_send_vap_activate:2422): CID-0000: Start activation
[  608.845489] [0000308620] mtlk1(mtlk_core_set_net_state:681): Going from NET_STATE_READY to NET_STATE_ACTIVATING
[  608.855572] [0000308628] mtlk0(mtlk_dump:61): dump of UMI_ACTIVATE_VAP:
[  608.862153] cp= 0x872c84a4 l=132
[  608.865365] 0000:  
[  608.867213] 12 
[  608.869015] 34 
[  608.869223] 56 
[  608.870949] 78 
[  608.871209] 90 
[  608.873025] ab 
[  608.873226] 00 
[  608.874964] 00  
[  608.875304] 02 
[  608.877116] 00 
[  608.877318] 00 
[  608.879044] 00 
[  608.879304] 07 
[  608.881118] 00 
[  608.881320] 00 
[  608.883057] 00 
[  608.883309] 
[  608.884884] 0010:  
[  608.886720] 6f 
[  608.888525] 70 
[  608.888720] 65 
[  608.890458] 6e 
[  608.890710] 77 
[  608.892528] 72 
[  608.892725] 74 
[  608.894452] 00  
[  608.894798] 00 
[  608.896617] 00 
[  608.896814] 00 
[  608.898553] 00 
[  608.898804] 00 
[  608.900642] 00 
[  608.900817] 00 
[  608.902556] 00 
[  608.902807] 
[  608.904365] 0020:  
[  608.906217] 00 
[  608.908021] 00 
[  608.908216] 00 
[  608.909955] 00 
[  608.910207] 00 
[  608.912023] 00 
[  608.912221] 00 
[  608.913949] 00  
[  608.914295] 00 
[  608.916113] 00 
[  608.916310] 00 
[  608.918049] 00 
[  608.918302] 00 
[  608.920119] 00 
[  608.920316] 00 
[  608.922044] 00 
[  608.922302] 
[  608.923881] 0030:  
[  608.925713] 00 
[  608.927438] 00 
[  608.927780] 00 
[  608.929453] 00 
[  608.929704] 00 
[  608.931440] 00 
[  608.931787] 00 
[  608.933456] 00  
[  608.933795] 00 
[  608.935531] 00 
[  608.935877] 00 
[  608.937548] 00 
[  608.937799] 00 
[  608.939535] 00 
[  608.939881] 00 
[  608.941551] 00 
[  608.941801] 
[  608.943278] 0040:  
[  608.945274] 00 
[  608.946949] 00 
[  608.947199] 00 
[  608.949018] 00 
[  608.949213] 00 
[  608.950951] 00 
[  608.951203] 00 
[  608.953019] 00  
[  608.953305] 00 
[  608.955029] 00 
[  608.955290] 00 
[  608.957108] 00 
[  608.957305] 00 
[  608.959045] 00 
[  608.959297] 00 
[  608.961117] 00 
[  608.961306] 
[  608.962788] 0050:  
[  608.964776] 00 
[  608.966445] 00 
[  608.966696] 00 
[  608.968512] 00 
[  608.968710] 00 
[  608.970438] 00 
[  608.970698] 00 
[  608.972518] 00  
[  608.972801] 00 
[  608.974540] 00 
[  608.974791] 00 
[  608.976608] 00 
[  608.976805] 00 
[  608.978532] 00 
[  608.978792] 00 
[  608.980613] 00 
[  608.980802] 
[  608.982284] 0060:  
[  608.984271] 00 
[  608.985942] 00 
[  608.986192] 00 
[  608.988014] 00 
[  608.988206] 00 
[  608.989996] 00 
[  608.990198] 00 
[  608.992019] 00  
[  608.992299] 00 
[  608.994023] 00 
[  608.994284] 00 
[  608.996104] 00 
[  608.996300] 00 
[  608.998038] 00 
[  608.998291] 00 
[  609.000107] 00 
[  609.000299] 
[  609.001774] 0070:  
[  609.003778] 00 
[  609.005439] 00 
[  609.005690] 00 
[  609.007426] 00 
[  609.007773] 00 
[  609.009443] 00 
[  609.009694] 00 
[  609.011430] 00  
[  609.011861] 00 
[  609.013534] 00 
[  609.013785] 00 
[  609.015521] 00 
[  609.015866] 00 
[  609.017538] 00 
[  609.017788] 00 
[  609.019525] 00 
[  609.019859] 
[  609.021280] 0080:  
[  609.023186] 00 
[  609.025002] 00 
[  609.025198] 00 
[  609.026927] 00 
[  609.027185] 
[  609.028792] [0000308804] mtlk0(mtlk_mbss_send_vap_activate:2473): CID-0000: UMI_ACTIVATE_VAP
[  609.037234] [0000308812] mtlk0(mtlk_mbss_send_vap_activate:2474): CID-0000: 	sBSSID = 12:34:56:78:90:AB
[  609.046637] [0000308820] mtlk0(mtlk_mbss_send_vap_activate:2475): CID-0000: 	sSSID = openwrt
[  609.055084] [0000308828] mtlk0(mtlk_mbss_send_vap_activate:2476): CID-0000: 	Hidden = 0
[  609.063086] [0000308836] mtlk0(mtlk_dump:61): 	sRSNie = 
[  609.068360] cp= 0x872c84d8 l=80
[  609.071413] 0000:  
[  609.073397] 00 
[  609.075071] 00 
[  609.075322] 00 
[  609.077138] 00 
[  609.077335] 00 
[  609.079064] 00 
[  609.079323] 00 
[  609.081140] 00  
[  609.081425] 00 
[  609.083165] 00 
[  609.083417] 00 
[  609.085232] 00 
[  609.085430] 00 
[  609.087159] 00 
[  609.087418] 00 
[  609.089238] 00 
[  609.089429] 
[  609.090911] 0010:  
[  609.092896] 00 
[  609.094568] 00 
[  609.094819] 00 
[  609.096635] 00 
[  609.096832] 00 
[  609.098561] 00 
[  609.098820] 00 
[  609.100641] 00  
[  609.100923] 00 
[  609.102664] 00 
[  609.102914] 00 
[  609.104730] 00 
[  609.104927] 00 
[  609.106655] 00 
[  609.106915] 00 
[  609.108749] 00 
[  609.108925] 
[  609.110407] 0020:  
[  609.112394] 00 
[  609.114065] 00 
[  609.114315] 00 
[  609.116131] 00 
[  609.116330] 00 
[  609.118058] 00 
[  609.118317] 00 
[  609.120136] 00  
[  609.120420] 00 
[  609.122158] 00 
[  609.122411] 00 
[  609.124247] 00 
[  609.124424] 00 
[  609.126152] 00 
[  609.126412] 00 
[  609.128230] 00 
[  609.128421] 
[  609.129905] 0030:  
[  609.131890] 00 
[  609.133562] 00 
[  609.133813] 00 
[  609.135549] 00 
[  609.135894] 00 
[  609.137565] 00 
[  609.137816] 00 
[  609.139553] 00  
[  609.139986] 00 
[  609.141657] 00 
[  609.141907] 00 
[  609.143724] 00 
[  609.143920] 00 
[  609.145659] 00 
[  609.145911] 00 
[  609.147729] 00 
[  609.147920] 
[  609.149402] 0040:  
[  609.151308] 00 
[  609.153125] 00 
[  609.153321] 00 
[  609.155059] 00 
[  609.155312] 00 
[  609.157127] 00 
[  609.157324] 00 
[  609.159054] 00  
[  609.159400] 00 
[  609.161216] 00 
[  609.161414] 00 
[  609.163154] 00 
[  609.163406] 00 
[  609.165225] 00 
[  609.165420] 00 
[  609.167148] 00 
[  609.167406] 
[  609.169015] [0000308944] mtlk0(mtlk_mbss_send_vap_activate:2480): CID-0000: mtlk_txmm_msg_send, MsgId = 0x453, ESSID = openwrt
[  609.180859] [0000308956] mtlk1(mtlk_core_set_net_state:681): Going from NET_STATE_ACTIVATING to NET_STATE_CONNECTED
[  609.190865] [0000308964] mtlk0(mtlk_mbss_init:2750): CID-0000: mtlk_mbss_send_vap_activate returned successfully
[  609.201026] [0000308976] mtlk1(_mtlk_core_get_max_stas_supported_by_fw:3231): MAX STAs supported by FW: 32
[  609.212162] br-lan: port 2(wlan0) entered blocking state
[  609.216138] br-lan: port 2(wlan0) entered forwarding state
[  654.857063] [0000354632] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:11 F:1 L:939. The new refcount is 1
[  654.866305] [0000354640] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:11 F:1 L:953. The new refcount is 2
[  654.876799] [0000354652] mtlk1(_mtlk_core_connect_sta_blocked:7632): Station C0:EE:FB:F4:91:48 (N) has connected
[  654.886953] [0000354660] mtlk1(mtlk_20_40_register_station:913): Registering a new station, IEEE address = C0:EE:FB:F4:91:48, coex = 0, exempt = 0, intolerant = 0, legacy = 0
[  654.902578] [0000354676] mtlk0(__mtlk_sta_decref_dbg:358): STA dereferenced from G:1 F:4 L:7705. The new refcount is 1
[  685.247692] [0000385024] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:18 F:0 L:292. The new refcount is 2
[  685.257581] [0000385032] mtlk0(__mtlk_sta_decref_dbg:358): STA dereferenced from G:18 F:0 L:239. The new refcount is 1
[  690.930112] [0000390704] mtlk1(_mtlk_core_disconnect_sta_blocked:7733): STA C0:EE:FB:F4:91:48 disconnected for reason 36
[  690.939673] [0000390716] mtlk1(_mtlk_core_send_disconnect_req_blocked:944): STA not found during cleanup: C0:EE:FB:F4:91:48
[  690.951910] [0000390728] mtlk1(_mtlk_core_send_disconnect_req_blocked:986): Station C0:EE:FB:F4:91:48 disconnected (status 0)
[  699.163743] [0000398940] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:11 F:1 L:939. The new refcount is 1
[  699.172962] [0000398948] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:11 F:1 L:953. The new refcount is 2
[  699.183464] [0000398956] mtlk1(_mtlk_core_connect_sta_blocked:7632): Station C0:EE:FB:F4:91:48 (N) has connected
[  699.193618] [0000398968] mtlk1(mtlk_20_40_register_station:913): Registering a new station, IEEE address = C0:EE:FB:F4:91:48, coex = 0, exempt = 0, intolerant = 0, legacy = 0
[  699.209246] [0000398984] mtlk0(__mtlk_sta_decref_dbg:358): STA dereferenced from G:1 F:4 L:7705. The new refcount is 1
[  709.160963] [0000408936] mtlk1(_mtlk_core_disconnect_sta_blocked:7733): STA C0:EE:FB:F4:91:48 disconnected for reason 36
[  709.170505] [0000408944] mtlk1(_mtlk_core_send_disconnect_req_blocked:944): STA not found during cleanup: C0:EE:FB:F4:91:48
[  709.182283] [0000408956] mtlk1(_mtlk_core_send_disconnect_req_blocked:986): Station C0:EE:FB:F4:91:48 disconnected (status 0)
[  715.967672] [0000415744] mtlk0(__mtlk_sta_incref_dbg:345): STA referenced from G:18 F:0 L:292. The new refcount is 2
[  715.976907] [0000415752] mtlk0(__mtlk_sta_decref_dbg:358): STA dereferenced from G:18 F:0 L:239. The new refcount is 1

Hi there i have now by a SPW921v too, i will experiment next time too.

Dit you have used a modifie hostap

from https://github.com/vittorio88/WAVE300/blob/master/README.md

Many tries were done by configuring driver with iwpriv commands.
It is possible that patched hostapd will manage to configure it properly.

Patched (but only binary) version was available here https://ufile.io/tncinzg5 - you have to extract /sbin/mtlk-ap (and probably uclibc, which was a standard at OpenWRT 12.09 times).

This version was able to setup both unencrypted and WPA2 secured network.
Hint: Even patched hostapd from OpenWRT will not work - it has to be vanilla, old hostapd build from sources.

Hey @pc2005 I am trying to compile with OpenWrt Linux v4.19.65 but it seems the repo tries to look for v4.14.105 specifically.

The log is:

Making install in mtlkroot
make[3]: Entering directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot'
make[4]: Entering directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot/linux'
make[4]: *** /home/ahmar/build-system/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-4.14.105: No such file or directory.  Stop.
make[4]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot/linux'
make[3]: *** [Makefile:486: mtlkroot.ko] Error 11
make[3]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot'
make[2]: *** [Makefile:588: install-recursive] Error 1
make[2]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools'
make[1]: *** [Makefile:519: install-recursive] Error 1
make[1]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288'
make: *** [Makefile:21: all] Error 2

Is it supposed to be happening? Should it not just look for something around 4.* or something?

It looks for 4.* .. in the file support/ugw.env.common:

#Kernel directory location
DEFAULT_KERNEL_DIR=`echo $(get_toolchain_path)/build_dir/target-mips_*/linux-lantiq_xrx200/linux-4.*`

mayeb there is some leftover directory 4.14.* ... you can always set the variable directly.

Well the above worked but halfway through it showed errors and I think something has changed in v4.19.65 that needs to be corrected.

/home/ahmar/build-system/wave300-source/wave300/wireless/driver/linux/osal_defs.c: In function '_mtlk_osal_timer_init':
/home/ahmar/build-system/wave300-source/wave300/wireless/driver/linux/osal_defs.c:63:3: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
   init_timer(&timer->os_timer);
   ^~~~~~~~~~
   init_timers
/home/ahmar/build-system/wave300-source/wave300/wireless/driver/linux/osal_defs.c:67:18: error: 'struct timer_list' has no member named 'data'
   timer->os_timer.data     = (unsigned long)timer;
                  ^
/home/ahmar/build-system/wave300-source/wave300/wireless/driver/linux/osal_defs.c:68:28: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
   timer->os_timer.function = __mtlk_osal_timer_clb;
                            ^
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:304: /home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot/linux/wireless/driver/linux/osal_defs.o] Error 1
make[4]: *** [Makefile:1517: _module_/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot/linux] Error 2
make[4]: Leaving directory '/home/ahmar/build-system/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-4.19.65'
make[3]: *** [Makefile:486: mtlkroot.ko] Error 11
make[3]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools/mtlkroot'
make[2]: *** [Makefile:588: install-recursive] Error 1
make[2]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288/tools'
make[1]: *** [Makefile:519: install-recursive] Error 1
make[1]: Leaving directory '/home/ahmar/build-system/wave300-source/wave300/builds/ugw5.4-vrx288'
make: *** [Makefile:21: all] Error 2

yeah it seems these members are now handed over in renamed call timer_setup(). Try to fix these structure members in this way.
There may be more obsoleted stuffs. I don't have the machine ready for now.

Guys, I'm planning to buy used TD-W8980 and also join you in attempt to make this to work. I have few question that can help me start.

  1. What is the best version of OpenWrt to start with?
  2. What is the current repo of an driver. I see at least three repos.

Hopefully we can finally make it work.
Thanks

Well I am using the same router for driver development. Before you start the development on this driver have a look at the other thread about developing it from scratch. It explains why there should be a new driver rather than using the old one.

In case you still want to develop the old driver, then repo provided by @pc2005 works well with 18.06.2 with some debugging options enabled in kernel config. Please look above in the posts and you may find those options. Using latest OpenWrt kernel has some issues because some timer functions have changed.

Edit: This post contains the debugging options needed to be setup with v18.06.2 and then this explains it.

1 Like

I finally managed to read whole thread. But have question regarding patched hostapd. Is it still needed? If so, where I can find source? There seems to be one in vittorio88 repo, but didn't find it in @pc2005 repos.

EDIT: Also another question. In old forum, there is link for lantiq kernel patches https://github.com/paldier/K3C/tree/master/ugw/target/linux/lantiq/patches-3.10. Any chance they're implemented in recent OpenWrt branches?

Yes AFAIK people have suggested that it's needed but only if we implement security with wifi. Tbe wifi comes up just fine withoit it as an open network. I think the hostapd is also included in the driver in the repo by @pc2005 but it's not build-able because of problems with build system. @pc2005 suggested that they can be fixed but he didn't have time to fix them.

I don't think these patches are implemented anymore even if they were in the past but I'm not sure. They relate to v3.10 so most of the stuff may have been obsolete by now.

I personally don't think we can fix this driver, I mean we shouldn't fix it. There are some variables outside of our reach even if we try to fix it. Examples include: based on old kernel, external driver files are required that aren't fixable because no source code is available etc. A rewrite is better than fixing this one and we can actually use some of the code snippets from this driver if required but it will be far better than fixing the old one.

1 Like

I was under impression that driver already supports security and only missing is patched hostapd.

Regarding open source driver, I full agree, but it's very long journey and I would like to have something working as baseline.

Yes I think hostapd here serves the purposes of wpad as it's happening in OpenWrt right now. If we dont include wpad in a build we only get open wifi and there is no security. But as soon as we add wpad we get the security options. So I think security is implemented in wifi driver but is just not available becasue of hostapd.

The current driver is based on old kernel so maybe we can extract some of the driver data that can be helpful in the new driver. For that to happen you need knowledge about how the driver works and I lack that kind of information. If you study the old driver then you can probably have some idea as what is going on there. But again you need compatible driver files to make it work.

1 Like

hostapd is the upstream project, which tends to get split (and only released as such) into two separate components, wpa_supplicant (most of the client/ STA related wireless handling) and hostapd itself (most of the AP side wireless handling). Both components share a considerable amount of code (and are developed as one in a single git repository) and are increasingly intertwined (wpa_supplicant has learned some basic AP operations, partially for WiFi-Direct® - hostapd needs wpa_supplicant assistance for WDS/ 4addr). In OpenWrt, both components are merged into a single package and (multi-call) binary, mostly for space reasons. This means the single wpad binary (or its various variants) does assume both roles as needed.

Technically speaking the kernel doesn't know anything[0, 1] about wireless encryption, that is done in userspace by hostapd (read, wpad). hostapd is the one in charge of the key exchange, of the rekeying, of all the security- and policy decisions. Traditionally hostapd provided multiple APIs to communicate with hardware drivers (hostap was the first one, to communicate with the very first wireless chipsets using the hostap_{cs,pci,…} suite of drivers, madwifi/ atheros and intel were others), before this converged first into the generic wext and nowadays the nl80211 API (this one is the only fully supported one, the only contemporary one with AP support). Kernel- and hostapd upstream have decided that they will not accept new driver specific APIs anymore, everything has to be nl80211 compatible (wext is provided for legacy/ compatibility reasons, hostapd, madwifi/ atheros and intel have been dropped; wired does exist for IEEE802.1x ethernet authentication).

But some vendors do insist on using a custom API between their (proprietary) kernel drivers and hostapd (e.g. RealTek for many of their chipsets, assuming your hunch is correct probably also lantiq). Given that hostapd doesn't accept these and considering that vendors usually don't bother about submitting them anyways, they usually ship an ancient (v0.4.7 in case of RealTek, while v2.9 would be the current version) and heavily patched fork of hostapd. That is not a workable situation for upstream or OpenWrt, as hostapd is a highly security sensitive component (e.g. it had 7 security bugs this year alone - guess how many of those were fixed in those ancient custom vendor forks[2]) and because those different APIs also require a completely different configuration syntax.

--
[0] at least for anything beyond WEP. WEP was historically implemented in the kernel via the wext API - and for compatibility reasons these features remain, but are rarely used directly these days. This procedures was considered as very inflexible and abandoned for anything newer than WEP.
[1] most WLAN cards to have some hardware accelerated cipher support (AES, etc.) in the wireless chipset, these days with 802.11ac and beyond functionality is increasingly offloaded into hardware (both for secrecy reasons (don't giving users or competitors too much insight in the chips inner workings/ abilities) and performance/ power envelope reasons (hardware accelerations and reducing power usage, especially while idle)
[2] if you guessed zero, you would be correct.

3 Likes

Finally managed to get hands on TP-W8980. But makefiles of module seems not to be compatible with Ubuntu 18.04. I'm using openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64 which should be exact version of sdk that official image was built against. The problem it that some directories are not expanded. So in builds dir I have dir with name:

"builds/ugw5.4-vrx288/tools/shared/linux/$(rtlogger_shared_srcdir)"
...

Any advice how to modify makefiles to properly expand dirs? Many thanks in advance.

AFAIK the driver was able to built on Ubuntu 18.04 because I compiled it myself. As far as the modules are concerned, according to @pc2005, they are not able to compile because of some errors (could be the same errors you are facing). Maybe for now just focus on the driver itself and once the driver is stable enough to use then focus on the modules if necessary.

I've selected to only build modules, but autoconf still selects tools, shared tools ... which cause build errors:

Output from make nconfig

make[1]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/kconfig'
Linking ./nconf
gcc ././zconf.tab.o  ./nconf.o  ./nconf.gui.o -lncursesw -ldl -ltinfo -lmenuw -lpanelw -o ./nconf 

make[1]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/kconfig'
./tools/kconfig/nconf ./MTLKConfig
test .config.h -nt .config || rm -f .config.h
autoreconf --install
configure.ac:222: installing './compile'
configure.ac:9: installing './config.guess'
configure.ac:9: installing './config.sub'
configure.ac:216: installing './install-sh'
configure.ac:216: installing './missing'
tools/BCLSockServer/Makefile.am: installing './depcomp'
./support/cfghlpr.sh .config
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking for toolchain to use... default
checking for kernel to use... default
checking for kernel compiler prefix to use... default
checking for environment configuration file... ugw5.4-vrx288
checking for rflib... use runtime build
checking for toolchain strip... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-strip
checking for toolchain ranlib... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-ranlib
checking whether to build the wireless driver... yes
checking for supported hardware set... PCIG3 
checking whether to build the MTTools... no
checking whether to build remote logging tools... no
checking whether to build the DUT components... no
checking whether to build helper tools... no
checking for target kernel package... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-4.9.184
checking for target kernel compiler... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-gcc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-linux-strip... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for echo... /bin/echo
checking for mips-linux-gcc... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc accepts -g... yes
checking for /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc option to accept ISO C89... none needed
checking whether /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-g++ accepts -g... yes
checking dependency style of /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-g++... gcc3
checking for mips-linux-ranlib... /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-ranlib
checking for readlink... yes
checking whether compiler frontend works for C programs... yes
checking whether compiler frontend works for C++ programs... yes
checking whether platform supports built-in atomics... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tools/Makefile
config.status: creating tools/dutserver/Makefile
config.status: creating tools/dutserver/linux/Makefile
config.status: creating tools/shared/Makefile
config.status: creating tools/shared/3rd_party/Makefile
config.status: creating tools/shared/3rd_party/iniparser/Makefile
config.status: creating tools/shared/linux/Makefile
config.status: creating wireless/Makefile
config.status: creating wireless/shared/Makefile
config.status: creating wireless/driver/Makefile
config.status: creating wireless/driver/rflib/Makefile
config.status: creating tools/rtlogger/Makefile
config.status: creating tools/rtlogger/shared/Makefile
config.status: creating tools/rtlogger/logserver/Makefile
config.status: creating tools/rtlogger/logserver/linux/Makefile
config.status: creating tools/rtlogger/logcnv/Makefile
config.status: creating tools/rtlogger/prebuilt/Makefile
config.status: creating tools/mtlkroot/Makefile
config.status: creating tools/mttools/Makefile
config.status: creating tools/mttools/shared/Makefile
config.status: creating tools/mttools/drvhlpr/Makefile
config.status: creating tools/mttools/mtdump/Makefile
config.status: creating tools/mttools/mtlk_cli/Makefile
config.status: creating tools/mttools/mtlk_cli_dbg_srv/Makefile
config.status: creating tools/BCLSockServer/Makefile
config.status: creating config.h
config.status: executing depfiles commands
'builds/ugw5.4-vrx288/.config.h' -> './.config.h'

.config after make nconfig

#
# Automatically generated file; DO NOT EDIT.
# Linux Kernel Configuration
#
# CONFIG_PLATFORM_UGW61_ARX388 is not set
# CONFIG_PLATFORM_UGW61_VRX388 is not set
# CONFIG_PLATFORM_UGW54_ARX388 is not set
# CONFIG_PLATFORM_UGW54_ARX382 is not set
# CONFIG_PLATFORM_UGW54_GRX388 is not set
CONFIG_PLATFORM_UGW54_VRX288=y
# CONFIG_PLATFORM_UGW54_VRX388 is not set
# CONFIG_PLATFORM_DONGLE is not set
# CONFIG_PLATFORM_UGW53_GRX288_NAND is not set
# CONFIG_PLATFORM_UGW53_ARX168 is not set
# CONFIG_PLATFORM_UGW53_ARX388 is not set
# CONFIG_PLATFORM_UGW53_VRX288 is not set
# CONFIG_PLATFORM_UGW52_GRX288_NAND is not set
# CONFIG_PLATFORM_UGW52_ARX300 is not set
# CONFIG_PLATFORM_UGW52_VRX288 is not set
# CONFIG_PLATFORM_UGW52_GW188 is not set
# CONFIG_PLATFORM_UGW52_ARX188 is not set
# CONFIG_PLATFORM_UGW52_GRX168 is not set
# CONFIG_PLATFORM_VB300 is not set
# CONFIG_PLATFORM_LQ_UGW_AR10_WAVE400 is not set
# CONFIG_PLATFORM_GEN35FPGA is not set
# CONFIG_PLATFORM_UGW51_VRX288_NAND is not set
# CONFIG_PLATFORM_UGW51_GRX288_NAND is not set
# CONFIG_PLATFORM_UGW51_VRX288 is not set
# CONFIG_PLATFORM_UGW51_GW188 is not set
# CONFIG_PLATFORM_UGW51_ARX188 is not set
# CONFIG_PLATFORM_UGW51_GRX168 is not set
# CONFIG_PLATFORM_STAR4MB is not set
# CONFIG_PLATFORM_PC_KERN26 is not set
# CONFIG_PLATFORM_AMCC405EX is not set
# CONFIG_PLATFORM_AMCC405_DECA is not set
CONFIG_COMPONENTS=y
CONFIG_LIN_DRV=y
# CONFIG_USE_PREBUILT_RFLIB is not set

#
# HW bus types
#
CONFIG_LINDRV_HW_PCIG3=y
# CONFIG_LINDRV_HW_PCIE is not set
CONFIG_BUS_PCI_PCIE=y
# CONFIG_LINDRV_HW_AHBG35 is not set
# CONFIG_BUS_AHB is not set
# CONFIG_LIN_MTTOOLS is not set
# CONFIG_LIN_RTLOG_COMPONENTS is not set
# CONFIG_LIN_DUT is not set
# CONFIG_LIN_HELPER_TOOLS is not set

#
# Features
#
CONFIG_RF_MANAGEMENT_MTLK=y
# CONFIG_HOSTAP_06 is not set
# CONFIG_FORCE_USE_GENL_DISABLE is not set
# CONFIG_USE_INTERRUPT_POLLING is not set

#
# Debug extentions
#
CONFIG_DEBUG=y
CONFIG_ENABLE_OBJPOOL=y
# CONFIG_ENABLE_NBUF_OBJPOOL is not set
CONFIG_TXMM_HISTORY_LENGTH=3
# CONFIG_IRB_DEBUG is not set
# CONFIG_CPU_STAT is not set
# CONFIG_BENCHMARK_TOOLS is not set
# CONFIG_IRB_BENCHMARKING is not set
# CONFIG_CCR_DEBUG is not set
# CONFIG_FW_WRITE_VALIDATION is not set
# CONFIG_TSF_TIMER_TIMESTAMPS_IN_DEBUG_PRINTOUTS is not set
# CONFIG_PER_PACKET_STATS is not set
CONFIG_STAT_CNTRS_DEBUG=y
CONFIG_NO_FW_RESET_ON_STOP=y
# CONFIG_PCIE_TUNING is not set
CONFIG_RT_LOGGER_FUNCTIONS=y
# CONFIG_RT_LOGGER_INLINES is not set

#
# Log level
#
CONFIG_MAX_DLEVEL=2
# CONFIG_SILENT is not set
CONFIG_USE_GENL_DEF=y
CONFIG_USE_GENL=y
# CONFIG_TSF_TIMER_ACCESS_ENABLED is not set
CONFIG_DEVELOPMENT_PLATFORM=y
CONFIG_ENVIRONMENT_NAME="ugw5.4-vrx288"
CONFIG_HOST_TYPE="mips-linux"

Build error after make:

make[1]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288'
Making install in tools/shared
make[2]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared'
Making install in 3rd_party
make[3]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
Making install in iniparser
make[4]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party/iniparser'
depbase=`echo dictionary.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/support/mtlkfront.sh /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc -DHAVE_CONFIG_H -I. -I../../../../../../tools/shared/3rd_party/iniparser -I../../../..  -DMTLK_SOURCE_VERSION="\"3.4.99.0.0.exported.pre_git_version.REL_3.4.99\"" -DLOG_LOCAL_OID=MTLKFRONT_WILL_FILL_IT -include /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/config.h -include /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/.config.h -I../../../../../../tools/rtlogger/shared -I../../../../../../tools/shared -I../../../../../../tools/shared/linux -I../../../../../../wireless/shared -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include  -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/ -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/netlink/genl/ -Wall -Wno-multichar -fno-strict-aliasing -O2 -fno-common -fno-builtin  -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/ -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/netlink/genl/ -MT dictionary.o -MD -MP -MF $depbase.Tpo -c -o dictionary.o ../../../../../../tools/shared/3rd_party/iniparser/dictionary.c &&\
mv -f $depbase.Tpo $depbase.Po
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/3rd_party/iniparser/dictionary.c
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/config.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/.config.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/mtlkinc.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlk_slid.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party/iniparser/loggroups.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlkbfield.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlk_assert.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/mtlk_osal.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlkerr.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/memtags.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlk_objpool.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/memdefs.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mem_leak.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/osal_osdep_decls.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/mtlkidefs.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/osal_osdep_defs.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/mtlk_osal_dbg.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/utils.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/log_osdep.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/rtlogger/shared/log.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/rtlogger/shared/logdefs.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/linux/mtlkpack.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/rtlogger/shared/formats.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/rtlogger/shared/logmacro_mixins.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/wireless/shared/mtlkstartup.h
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/3rd_party/iniparser/dictionary.h
depbase=`echo iniparser.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/support/mtlkfront.sh /media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-*linux-gcc -DHAVE_CONFIG_H -I. -I../../../../../../tools/shared/3rd_party/iniparser -I../../../..  -DMTLK_SOURCE_VERSION="\"3.4.99.0.0.exported.pre_git_version.REL_3.4.99\"" -DLOG_LOCAL_OID=MTLKFRONT_WILL_FILL_IT -include /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/config.h -include /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/.config.h -I../../../../../../tools/rtlogger/shared -I../../../../../../tools/shared -I../../../../../../tools/shared/linux -I../../../../../../wireless/shared -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include  -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/ -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/netlink/genl/ -Wall -Wno-multichar -fno-strict-aliasing -O2 -fno-common -fno-builtin  -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/ -I/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/usr/include/libnl3/netlink/genl/ -MT iniparser.o -MD -MP -MF $depbase.Tpo -c -o iniparser.o ../../../../../../tools/shared/3rd_party/iniparser/iniparser.c &&\
mv -f $depbase.Tpo $depbase.Po
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/3rd_party/iniparser/iniparser.c
  LP      /media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/tools/shared/3rd_party/iniparser/iniparser.h
rm -f libiniparser.a
ar cru libiniparser.a dictionary.o iniparser.o 
ar: `u' modifier ignored since `D' is the default (see `U')
/media/finch/xenial/home/finch/dev/openwrt/td-w8980/openwrt-sdk-18.06.4-lantiq-xrx200_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-ranlib libiniparser.a
make[5]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party/iniparser'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party/iniparser'
make[4]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party/iniparser'
make[4]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
make[5]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
make[4]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
make[3]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/3rd_party'
Making install in linux
make[3]: Entering directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/linux'
Makefile:566: ../../../../../tools/rtlogger/shared/.deps/logmacro_database.Po: No such file or directory
Makefile:567: ../../../../../tools/shared/linux/../.deps/CmdLine.Po: No such file or directory
Makefile:568: ../../../../../tools/shared/linux/../.deps/Debug.Po: No such file or directory
Makefile:569: ../../../../../tools/shared/linux/../.deps/ParamInfo.Po: No such file or directory
Makefile:570: ../../../../../tools/shared/linux/../.deps/argv_parser.Po: No such file or directory
Makefile:571: ../../../../../tools/shared/linux/../.deps/aux_utils.Po: No such file or directory
Makefile:572: ../../../../../tools/shared/linux/../.deps/mtlk_pathutils.Po: No such file or directory
Makefile:573: ../../../../../tools/shared/linux/../.deps/mtlk_socket.Po: No such file or directory
Makefile:574: ../../../../../tools/shared/linux/../.deps/mtlkcontainer.Po: No such file or directory
Makefile:575: ../../../../../tools/shared/.deps/mtlkirbhash.Po: No such file or directory
Makefile:576: ../../../../../tools/mtidl/.deps/mtidl_ini_parser.Po: No such file or directory
make[3]: *** No rule to make target '../../../../../tools/mtidl/.deps/mtidl_ini_parser.Po'.  Stop.
make[3]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared/linux'
Makefile:454: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288/tools/shared'
Makefile:518: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/media/finch/5d966898-c0c1-4483-816f-0ec02c3a2608/backup/finch/dev/wave300/builds/ugw5.4-vrx288'
Makefile:21: recipe for target 'all' failed
make: *** [all] Error 2

EDIT: I've managed to compile module, by editing generated Makefile(s) and removing all refences to shared dirs from SUBDIRS variables.

Sorry for being tiresome, but where did you guys get firmware files? I see discussion in this thread and I tried two different sources. One was from TD-W8980_V1_150514.zip and second one for Archer_VR200_v1_150906.zip, but when I try to insmod I get error about missing cal_wlan1.bin. There is mention of cal_wlan0.bin in @pc2005 README, but file is not present of any of those firmwares.

Fri Nov  1 11:24:56 2019 kern.warn kernel: [173879.127245] [0173586172] mtlk0(mtlk_cdev_init:355): Max nodes set to 1048575
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.363967] [0173597408] mtlk0(__mtlk_print_endianess:4926): The system is Big endian (0xbeadfeed, 0xedfeadbe)
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.373081] [0173597416] mtlk0(mtlk_fast_mem_print_info:114): Using normal memory for hot context
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.381734] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.388138] [0173597432] mtlk0(_mtlk_df_user_alloc_devname:8350): NDEV Name pattern: wlan%d
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.396452] [0173597440] mtlk0(mtlk_core_pdb_fast_handles_open:42): Open Hot-path parameters
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.405203] [0173597448] mtlk4(_mtlk_mmb_cleanup_reset_mac:3256): FW CPU reset is done
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.466847] mtlk 0000:00:0e.0: Direct firmware load for cal_wlan1.bin failed with error -2
Fri Nov  1 11:25:07 2019 kern.warn kernel: [173890.473871] mtlk 0000:00:0e.0: Falling back to user helper
Fri Nov  1 11:25:08 2019 daemon.err procd: Could not find firmware /lib/firmware/cal_wlan1.bin: No such file or directory
Fri Nov  1 11:25:08 2019 kern.err kernel: [173890.771463] firmware cal_wlan1.bin: firmware_loading_store: map pages failed
Fri Nov  1 11:25:08 2019 kern.warn kernel: [173890.777591] [0173597820] mtlk3(_mtlk_df_fw_request_firmware:63): Firmware (cal_wlan1.bin) is missing
Fri Nov  1 11:25:08 2019 daemon.err procd: failed to write to /sys//devices/pci0000:00/0000:00:0e.0/firmware/cal_wlan1.bin/loading: Out of memory
``

At least I can answer this one. The problem is that host make nconfig is compiled with mix libncurses5-dev and libncurses5w-dev (wide char support). I've managed to change config to use libncurses5w-dev solely and make nconfig is not garbled anymore. But IMO there is no real differrence to menuconfig, so if make menuconfig works for you, use that instead.

Here you can find the files that I used for the firmware. Somewhere above I have indicated how but anyway here it is: https://drive.google.com/open?id=1mBy3LWKBKhuOEdz3FLi_9_owlvXowdVk

1 Like