Difference between revisions of "Huawei Y3 II 3G (huawei-lua-u22)"

From postmarketOS
Jump to: navigation, search
Line 15: Line 15:
 
| memory = 1GB
 
| memory = 1GB
 
| architecture = armv7
 
| architecture = armv7
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
+
 
 
| status_usbnet = Y
 
| status_usbnet = Y
 
| status_flashing = Y
 
| status_flashing = Y
Line 21: Line 21:
 
| status_screen = Y
 
| status_screen = Y
 
| status_wifi = N
 
| status_wifi = N
| status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? -->
+
| status_xwayland = N
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
+
| status_fde =  
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
+
| status_mainline =  
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
+
| status_battery =  
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
+
| status_3d =  
| status_accel = <!-- The sensor that measures proper acceleration works -->
+
| status_accel = N
 
| status_audio = N
 
| status_audio = N
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
+
| status_bluetooth = N
 
| status_camera = N
 
| status_camera = N
| status_gps = <!-- The Global Positioning System sensor works.  -->
+
| status_gps = N
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
+
| status_mobiledata =  
| status_sms = <!-- Sending and receiving short messages works as intended. -->
+
| status_sms =  
| status_calls = <!-- Talking to other people over the cellular network. -->
+
| status_calls =  
 
| status = Boots, not merged yet.
 
| status = Boots, not merged yet.
 
| booting = no
 
| booting = no
Line 51: Line 51:
  
 
== How to enter flash mode ==
 
== How to enter flash mode ==
Run <source>$ sudo adb reboot bootloader</source> on your host machine to get in fastboot mode
+
Run <code>$ sudo adb reboot bootloader</code> on your host machine to get in fastboot mode
  
 
== How to unlock the bootloader ==
 
== How to unlock the bootloader ==
Line 67: Line 67:
 
Unpack unlock_files.zip, start SP Flash Tool and choose scatter from unpacked archive. Click Download and connect your phone. Flashing process should start.
 
Unpack unlock_files.zip, start SP Flash Tool and choose scatter from unpacked archive. Click Download and connect your phone. Flashing process should start.
  
When flashing is done, turn on the phone, go to Developer Options and turn on USB debugging and OEM unlock. After that, move your phone in fastboot mode with <source>$ sudo adb reboot bootloader</source>. Run <source>$ sudo fastboot oem unlock 38B8DD62253F983C</source>. Confirm bootloader unlock by pressing Volume+. After that, turn off the phone, open SP Flash Tool and flash nvram.bin and pro_info from your backup. After flashing turn on the phone and check IMEI. They must match the ones printed under the battery.
+
When flashing is done, turn on the phone, go to Developer Options and turn on USB debugging and OEM unlock. After that, move your phone in fastboot mode with <code>$ sudo adb reboot bootloader</code>. Run <code>$ sudo fastboot oem unlock 38B8DD62253F983C</code>. Confirm bootloader unlock by pressing Volume+. After that, turn off the phone, open SP Flash Tool and flash nvram.bin and pro_info from your backup. After flashing turn on the phone and check IMEI. They must match the ones printed under the battery.
  
 
== Installation ==
 
== Installation ==
 
To install postmarketOS on this phone, you have to:
 
To install postmarketOS on this phone, you have to:
 
* Check if your phone has unlocked bootloader. If it doesn't, follow instructions above to unlock it.
 
* Check if your phone has unlocked bootloader. If it doesn't, follow instructions above to unlock it.
* Run <source>$ pmbootstrap init</source> and follow instructions.
+
* Run <code>$ pmbootstrap init</code> and follow instructions.
* Run <source>$ pmbootstrap install --no-fde --sdcard=/dev/mmcblk0</source>, where /dev/mmcblk0 must be replaced with proper SD card device (run lsblk to find it).
+
* Run <code>$ pmbootstrap install --no-fde --sdcard=/dev/mmcblk0</code>, where /dev/mmcblk0 must be replaced with proper SD card device (run lsblk to find it).
 
* Put SD card in the phone and enter flash mode (fastboot).
 
* Put SD card in the phone and enter flash mode (fastboot).
* In fastboot, run <source>$ pmbootstrap flasher flash_kernel --partition recovery</source> to flash kernel instead of recovery. Fastboot implementation on this device doesn't allow flashing any partitions besides system and recovery.
+
* In fastboot, run <code>$ pmbootstrap flasher flash_kernel --partition recovery</code> to flash kernel instead of recovery. Fastboot implementation on this device doesn't allow flashing any partitions besides system and recovery.
 
It's possible to boot postmarketOS now. Turn off the phone, then hold Power and Volume+ buttons, release Power. When Huawei logo appears, you may release Volume+.
 
It's possible to boot postmarketOS now. Turn off the phone, then hold Power and Volume+ buttons, release Power. When Huawei logo appears, you may release Volume+.
 +
 +
== Features ==
 +
=== Touchscreen ===
 +
Touchscreen works and detects 2 simultaneous touches, but the events are not transmitted to DE/WM for unknown reason. If you know how to fix it, please tag HenriDellal at postmarketOS matrix channel.
 +
 +
=== Wi-Fi ===
 +
Wi-Fi is presented by 3 interfaces: ccmni0, ccmni1, ccmni2. Currently unavailable.
 +
 +
=== LED ===
 +
It's possible to change brightness of display backlight and notification LEDs by echoing values like
 +
<pre># echo 255 > /sys/class/leds/lcd-backlight/brightness
 +
# echo 255 > /sys/class/leds/red/brightness
 +
# echo 255 > /sys/class/leds/blue/brightness
 +
# echo 255 > /sys/class/leds/green/brightness</pre>
 +
The flashlight can be enabled with
 +
<pre># echo 255 > /sys/class/leds/lcd-backlight/brightness</pre>
  
 
== See also ==
 
== See also ==

Revision as of 07:57, 14 August 2019

This port is made for 3G version of 2016 phone. Don't flash this port on 4G version or newer iterations of Y3 II
Huawei Y3 II 3G
Huawei Y3 II 3G
Huawei Y3 II 3G
Manufacturer Huawei
Name Y3 II 3G
Codename huawei-lua-u22
Released 2016
Category testing
Original software Android 5.1 (Linux 3.10.72)
postmarketOS kernel 3.10.72
Hardware
Chipset MediaTek MT6582 (M?)
CPU 4xARM Cortex-A7 1300 MHz
GPU Mali-400 MP2
Display 480x854
Storage 8GB
Memory 1GB
Architecture armv7
Unixbench Whet/Dhry score 474.7
Features
USB Networking
Works
Flashing
Works
Touchscreen
Partial
Display
Works
WiFi
Broken
Xwayland
Broken
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Broken
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Broken
Mobile data
SMS
Calls
USB OTG
Unavailable


Contributors

Maintainers

HenriDellal

Users owning this device


How to enter flash mode

Run $ sudo adb reboot bootloader on your host machine to get in fastboot mode

How to unlock the bootloader

Many thanks to Levanech and Sasha1409 from 4PDA for this unlock method

You will need these tools to unlock the bootloader:

Unpack SP Flash Tool and run it. Then choose required download agent and scatter file on Download tab. Go to "Read back tab" and add new task. Click on the task to edit it. Choose location to save and name your file as ROM_0. Then fill 0xB1180000 value in Length field and proceed. If you want, you may backup userdata partition. Create another task for it with start at 0xC0180000 and length 0x111200000. When the tasks are ready, click "Read back" button, turn off the phone and connect it to USB 2.0 port. Backup process should start.

When the backup is ready, split it on partitions with ROM Backup Splitter. Choose scatter file, ROM_0 file and directory where the result files have to be stored, then choose Actions > Split ROM.

Unpack unlock_files.zip, start SP Flash Tool and choose scatter from unpacked archive. Click Download and connect your phone. Flashing process should start.

When flashing is done, turn on the phone, go to Developer Options and turn on USB debugging and OEM unlock. After that, move your phone in fastboot mode with $ sudo adb reboot bootloader. Run $ sudo fastboot oem unlock 38B8DD62253F983C. Confirm bootloader unlock by pressing Volume+. After that, turn off the phone, open SP Flash Tool and flash nvram.bin and pro_info from your backup. After flashing turn on the phone and check IMEI. They must match the ones printed under the battery.

Installation

To install postmarketOS on this phone, you have to:

  • Check if your phone has unlocked bootloader. If it doesn't, follow instructions above to unlock it.
  • Run $ pmbootstrap init and follow instructions.
  • Run $ pmbootstrap install --no-fde --sdcard=/dev/mmcblk0, where /dev/mmcblk0 must be replaced with proper SD card device (run lsblk to find it).
  • Put SD card in the phone and enter flash mode (fastboot).
  • In fastboot, run $ pmbootstrap flasher flash_kernel --partition recovery to flash kernel instead of recovery. Fastboot implementation on this device doesn't allow flashing any partitions besides system and recovery.

It's possible to boot postmarketOS now. Turn off the phone, then hold Power and Volume+ buttons, release Power. When Huawei logo appears, you may release Volume+.

Features

Touchscreen

Touchscreen works and detects 2 simultaneous touches, but the events are not transmitted to DE/WM for unknown reason. If you know how to fix it, please tag HenriDellal at postmarketOS matrix channel.

Wi-Fi

Wi-Fi is presented by 3 interfaces: ccmni0, ccmni1, ccmni2. Currently unavailable.

LED

It's possible to change brightness of display backlight and notification LEDs by echoing values like

# echo 255 > /sys/class/leds/lcd-backlight/brightness
# echo 255 > /sys/class/leds/red/brightness
# echo 255 > /sys/class/leds/blue/brightness
# echo 255 > /sys/class/leds/green/brightness

The flashlight can be enabled with

# echo 255 > /sys/class/leds/lcd-backlight/brightness

See also