Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

How to compile

Open rahulrdhobi opened this issue 11 years ago • 13 comments

Please provide compilation steps

rahulrdhobi avatar Jan 09 '15 05:01 rahulrdhobi

my setup for succesfully compilation-- install ubuntu 14.10. install Orcal java6, all essential libraries (google it please) and linaro toolchain arm-linux-gnueabi-linaro_4.7.4-2014.06-build_2014_09_01.tar.xz and armani_user_defconfig

sheikhrr avatar Jan 16 '15 10:01 sheikhrr

Ok have compiled successfully but after flashing new boot.img by fastboot my device it keep rebooting

rahulrdhobi avatar Jan 16 '15 10:01 rahulrdhobi

what I have done was got boot.img from redmi 1s and used used unpack-repack tool from http://forum.xda-developers.com/redmi-1s/general/guide-unpack-repack-kernel-t2908458 , I have replaced compiled zImage with unpacked boot.img and repacked boot.img after that flashed new boot.img with fastboot but phone gets rebooting after MI logo

rahulrdhobi avatar Jan 19 '15 10:01 rahulrdhobi

@rahulrdhobi, where are you getting problem? What's the size of dtb.img you getting?

TheStrix avatar Jan 19 '15 10:01 TheStrix

@TheStrix : I have unpacked original boot.img where I got initrd,dt_image,kernel and ramdisk.gz size of dt_image is around 5.6 MB , what I have done was copied compiled zImage into unpacked boot.img removed kernel renamed zImage to kernel and repacked it flashed new boot.img through fastboot. is there any step which I'm missing

rahulrdhobi avatar Jan 19 '15 10:01 rahulrdhobi

Compile dtb.img too from the source.. See command for compiling dtb.img from here:https://github.com/xiaolu/mkbootimg_tools <-- You can use mkbootimg tool given in this repo And use dtbTool from here: https://github.com/LuffyXDA/BeastKernel_Armani/blob/BeastKernel/dtbTool

TheStrix avatar Jan 19 '15 10:01 TheStrix

@TheStrix: Thanks for quick response will try and let you know results :) :+1:

rahulrdhobi avatar Jan 19 '15 11:01 rahulrdhobi

@TheStrix:I have compile dtb.img from source using dbtTool but same still issue do I need to flash boot.img with compiled drivers also?

rahulrdhobi avatar Jan 24 '15 08:01 rahulrdhobi

Here are logs for kernel http://pastebin.com/qBH1hViJ and adb logcat http://pastebin.com/f2yS5ieC my phone is in bootloop

rahulrdhobi avatar Jan 24 '15 10:01 rahulrdhobi

someone told me that this kernel wont work with stock MIUI rom its only works with custom rom like cyanogenmod 11. Can anyone know reason?

rahulrdhobi avatar Feb 03 '15 04:02 rahulrdhobi

Anybody luck with Dior?

mrafra avatar Feb 03 '15 10:02 mrafra

Same isue, bootloop...

mrafra avatar Feb 04 '15 13:02 mrafra

Provide build instructions

luntik2012 avatar Jul 23 '16 16:07 luntik2012