neurobin / MT7630E

Modified easy installation package
https://neurobin.org/projects/softwares/unix/MT7630E/
232 stars 70 forks source link

[Ubuntu] System freezes everytime during install (kernel 4.4.0-87) #75

Open asereze opened 7 years ago

asereze commented 7 years ago

System info

Entry Details
OS Ubuntu 16.04
Kernel version 4.4.0-87-generic
New install no
DKMS <yes/no>
Compiler < include version e.g: gcc-5.4.0 >

Devince info

Device ID: 0489:e069

General info:

#block starts
03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
    Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 3
    Region 0: Memory at f7900000 (32-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>

04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
    Subsystem: ASUSTeK Computer Inc. RTL8411 PCI Express Card Reader
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin B routed to IRQ 28
    Region 0: Memory at f7800000 (32-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: rtsx_pci
    Kernel modules: rtsx_pci

04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
#block ends

Bluetooth stats:

#block starts
0: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: asus-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
#block ends

What didn't work?

Same as #68. But this time the patch suggested didn't work.

What did you try?

[please include all details, every small step is important, if already explained above, just use ^^^ or 'see above']

Error code:

#block starts
[please include error code in this block]
#block ends

Additional info

[Put any additional information here or leave it blank]

jeremyb31 commented 7 years ago

Please provide results for usb-devices | awk '/e069/' RS=

asereze commented 7 years ago

@jeremyb31 That's what I get:

T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.01 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0489 ProdID=e069 Rev=01.00 S: Manufacturer=MediaTek S: Product=BT S: SerialNumber=1.0 C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=450mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)

jeremyb31 commented 7 years ago

Instead of using

/* MediaTek MT76x0E */
{ USB_DEVICE(0x0e8d, 0x763f), .driver_info = BTUSB_MEDIATEK },

in the patch you may want to try using

/* MediaTek MT76x0E */
{ USB_DEVICE(0x0489, 0xe069), .driver_info = BTUSB_MEDIATEK },

As the 0489:e069 seems to be your bluetooth device

jeremyb31 commented 7 years ago

I cant seem to get the formatting correct but I hope you see what I am suggesting

ghjdgfher commented 6 years ago

Instead of using

/* MediaTek MT76x0E */
{ USB_DEVICE(0x0e8d, 0x763f), .driver_info = BTUSB_MEDIATEK },

in the patch you may want to try using

/* MediaTek MT76x0E */
{ USB_DEVICE(0x0489, 0xe069), .driver_info = BTUSB_MEDIATEK },

As the 0489:e069 seems to be your bluetooth device

works like a charm.

vtkp commented 5 years ago

Works for me too. I'm running Linux 4.4.0-138-generic and Ubuntu 16.04.5. I don't care about Bluetooth, but fixing the Bluetooth driver as described here somehow magically fixes the wifi, and I do care about the wifi.

Thanks! I was going to go buy a new laptop if this fix didn't work.

vtkp commented 5 years ago

I posted a comment and retracted it.

Ubuntu fed me a new Kernel version, 4.4.0-139-generic, and I had some difficulty compiling things to work with it. The procedure that works is:

(I'm using parentheses as comments because numbersigns display strangely.) (Insert the cable, check for a network.) cd ~/Downloads/MT7630E/MT7630E-2.0.7 sudo ./bpatch -u usb-devices | awk '/e069/' RS= (It mentions "P: Vendor=0489 ProdID=e069 Rev=01.00") (Check numbers match in bpatch near "btusb.c". It should say: sed -i "s/{ USB_DEVICE(0x0e8d, 0x763f) },/{ USB_DEVICE(0x0489, 0xe069), .driver_info = BTUSB_MEDIATEK },/" btusb.c ) sudo rm -rf build time sudo make uninstall time sudo make clean time sudo ./bpatch (Check that there's only one btusb.c there, and the kernel version number in the path mentions 139 and not 138. Mention of MediaTek MT76x0E in btusb.c has numbers matching the usb-devices call.) time sudo make (Check for no warnings similar to https://github.com/neurobin/MT7630E/issues/68.) (Remove the cable.) reboot cd ~/Downloads/MT7630E/MT7630E-2.0.7 sudo ./test (It works and I'm posting from it now.)