[24/Nov/2013][RECOVERY]EXTENDED TWRP|v2.6.3.4

Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby Robbie P » Fri Sep 06, 2013 1:30 pm

Just thought that i would add that in the magldr test above, i had wp7 in nand, hence the need for a sd recovery.
Not sure what the results would be if using magldr with android in nand, but ppl would surely use nand recovery (a few may use sd recovery for whatever reason eg test new recovery before changing to nand and possibly having to increase recovery size). If using nand recovery, then wm6.5 would not be installed, so a check for haret is not needed in nand recovery. Also if using wp7, magldr is sure to be installed.
Also it was stock wm6.5 for eu model, Artemis, other custom and tmous wm versions might be different.
Hope this helps

Edit; Thinking a bit more about this, for nand-only android users, the sd version should surely be the preferred option since you would then have more space in nand for system if there were no recovery partition. No need to increase recovery partition size as and when larger versions arrive, also recovery could then be much larger if needed.

Edit2; Thinking again, to detect haret, you could add a line in twrp2/startup.txt
set mtype 2524
set ramaddr 0x11800000
set ramsize 0x1e400000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
set cmdline "rel_path=twrp2"
set bootloader "HaRET"
boot


Then test for bootloader="HaRET" in twrp. Magldr doesn't read startup.txt anyway and clk just boots sboot afaik.
I had similar discussion with macs18max here http://forum.xda-developers.com/showpos ... tcount=351 to 357
HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14
User avatar
Robbie P
Recognized Contributor
 
Posts: 154
Joined: Tue Jun 25, 2013 12:04 am
Location: London
Country: United Kingdom (uk)
Has thanked: 127 times
Been thanked: 124 times

Advertisement
 

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby tytung » Fri Sep 06, 2013 6:41 pm

Robbie P wrote:Just thought that i would add that in the magldr test above, i had wp7 in nand, hence the need for a sd recovery.
Not sure what the results would be if using magldr with android in nand, but ppl would surely use nand recovery (a few may use sd recovery for whatever reason eg test new recovery before changing to nand and possibly having to increase recovery size). If using nand recovery, then wm6.5 would not be installed, so a check for haret is not needed in nand recovery. Also if using wp7, magldr is sure to be installed.
Also it was stock wm6.5 for eu model, Artemis, other custom and tmous wm versions might be different.
Hope this helps

Edit; Thinking a bit more about this, for nand-only android users, the sd version should surely be the preferred option since you would then have more space in nand for system if there were no recovery partition. No need to increase recovery partition size as and when larger versions arrive, also recovery could then be much larger if needed.

Edit2; Thinking again, to detect haret, you could add a line in twrp2/startup.txt

Then test for bootloader="HaRET" in twrp. Magldr doesn't read startup.txt anyway and clk just boots sboot afaik.
I had similar discussion with macs18max here http://forum.xda-developers.com/showpos ... tcount=351 to 357


There can be multiple key-value pairs in the cmdline.
set cmdline "rel_path=twrp2 bootloader=haret"
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby twoxx » Fri Sep 06, 2013 7:34 pm

Hi!

Everytime i want to install a zip-file... twrp 2.6.1.1 makes a hot reboot.

I can do backups and restores, but no install
twoxx
Junior Member
 
Posts: 10
Joined: Sat Aug 24, 2013 7:18 pm
Country: Germany (de)
Has thanked: 2 times
Been thanked: 2 times

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby Odysseus » Fri Sep 06, 2013 8:06 pm

twoxx wrote:Hi!

Everytime i want to install a zip-file... twrp 2.6.1.1 makes a hot reboot.

I can do backups and restores, but no install

What bootloader are you using, Black LK, cLK, MAGLDR, haret? Do you have it set up to correctly match your partitioning scheme? As in data on ext, native nand, or sd?

I suspect you don't have TWRP configured properly and that's why you're having issues.
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby twoxx » Fri Sep 06, 2013 8:44 pm

Odysseus wrote:What bootloader are you using, Black LK, cLK, MAGLDR, haret? Do you have it set up to correctly match your partitioning scheme? As in data on ext, native nand, or sd?

I suspect you don't have TWRP configured properly and that's why you're having issues.



i use magldr. i set "data on ext" because i am using data on ext. what else do i have to configure? v 2.6.1.0 is working correctly. only v. 2.6.1.1 has issues.
twoxx
Junior Member
 
Posts: 10
Joined: Sat Aug 24, 2013 7:18 pm
Country: Germany (de)
Has thanked: 2 times
Been thanked: 2 times

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby Odysseus » Fri Sep 06, 2013 9:16 pm

twoxx wrote:

i use magldr. i set "data on ext" because i am using data on ext. what else do i have to configure? v 2.6.1.0 is working correctly. only v. 2.6.1.1 has issues.


I switched to Black LK several months ago, so I'm unable to reproduce your issue. Are you sure you installed the extended TWRP and not the official version? When exactly is it crashing, when you select the ROM or during the unpacking and installation process?

The only other thing I can think of off the top of my head is perhaps your recovery partition is too small. The recommended size is 8MB though many have reported needing 10MB for it to work correctly. I hope this helps.

Ciao
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: Feature Request

Postby agbommarito » Sat Sep 07, 2013 2:30 pm

Kokotas,

There is a feature in TWRP to check partitions every so many boots. Would it be possible to add a message on the display when a boot check occurs? This would give you a clue as to why the boot was taking so much longer than normal.

And thanks for a great product, by the way.

Sent from my Nexus 7 using Tapatalk 4
Device: HTC HD2 US
HSPL: 2.08
Radio: 2.15.50.14
Bootloader: MAGLDR 1.13
Recovery: Extended TWRP 2.5.0.5
NativeSD ROM: Tytung NexusHD2-KitKat-CM11.0_V4.7
Partitions: 350 system / 15 recovery
SD Card: Patriot LX 32GB Class 10
agbommarito
Recognized Developer
 
Posts: 74
Joined: Wed Jun 26, 2013 8:44 pm
Has thanked: 18 times
Been thanked: 158 times

Postby NYLimited » Sat Sep 07, 2013 9:18 pm

agbommarito wrote:Kokotas,

There is a feature in TWRP to check partitions every so many boots. Would it be possible to add a message on the display when a boot check occurs? This would give you a clue as to why the boot was taking so much longer than normal


I may be mistaken but I think that setting is not *for* twrp. It is a setting for e2fsck which is not normally run by twrp.

If you check the rom's init.rc you should find where Tytung executes e2fsck before mounting the ext partition. The twrp setting - as I understand it - sets the value for this process via tune2fs and the "-C" parameter (upper case C, not lower case!) to force a check every X boots.

-C mount-count
Set the number of times the filesystem has been mounted. If set to a greater value than the max-mount-counts parameter set by the -c option, e2fsck(8) will check the filesystem at the next reboot.


You should also be able to locate the fsck log file in the device's root which has the result of the last check. I used to automatically email this file to myself on every boot.

The init process is much more limited in commands than a shell script and the message you are asking for would have to be coming during this process.

Keep in mind that all this can indeed make the boot process longer at times.

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re:

Postby agbommarito » Sun Sep 08, 2013 3:44 am

NYLimited wrote:
I may be mistaken but I think that setting is not *for* twrp. It is a setting for e2fsck which is not normally run by twrp.

If you check the rom's init.rc you should find where Tytung executes e2fsck before mounting the ext partition. The twrp setting - as I understand it - sets the value for this process via tune2fs and the "-C" parameter (upper case C, not lower case!) to force a check every X boots.



You should also be able to locate the fsck log file in the device's root which has the result of the last check. I used to automatically email this file to myself on every boot.

The init process is much more limited in commands than a shell script and the message you are asking for would have to be coming during this process.

Keep in mind that all this can indeed make the boot process longer at times.


Thanks for the explanation. I thought that TWRP was somehow involved since it has the option to modify the frequency at which the check occurs.
Device: HTC HD2 US
HSPL: 2.08
Radio: 2.15.50.14
Bootloader: MAGLDR 1.13
Recovery: Extended TWRP 2.5.0.5
NativeSD ROM: Tytung NexusHD2-KitKat-CM11.0_V4.7
Partitions: 350 system / 15 recovery
SD Card: Patriot LX 32GB Class 10
agbommarito
Recognized Developer
 
Posts: 74
Joined: Wed Jun 26, 2013 8:44 pm
Has thanked: 18 times
Been thanked: 158 times

Re: [6/Sep/2013][RECOVERY]EXTENDED TWRP|v2.6.1.1

Postby andy » Sun Sep 08, 2013 12:56 pm

The newest v2.6.1.1 cann't install ROM. I have tried Tytung's cm4.2 and MIUI2.3
User avatar
andy
Junior Member
 
Posts: 5
Joined: Mon Jun 24, 2013 4:01 pm
Has thanked: 9 times
Been thanked: 2 times

PreviousNext

Return to HD2 Android Development

Who is online

Users browsing this forum: No registered users and 0 guests