Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

Bootable Mi5 Kernel

Open chhapil opened this issue 10 years ago • 35 comments

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

chhapil avatar Oct 26 '16 06:10 chhapil

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

33bca avatar Oct 27 '16 13:10 33bca

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

chhapil avatar Oct 28 '16 05:10 chhapil

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.

anarkia1976 avatar Nov 01 '16 17:11 anarkia1976

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

chhapil avatar Nov 02 '16 04:11 chhapil

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...

rushabh71 avatar Nov 02 '16 09:11 rushabh71

use different caf base for miui 8 MM

On Wed 2 Nov, 2016, 14:49 Rushabh Patel, [email protected] 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 .

psndna88 avatar Nov 02 '16 09:11 psndna88

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

rushabh71 avatar Nov 02 '16 11:11 rushabh71

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, [email protected] 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 .

psndna88 avatar Nov 02 '16 11:11 psndna88

HI all,

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

[email protected]

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, [email protected] 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.

16rd avatar Nov 02 '16 11:11 16rd

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

psndna88 avatar Nov 02 '16 11:11 psndna88

Dear Parvinder Singh,

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

[email protected]

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.

16rd avatar Nov 02 '16 11:11 16rd

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.

anarkia1976 avatar Nov 02 '16 11:11 anarkia1976

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, [email protected] 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 .

psndna88 avatar Nov 02 '16 11:11 psndna88

@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...

rushabh71 avatar Nov 02 '16 12:11 rushabh71

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

psndna88 avatar Nov 02 '16 12:11 psndna88

No, Linux kernel 3.18.y.

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

bgcngm avatar Nov 02 '16 12:11 bgcngm

ok u have to start with a branch from it

psndna88 avatar Nov 02 '16 12:11 psndna88

@psndna88 THANK YOU SO MUCH IT REALLY HELPED

rushabh71 avatar Nov 02 '16 12:11 rushabh71

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

anarkia1976 avatar Nov 02 '16 15:11 anarkia1976

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?

chhapil avatar Nov 03 '16 02:11 chhapil