Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] Build TWRP recovery

OP buffo1987

4th February 2013, 01:39 PM   |  #1  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 415
 
218 posts
Join Date:Joined: Jun 2012
How to build TWRP Recovery
  1. You should be able to build CWM Recovery
    [GUIDE] Build CWM recovery
  2. Download TWRP as ZIP from github
  3. Replace ~/android/cm9/bootable/recovery with TWRP
  4. Modify ~/android/cm9/device/samsung/ariesve/config/init.recovery.rc
    Code:
    on init
         export LD_LIBRARY_PATH .:/sbin // add this line
  5. Modify ~/android/cm9/device/samsung/ariesveBoardConfig.mk
    add to the end of file next to recovery stuff :
    Code:
    #TWRP
    TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
    DEVICE_RESOLUTION := 480x800
    TW_INTERNAL_STORAGE_PATH := "/sdcard"
    TW_INTERNAL_STORAGE_MOUNT_POINT := "sdcard"
    TW_EXTERNAL_STORAGE_PATH := "/external_sd"
    TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
    TW_DEFAULT_EXTERNAL_STORAGE := true
    TW_FLASH_FROM_STORAGE := true	  	
    TW_HAS_DOWNLOAD_MODE := true
    TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
    TW_MAX_BRIGHTNESS := 255
    TW_BRIGHTNESS_PATH := /sys/devices/platform/msm_fb.196609/leds/lcd-backlight/brightness
    # End TWRP
    More flags for twrp can be found on the original thread by Dees_Troy http://forum.xda-developers.com/show....php?t=1943625

  6. Prepare device specific code
    Code:
    $ cd ~/android/cm9/
    $ . build/envsetup.sh
    $ lunch //choose -> cm_ariesve-userdebug
  7. Compile recovery
    Code:
    make clobber && make -j# recoveryimage  //# CPU-Cores+1

credits
Dees_Troy
TeamWin
Last edited by buffo1987; 12th April 2013 at 03:12 PM.
The Following 14 Users Say Thank You to buffo1987 For This Useful Post: [ View ]
4th February 2013, 03:58 PM   |  #2  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 415
 
218 posts
Join Date:Joined: Jun 2012
collected informations

Get latest kernel message after crash /proc/last_kmsg

[15:33] <+helicopter88> buffo1987, TARGET_PREBUILT_RECOVERY_KERNEL := specifies a kernel to be used during the building of recovery
[15:33] <@Dees_Troy> basically if you want recovery to be built with a different kernel than the boot image then you would use that ^
[15:34] <buffo1987> What could be the benefit?
[15:34] <buffo1987> stability?
[15:34] <@Dees_Troy> maybe
The Following 2 Users Say Thank You to buffo1987 For This Useful Post: [ View ]
28th February 2013, 09:38 AM   |  #3  
alireza7991's Avatar
Senior Member
Flag Shahrekord
Thanks Meter: 2,272
 
767 posts
Join Date:Joined: Sep 2012
Donate to Me
More
Re: [GUIDE] Build TWRP recovery
Good Tutor !

At least for me

Thanks for your effort

Regards
AliReza
3rd March 2013, 04:02 AM   |  #4  
Ganesh A's Avatar
Recognized Contributor
Flag Chennai
Thanks Meter: 769
 
916 posts
Join Date:Joined: May 2012
More
Re: [GUIDE] Build TWRP recovery
Great guide...
thnks a lot...

Sent from my GT-S5360 using Tapatalk 2
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes