Jump to content

Huawei Honor 8 (huawei-frd): Difference between revisions

From postmarketOS Wiki
Add note about controlling flashlight
Removed false information. PotatoNV does not overwrite your bootloader.
 
Line 87: Line 87:
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->
== Unlocking the bootloader ==
== Unlocking the bootloader ==
Huawei has stopped providing unlock codes for their devices so you'll need to pay for a code from a 3rd party or use [https://github.com/mashed-potatoes/PotatoNV PotatoNV], which requires removing the back cover with a hairdryer. See [[Bootloader#Huawei]]. PotatoNV overwrites your fastboot with a generic one and causes 'fastboot boot' and flashing the boot partition to not work.
Huawei has stopped providing unlock codes for their devices so you'll need to pay for a code from a 3rd party or use [https://github.com/mashed-potatoes/PotatoNV PotatoNV], which requires removing the back cover with a hairdryer. See [[Bootloader#Huawei]]. For whatever reason, the command <code>fastboot boot <file.img></code> does not work after unlocking the bootloader with PotatoNV. ("Command not allowed")


== How to enter flash mode ==
== How to enter flash mode ==

Latest revision as of 12:08, 5 December 2024

The Huawei Honor 8 has been updated to Android 8 in some regions, while others are stuck on Android 7.0.

Android 8 uses a different partition layout and kernel.

Note This port is based on Android 7.0 kernel and probably won't work on devices updated to Android 8.

If you have a device that got the Android 8 update you might need to make a port based on the Android 8 kernel. Take a look at huawei-warsaw for information on dealing with the Android 8 partition layout.

Huawei Honor 8
Honor 8 running xfce4 on framebuffer
Honor 8 running xfce4 on framebuffer
Manufacturer Huawei
Name Honor 8
Codename huawei-frd
Released 2016
Type handset
Hardware
Chipset HiSilicon Kirin 950
CPU 4x2.3 GHz Cortex-A72 & 4x1.8 GHz Cortex-A53
GPU Mali-T880 MP4
Display 1080x1920 IPS LCD
Storage 32 GB
Memory 4GB
Architecture aarch64
Software
Original software Android
Original version 6.0
Extended version 7.0 or 8.0
FOSS bootloader no
postmarketOS
Category testing
Pre-built images no
Mainline no
postmarketOS kernel 4.1.18
Features
Flashing
Partial
USB Networking
Works
Internal storage
Works
SD card
No data
Battery
Partial
Screen
Works
Touchscreen
Works
Touchpad
No data
Stylus
No data
Multimedia
3D Acceleration
Broken
Built-in DVB
No data
Audio
No data
Camera
Broken
Camera Flash
Works
IR TX
No data
IR RX
No data
Connectivity
WiFi
No data
Bluetooth
No data
Ethernet
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB-A
No data
USB OTG
Works
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data
Power Sensor
No data


Contributors

  • Sandelinos

Maintainer(s)

  • Sandelinos

Users owning this device

Unlocking the bootloader

Huawei has stopped providing unlock codes for their devices so you'll need to pay for a code from a 3rd party or use PotatoNV, which requires removing the back cover with a hairdryer. See Bootloader#Huawei. For whatever reason, the command fastboot boot <file.img> does not work after unlocking the bootloader with PotatoNV. ("Command not allowed")

How to enter flash mode

With the device powered off, hold Volume Down and plug in the USB.

Installation

  1. Unlock the bootloader.
  2. Follow the Installation guide to flash rootfs.
  3. (optional) install TWRP
    1. Flash TWRP to recovery partition
      • fastboot flash recovery twrp-3.1.1-1-frd.img
    2. Boot into TWRP and install twrp to boot partition (We'll overwrite recovery with postmarketOS kernel later)
  4. Flash the kernel to the recovery partition
    • The boot partition is just 32 MB, while the boot.img we get from pmbootstrap is ~35 MB.
    • If you unlocked your bootloader with PotatoNV fastboot won't be able to flash to the boot partition even if it fit.
    • pmbootstrap flasher flash_kernel --partition recovery

Additional Info

Battery charging and level reporting works. charging-sdl is untested, since the postmarketOS kernel does not fit on the boot partition.

To control flashlight, write a value between 0-9 to /sys/class/leds/torch/brightness.

  • 0 = off
  • 1-6 = white
  • 7-9 = orange

See also