afaulkner420 / android_kernel_ulefone_power_3

Other
5 stars 1 forks source link

Working LCM driver #1

Open Xakep16 opened 6 years ago

Xakep16 commented 6 years ago

I by means of IDA (decompiler) have assembled completely working LCM driver. I brought together him on Oukitel K6 - but the driver and suits you as your LK Works at ours (and there what check the driver in a kernel). Sensor I at myself have brought Ksati too. So so far everything is excellent

hct_nt36672_dsi_vdo_fhd_lg_60_ykl.zip

afaulkner420 commented 6 years ago

Has this actually been tried on the ulefone power 3? I only say this, as my device actually states a different lcm? screenshot_20180918-081319

Xakep16 commented 6 years ago

hm. try rename driver from any name to hct_td4310_dsi_vdo_fhd_auo_60_by oppo_tianma_td4310_fhdp_dsi_vdo_rt5081 td4310_auo60_wcl_lfhd td4310_tft60_hxgd_lfhd

I have just renamed the driver into what it asks, Then in this driver threw up parameters from different drivers in your case of td4310 static struct LCM_setting_table lcm_initialization_setting

https://github.com/afaulkner420/android_kernel_ulefone_power_3/blob/1df15af2f9b791ea9d2662bcb5e689f44d03f6c2/drivers/misc/mediatek/lcm/td4310_tft60_hxgd_lfhd/td4310_tft60_hxgd_lfhd.c#L113

Xakep16 commented 6 years ago

If the help is necessary address. I will help with it

afaulkner420 commented 6 years ago

Where do i find the information that i replace it with? through the lk file through ida?

Xakep16 commented 6 years ago

Answer me, you tried to change the name? And to use the similar driver.

Xakep16 commented 6 years ago

https://github.com/afaulkner420/android_kernel_ulefone_power_3/blob/1df15af2f9b791ea9d2662bcb5e689f44d03f6c2/drivers/misc/mediatek/lcm/td4310_tft60_hxgd_lfhd/td4310_tft60_hxgd_lfhd.c#L113 Try to take this table of different td4310 drivers - and there will be a high probability that the screen will be started

afaulkner420 commented 6 years ago

Sorry. Not yet no. I've been at work all day, and haven't had chance to try yet. Probably won't try untill the weekend. If you fancy building a kernel for me to try, I'd be more than willing to test, but I won't be able to build untill the weekend. I think I get what you mean. Unfortunately, I've not ported a driver before, so.im learning along the way. I also need to port a cam_cal driver, but I think I've figured that out ;)

afaulkner420 commented 6 years ago

How have you been opening the lk files in Ida, I can't get them to decompile properly? Can you give me some guidance? I want to take a look inside...

Xakep16 commented 6 years ago

I saw the instruction only in Russian. And itself its sense I haven't understood, too difficult I have learned only parameters through ida to receive. And the main init isn't present.

Xakep16 commented 6 years ago

hct_td4310_dsi_vdo_fhd_auo_60_by.zip Can try this lcm

afaulkner420 commented 6 years ago

Hey! Thanks for this! I'll give this a try later! I'll report back as soon as I get anything!

Xakep16 commented 6 years ago

If doesn't work, there will be distortions or generally the green screen, write. I will try to pick up) By the way I saw that you collected los 14.1, you won't share? Yes I saw mobile communication doesn't work, and suddenly I will repair

afaulkner420 commented 6 years ago

I've built los14.1 for the power 3 yes. It boots. And quite a bit works. Just no ril. It uses something called mtkfusionrild instead of the normal mtkrild... Having a bit of trouble with it. Do you have this device then? I haven't shared the ROM yet, purely because I haven't got rild working. As soon as that works, I'll release a beta...

afaulkner420 commented 6 years ago

Hey! I haven't tried the LCM yet... Just wondering if your getting anywhere with your device?

Xakep16 commented 6 years ago

I'm just guided by what happens. Just intuitively enough to try to do something - if it turns out it means excellent. Therefore, I am not sure that this LCM will start from 1 time for your phone. It will be necessary to select many more times. I was lucky and the driver came up with 1 time - it was enough just to name it as it is called in LK.bin

afaulkner420 commented 6 years ago

Ahhh ok that's fine by me. I like a challenge ;) haha! My next challenge being rild ;) I've got one thing I want to try. But I'm not sure if it's going to work. Mtkfusionrild keeps crashing because it can't find a socket that it's looking for. Need to figure out why the socket isn't present. As I figured it should create them when the service is starting up!?

Xakep16 commented 6 years ago

Have you been stitching with the factory scatter or is it obtained by compiling cm14? You do not see the modem at all? Or he sees him but no connection.

Xakep16 commented 6 years ago

I found almost all the drivers on my phone. The problem, in the recovery the kernel is started and works as it should. The system hangs on the boot animation. The plans are to compile 8.1 android, since there are even missing drivers.

Xakep16 commented 6 years ago

They say the mobile connection does not work because of the selinux enforce, need in permissive mode

afaulkner420 commented 6 years ago

I used the scatter file originally supplied by ulefone. As far as I can tell, the modem is seen, and the services start up. But for some reason (I believe, I may be wrong) a socket isn't created/connected, therefore mtkfusionrild crashes. I already have selinux in permissive mode. So this shouldn't be a problem. I'll link to a log, show you what I mean.

So your going for 8.1? That's why I'm desperate to get a kernel working. I want to finally bring my device to 8.1, like originally promised by ulefone, but we were lied to!

afaulkner420 commented 6 years ago

radio-0506.txt

Xakep16 commented 6 years ago

the sources are here, I understand correctly that with elephone u?

Xakep16 commented 6 years ago

telephony-common is parsed using apktool, and we follow the path \ smali \ com \ android \ internal \ telephony change all files starting with RIL.smali (change from the drain or from the firmware where the connection works)

afaulkner420 commented 6 years ago

The sources are available? Where are they located? Is this for Oreo or Nougat?

Are you able to explain that a little more? the RIL.smali part?

Xakep16 commented 6 years ago

Source alps 7.1 and 8.1 available)

7.1 only in my computer. For 8.1 I can get for you link

afaulkner420 commented 6 years ago

Oh ok... Are you able to privately upload 7.1 anywhere? And yes please, if thats ok?

Xakep16 commented 6 years ago

One problem. My internet only 0.5 mbit upload speed. Source 15+ gb

afaulkner420 commented 6 years ago

Oh. Wow! ok... no worries then. Its a shame. I would have liked to get my hands on that. where did you get it from originally? Privately? I suppose ill just have to start on oreo then haha! just need to try my LCM out, and have a play haha!

Xakep16 commented 6 years ago

In public I can't get link. Write me in my mail

Xaker-14@hotmail.com

afaulkner420 commented 6 years ago

Ok. Ill send you an email now :)