Huawei Y635 (huawei-y635): Difference between revisions
Appearance
Ungeskriptet (talk | contribs) →Flashing custom bootloader: Panel works now in lk1st |
Ungeskriptet (talk | contribs) Use new branch and add note about panel |
||
Line 71: | Line 71: | ||
#Build lk1st (Check the [https://github.com/msm8916-mainline/lk2nd/blob/master/README.md README.md] for requirements.) | #Build lk1st (Check the [https://github.com/msm8916-mainline/lk2nd/blob/master/README.md README.md] for requirements.) | ||
#:<syntaxhighlight lang="shell-session"> | #:<syntaxhighlight lang="shell-session"> | ||
$ git clone -b | $ git clone -b lk1st42 https://github.com/msm8916-mainline/lk2nd && cd lk2nd | ||
$ make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 LK1ST_PANEL= | $ make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 LK1ST_PANEL=boe_otm8019a_5p0_fwvga_video | ||
</syntaxhighlight> | </syntaxhighlight> | ||
#Build qhypstub with bundled lk1st | #Build qhypstub with bundled lk1st | ||
Line 94: | Line 94: | ||
== Installation == | == Installation == | ||
{{note|'''Note:''' Both Linux and lk1st only support the boe-otm8019a panel.}} | |||
# Install [[Huawei_Y635_(huawei-y635)#Preparation|lk1st]] (alternative bootloader that provides a standard fastboot interface and allows booting 64-bit kernels) | # Install [[Huawei_Y635_(huawei-y635)#Preparation|lk1st]] (alternative bootloader that provides a standard fastboot interface and allows booting 64-bit kernels) | ||
# Follow [[Qualcomm Snapdragon 410/412 (MSM8916)#Installation]]. | # Follow [[Qualcomm Snapdragon 410/412 (MSM8916)#Installation]]. |
Revision as of 11:13, 15 January 2022
![]() Huawei Y635 on mainline with Xfce | |
Manufacturer | Huawei |
---|---|
Name | Y635 |
Codename | huawei-y635 |
Released | 2015 |
Hardware | |
Chipset | Qualcomm MSM8916 Snapdragon 410 |
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 |
Software | |
Original software | Android 4.4.4, EMUI 3 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | yes |
Unixbench Whet/Dhry score | 915.7 |
Flashing |
Works |
---|---|
USB Networking |
Works |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Works |
Audio |
Works |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Works |
Bluetooth |
Works |
GPS |
Broken |
Modem | |
Calls |
Broken |
SMS |
Broken |
Mobile data |
Broken |
Miscellaneous | |
FDE |
Works |
USB OTG |
Broken |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
Works |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
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 and buttons while connected to a PC with a USB cable.
- Recovery: Power on the device with both and buttons.
- lk2nd Fastboot: Power on the device. After it vibrates, hold .
- lk2nd Recovery: Power on the device. After it vibrates, hold .
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.
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: 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 using a different one that's bundled into qhypstub.
- Build lk1st (Check the README.md for requirements.)
$ git clone -b lk1st42 https://github.com/msm8916-mainline/lk2nd && cd lk2nd $ make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 LK1ST_PANEL=boe_otm8019a_5p0_fwvga_video
- 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
- Download and Install the EDL tool (follow the instrucitons on the GitHub page to install it) together with the required loader
- Boot into EDL mode
- 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
- 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
- Reboot the phone:
./edl reset
Note: If you see Tux after it reboots, you have the new bootloader! |
Installation
Note: Both Linux and lk1st only support the boe-otm8019a panel. |
- Install lk1st (alternative bootloader that provides a standard fastboot interface and allows booting 64-bit kernels)
- Follow Qualcomm Snapdragon 410/412 (MSM8916)#Installation.
lk2nd
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 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 | Can use WCNSS_qcom_wlan_nv.bin from huawei-g7 |
LED Flash | Texas Instruments LM3642 | N | Driver available in mainline |
GPS | ? | N | |
Front camera | ? | N | |
Main camera | ? | N |
See also
- GSMArena page
- PDF with testpoints and UART
- Initial pull request to msm8916-mainline
- pmaports!2826 Initial merge request