Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vanyasem opened this issue Oct 14, 2017 · 13 comments

Comments

@vanyasem
Copy link
Member

commented Oct 14, 2017

Tree: halium-7.1

  • Create manifest: htc_pme.xml
  • Boot image and system image build successfully
  • Device boots into rootfs, usb: Manufacturer: GNU/Linux Device appears in dmesg on host.
  • LXC container starts and does not crash
  • libhybris tests
    • test_gps
    • test_hwcomposer
    • test_lights
    • test_vibrator
    • test_wifi
    • test_sensors
    • test_audio
    • test_camera
    • test_input
    • test_nfc
    • test_recorder
  • Test various rootfs

Working prebuilt images: halium.ivanismy.name/htc-10

Sidenote 1: 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 2: Some tests are broken in Halium 7.1. They won't work until they get fixed

Sidenote 3: 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 4: 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 apt upgrade

Sidenote 5: kwin_wayland on Plasma Mobile rootfs gives EGL_BAD_DISPLAY error which seems like a kwin bug and requires future investigation
Partially Fixed by @bhush9

Sidenote 6: UBports sets bad display scaling out of the box, and thinks that the device is a desktop. You need to manually create a file /etc/ubuntu-touch-session.d/pme.conf with GRID_UNIT_PX=28 in it

Sidenote 7: recvmsg() seems to be broken/unsupported in the kernel. Requires fixing for several Mir tests to pass.

Sidenote 8:
/dev/input/event0 - Nothing
/dev/input/event1 - Nothing
/dev/input/event2 - Nothing
/dev/input/event3 - Nothing
/dev/input/event4 - Nothing
/dev/input/event5 - Back and Recents buttons
/dev/input/event6 - Volume buttons & Power button
/dev/input/event7 - Touchscreen
/dev/input/mouse0 - Nothing

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

@vanyasem

This comment has been minimized.

Copy link
Member Author

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

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Feb 1, 2018

Plasma Mobile on HTC 10
20180201_002051

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Feb 1, 2018

UBports 16.04 on HTC 10
20180201_05544923
20180201_0618502

@quantan1

This comment has been minimized.

Copy link

commented Apr 18, 2018

Really interested to see this project for HTC 10. Do you continue develop this and fix remaining issues?

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Apr 19, 2018

@quantan1 my HTC 10 is currently waiting to get repaired, but I am still developing the port

@quantan1

This comment has been minimized.

Copy link

commented Apr 23, 2018

@vanyasem Thanks for your work. Just want to confirm only test_hwcomposer, test_lights, test_vibrator work on ubports? I love to try this project but HTC 10 is my main phone

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Apr 23, 2018

@quantan1 Please read the issue. Yes they do. And there are screenshots of UBports running in the comments.

@vanyasem vanyasem referenced this issue Jul 29, 2018
10 of 21 tasks complete
@ghost

This comment has been minimized.

Copy link

commented Oct 4, 2018

@vanyasem Thank you very much for the work you do. I'm thinking of buying an HTC 10 just for this. Are you confident that you're gonna make it work on this device, at least 90% of the functionality?

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Oct 4, 2018

@Zig-03 this is a community project. I might get hit by a bus on my way to school.

@ghost

This comment has been minimized.

Copy link

commented Oct 4, 2018

😆 Yeah I get it, I meant if you see this candidate (HTC 10) as possibly a success rather than a failure, based on your gut feelings and/or how things are advancing. You know some manufacturers add extra things which make it harder for other to tinker with, so IDK if HTC is one of them or not.

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Oct 4, 2018

Well last time I checked Halium got broken on HTC 10. I was suggested a patch for it, but haven't got time to test it yet. So, if it remains that way, the port won't be finished (no reproducible builds). @Zig-03

@vanyasem

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

@Qiangong2

This comment has been minimized.

Copy link

commented May 3, 2019

Is there any update on the port?

Is there a chance it gets added as an official ubports device?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.