Nossiac / mtk-openwrt-feeds

mtk-openwrt-feeds
428 stars 204 forks source link

mt7612 driver initialization problem #87

Closed nicefile closed 2 years ago

nicefile commented 6 years ago

So I have build Openwrt 18.06 image from snapshot with all mtk tools included. Kernel 4.14.66 and modules mt7603 and mt7612 radios as i have mir3g router .5Ghz radio give me problems to run

this is working for mt7603 2.4Ghz radio: dd if=/dev/mtd3 of=/etc/wireless/mt7603/mt7603.eeprom.bin bs=1 count=200 modprobe mt7603

but this one not for mt7612 5Ghz radio: dd if=/dev/mtd3 of=/etc/wireless/mt7612/mt7612.eeprom.bin bs=1 skip=32768 count=512 modprobe mt7612 dmesg: [ 2612.078597] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=rai0! [ 2612.150328] ==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0x20b [ 2612.160641] Unregister PCI device driver [ 2619.767751] register rt2860 [ 2619.770699] bus=0x2, slot = 0x1, irq=0x17 [ 2619.781725] [ 2619.781725] [ 2619.781725] === pAd = c1a81000, size = 2108512 === [ 2619.781725] [ 2619.791397] <-- RTMPAllocTxRxRingMemory, Status=0 [ 2619.796732] <-- RTMPAllocAdapterBlock, Status=0 [ 2619.801266] pAd->CSRBaseAddress =0xc1980000, csr_addr=0xc1980000! [ 2619.807336] device_id =0x7662 [ 2619.810317] ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x208 [ 2619.819944] chip_id1=, chip_id2=, pAd->MACVersion=0x76623000 [ 2619.825594] chip_id1=0x0, chip_id2=0x0, pAd->MACVersion=0x76623000 [ 2619.831771] get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai

'ifconfig rai0 up' kills router only power switch helps.

above data should be correct as in pandorabox dmsg have : [49132.184000] EEPROM:Read from [Factory] offset 0x8000,length 0x200. [49132.204000] RX[0] DESC ad7e0000 size = 4096 [49132.208000] RX[1] DESC ad7e1000 size = 2048 [49132.220000] cfg_mode=14 [49132.224000] cfg_mode=14 [49132.224000] wmode_band_equal(): Band Not Equal! [49132.408000] APCli_WPAPSK_KEY, key string required 8 ~ 64 characters!!! [49132.456000] WiFi Mcast disabled=0 [49132.456000] 1. Phy Mode = 49

What do I miss here to get it work?

nicefile commented 6 years ago

looks like mi router 3g has issue with your mt7612.ko regardless of kernel version . I've created hw profile for mir3g for lede 4.9.91 still the same . @nossiac thx for Your effort but how about compile module for 4.14.63 ( official OpenWRT 18.06.1) and then do some bug hunt with users ? Using official imagebuilder will benefit everyone . btw. mi router 3g 5Ghz bug is here with us at least from 28th Feb when reported by Lu-Fi .... And this is such popular/cheap router