Jump to content

Huawei Honor 7 (huawei-plank)

From postmarketOS Wiki
Huawei Honor 7
Honor 7 showing the pmOS splash
Honor 7 showing the pmOS splash
Manufacturer Huawei
Name Honor 7
Codename huawei-plank
Released 2015
Type handset
Hardware
Chipset HiSilicon Kirin 935
CPU 8 × Cortex A53
up to 2.2 GHz
GPU ARM Mali-T628
Display 1080 × 1920 IPS
Storage 16 GB
Memory 3 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android (EMUI) 5.0 (EMUI 3)
Extended version
The most recent supported version from the manufacturer.
Android (EMUI) 6.0 (EMUI 4)
postmarketOS
Category downstream
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
pmOS kernel
The kernel version that runs on the device's port.
3.10.108
Device package device-huawei-plank
Kernel package linux-huawei-plank
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Partial
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Battery
Charging and battery level reporting works
Untested
Screen
Display works. Ideally with sleep mode and brightness control.
Broken
Touchscreen
Broken
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
IR TX
Untested
Connectivity
WiFi
Untested
Bluetooth
Broken
GPS
Untested
NFC
Near Field Communication
Untested
Modem
Calls
Untested
SMS
Untested
Mobile data
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB-A
Full-sized USB-A port works (Usually applicable to SBCs and laptops).
Untested
USB OTG
USB On-The-Go or USB-C Role switching
Untested
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Untested
Magnetometer
Sensor to measure magnetism
Untested
Ambient Light
Untested
Proximity
Untested
Barometer
Sensor to measure air pressure
Untested
Power Sensor
Sensor to monitor current, voltage and power. Not fuel gauge!
Untested

Not to be confused with Huawei Honor 7 (huawei-aum).

Contributors

Users owning this device


How to enter flash mode

Hold Power + Volume Down while connected to USB.

Alternatively you can run adb reboot bootloader.

Installation

The phone's bootloader needs to be unlocked. See Bootloader#Huawei.

Use pmbootstrap to build your own installation image. Fastboot flashing didn't seem to work, so use a recovery ZIP.

$ pmbootstrap init
$ pmbootstrap install --android-recovery-zip

Enter the bootloader by running adb reboot bootloader.

Flash TWRP (I recommend this one) using fastboot.

Boot the phone into TWRP by holding Power and Volume Up.

Go into sideloading mode: Advanced -> ADB Sideload and swipe to start sideload.

Run the flasher: pmbootstrap flasher --method=adb sideload

What works

The device shows the splash, then the screen turns off. The only sign of life is the USB SSH connection. This was tested with fbkeyboard and xfce4.

Internet access does not work:

huawei-plank:~$ ip route add default via 172.16.42.2 dev usb0
ip: can't find device 'usb0'

Kernel notes

  • Stock kernel cannot be compiled due to missing object files (proprietary blobs?) so we are using a modified one called "Peak Kernel"
  • ZRAM is disabled (this modified kernel has ZRAM disabled and trying to compile with it enabled causes an error)
  • The downstream kernel also supports the Huawei P8, Huawei Mate S, Huawei Mediapad M2 and Huawei Mediapad X2, so porting to them should be a similar process.

See also