MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.68k stars 3.2k forks source link

Bootable Mi5 Kernel #80

Open chhapil opened 7 years ago

chhapil commented 7 years ago

Does anybody managed to create a bootable kernel from Xiaomi kernel source for Mi5? Though I managed to compile it, cant boot it on device. Tried with Global Stable and beta ROMs

Any help here appreciated

33bca commented 7 years ago

Read on XDA, this kernel is only bootable with Miui 7 and its firmware. Miui blocks this kernel in the bootloader.

chhapil commented 7 years ago

@Shaky156 managed to boot it on MIUI8 too. Just looking for pointers what could be the possible ways.

anarkia1976 commented 7 years ago

the problem seems related to kernel source and not to blocked bootloader ... but i think olny @Shaky156 can be point us to the possibile solution.

chhapil commented 7 years ago

@Shaky156 has a bootable kernel built from caf source, not modified Xiaomi

rushabh71 commented 7 years ago

okay mine is not booting to miui 8 but in miui 7 it is booting what needs to be changed in source to make it boot in miui 8...

psndna88 commented 7 years ago

use different caf base for miui 8 MM

On Wed 2 Nov, 2016, 14:49 Rushabh Patel, notifications@github.com wrote:

okay mine is not booting to miui 8 but in miui 7 it is booting what needs to be changed in source to make it boot in miui 8...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-257811610, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYODsVu6WhLKFdayphcwFKCZ2ZnvI1ks5q6FWkgaJpZM4Kgyj1 .

rushabh71 commented 7 years ago

@psdna88 what is caf? BTW i am new to this..:)

psndna88 commented 7 years ago

code aurora foundation sources for msm on which xiaomi adds device specific files to get a working kernel..

On Wed 2 Nov, 2016, 16:43 Rushabh Patel, notifications@github.com wrote:

@psdna88 what is caf? BTW i am new to this..:)

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-257836332, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYONGKCASOO8pOiD_1DMSx1Wu2w7WRks5q6HBXgaJpZM4Kgyj1 .

16rd commented 7 years ago

HI all,

 do you know which light sensor used in MI Max?  thanks.

liujin@new-mobi.com

From: Parvinder Singh Date: 2016-11-02 19:25 To: MiCode/Xiaomi_Kernel_OpenSource Subject: Re: [MiCode/Xiaomi_Kernel_OpenSource] Bootable Mi5 Kernel (#80) code aurora foundation sources for msm on which xiaomi adds device specific files to get a working kernel..

On Wed 2 Nov, 2016, 16:43 Rushabh Patel, notifications@github.com wrote:

@psdna88 what is caf? BTW i am new to this..:)

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-257836332, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYONGKCASOO8pOiD_1DMSx1Wu2w7WRks5q6HBXgaJpZM4Kgyj1 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

psndna88 commented 7 years ago

pull out config file from stock boot.img and u can see in sensors section which driver is used..

16rd commented 7 years ago

Dear Parvinder Singh,

Thank you, I wonder if I can see the in the source?

liujin@new-mobi.com

From: Parvinder Singh Date: 2016-11-02 19:37 To: MiCode/Xiaomi_Kernel_OpenSource CC: 16rd; Comment Subject: Re: [MiCode/Xiaomi_Kernel_OpenSource] Bootable Mi5 Kernel (#80) pull out config file from stock boot.img and u can see in sensors section which driver is used.. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

anarkia1976 commented 7 years ago

Source online with commit history, error fixed: https://github.com/anarkia1976/android_kernel_xiaomi_msm8996/commits/master

boot is ok but phone restart after bootanimation.

i'm using anykernel for ramdisk.

psndna88 commented 7 years ago

u have u use newer caf base, the one used in LP kernel. will not work for MM i have my working cm 14.1, miui mm kernels for Redmi note 3 kenzo, on xda, using caf newer sources and some device specific drivers from official Lp kernel source given by xiaomi...

On Wed 2 Nov, 2016, 17:13 AK, notifications@github.com wrote:

Source online with commit history, error fixed: https://github.com/anarkia1976/android_kernel_xiaomi_msm8996/commits/master

boot is ok but phone restart after bootanimation ...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-257841975, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYOJYAV2aRAWvI4svG_Gv3H32hWnoLks5q6HdxgaJpZM4Kgyj1 .

rushabh71 commented 7 years ago

@psndna88 sorry for disturbing again.... but this is what you are talking about... https://wiki.codeaurora.org/xwiki/bin/QAEP/

after following above guide i have to make kernel from cm source code root directory..... Thank you...

psndna88 commented 7 years ago

what linux kernel version is there for your device? 3.10.y right.?

https://source.codeaurora.org/quic/la/kernel/msm-3.10/?h=msm-3.10

bgcngm commented 7 years ago

No, Linux kernel 3.18.y.

https://source.codeaurora.org/quic/la/kernel/msm-3.18/?h=msm-3.18

psndna88 commented 7 years ago

ok u have to start with a branch from it

rushabh71 commented 7 years ago

@psndna88 THANK YOU SO MUCH IT REALLY HELPED

anarkia1976 commented 7 years ago

Source fixed: https://github.com/anarkia1976/android_kernel_xiaomi_msm8996/commits/ak

chhapil commented 7 years ago

what is the logic behind the tags? https://wiki.codeaurora.org/xwiki/bin/QAEP/release is higher version number is always the with the latest commits?

psndna88 commented 7 years ago

depending on chipset, highest number is needed for latest Android versions..

On Thu 3 Nov, 2016, 08:26 Ruturaj Shetye, notifications@github.com wrote:

what is the logic behind the tags? https://wiki.codeaurora.org/xwiki/bin/QAEP/release is higher version number is always the with the latest commits?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-258054956, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYOAymANjSYmnJ_IDN50o8C7pn3Ck1ks5q6U1PgaJpZM4Kgyj1 .

chhapil commented 7 years ago

@psndna88 what all Xiaomi specific drivers are normally needed to be merged?

psndna88 commented 7 years ago

check out

https://github.com/psndna88/AGNi_pureMIUI/commits/AGNi_MM_kenzo?after=rVkJLlye%2Fa4C1RQPgKb42R%2Bf93QrMjc5

and previous page..

On Fri 4 Nov, 2016, 09:39 Ruturaj Shetye, notifications@github.com wrote:

@psndna88 https://github.com/psndna88 what all Xiaomi specific drivers are normally needed to be merged?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/80#issuecomment-258340837, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZYOHZ2VVgyE1K4UjNpqTOJZp-jdcM3ks5q6q_hgaJpZM4Kgyj1 .

chhapil commented 7 years ago

I'll check, thanks @psndna88

anarkia1976 commented 7 years ago

@psndna88 your source is for redmi note 3, can you port your effort also for MI5? thanks

psndna88 commented 7 years ago

LA.HB.1.1.2_rb1.9 branch should work for you... till 19th im not free..

chhapil commented 7 years ago

No luck making bootable kernel

anarkia1976 commented 7 years ago

http://forum.xda-developers.com/showpost.php?p=69472067&postcount=101

anarkia1976 commented 7 years ago

Please source .... we need an official one! .....

anarkia1976 commented 7 years ago

https://www.change.org/p/xiaomi-release-updated-kernel-source-for-xiaomi-mi-5?recruiter=9804892&utm_source=share_petition&utm_medium=twitter&utm_campaign=share_twitter_responsive

Anik1199 commented 7 years ago

This won't help to be honest :3 at least if it is Xiaomi ;)

RIPGPL

anarkia1976 commented 7 years ago

+1+2+3+4+5+6+7+8+9

nicoula commented 7 years ago

RIPGPL

anarkia1976 commented 7 years ago

We have to wrote directly to @xiaomi support. I don't think that look the open issue. https://twitter.com/anarkia1976/status/805769517242679297

amitgrin commented 7 years ago

can someone put a link to this Mi5 ROM with MIUI 7? all the roms from the offical site was with MIUI8.

thanks.