[device-port] [pme] Port to HTC 10 #28

Open
vanyasem opened this Issue Oct 14, 2017 · 1 comment

Comments

Projects
None yet
3 participants
Member

vanyasem commented Oct 14, 2017

This port is based on the 7.1 branch of Halium

Progress:

  • Create manifest containing kernel, vendor, and device trees
  • Build hybris-boot (hybris-boot.img) and systemimage (system.img)
  • Initial flash & boot
    • Format /data to get rid of encryption
    • Boot into initrd debugging (telnet)
    • Boot into rootfs (ssh)
  • Get LXC running
  • Get Wi-Fi working
  • libhybris tests
    • test_audio (broken)
    • test_camera (broken)
    • test_egl (broken)
    • test_egl_configs
    • test_glesv2 (broken)
    • test_gps
    • test_hwcomposer
    • test_input (broken)
    • test_lights
    • test_media (broken)
    • test_nfc (broken)
    • test_recorder (broken)
    • test_sensors
    • test_vibrator
    • test_wifi (broken)
  • Test various rootfs

Sidenote: SSH needs to be patched, as it's unstable and constantly crashes
SSH was patched by Marius by commenting out device/htc/pme/rootdir/etc/init.qcom.usb.rc

Sidenote 2: As @UniversalSuperBox suggests me not to fork the vendor repo, it has to be manually patched. Comment out all .apk entries from vendor/htc/pme/Android.mk manually

Sidenote 3: Some tests are broken in Halium 7.1. They won't work until they get fixed

Sidenote 4: UBports rootfs works only if you comment out all imports except init.environ.rc in /out/target/product/pme/root/init.rc and rebuild systemimage

Sidenote 5: Reference Halium 7.1 rootfs is non-CAF, thus graphics doesn't work on it. However, you can add CAF repo repo.halium.org/caf and upgrade

Sidenote 6: kwin_wayland on Plasma Mobile rootfs gives EGL_BAD_DISPLAY error which seems like a kwin bug and requires future investigation. Backlight works though

Kernel source: https://github.com/Halium/android_kernel_htc_msm8996
Device tree: https://github.com/Halium/android_device_htc_pme
Repo Manifest: https://gist.github.com/vanyasem/64fa7fdc0df556561c50a6048a982ce1
Build instructions: TO BE WRITTEN

This is a co-op port by @vanyasem and @mariogrip

Member

vanyasem commented Oct 16, 2017

@mariogrip got Mir working 😄

HTC 10 running Mir demos:

photo_2017-10-15_05-27-10

HTC 10 running Unity8:

photo_2017-10-15_05-40-50

@bhush9 bhush9 added the Ports label Nov 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment