Huawei Y635 (huawei-y635)

From postmarketOS


Huawei Y635
Huawei Y635 on mainline with Xfce
Huawei Y635 on mainline with Xfce
Manufacturer Huawei
Name Y635
Codename huawei-y635
Released 2015
Category testing
Pre-built images no
Original software Android
Original version 4.4.4 (EMUI 3)
Hardware
Chipset Qualcomm Snapdragon 410 (MSM8916)
CPU Quad-core 1.2 GHz Cortex-A53
GPU Adreno 306
Display 480 x 854 (IPS LCD, 5.0")
Storage 4/8 GB
Memory 1 GB
Architecture AArch64
Unixbench Whet/Dhry score 915.7
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
FDE
Works
Mainline
Works
Battery
Works
3D Acceleration
Works
Audio
Works
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Broken
Internal storage
SMS
Broken
Calls
Broken
USB OTG
Broken
Sensors
Accelerometer
Works
Ambient Light
Works
Proximity
Works
Misc
Built-in DVB
Camera Flash
Ir RX
Stylus
Memory Card
Haptics
Ethernet
FOSS bootloader
Works
This device is based on the Snapdragon 410.
See the SoC page for common tips, guides and troubleshooting steps

Contributors

Maintainer(s)

Users owning this device

  • Ungeskriptet (Notes: Secure boot off; First device I ever mainlined)


How to enter flash mode

  • Fastboot: Power on the device with both Power and Volume Down buttons while connected to a PC with a USB cable.
  • Recovery: Power on the device with both Power and Volume Up buttons.
  • lk2nd Fastboot: Power on the device. After it vibrates, hold Volume Down.
  • lk2nd Recovery: Power on the device. After it vibrates, hold Volume Up.

EDL mode

To enter the EDL mode, these two points must be shorted while powering it on. If lsusb -d 05c6:9008 shows you a device, you can let go of the short.

Huawei-y635 edl-mode.jpg

Preparation

Follow the preparation guide for the Huawei Ascend G7 until the Flashing new firmware part (Resize the tz partition and flash custom hyp and tz).

Note Note: If your bootloader is already unlocked, it's possible to flash those partitions with lk2nd/TWRP.

Flashing custom bootloader

This is necessary, since Huawei's bootloader can't load 64-bit kernels at all. This will also "unlock" the bootloader by using a different one that's bundled into qhypstub.

  1. Build lk1st (Check the README.md for requirements.)
    $ git clone https://github.com/msm8916-mainline/lk2nd && cd lk2nd
    $ make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 LK1ST_PANEL=boe_otm8019a_5p0_fwvga_video LK1ST_DTB=msm8916-huawei-y635-l01
    
  2. Build qhypstub with bundled lk1st
    $ git clone -b bundle-aboot https://github.com/msm8916-mainline/qhypstub.git
    $ cd qhypstub
    $ git clone https://github.com/msm8916-mainline/qtestsign.git
    $ make CROSS_COMPILE=aarch64-linux-gnu- BUNDLE_ABOOT=../lk2nd/build-lk1st-msm8916/lk.bin qhypstub-test-signed.mbn
    
  3. Download and Install the EDL tool (follow the instructions on the GitHub page to install it) together with the required loader
  4. Boot into EDL mode
  5. Optionally backup all partitions except userdata from the phone
    $ ./edl --memory=emmc --loader=linux-board-support-package-r1034.2.1/loaders/prog_emmc_firehose_8916.mbn rl backup --skip=userdata --genxml
    
  6. Flash qhypstub to the hyp partition
    $ ./edl --memory=emmc --loader=linux-board-support-package-r1034.2.1/loaders/prog_emmc_firehose_8916.mbn w hyp ../qhypstub/qhypstub-test-signed.mbn
    
  7. Reboot the phone: ./edl reset
Note Note: If you see Tux after it reboots, you have the new bootloader!

Installation

Note Note: Both Linux and lk1st only support the boe-otm8019a panel.
  1. Install lk1st (alternative bootloader that provides a standard fastboot interface and allows booting 64-bit kernels)
  2. Follow Qualcomm Snapdragon 410/412 (MSM8916)#Installation.

lk2nd

Note Note: Not really needed anymore, since we already have lk2nd as our primary bootloader (lk1st).

The phone does not boot the default lk2nd image found on GitHub. In order to get a working image, lk2nd needs to be compiled manually. Check the README.md for requirements.

$ git clone https://github.com/msm8916-mainline/lk2nd && cd lk2nd
$ sed -i '/$(LOCAL_DIR)\/msm8916-mtp.dtb \\/d' dts/msm8916/rules.mk
$ make TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8916
$ fastboot flash boot build-lk2nd-msm8916/lk2nd.img

Hardware status

Component Model Status Notes
MicroUSB USB 2.0 Y Working only in peripheral mode
eMMC Toshiba 008GE0 Y
Charging PM8916 Y Uses PM8916 for charging
Volume/Power/Home keys GPIO Y
Touchscreen MStar msg2138 Y
Capacitive keys Part of MStar msg2138 Touchscreen Y
Accelerometer STMicroelectronics lis3dh Y
Light and proximity sensor Avago apds9930 Y
Display boe-otm8019a, cmi-ili9806e or tianma-otm8019a Y
Audio PM8916 Y Headphone button detection works partially
GPU Adreno 306 Y
Wi-Fi/Bluetooth Qualcomm Atheros Prima (WCN3620) Y
LED Flash Texas Instruments LM3642 N Driver available in mainline
GPS ? N
Front camera ? N
Main camera ? N

See also