[KERNEL][mione_plus][3.6.28] Stock kernel with init.d support

Discussion in 'Xiaomi Mi One/Mi One S' started by redmaner, Jun 3, 2013.

Thread Status:
Not open for further replies.
  1. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    Post #1: Introduction, features, installation, downloads, FAQ and special thanks
    Post #2: Reserved for futher use

    Introduction
    I've been searching for a way to get init.d working on the Xiaomi Mi2 (stock MIUI).
    Simple ways like this doesn't work on the Xiaomi Mi2, although not on my Mi2.
    So I updated the boot.img (kernel) with a modified ramdisk (initramfs) to add support for init.d and some other features.
    With this succes I decided to get init.d support to MiOne too, so here it is.

    Disclaimer
    * I'm not a kernel developer this is a very simple mod which everyone could accomplish.
    * Flashing knowledge is required to keep yourself out of trouble.
    * I am not responsible for your bricked or not working devices.
    * If you have any concerns or don't know what this all means do some research.

    Features
    - Latest stock MIUI kernel
    - init.d support
    - sysctl support
    - busybox with symlinked applets

    Installation
    Note: use the kernel for your MIUI version! It prevents issues with your rom.
    1. Put both custom and stock kernel on your SD-card.
    2. Boot in ClockWorkMod recovery. Download CWM for MiOne here
    3. Flash kernel to system1 or system2 (depends where the ROM is installed).
    4. Reboot.
    Note: if kernel isn't booting flash the stock kernel back!

    Downloads MIUI
    3.6.28 Custom | Stock
    3.6.21 Custom | Stock
    3.6.7 Custom | Stock
    3.5.31 Custom | Stock

    FAQ
    What is init.d?
    Init.d plays an important role in the world of Android development and customization.
    It allows users to install scripts and mods to be run at boot. Everything from battery tweaks to performance tweaks.
    It essentially opens the door to a world of mods only possible through the Init.d process, which in turn is usually only available on custom kernels.

    How do I know if init.d works?
    There is a test script after installation.
    If you have "initd.log" in you data partition (/data/initd.log) then init.d works.

    Test it with terminal emulator or adb
    Code:
    su
    cat /data/initd.log
    Help my phone is not booting!
    Flash back stock kernel!

    Help my phone is not booting and I haven't stock kernel on my SD-card.
    Reboot in clockworkmod recovery and switch sytem or reflash a full rom or restore a nandroid backup.

    What is xxxx governor or xxxxx scheduler
    Follow this link

    What is read_ahead_kb?
    Follow this link

    Is this the start for other ROMS, like not MIUI?
    No, this is a kernel modification without sources. Kernel sources are required to port other ROMS like CyanogenMod, Paranoidandroid ect.

    Can you integrate more features in this kernel (e.g. screen colors, sound ect.)?
    No, kernel sources are required for that. I am restricted to the ramdisk (initramfs).

    Special thanks
    - The CyanogenMod team / used their source to compile mkbootfs and used their init.d method.
    - Gilles Grandou / for abootimg.
    - M1cha / for ClockWorkMod recovery
    - Gokhan Moral for STweaks and UCI
     
    DiDu, eddie9684 and emaz like this.
  2. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    Reserved for futher use
     
  3. eddie9684

    eddie9684Members

    May 10, 2012
    215
    29
    50
    Male
    thanks as usual hopefully this means futher customization and improvement on the good ol mi-one :D
     
  4. wlh03212

    wlh03212Members

    Nov 26, 2011
    43
    1
    18
    This version of kernel don't have the xtweaks?

    Sent from my MI 2 using Tapatalk 2
     
  5. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    New kernel is up
     
  6. wlh03212

    wlh03212Members

    Nov 26, 2011
    43
    1
    18
    Hi does this contains the xtweaks

    Sent from my MI-ONE Plus using Tapatalk 2
     
  7. DiDu

    DiDuMembers

    May 19, 2013
    2
    0
    21
    Male
    Jakarta, Indonesia
    thanks redmaner... i hope this thread always update
     
  8. Thinh

    ThinhMembers

    Jan 5, 2013
    9
    0
    11
    Male
    Does this one works for Mi-one s or p
    And which kernel do you need to install first? Install first the custom and than stock or?
    You install this just like updating right?
     
  9. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    These kernels are compiled for specific MIUI versions, which are older version.
    This doesn't work on newer MIUI versions
     

Share Our Site