Jump to content


Photo

[DEV][ROM] SlimKat with display-caf


176 replies to this topic

#1
chil360

chil360

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Huawei Ascend Y300-0100
For some time, I have been experimenting with ways to try and build SlimKat with display-caf instead of display-legacy.
As I, and the other devs, have said this requires major updates to parts of the kernel including ion, video/framebuffer and kgsl.
 
Why build with display-caf?
With display-caf, we would be able to use Adreno libs built for kitkat. This would allow us to use chromium webview instead of classic webview so no more white boxes! It would also, hopefully, give us better application compatibility.
If we can bring our device up to kitkat level using display-caf & kitkat adreno libs, it may also make it easier to transition to lollipop if our devices can handle it.
 
 
So, now it's time to share what have I been working on... 
 
 
1. Adreno Libs
 
Based on this discussion on the Qualcomm forum - especially the comments from Oguzhan Yigit - I am targeting the adreno libs from the Galaxy S3 (d2lte).
 
2. Kernel Updates
 
There are a number of similar(ish) devices that have undergone updates from jellybean to kitkat including updating the kernel to the latest ion, framebuffer & kgsl to build with display-caf. For my experiments, I have been working with the msm7x27a TeamHackLG kernel.
I looked back through the commit history of this kernel and tried to identify a point which most closely resembles the current state of our kernel. Then I started merging each commit one-by-one onto my chil360-kernel to end up with an experimental kernel with all of the required updates.
 
A better approach would be to start with a clean CAF base kernel e.g. kk-2.7-stable and add the Huawei code into it. I tried to do this but didn't get very far mainly because of the camera changes.
 
3. Device Tree updates
 
In order to build against display-caf with the experimental kernel a number of changes had to be made to the device tree. I have updated android_device_huawei_msm7x27a-common changing the BoardCommonConfig.mk & msm7x27a.mk to use display-caf and remove webview classic. The updated kernel also removes the need for device specific kernel headers so the include folder has been removed.
I have also modified the device tree to build against media-caf instead of media-legacy.
The audio hal in u8833 has also been modified to include linux/msm_ion.h instead of linux/ion.h. This will also be required for u8825 audio but I haven't updated this yet.
 
All of these changes have been published to 'experimental' branches of my github repos https://github.com/chil360
 
The result...
 
After a lot of work and experimenting I finally have a build that is basically working. There are still problems to sort out so this is NOT for everyday use - you have been warned!
 
What works:
  * In general the ROM works.
  * It boots successfully to the launcher.
  * The display works quite smoothly.
  * The camera works (although haven't tried recording video).
  * Chromium works and is usable with no white boxes  :D
 
What doesn't work:
  * Video playback (memory allocation errors I think)
  * ???
 
What's next...
 
At the moment I am stuck working on the video decoding problems. Hopefully after I release all of the code on github later, other devs will contribute to help fix these problems and any others that come up. Eventually I hope to merge these changes into my main SlimKat builds if we can get everything fully working.
 
Download
 
Y300   -   Copy.com
 
Changelog
 
Build 28/10/2014
  • Use CAF camera HAL instead of prebuilt - fixes video recording

Build 25/10/2014

  • Initial display-caf build

Edited by chil360, 28 October 2014 - 11:54 PM.

  • 28

If you would like to support my work with a donation you can use this link. Thank you.


#2
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

O_o

:D :D

 

The fastes user at the world :D

 

Downloading

 

Waiting for git updates


Edited by luca020400, 25 October 2014 - 01:01 PM.

  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#3
LordMCDonald

LordMCDonald

    Enthusiast

  • Members
  • PipPipPip
  • 151 posts
  • Gender:Male
  • Location:Germany
  • Interests:Gaming
  • Devices:Huawei Ascend G330
This would be really nice *_* I bet you guys can make it :D

  • 0

#4
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

White Boxes :D :D :D :D :D

I tried to click thanks button many times but you have only 1 thanks :P


  • 1

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#5
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

Sometimes the screen became black and I have to remove the battery


  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#6
fonz93

fonz93

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,869 posts
  • Gender:Male
  • Location:Italy
  • Devices:Huawei Y300
  • Twitter:@Fonz93

 

What doesn't work:
  * Video playback (memory allocation errors I think)

 

Did you try to build the kernel with stock RAM (393 MB) to see if it fixes this problem?


  • 0

#7
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

The ram is 385 so yes

He added more ram to video

 

From the logcat the camera recording is a kenel problem ( Memory ?? )

 

Bugs : Video playback , Black Screen and Video recording


Edited by luca020400, 25 October 2014 - 01:41 PM.

  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#8
chil360

chil360

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Huawei Ascend Y300-0100

Ok, all of my 'experimental' branches should now be on github including one for my local manifest which should work to build the rom.

As most of this is based on TeamHackLG, I am currently using TeamHackLG/display-caf.


  • 1

If you would like to support my work with a donation you can use this link. Thank you.


#9
fonz93

fonz93

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,869 posts
  • Gender:Male
  • Location:Italy
  • Devices:Huawei Y300
  • Twitter:@Fonz93

The ram is 385 so yes

He added more ram to video

 

From the logcat the camera recording is a kenel problem ( Memory ?? )

 

Bugs : Video playback , Black Screen and Video recording

 

Black screen?? what do you mean?

 

Video playback and video recording maybe are caused by media-caf


Edited by fonz93, 25 October 2014 - 01:54 PM.

  • 0

#10
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

The screen became black while using phone

 

You can try the cyanogenmod11 media-caf maybe it works


Edited by luca020400, 25 October 2014 - 01:56 PM.

  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#11
chil360

chil360

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Huawei Ascend Y300-0100

Yes, there are still kernel problems especially for video encoding/decoding. It's difficult to diagnose - some of the problems may be on the ROM side in  media-caf or frameworks/av.


  • 1

If you would like to support my work with a donation you can use this link. Thank you.


#12
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

Next time try to build cm11


  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#13
chil360

chil360

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Huawei Ascend Y300-0100

I also get the wallpaper disappearing so I see the launcher icons on top of a black screen. Returns after a reboot.


  • 0

If you would like to support my work with a donation you can use this link. Thank you.


#14
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

For me after this bug the screen became black :(


  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#15
fonz93

fonz93

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,869 posts
  • Gender:Male
  • Location:Italy
  • Devices:Huawei Y300
  • Twitter:@Fonz93

Updating to display and media-caf didn't fix facebook video and google play music random reboots, i think we need to touch frameworks/av and /native


  • 0

#16
luca020400

luca020400

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,988 posts
  • Gender:Male
  • Location:Genoa Italy
  • Interests:Linux Android
  • Devices:Moto G 2014

Probably

Can you try to use legaCyMod frameworks


  • 0

Aospa 4.4.4 My Topic

Mahdi Rom 4.4.4 My Topic

Carbon Rom 4.4.4 My Topic

Carbon Rom 4.2.2 My Topic

Nameless Chil360 Topic

All bootanimation My Personal Server

Mega script collection My Personal Server
 
Sorry for my bad english ( I promise you : I will learn English well XD )
I'm Italian and I'm 14 years old
Remember to click the thanks button


#17
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

Yes, there are still kernel problems especially for video encoding/decoding. It's difficult to diagnose - some of the problems may be on the ROM side in  media-caf or frameworks/av.

how about adding new codec in configs/media_codecs.xml ?


  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#18
chil360

chil360

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Huawei Ascend Y300-0100

Or maybe updated OMX libs?


  • 1

If you would like to support my work with a donation you can use this link. Thank you.


#19
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

Or maybe updated OMX libs?

I can pull it from Samsung core II 4.4.2 stock ROM if it do any good?

  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#20
spanitzer

spanitzer

    Addict

  • Members
  • PipPipPipPipPip
  • 519 posts
  • Gender:Male
  • Location:Germany
  • Devices:Huawei Ascend G510
I will try this Rom.
Thanks chil for your hard and nice work!

  • 0




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users