OK, do me a favor and delete every other file except for those two, try restoring once and post a log.only two files exists in it: first: boot.mtd.win second: boot.mtd.win.md5
Thanks
OK, do me a favor and delete every other file except for those two, try restoring once and post a log.only two files exists in it: first: boot.mtd.win second: boot.mtd.win.md5
OK, do me a favor and delete every other file except for those two, try restoring once and post a log.
Thanks
I mean:i did it already. i only backed up my boot partition via script. do i try again?
rm -rf /sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win-*
Starting Extended TWRP 2.4.4.0 on Fri Apr 5 12:10:47 2013
I:=> Detected bootloader: MAGLDR
I:=> Hardware ID from cpuinfo: 'htcleo'
I:=> Serial from cpuinfo: '0000000000000000'
W:=> Using Hardware ID for Device ID: 'htcleo'
I:=> Single storage only.
I:=> No internal storage defined.
I:=> No storage defined, defaulting to /sdcard.
I:=> Lun file '/sys/devices/platform/usb_mass_storage/lun0/file'
I:=> Brightness file '/sys/class/leds/lcd-backlight/brightness'
I:=> Starting the UI...
Screen Info: 480x800 @ 16bpp
Pixel format: RGB_565
Framebuffer: fd 4 (480 x 800)
I:=> Linking mtab
I:=> Processing recovery.fstab
I:Processing '/cache'
I:Primary_Block_Device: '/dev/block/mtdblock4'
I:Actual_Block_Device: '/dev/block/mtdblock4'
I:No '/cache/dalvik-cache' found.
I:Processing '/data'
I:Primary_Block_Device: '/dev/block/mtdblock5'
I:Actual_Block_Device: '/dev/block/mtdblock5'
I:Processing '/misc'
I:Primary_Block_Device: '/dev/block/mtdblock0'
I:Actual_Block_Device: '/dev/block/mtdblock0'
I:Processing '/recovery'
I:Primary_Block_Device: '/dev/block/mtdblock1'
I:Actual_Block_Device: '/dev/block/mtdblock1'
I:Processing '/sdcard'
I:Block: '/dev/block/mmcblk0p1'
I:Block: '/dev/block/mmcblk0'
I:Actual_Block_Device: '/dev/block/mmcblk0'
I:Created '/and-sec' folder.
I:Attempt to load settings from settings file on /sdcard...
I:Version number saved to '/cache/recovery/.version'
I:Processing '/boot'
I:Primary_Block_Device: '/dev/block/mtdblock2'
I:Actual_Block_Device: '/dev/block/mtdblock2'
I:Created '/boot' folder.
I:Processing '/system'
I:Primary_Block_Device: '/dev/block/mtdblock3'
I:Actual_Block_Device: '/dev/block/mtdblock3'
I:Checking /system/build.prop...
I:Processing '/sd-ext'
I:Block: '/dev/block/mmcblk0p2'
I:Actual_Block_Device: 'null'
I:Processing '/sdext2'
I:Block: '/dev/block/mmcblk0p3'
I:Actual_Block_Device: 'null'
Updating partition details...
Partition details updated.
I:Unmounting main partitions...
I:TWRP's folders created on /sdcard.
I:Loading package: TWRP (/script/ui.xml)
I:Loading package: TWRP (/res/ui.xml)
I:Loading resources...
I:Loading variables...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page backup
I:Loading page backupname1
I:Loading page backupname2
I:Loading page dataonext
I:Loading page dataonext2
I:Loading page backup_run
I:Loading page restore
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page reboot
I:Loading page nativeboot
I:Unable to open '/sdcard/NativeSD'
I:Loading page settings
I:Loading page timezone
I:Loading page tweaks
I:Loading page screen
I:Loading page haptic
I:Loading page advanced
I:Loading page nativesdmanager
I:Loading page nativesettings
I:Loading page nativekernel
I:Unable to open '/sdcard/NativeSD'
I:Loading page nativebackup
I:Unable to open '/sdcard/NativeSD'
I:Loading page nativerestore
I:Loading page nativedelete
I:Unable to open '/sdcard/NativeSD'
I:Loading page nativeperm
I:Unable to open '/sdcard/NativeSD'
I:Loading page nativewipedata
I:Unable to open '/sdcard/NativeSD'
I:Loading page nativewipedalvik
I:Unable to open '/sdcard/NativeSD'
I:Loading page themeselect
I:Loading page themecheck
I:Loading page themeconfirm
I:Loading page scriptselect
I:Loading page scriptconfirm
I:Loading page appselect
I:Loading page appconfirm
I:Loading page apprun
I:Loading page partsdcard
I:Loading page convertext
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanagersizecalc
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageracction
I:Loading page decrypt
I:Loading page trydecrypt
I:Loading page terminalfolder
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page installsu
I:Loading page fixsu
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
mtd: successfully wrote block at 0
I:Set boot command "boot-recovery"
Command: "/sbin/recovery"
Properties List:
persist.sys.strictmode.disable=true
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=mass_storage
ro.build.id=IMM76I
ro.build.display.id=IMM76I
ro.build.version.incremental=eng.koko.20130405.105620
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=4.0.4
ro.build.date=Fri Apr 5 10:57:13 EEST 2013
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=koko
ro.build.host=AMD64X2
ro.build.tags=test-keys
ro.product.model=HD2
ro.product.brand=htc
ro.product.name=leo
ro.product.device=leo
ro.product.board=htcleo
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=en
ro.wifi.channels=
ro.board.platform=qsd8k
ro.build.product=leo
ro.build.description=cm_leo-userdebug 4.0.4 IMM76L eng.koko.20130405.105620 test-keys
ro.build.fingerprint=google/htc_leo/leo:4.0.4/IMM76I/239410:user/release-keys
ro.build.characteristics=default
ro.cm.device=leo
rild.libpath=/system/lib/libhtc_ril_wrapper.so
rild.libargs=-d /dev/smd0
com.qc.hardware=true
ro.sf.lcd_density=240
ro.ril.ecc.HTC-ELL=92,93,94
ro.ril.ecc.HTC-WWE=999
ro.ril.enable.a52.HTC-ITA=1
ro.ril.enable.a53.HTC-ITA=1
ro.ril.enable.a52=0
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.hsupa.category=5
ro.ril.hsxpa=2
ro.ril.enable.prl.recognition=1
ro.telephony.ril.v3=signalstrength
ro.ril.def.agps.mode=2
ro.ril.enable.managed.roaming=1
ro.ril.oem.nosim.ecclist=911,112,999,000,08,118,120,122,110,119,995
ro.ril.emc.mode=2
mobiledata.interfaces=rmnet0,rmnet1,rmnet2,ppp0
media.a1026.nsForVoiceRec=0
media.a1026.enableA1026=1
ro.media.dec.jpeg.memcap=20000000
ro.opengles.version=131072
ro.telephony.default_network=0
wifi.interface=wlan0
ro.ril.disable.power.collapse=0
wifi.supplicant_scan_interval=60
Debug.performance.tuning=1
Video.accelerate.hw=1
ro.lge.proximity.delay=10
mot.proximity.delay=10
debug.sf.hw=1
debug.composition.type=mdp
dalvik.vm.dexopt-flags=m=y
dalvik.vm.checkjni=false
dalvik.vm.heapsize=128m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapstartsize=5m
dalvik.vm.dexopt-data-only=1
dalvik.vm.verify-bytecode=false
dalvik.vm.lockprof.threshold=500
windowsmgr.max_events_per_sec=120
ro.HOME_APP_ADJ=1
ro.PERCEPTIBLE_APP_ADJ=0
hwui.render_dirty_regions=false
hwui.disable_vsync=true
hwui.print_config=choice
debug.enabletr=false
debug.gr.numframebuffers=2
ro.kernel.android.checkjni=0
persist.service.adb.enable=1
ro.goo.developerid=cmhtcleo
ro.goo.rom=cm9nightly
ro.goo.version=1365148580
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.rommanager.developerid=cyanogenmod
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dataroaming=false
ro.cm.version=9-20130405-UNOFFICIAL-leo
ro.modversion=9-20130405-UNOFFICIAL-leo
ro.config.ringtone=CyanTone.ogg
ro.config.notification_sound=CyanMessage.ogg
ro.config.alarm_alert=CyanAlarm.ogg
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.serialno=
ro.bootmode=unknown
ro.baseband=unknown
ro.carrier=unknown
ro.bootloader=unknown
ro.hardware=htcleo
ro.revision=0
ro.emmc=0
init.svc.preboot=stopped
init.svc.recovery=running
init.svc.adbd=stopping
service.adb.root=1
Partition Logs:
/cache | /dev/block/mtdblock4 | Size: 3MB Used: 0MB Free: 2MB Backup Size: 0MB
Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present
Primary_Block_Device: /dev/block/mtdblock4
MTD_Dev: /dev/mtd/mtd4
Fstab_File_System: yaffs2
Current_File_System: yaffs2
Backup_Path: /cache
Display_Name: Cache
Backup_Name: cache
MTD_Name: cache
Backup_Method: files
/data | /dev/block/mtdblock5 | Size: 250MB Used: 165MB Dalvik-Cache: 97MB Free: 85MB Backup Size: 165MB
Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Is_Present
Primary_Block_Device: /dev/block/mtdblock5
MTD_Dev: /dev/mtd/mtd5
Fstab_File_System: yaffs2
Current_File_System: yaffs2
Backup_Path: /data
Display_Name: Data
Backup_Name: data
MTD_Name: userdata
Backup_Method: files
/misc | /dev/block/mtdblock0 | Size: 1MB Used: 1MB Free: 0MB Backup Size: 1MB
Flags: Can_Be_Wiped Is_Present
Primary_Block_Device: /dev/block/mtdblock0
MTD_Dev: /dev/mtd/mtd0
Fstab_File_System: mtd
Current_File_System: mtd
Backup_Path: /misc
Display_Name: misc
Backup_Name: misc
MTD_Name: misc
Backup_Method: flash_utils
/recovery | /dev/block/mtdblock1 | Size: 10MB Used: 10MB Free: 0MB Backup Size: 10MB
Flags: Can_Be_Wiped Is_Present
Primary_Block_Device: /dev/block/mtdblock1
MTD_Dev: /dev/mtd/mtd1
Fstab_File_System: mtd
Current_File_System: mtd
Backup_Path: /recovery
Display_Name: recovery
Backup_Name: recovery
MTD_Name: recovery
Backup_Method: flash_utils
/sdcard | /dev/block/mmcblk0 | Size: 15263MB Used: 5415MB Free: 9847MB Backup Size: 229MB
Flags: Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Present Has_Android_Secure Is_Storage
Primary_Block_Device: /dev/block/mmcblk0p1
Fstab_File_System: vfat
Current_File_System: vfat
Symlink_Path: /sdcard/.android_secure
Symlink_Mount_Point: /and-sec
Alternate_Block_Device: /dev/block/mmcblk0
Storage_Path: /sdcard
Backup_Path: /and-sec
Display_Name: sdcard
Backup_Name: and-sec
Backup_Method: files
/boot | /dev/block/mtdblock2 | Size: 5MB Used: 3MB Free: 1MB Backup Size: 3MB
Flags: Can_Be_Wiped Is_Present
Primary_Block_Device: /dev/block/mtdblock2
MTD_Dev: /dev/mtd/mtd2
Fstab_File_System: yaffs2
Current_File_System: yaffs2
Backup_Path: /boot
Display_Name: boot
Backup_Name: boot
MTD_Name: boot
Backup_Method: files
/system | /dev/block/mtdblock3 | Size: 175MB Used: 167MB Free: 7MB Backup Size: 167MB
Flags: Can_Be_Wiped Wipe_Available_in_GUI Is_Present
Primary_Block_Device: /dev/block/mtdblock3
MTD_Dev: /dev/mtd/mtd3
Fstab_File_System: yaffs2
Current_File_System: yaffs2
Backup_Path: /system
Display_Name: System
Backup_Name: system
MTD_Name: system
Backup_Method: files
/sd-ext | /---/-----/--------- | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags:
Primary_Block_Device: /dev/block/mmcblk0p2
Fstab_File_System: auto
Current_File_System: auto
/sdext2 | /---/-----/--------- | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags:
Primary_Block_Device: /dev/block/mmcblk0p3
Fstab_File_System: auto
Current_File_System: auto
mtd: successfully wrote block at 0
I:Set boot command ""
I:Switching packages (TWRP)
I:Applying system tweaks...
I:I/O Scheduler: cfq
I:CPU Governor: performance
I:Max cpu freq: 1190400
I:Min cpu freq: 768000
I:Drop caches after backup/restore completion: true
I:Screen timeout set to 60 sec.
I:Set page: 'restore'
I:*Backup_FileName = boot.mtd.win
I:*File System = mtd
I:*extn = win
I:*Backup_Path = /boot
I:Set page: 'restore_select'
I:Set page: 'restore_run'
[RESTORE STARTED]
* Restore folder:2013-04-05--10.03.05
@ /sdcard/TWRP/BACKUPS/htcleo/
I:TW_RESTORE_BOOT_VAR = 3
I:boot.mtd.win will be converted to boot.yaffs2.win
Segmentation fault
Skipping MD5 check based on user setting.
Restoring 1 partitions...
I:Restore filename is: boot.mtd.win
I:Restore file system is: 'mtd'.
Restoring boot...
I:Erase command: 'erase_image boot'
I:Restore command: 'flash_image boot '/sdcard/TWRP/BACKUPS/htcleo/2013-04-05--10.03.05/boot.mtd.win''
mtd: successfully wrote block at 0
mtd: successfully wrote block at 20000
mtd: successfully wrote block at 40000
mtd: successfully wrote block at 60000
mtd: successfully wrote block at 80000
mtd: successfully wrote block at a0000
mtd: successfully wrote block at c0000
mtd: successfully wrote block at e0000
mtd: successfully wrote block at 100000
mtd: successfully wrote block at 120000
mtd: successfully wrote block at 140000
mtd: successfully wrote block at 160000
mtd: successfully wrote block at 180000
mtd: successfully wrote block at 1a0000
mtd: successfully wrote block at 1c0000
mtd: successfully wrote block at 1e0000
mtd: successfully wrote block at 200000
mtd: successfully wrote block at 220000
mtd: successfully wrote block at 240000
mtd: successfully wrote block at 260000
mtd: successfully wrote block at 280000
mtd: successfully wrote block at 2a0000
mtd: successfully wrote block at 2c0000
mtd: successfully wrote block at 2e0000
mtd: successfully wrote block at 300000
mtd: successfully wrote block at 320000
mtd: successfully wrote block at 340000
mtd: successfully wrote block at 360000
mtd: successfully wrote block at 380000
mtd: successfully wrote block at 3a0000
mtd: successfully wrote block at 3c0000
mtd: successfully wrote block at 3e0000
mtd: successfully wrote block at 400000
mtd: successfully wrote block at 420000
mtd: successfully wrote block at 440000
mtd: successfully wrote block at 460000
mtd: successfully wrote block at 480000
mtd: successfully wrote block at 4a0000
mtd: successfully wrote block at 4c0000
mtd: successfully wrote block at 4e0000
[boot done (2 seconds)]
Updating partition details...
Partition details updated.
I:Unmounting main partitions...
[RESTORE COMPLETED IN 5 SECONDS]
I:Set page: 'action_complete'
I:Set page: 'clear_vars'
I:Set page: 'restore_select'
I:Set page: 'restore'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:Copying file /tmp/recovery.log to /sdcard/recovery.log
It wasn't suppose to. I just needed a proper log.
That's much better! Now we can clearly see the error.Here is the log:
Code:I:Set page: 'restore' I:*Backup_FileName = boot.mtd.win I:*File System = mtd I:*extn = win I:*Backup_Path = /boot I:Set page: 'restore_select' I:Set page: 'restore_run' [RESTORE STARTED] * Restore folder:2013-04-05--10.03.05 @ /sdcard/TWRP/BACKUPS/htcleo/ I:TW_RESTORE_BOOT_VAR = 3 I:boot.mtd.win will be converted to boot.yaffs2.win [COLOR="Red"]Segmentation fault[/COLOR]
It wasn't suppose to. I just needed a proper log.
That's much better! Now we can clearly see the error.
While I thought I had that fixed (during my testings it worked), it fails on your case. I will have to check it again.
Thanks!
Could you attach your "2013-04-05--10.03.05" backup for me to test?
The script should fix that. But I believe you can deal with it by using a customized theme OR just copy the folder to the correct location before trying to restore.
Could you attach your "2013-04-05--10.03.05" backup for me to test?
Regards!
This is not a proper img.
This is not a proper img.
Probably that's why TWRP (unpackbootimg) fails! So either there is an option that you should have used/not used when you ran the script or the script should fix that.
Regards!
Could you attach your "2013-04-05--10.03.05" backup for me to test?
The script should fix that. But I believe you can deal with it by using a theme. You may even take the default one, put it on your card and just edit the ui.xml @ <page name="restore">:
Check the one attached here.Code:... <object type="fileselector"> <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" /> <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" /> <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" /> <text>Select Package to Restore:</text> <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" /> <sort name="tw_gui_sort_order" /> <icon folder="folder_icon" file="file_icon" /> <background color="%fileselector_background%" /> <highlight color="%fileselector_highlight_color%" /> <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" /> [COLOR="Red"]<!-- set nav to 1 -->[/COLOR] <filter folders="1" files="0" [COLOR="Red"]nav="0"[/COLOR] /> <path name="tw_backups_folder" /> <data name="tw_restore" default="" /> <selection name="tw_restore_name" /> </object> ...
Regards!
because the tars made with a previous version that used busybox tar, were restored to wrong path (i.e to /system./ or /data./).I removed the 2nd slash in newer version. I just hope that it doesn't create new issues out of nowhere...
r7 is up! It should work with slower cards too this time (thanks to Darren's help).
Also, I reverted this:
because the tars made with a previous version that used busybox tar, were restored to wrong path (i.e to /system./ or /data./).
No worries my friendYou have been busy - thank you - and I have no been much help lately..
r7 is up! It should work with slower cards too this time (thanks to Darren's help, I used the same method (wait /dev/block/mmcblk0p1 in init.rc) found in ph03n!x's thread).
Also, I reverted this:
because the tars made with a previous version that used busybox tar, were restored to wrong path (i.e to /system./ or /data./).
Regards!
You are so fast, you fixed already my reported error. Thank you very much!!!
You have been busy - thank you - and I have no been much help lately..
Ah, oh! :fingers-crossed:
That was very suggestive of you... thanks for nothin'.
adb push recovery.img /sdcard/recovery.img
adb shell erase_image recovery
adb shell flash_image recovery /sdcard/recovery.img
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot oem boot-recovery
[B][COLOR="Red"]WARNING!!![/COLOR] This way of flashing will erase your current Rom on NAND too!
You will probably want to do this
[COLOR="Red"]ONLY IF[/COLOR] you need to increase the size of the 'recovery' partition![/B]
misc ya 1M
[U]recovery rrecov|ro|nospr 8M recovery.img[/U]
boot yboot|ro 5M
system ya 150M
cache ya 2M
userdata ya|asize|hr allsize
Dropped the logic:
If cLK => mtd
else => yaffs2
adb pull /tmp/recovery.log
adb pull /cache/recovery/log
HD2 ver.: EU
SDCard: Sandisk 32GB(c4)
SDCard's Partition Table: mmcblk0p1 [vfat,30GB], mmcblk0p2 [ext4,2GB]
Bootloader: cLK 1.5.1.6
NAND's Partition Table: recovery 8MB, misc 2MB, boot 4MB. userdata auto-size, system 200 MB, cache 2MB
Rom: HyperDroid 6.1 - NAND
#define MSM_MAX_PARTITIONS 8