Comment 125 for bug 1220146

HP440G1 MediaLink MT7630e driver installation - (In case `make` didn't solve the issue)
======================================================================

First Download the Driver Package from: http://www.mediatek.com/en/downloads/mt7630-pcie/

01. extract the "MT7630E_Wi-Fi_BT_Source Release_20140625.zip"
02. cd to the extracted location.
03. copy the "MT7650E234.bin" under "firmware/Wi-FI/" into /lib/firmware/
04. edit the file "rt2x00.h" directory located under 'rt2x00' and replace the following line as below.
-----------------------------------------------------------------------------------------------------
#define DRV_VERSION "2.3.1"

05. Now rename the "rt2x00" directory located under 'rt2x00' as rt2x00-VV, where "VV" should be replace as below E.g.
--------------------------------------------------------------------------------------------------------------------
$ uname -r
3.13.0-30-generic
- Now replace the directory as "rt2x00-3.13" -

06. Copy this directory(rt2x00-3.13) into "/usr/src"
07. cd into /usr/src/
08. Now you should have that copied directory. Lets cd into that (rt2x00-3.13) and make a file named "dkms.conf" and paste following lines.
###NOTE### PACKAGE_VERSION="3.13" - this field must match with your kernel version. (use $ uname -r)
------------------------------------------------------------------------------------------------------------------------------------------
PACKAGE_NAME="rt2x00"
PACKAGE_VERSION="3.13"
AUTOINSTALL="yes"
OBSOLETE_BY=""
BUILD_EXCLUSIVE_KERNEL=""
POST_INSTALL=""
POST_REMOVE=""

BUILT_MODULE_NAME[0]="rt2x00lib"
DEST_MODULE_LOCATION[0]="/updates"

BUILT_MODULE_NAME[1]="rt2x00pci"
DEST_MODULE_LOCATION[1]="/updates"

BUILT_MODULE_NAME[2]="rt2x00mmio"
DEST_MODULE_LOCATION[2]="/updates"

BUILT_MODULE_NAME[3]="rt2800lib"
DEST_MODULE_LOCATION[3]="/updates"

BUILT_MODULE_NAME[4]="rt2800pci"
DEST_MODULE_LOCATION[4]="/updates"

09. Lets install "dkms" with $ sudo apt-get install dkms
10. Now do the following
---------------------------------------------------------
# sudo dkms add –m rt2x00 –v VV
# sudo dkms build –m rt2x00 –v VV
# sudo dkms install –m rt2x00 –v VV
# sudo dkms install –m rt2x00 –v VV --force

11. As a final step, lets add following kernel modules into "/etc/modules", so that they will load when the system boots up.
$ sudo vi /etc/modules
----------------------------------------------------------------------------------------------------------------------------
eeprom
eeprom_93cx6
crc-ccitt
cfg80211
mac80211
rt2x00lib
rt2x00pci
rt2x00mmio
rt2800lib

### - reboot the system and see if your wireless interfaces is available - ###

TIP: incase something not right, check $ less /var/log/kern.log to find some debugs...