Halium / projectmanagement

142 stars 32 forks source link

[device-port] [alice] Huawei P8 Lite #78

Open Aurnytoraink opened 6 years ago

Aurnytoraink commented 6 years ago

Tree: halium-7.1

Aurnytoraink commented 6 years ago

Okay, it's actually do bootloop

xolider commented 6 years ago

Please, can you send me the manifest ? Thanks

2sly4u commented 6 years ago

Would this port support the hi6250 chipset series of devices, eg p8lite 2017 / honor 8 lite etc? I'm curious about this project and am interested to see how I could help out.

xolider commented 6 years ago

You have to build your own port for each chipset. I'm curious too about this project but I don't succeess to build for the p8 lite 2015, because I don't find functional repositories for the kernel, vendor etc..

Aurnytoraink commented 6 years ago

Hi everyone, Yeah actually, I'm in vacations so I can't continue my port. I have all the links and files on my computer. I will send you when I will come back to home See u

xolider commented 6 years ago

Hi ! Very nice ! I would like to see the manifest etc.. What step are you stopped on ? Does this port still do bootloop ? See u

tmp64 commented 6 years ago

Just a quick tip. If the device is stuck on the boot screen with no boot animation and the device is getting hot, it might be caused by the framebuffer console (FBCON) kernel module. There is a bug in the Honor 4C kernel that causes it and the same may apply to P8 Lite (they do share Kirin SoC, right?).

Anyway, the device should have Rx and Tx pins somewhere on the board. UART is disabled by default and there should be a "fastboot oem" command to enable it. If not, you can disable the check in the kernel source. Look for something like "no_uart_output" in /proc/cmdline of running device. That argument should be in some kernel driver *.c file.

Good luck.

P.S. I've managed to successfully start Debian arm64 on Honor 4C without Android stack (but with no graphics accel or sound and etc, just Wi-Fi and OTG).

Aurnytoraink commented 6 years ago

Hi guys,

Yeah I know it will make a lot of time that I paused the project and the reason is because I don't have time.

Yes, I will try to port it but I forgot to say to you that I'm not a real developer I just a teenager who wanted to develop Ubuntu Touch for my phone.

But I want to learn how to do it. Of course I know some basics (I'm not dumb) but I want to try with you because I can't find any good and solid tutorials for custom ROM or TWRP things.

I'm sorry

PS: Here is the devices repositories that I used:

https://github.com/OpenKirin/android_device_huawei_alice/tree/7.x https://github.com/OpenKirin/android_kernel_huawei_alice/tree/nougat https://github.com/OpenKirin/android_vendor_huawei_alice/tree/7.x

and here is my manifest file

huawei_alice.zip

(it's in a zip file because Github don't support .XML file here)

oceanmar commented 5 years ago

any news on this? mine stops here:

/halium/kernel/huawei/alice/net/wireless/sme.c:433:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] struct cfg80211_registered_device *dev = wiphy_to_dev(wiphy); ^ CC net/xfrm/xfrm_replay.o CC net/wireless/chan.o CC net/xfrm/xfrm_algo.o CC net/wireless/ethtool.o CC net/xfrm/xfrm_user.o CC net/wireless/mesh.o CC net/wireless/ap.o CC net/xfrm/xfrm_ipcomp.o CC net/wireless/trace.o LD net/xfrm/built-in.o CC net/compat.o CC net/sysctl_net.o CC net/activity_stats.o CC net/wireless/wext-core.o CC net/wireless/wext-proc.o CC net/wireless/wext-spy.o CC net/wireless/wext-priv.o LD net/wireless/cfg80211.o LD net/wireless/built-in.o LD net/built-in.o Makefile:136: recipe for target 'sub-make' failed make: *** [sub-make] Error 2

NostalgiaNinja commented 5 years ago

Hi, I've successfully built using the manifest file provided by @RavengamerSpace and am at Bootloop phase as stated in todo. @tmp64 The two models do share the same Kirin SoC and when I check TWRP the device went to 40C so the device was getting a bit hot and I shut it off for now.

I have enabled fastboot oem as stated above.

Aurnytoraink commented 5 years ago

Hey, @NostalgiaNinja I glad to hear that. For myself, I've remade the project with a new manifest file and I successfully built it but the problem was that the boot file was 0,1MB too big for the partition. And after this I gave up -___-

But at least, I can try to find my manifest file and built it

Aurnytoraink commented 5 years ago

Okay, I found find it huawei_alice.zip

Aurnytoraink commented 5 years ago

@NostalgiaNinja Can you share me the fixup_mountpoints file please ?

NostalgiaNinja commented 5 years ago

Here is the old fixup_mountpoints listings. I still have to rebuild off of the new manifests file. Once done, I'll share the new listings. Haven't gotten around to it yet. fixup-mountpoints.zip

Aurnytoraink commented 5 years ago

Thanks ! By the way, I have modified the manifest file again and this is the latest version I am using huawei_alice.zip

NostalgiaNinja commented 5 years ago

Thanks, will build off of this promptly.

Aurnytoraink commented 5 years ago

Hey @NostalgiaNinja Where are you on the ROM build? For my case, it result in a error when trying to buid mkbootimg

Aurnytoraink commented 5 years ago

Oops wrong button

NostalgiaNinja commented 5 years ago

My build completed successfully. What's the issue you're coming across and how is your Kernel file set up?

oceanmar commented 5 years ago

Do you have a video of a working halium on p8 lite?

Aurnytoraink commented 5 years ago

@NostalgiaNinja Ouh sorry, I've made a mistake. So yes, I have successfully built the mkbootimg, hybris-boot and system images file.

But now I was trying to port Ubuntu Touch. Sadly the halium-boot build fail.

But maybe I should first try with Halium and when it's stable, try with UT ?

Aurnytoraink commented 5 years ago

Btw, I actually haven't my Huawei on me because I lend it to a friend

NostalgiaNinja commented 5 years ago

@oceanmar I currently have a build that's doing bootloop so unfortunately I don't have video.

I've been using the Halium reference image and haven't gotten the image to work for myself. You can try with UT or with Halium.

oceanmar commented 5 years ago

Sadly can't try with mine since I lent it to my mother 😂😂

oceanmar commented 5 years ago

Have you guys touch the defconfig on the kernel according to the verification written on the site?

Aurnytoraink commented 5 years ago

Yes, of course

oceanmar commented 5 years ago

I've even tried Using your manifest. But same I have problems building, error on mkbootimg

oceanmar commented 5 years ago

Build it successfully but stuck in Huawei logo

oceanmar commented 5 years ago

Halium roots, plasma, UT nothing all same stuck at logo

NostalgiaNinja commented 5 years ago

That's the bootloop that we are currently at. Any suggestions on getting past that?

Aurnytoraink commented 5 years ago

I don't know, I need to do more search and tests but I recently had a problem with my computer that forces me to reinstall it so I kind of lost all the halium project (I mean I need to resync and rebuild everythings)

oceanmar commented 5 years ago

I'll gonna do a research too. But specifically I like to look at the mount points and fstab part

Aurnytoraink commented 5 years ago

Hey, I get my phone back. Now I need to sync and build halium. Btw, I asked myself if we can ask people who already make ROM for the Huawei P8 Lite what they used

Aurnytoraink commented 5 years ago

So I'm actually trying to build hybris-boot, but I'm stuck here: https://pastebin.com/4Ft0U70W

NostalgiaNinja commented 5 years ago

Think that's something to do with the kernel configuration - When you set a setting that is not supposed to be set (there are a few that are meant to be ignored) then you will get a build error on that. I have a successful build on hybris-boot but still got bootloop.

Mer_verify_kernel_config should give warnings on the following:

CONFIG_MEMCG_KMEM 
CONFIG_CGROUP_MEM_RES_CTLR
CONFIG_CGROUP_MEM_RES_CTLR_KMEM
CONFIG_CGROUP_MEM_RES_CTLR_SWAP

These can be safely ignored based off of the Kernel version being written. You should get a successful build off of mka hybris-boot but just make sure everything lines up as well.

Aurnytoraink commented 5 years ago

Hum... Okay, I think I will remove the alice_defconfig and resync everything. But before that, can I have your defconfig file ?.

Oh and btw I change my fixup-mountpoints. It's now looking like this: https://pastebin.com/1352fJVH

NostalgiaNinja commented 5 years ago

alice_defconfig.zip Here you go. I will check out the fixup mountpoints when I wake up later.

Aurnytoraink commented 5 years ago

Ahah! Good sleep!

Aurnytoraink commented 5 years ago

Btw, it builds successfully

xolider commented 5 years ago

Still get bootloop ?

NostalgiaNinja commented 5 years ago

Just built the new build, still getting bootloop @xolider. I have outputted the kernel log. If you can see anything that may be of interest or can help, it'd be appreciated. dmesg.log

doniks commented 5 years ago

that looks like an old kernel and it doesn't like hybris-boot or halium-boot Linux version 3.10.105-gf69598e-dirty (xepeleato@devel) (gcc version 4.9 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Mon May 8 18:24:27 CEST 2017 Are you sure this isn't your recovery?

Aurnytoraink commented 5 years ago

I get an error when building systemimage. @NostalgiaNinja Did you try with my fixpoint ?

NostalgiaNinja commented 5 years ago

It might be my recovery? Since I grabbed my kernel logs from TWRP.

@RavengamerSpace I built systemimage fine with your fixpoint and got a successful build.

Aurnytoraink commented 5 years ago

Do someone got this error when building system image file https://pastebin.com/B2acycWb

xolider commented 5 years ago

Don't you want to open a Discord server or something like this to discuss about this project and sharing problems/bugs etc ?

Aurnytoraink commented 5 years ago

Yes we can create an Discord server, or Telegram, or IRC.

Aurnytoraink commented 5 years ago

Well, I create one Edit: Discord link server have been removed

ghost commented 4 years ago

Any update on this? Apparently it is possible to launch linux on a P8, but nothing stable. Maybe with joined efforts :)

ghost commented 4 years ago

kinda off-topic, but huawei p8 lite has a working postmarketOS port now :tada:

https://wiki.postmarketos.org/wiki/Huawei_P8_Lite_(huawei-alice)