Vernee Thor (vernee-k506)

Contributors

 * Dahrkael

How to enter flash mode

 * Recovery: Power on the device with both  and  buttons. Then select Recovery pressing  and confirm with.
 * Fastboot: Do the same as for Recovery, but select the Fastboot option in the menu.
 * MediaTek Preloader: The preloader triggers automatically everytime the phone turns on or reboots.

Installation
Fastboot doesn't allow flashing on this phone.

pmOS can be installed either using a Recovery ZIP through TWRP or using MediaTek's SP Flash Tool.

Unlock the bootloader

 * 1) Enable Developer Mode in Android tapping 5 times the   in.
 * 2) Then go to   and tap.

Install using Recovery ZIP
Follow the Installation from recovery mode guide.

Install using SP Flash Tool

 * 1) Export the pmOS files running
 * 2) Open SP Flash Tool.
 * 3) Select the MT6753 scatter file.
 * 4) Asign   to partition boot and   to partition system
 * 5) Click  and turn on/restart the phone. It will automatically flash the files.

SoC features
WiFi, Bluetooth, GPS and FM Radio are all integrated into the SoC and need to be initialized all at the same time.

To do this the proprietary firmware files matching the kernel need to be copied into.

To initialize the chip and drivers MediaTek provides two proprietary programs: These tools are not officially available outside Android, but there are source code versions available that do work.
 * wmt_loader: initializes the chip and starts the drivers.
 * 6620_launcher (or connsys_launcher): finds and loads the firmware files into their respective chips.

In the case of the Vernee Thor all the required connectivity drivers are compiled into the kernel, so theres no need to load them prior to executing these programs.
 * 1) Execute   without parameters. /dev/wmtDetect should appear.
 * 2) Execute  . This program needs to keep running, so better send it to background with.

If it worked now there should be a bunch of /dev/stp* entries and /dev/wmtWifi.

For debugging use. Execute  to improve verbosity.

Caution: the phone will crash if wmt_loader runs twice.

WiFi
To get WiFi working first initialize the chip and driver.
 * 1) Execute
 * 2) Execute
 * 3) Check with   that the interface wlan0 appeared

To connect to a network:
 * 1) Bring the interface up:
 * 2) Scan to find out what WiFi networks are detected:
 * 3) Connect to WPA/WPA2 WiFi network:
 * 4) Start wpa_supplicant to connect to the network:
 * 5) Verify that you are indeed connected to the SSID:
 * 6) Start udhcpc to get an ip address:

If everything seems fine but theres no network traffic ( doesn't work) it probably means the firmware files are not the correct ones.