Help us with English ClockworkMod recovery for Hongmi

Discussion in 'Xiaomi Redmi (Red Rice / HongMi)' started by redmaner, Oct 6, 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
    #1redmaner,Oct 6, 2013
    Last edited: Oct 9, 2013
    Dear community,

    Since the last few days I've been working toghter with ingbrzy to get ClockworkMod recovery (CWM) working on Xiaomi RedRice (Hongmi).

    We didn't succeed yet. That's why we ask for help.

    Why a new CWM recovery?
    This is a logical question. The awnser is simple.
    We at miuiandroid.com are all about user support.
    A recovery is in some cases the ultimate remedy to fix a device (from death or anything).
    We don't believe that this recovery should be in Chinese.

    Besides that we are all about open source.
    Our code (if it's going to work someday) could be the start for other projects in the future.
    So we worked on a CWM recovery from source. But we can't get it to work (yet).

    What's wrong?
    Currently booting to recovery wipes the modem and IMEI.
    No sign of CWM because of bootloop / hang.

    We tried many configurations and options but I don't have a clue at the moment.
    Because I don't have a Hongmi and my experience in this is nihil I ask for help.

    What can I do?
    If you have any experience in this I ask you to help us and the community.
    Take a look at my device tree. Which can be reached with the link below.

    What we know
    The recovery binary in /sbin/recovery wipes the modem and IMEI somehow.
    I replaced this binary with an empty file and the modem and IMEI where still there after boot.

    It could also be the init files, used from stock recovery.

    I compared with lots of devices, also older mediatek devices with MT6589 socs, no succes.

    The exsisting Chinese CWM is build with sources from Mediatek or Xiaomi.
    The build fingerprint is nearly identical compared to the stock recovery image.
    Only dates and buildnumbers are diffrent.

    We used ramdisk from stock recovery image

    Building CWM on top of stock image gives no succes either.
    I wrote a script you can test out, it builds fresh compiled CWM on top of exsisting stock recovery image.
    Issue
    Code:
    cd android
    . device/xiaomi/hongmi/make_recovery.sh --help
    
    Known problems
    - I don't know the exact maximum size for boot and recovery image (if there is a maximum). Currently set to 10mb each.

    Sources
    Device tree: http://github.com/redmaner/android_device_xiaomi_hongmi
    CWM recovery: http://github.com/cyanogenmod/android_bootable_recovery

    Thanks in advance
     
    naxer82, s01o, billythekid and 2 others like this.
  2. hadron

    hadronMembers

    Sep 23, 2012
    640
    169
    82
    Male
    I hope someone will be able to do it. Thanks for sharing.

    Sent from my MI 2 using Tapatalk 4
     
    MarkHUK likes this.
  3. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    just for info.. we have already working CWM recovery for hongmi but its in Chinese and cant be translated to the English as its hardcoded...
     
    MarkHUK and redmaner like this.
  4. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Hope we can get some hands on help with this stuff :)
     
  5. jergud

    jergudMembers

    Dec 4, 2010
    11
    3
    13
    No one at Xiaomi can help for that ?
     
  6. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    We asked but didn't heard anything yet
     
  7. clarko

    clarkoMembers

    Sep 18, 2013
    16
    0
    11
    we want wcdma version!!!
     
  8. mephistozap

    Aug 21, 2013
    171
    16
    28
    Its coming very soon and I'm waiting for the snapdragon wcdma mi3 :)

    Sent from my MI 2 using Tapatalk 4
     
  9. The only thing I can do is test the things you want to be tested. Don't have experience in writing.

    Sent from my Xiaomi mi2 with Tapatalk. This is why my message could contain spelling mistakes. now Free
     
  10. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    I wait for kernel sources.
    Or clockworkmod/cyanogenmod for faea f2s (which has same chipset)
     
  11. billythekid

    Oct 12, 2013
    38
    0
    16
    Male
    I hope you have success for this project. Unfortunately I can't help, but I can test if you like.
    Thanks any way for the effort.
     
  12. type-R

    type-RMembers

    Aug 14, 2012
    154
    18
    28
    Male
    Russia
    Any news for English CWM???
     
  13. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    I'm afraid not
     
  14. billythekid

    Oct 12, 2013
    38
    0
    16
    Male
    It seems that the recovery image for WCDMA version of Hongmi is also in English. Do you think that it works also for TD version???
     
  15. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    No it doesn't
     
  16. Zirias

    ZiriasMembers

    Nov 4, 2013
    54
    5
    18
    Male
    Software Developer
    Germany
    Is this really needed for a recovery? I built CWM for the Mi3 some days ago, and once I got the recovery-fstab correct, it booted up normally -- just needed to integrate the dualsystem support to make it usable.

    So, have you tried using just the kernel and nothing else (init-scripts, ramdisk)? Of course this means you need to use real device names in fstab (mmcblk*) for all partitions, but as long as the kernel has all drivers needed for recovery built-in, this should work and eliminate potential causes of problems.

    Sure, this could be completely wrong if the ramdisk e.g. contains mmc drivers...
     
  17. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    Tried but doesn't work. I've tried everything you mention.
    Thanks for the input anyway.
    This is probably because of MTK platform
     
  18. jergud

    jergudMembers

    Dec 4, 2010
    11
    3
    13
    #18jergud,Nov 24, 2013
    Last edited: Nov 24, 2013
  19. Ishy

    IshyMembers

    Dec 2, 2013
    42
    14
    20
    Male
    #19Ishy,Dec 2, 2013
    Last edited: Dec 2, 2013
    I've made an english CWM recovery but version 5.5.0.4...i'm testing now, the recovery has booted up, has installed the latest miui an wiped (seems correctly) system data cache etc..
    Edit: the recovery work! no sim problem. I'm creating a new thread with the new recovery.
     
  20. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
  21. Ishy

    IshyMembers

    Dec 2, 2013
    42
    14
    20
    Male
    I've made cwm for so much MTK devices with this metod, and it worked also for the Hongmi :)
     

Share Our Site