Halium / projectmanagement

141 stars 32 forks source link

[device-port] [oneplus3] Port to OnePlus 3(T) #63

Open vanyasem opened 6 years ago

vanyasem commented 6 years ago

Tree: halium-7.1

There are currently 2 builds of this port. One by @vanyasem, and one by @Vince1171.

UBports has OnePlus 3(T) builds available in the official installer. It's the easiest way to test the port for beginners.

UBports has a forum thread dedicated to OP3(T): forums.ubports.com/topic/3253/oneplus-3-3t

@Vince1171's image Working prebuilt images for OP3 / OP3T: OnePlus3-T-Halium-Prebuild Both Plasma Mobile and UBports work. Pretty much everything apart from Bluetooth works.

@vanyasem's image (outdated): Working prebuilt images for OP3 / OP3T: halium.mynameisivan.ru/op3 The kernel config of this build misses some important kernel flags and thus drops into telnet by default. If you tell it to continue booting, it successfully boots into the rootfs. UBports doesn't boot at all. Plasma Mobile boots, but touchscreen doesn't work.

Sidenote 0: OnePlus 3 and OnePlus 3T have a universal LineageOS build. The port was tested on both devices

Sidenote 1: As @UniversalSuperBox suggests me not to fork the vendor repo, it has to be manually patched. You need to remove vendor/oneplus/oneplus3/proprietary/etc/thermal-engine.conf:system/etc/thermal-engine.conf from vendor/oneplus/oneplus3/oneplus3-vendor.mk

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

Sidenote 3: /dev/input/event0 - Power - qpnp_pon /dev/input/event1 - Nothing - hbtp_vm /dev/input/event2 - Mode switch - tri-state-key /dev/input/event3 - Nothing - fpc1020 /dev/input/event4 - Touchscreen - synaptics /dev/input/event5 - Volume buttons - gpio-keys /dev/input/event6 - Back and Recents buttons - synaptics /dev/input/event7 - Nothing (Doesn't exist on OP3) - msm8996-tasha-mtp-snd-card Headset Jack /dev/input/event8 - Nothing (Doesn't exist on OP3) - msm8996-tasha-mtp-snd-card Button Jack /dev/input/mouse0 - Nothing - Err: Inappropriate ioctl for device

Sidenote 4: You have to run echo sta > /sys/module/wlan/parameters/fwpath in order to enable Wi-Fi

This started as a co-op port by @vanyasem and @mariogrip @Vince1171 continued the port bringing UT fixes Thanks to @sk8higher, @Stefano0101, @TheBluestBird for helping with testing the port

sk8higher commented 6 years ago

Debug pastes from my device: Plasma Services + Mount Plasma Dmesg Plasma systemctl status Plasma lxc-checkconfig Plasma /proc/config.gz Plasma EGL Configs Plasma Failing Hybris tests

miketth commented 6 years ago

This project looks awesome and I would like to test, but I can't find a sane tutorial. I don't know if I should post this here, but it seems like these problems only exist on this phone: With halium-install from the halium-scripts repo the install fails on unpacking the rootfs With JBBgameich/halium-install the install seems to work, but after issuing the command to continue the boot from telnet, the phone only has a white LED and a blank screen. Also /target only contains the data folder.

vanyasem commented 6 years ago

@PhotonMike that's okay, it's expected. everything you've mentioned is expected

miketth commented 6 years ago

I somehow got it to work today and it successfully boots and has graphics, but the touch isn't working. But with an OTG adapter and a mouse, it works. I know people hate getting asked for ETAs, but when is touch going to be sorted? This is a really cool and useful OS for Linux and OSS enthusiasts and thanks for your work!

vanyasem commented 6 years ago

@PhotonMike could your please provide me with some pictures?

miketth commented 6 years ago

I only have a crappy picture, as I had to take it with my laptop's webcam: https://imgur.com/a/LSkd4c8

vanyasem commented 6 years ago

Regarding touch: https://paste.ubuntu.com/p/nJt4CfQRVr/ (udevadm info /dev/input/event4) It needs a magic udev rule in order to work. See last udev rule here: 70-yuga.rules (don't forget to change event1 to event4).

vanyasem commented 6 years ago

That didn't really fix the issue ^ Investigating :P

vanyasem commented 6 years ago

Plasma udevadm info after the fix above

hu19960925 commented 6 years ago

I love Ubuntu touch very much, but I won't transplant. I'm glad to see you transplanting. I don't see the progress of transplanting, and I don't know where to go. I add three mobile phones. I haven't seen any updates lately, I hope you can see the migration.

CodingMarco commented 6 years ago

@PhotonMike How did you get graphics working? I also have an ssh connection right now and I think this might also be interesting for others...

hu19960925 commented 6 years ago

想参与其中。不知道如何操作。

SohnyBohny commented 6 years ago

@hu19960925 https://t.me/UBports_Chinese

hu19960925 commented 6 years ago

@

@hu19960925 https://t.me/UBports_Chinese

需要翻墙才可以。

WaaromZoMoeilijk commented 6 years ago

Could anyone tell me what to do to contribute to this port

hu19960925 commented 6 years ago

有人能告诉我如何为这个港口做贡献吗?

继续移植就可以了

hu19960925 commented 6 years ago

我应该怎么联系你们呢。本人十分期待一加三手机 ubuntutouch. 可以发红包提高下大家的积极性。想加入其中但是不知道需要学习哪方面知识。

hu19960925 commented 5 years ago

Hello, is this an Ubuntu touch for op3?

miketth commented 5 years ago

This is Halium, which is a foundation many mobile Linux distros use, like Ubuntu Touch or Plasma mobile. This is not Ubuntu Touch itself, this is what is needed to get Ubuntu working on the OnePlus 3.

idontknow420 commented 5 years ago

is halium working perfectly for oneplus 3 ? how to get builds

miketth commented 5 years ago

@idontknow420 just check the first message in this issue.

vanyasem commented 5 years ago

I need a new tester for this device. Reach out to me at https://t.me/vanyasem

sk8higher commented 5 years ago

@vanyasem can I help?

hu19960925 commented 5 years ago

我需要一个新的测试器。向我伸出手https://t.me/vanyasem

I have the equipment. How do I join the test

idontknow420 commented 5 years ago

Sorry, i don't have this mobile . I asked because i want to confirm myself before buying this op3 for plasma / ubport stable build. :) i hope very soon we will get this stable build.

Thank you in advance.

kiranreddyrebel commented 5 years ago

hi, any updates for this op3 ?

vanyasem commented 5 years ago

@Stefano0101 tested Plasma Mobile Edge (18.04) on his phone

It gets to GUI, Wi-Fi / Vibration / Lights work, but the touchscreen is still broken

Worth noting that udev rules were not automatically copied, because for some reason this Lineage build has no ro.product.device in /system/build.prop

Logs: mount lxc-checkconfig systemctl status udevadm info /dev/input/event4 # touchscreen udevadm info /dev/input/* NEW: getevent

vanyasem commented 5 years ago

@Stefano0101 tested UBports Edge on his phone

_ubports does not check for configdummy, and thus doesn't drop into telnet with the current defconfig

ssh is finally working now. The issue was that HostKeys (/etc/ssh/ssh_host*) were not auto-generated, and I had to dpkg-reconfigure openssh-server, as with plasma

The container is running, but Android seems to bootloop in it

No libhybris tests passed. I've noticed that /android/firmware is mounted as a tmpfs (instead of vfat) and is empty

root@ubuntu-phablet:~# test_vibrator 
Segmentation fault

lxc-checkconfig shows Cgroup namespace: required, which requires a kernel rebuild with minor defconfig changes

lxc-attach: cgroups/cgfs.c: lxc_cgroupfs_attach: 2538 could not move attached process 29573 to cgroup of container

Logs: lxc-checkconfig mount getevent udevadm info /dev/input/*

screenfetch: photo_2018-11-08_19-54-24

testingweb624 commented 5 years ago

Hi vanyasem, do we have any surprise sir ? Christmas is coming ahead. :D

Stefano0101 commented 5 years ago

Yeah, I wouldn't mind a Christmas present(working Op3 port) :-)

Stefano0101 commented 5 years ago

And maybe we should poke @mariogrip as well (he is also on this one ) :-)

duckartes commented 5 years ago

Is calling / text supported?

Willing to test builds and post logs to help.

vanyasem commented 5 years ago

@duckartes no

Stefano0101 commented 5 years ago

@vanyasem I wish it was :-)

paranoidnela commented 5 years ago

Hello, I'm interested in this port, I am currently trying to test what was already made out and I can't get past the oneplus logo with no led at all, I don't get any obvious errors either so I am really lost... All I did was download the prebuilt images and follow the install documentation.

vanyasem commented 5 years ago

@Davidescion this port is not consumer-ready. unless you are a developer, you should not install the images

kiranreddyrebel commented 5 years ago

May we know if mariogrip has any minimal working port ? This device is powerful than other devices. It has 6GB RAM . I don't know why development has stopped.

paranoidnela commented 5 years ago

@vanyasem I might not be a developer but I’m familiar with this kind of thing, I just wasn’t able to get the phone to the infamous black screen with white led and I was wondering what did I do wrong.

paranoidnela commented 5 years ago

@kiranreddyrebel he probably doesn’t have that much time and touch in a real issue

testingweb624 commented 5 years ago

Hi, did anyone tried UB OTA-7 with this port halium. It has new libhybris and N drivers linker to make halium port easy , new android-caf Mir platform for qualcomm display.

Stefano0101 commented 5 years ago

Hi testingweb624, I did try, it built successfully hybris-boot, halium-boot and system.img, but I can't ssh into phone for some strange reason. Trying to set ssh and have this issue: sudo ip link set enp0s20f0u1 address 02:11:22:33:44:55 RTNETLINK answers: Device or resource busy What to do to set the ssh? Anyone?

testingweb624 commented 5 years ago

check this @Stefano0101 https://forums.ubports.com/topic/431/porting-halium-to-nexus-7-deb Here it has some steps to do for connecting to ssh. It may help you.

testingweb624 commented 5 years ago

Hi, @Stefano0101 ,plz check above link.

If you don't mind can you paste the commands from your history (terminal) , How you exactly followed to succesfully build the Halium images. ?

Stefano0101 commented 5 years ago

@testingweb624 , when I find a little time I upload it. Or/and I can share the files if you're interested.

testingweb624 commented 5 years ago

I will run in my vps server, i just need the commands bro. Thank you for asking.

have checked above link. its helpful try those.

Stefano0101 commented 5 years ago

@testingweb624 here I send you the commands. Commands to build Halium for Op3(t).txt

idontknow420 commented 5 years ago

Thank you very much bro. Now I will play.

On Wed, Feb 20, 2019, 3:24 AM Stefano0101 <notifications@github.com wrote:

@testingweb624 https://github.com/testingweb624 here I send you the commands. Commands to build Halium for Op3(t).txt https://github.com/Halium/projectmanagement/files/2882137/Commands.to.build.Halium.for.Op3.t.txt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Halium/projectmanagement/issues/63#issuecomment-465326347, or mute the thread https://github.com/notifications/unsubscribe-auth/ApeRC7JLZ6OCWTr4QoZc571JayZ020uXks5vPHJ9gaJpZM4Sa6RU .

Stefano0101 commented 5 years ago

@idontknow420 not a problem, let me know if you have any success with it.

vanyasem commented 5 years ago

The image server is up again

testingweb624 commented 5 years ago

any improvements in op3 ? @vanyasem just casually asking bro .