yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] HypoTurtle:
not sure with the kitchen but initrd.gz is actually initrd.cpio.gz, kind of a rar inside a zip, so unzip initrd.gz add the .cpio (or .rar) extension to the resultant file and unzip again
[HD2 Android SD Development] datagr:
Hello,

This is a small update with 3 minor fixes for the V4 multi boot nativeSD app.

Fixed : force close if you click [Delete] button before you create rom_name.txt

Fixed : hide running rom issue when you have 3 roms in the list.

Fixed : check for zImage and initrd.gz if you have 4 roms in the list.

Enjoy :)
[HD2 Android SD Development] seaman2k:
yesssss ..thx man that was idle for me i add cpio and it works good:good: but it will be nice to help me to repack it after i edit it cause i try with 7 zip i couldn't find option to get it back to initrd.gz thx again:o
[HD2 Android SD Development] HypoTurtle:
I use terminal in Ubuntu too repack mine, but you could try to rar it (if possible with 7zip) first, (rename to .cpio) then gzip it and rename to initrd.gz (if your only editing text there should only be a minor change in file size, which should indicate if it right or not.
[HD2 Android SD Development] MarkAtHome:
Great news! Thank you, Xylograph - - you have made my day. :D

____________________
[HD2 Android SD Development] Xylograph:
Recovery folder updated.

Well.. v2.2.2.2 will have to wait.. Anyway,

I've updated the recovery folders for both nand and sd.. also updated @ the 2nd post

Ported the twrp recovery version 2.2.1.4 from the Nexus One

Ported the twrp recovery version 2.2.2.0 from the Supersonic

All recoveries found @ nand folder are now flashable via recovery (credits arif-ali) so no more DAF or fastboot stuff... easy going..

Sd recoveries should be unpacked to the sdcard and run from there by either setting the sd bootfolder in your bootloader or using the 'haret' stuff.

Keep in mind that the 'new' twrp recoveries are fresh and I didn't test it much so it's for testing purpose only !

Have fun !
[HD2 Android SD Development] seaman2k:
i am happy for u cause i saw your posts b4 asking someone to port it ..i know u like twrp but i have a qus. for u what the diff. bettwen 2.2.2.0 and 2.1.1 which was have b4 ..i wait your replay cause i am confused about that !!!!
[HD2 Android SD Development] Xylograph:
Like I said before.. what's the problem with reading a changelog ??
[HD2 Android SD Development] seaman2k:
i saw changelog :) b4 and i know what it mean but when i ask cause 2.1.1 is the same i will uplode it to u to see what i mean

xylo ....man u r hero i am a proud with all your work thx.
[HD2 Android SD Development] Xylograph:
Your welcome,

Maybe the changes are not visually, but 'under the hood' like for example better ext4 support.

On a side note :

I also ported the latest 4EXT touch recovery, but the problem is it's missing touchscreen calibration for our device.. I have kindly send madmaxx a PM if it could be included someway..

That's on hold for now.. I also ported cwm recovery 5.5.0.4 to sd for the ones interested.. will post it in the Recovery folder later..
[HD2 Android SD Development] kaiserlein:
As promised I did try PA NativeSD as soon as CLK support came in.

Unfortunately my old Sandisk Class 2 SD card was to slow so I had to revert to nand and ordered a new Sandisk 32gb Class 10 card :D

Now I'm running PA from sboot and AOKP from tboot and both are really great! :good:

The only thing I couldn't get running till now is directly rebooting to sboot or tboot (which is implemented in the latest CLK by Kokotas). But this is something I have to ask in CLK thread :D
[HD2 Android SD Development] JeremyGuan:
Does Swap Partition really necessary?
[HD2 Android SD Development] kaiserlein:
No, SWAP is not needed for NativeSD.
[HD2 Android SD Development] ogonzuhnina:
I thougth ZRAM is a compression algorythm for information storred in ram, and SWAP is used to dump information from ram to File/partition when it's not used frequently.

In this case these would be completely irrelated stuff.

Please correct me if I'm wrong :/
[HD2 Android SD Development] Burag:
Guys, how about /sdcard in ext4? :cool:

I'm getting *really* angry with FAT32 4GB limitation...
[HD2 Android SD Development] HypoTurtle:
Could you give this a try; I don't think there's any fat mount scripts associated with /sdcard; seems it just takes the first partition on the card. Only issue might be that we recovery that can read from it.

Could you try first with two ext4 partitions and if that doesn't work have fat and ext4 as usual then after installing , copy the nativesd folder and reformat the fat to ext4, copy the nativesd across and try to boot.

Thought I'd solved my issue with nilfs (managed to reclaim most of the storage) , but fix seems to have stopped and I can't seem to recreate it (if it even worked in the first place). I'll try this myself when my storage gets swallowed again (probably tomorrow)
[HD2 Android SD Development] vicm:
First of all I would like to thank Xylograph, securecrt, Phoenix, clio94 and everybody else involved for their great job. It just simply amazing what you guys did to our loved HD2...

Xylo, could you advise please?

I have tried your idea from the quote with my current daily NAND rom (Magldr / AOKP M5 SE - it seems the most stable for me, no freezing/rebooting at all).

I created sdcard/NativeSD/NAND folder and put there ramdisk+kernel extracted from AOKP M5 SE rom.

The datagr's application picked it up and I am able to boot into either JB PA/AOKP from SD or AOKP M5 SE from NAND without booting into recovery (very convenient ).:)

However, the NAND rom (AOKP M5 SE) booted through datagr's application is loosing data connectivity (I can see H symbol, but no real connection is established). Data works nice booting directly into NAND through recovery, though.

Did I simplified the matted and NAND ramdisk+kernel need some modding before copying into sdcard/NativeSD/NAND? Is your idea still standing (I believe, securecrt expressed some concern about it)?

Thanks.
[HD2 Android SD Development] Magic2010:
Everyday stuff goes more user friendly and easy going for us!

Thats a niceeee work!

Keep up!! :good:
[HD2 Android SD Development] clio94:
TWRP recovery the best recovery i have ever seen.I flashed it in clk and it work ok.Full touch,file manager,terminal emulator,ext3-ext4 partition.I am really impressed of this tool

Xylograph thank you very much for your dedication in all this
[HD2 Android SD Development] kaiserlein:
After some reading it seems that I missunderstood something here :eek:

But anyway one thing was correct: SWAP is not needed for NativeSD :D
[HD2 Android SD Development] onlinegames:
Hi white-energy,

We are waiting for the diff files!! :p Hope you get some time to post either the diff files or the complete ROM itself.
[HD2 Android SD Development] Xylograph:
To be honest I am kinda suprised your NAND ROM booted by just putting the nand kernel+ramdisk in the NativeSD folder... Anyway.. good to know :D

I use a modified (NativeSD) ramdisk to boot the nand from sd by mounting the nand partitions in the init script instead of the ext4 partition ;)

Thanks guys,

I am glad you like it.. If there are more recoveries for similar devices like ours which we don't have, but we should have on our HD2.. let me know ;)
[HD2 Android SD Development] melando:
Agreed. I don't think Xylo actually confirmed this following my earlier post but

- using a further partition (linux swap) seems unwise when running Android from an ext4 partition

- you can use securecrt's zRAM swap (using compression, in RAM) by the 00_zRAM for his kernel - this improves my performance in PA2.0

Please experts shout if I have got this wrong :)
[HD2 Android SD Development] kwag:
THANKS!

I will try this out this afternoon! :)
[HD2 Android SD Development] Xylograph:
Thanks m8,

But isn't portadroid converting everything to images again ?
[HD2 Android SD Development] clio94:
With this way rom installs in real sd-ext partition or with sd old method?
[HD2 Android SD Development] melando:
Robbie can you use this to create a PA pre-port for native SD?

I thought portadroid needs WM to run, is that needed?
[HD2 Android SD Development] Robbie P:
It does create images on sd in ics folder. But your initrd.gz booted it. How can I check whether ext4 partition is being used?
[HD2 Android SD Development] clio94:
Ok it booted and the first feelling is that it is a lot faster in comparison with old sd method.I re-created my ext4 partition without a swap partition.Maybe the swap partition caused the no boot problem? Another issue is that it connects in my wifi network,it gives internet properly but no icon in status bar and if i go to wifi settings it says "obtaining ip address"

Keep up the great work.This is a new life for hd2.
[HD2 Android SD Development] jjblaster3:
how about CWM touch recovery or twrp modified in such a way to boot from sd just like the initial version of cwm found here when magldr didnt hav the AD REC function

problem is i dnt have ubuntu so couldnt even open the .img flashable files to knw where to begin with if its even possible
[HD2 Android SD Development] 2alive:
Run from WM 6.5 will be much appreciated please.
[HD2 Android SD Development] Spaqin:
I think comparing /data space with images should be enough, shouldn't it? It should show ext partition size, i.e. 1GB instead of image's 512MB. You can also check the partition content if you have Linux on your PC or something to browse ext partitions on Windows.
[HD2 Android SD Development] Xylograph:
Could it be that you've tried the NativeSD method first so the AOKP directory is still on your SD-EXT partition and tried portadroid after that..

The initrd.gz of the AOKP rom will boot the SD-EXT AOKP directory and if there are images on your sdcard made with portadroid .. they won't load with the initrd.gz of this method ;)

You can check contents on your sd-ext partition using recovery and mount the EXT partition.. after that you could browse it using QtADB on pc for example.

---------- Post added at 08:53 PM ---------- Previous post was at 08:49 PM ----------

Thanks for the tip m8.. I was already thinking of some sort of DAF.exe installer for haret/wp7 users.. will check it out
[HD2 Android SD Development] michael-jb:
Won't boot for me, just getting stuck at AOKP unicorn boot animation, tried a couple of times.

1st attempt was a 1GB ext4 partition, no swap, on a 4GB class 4 kingston card.

2nd attempt was a 512MB ext4 partition, no swap again, on a 2GB class 2 sandisk card.

I formatted the cards using CWM recovery, the partitions were placed at the end of the cards.

I see real promise in this project, sorry i couldn't be more help, best of luck :good:
[HD2 Android SD Development] Robbie P:
I have booted pc into ubuntu and see sd ext4 partition with lost+found folder in it only. I did not use recovery to partition, just ubuntu (couldn't get newest version of minitool to install in windows, my existing version did not have ext4 support).

Edit; it was a fresh install, 16gb card, 2gb ext4
[HD2 Android SD Development] Looki75:
I understood that CWM recovery is not compatible with NativeSD ROMs, right?

I mean, no way to backup/restore system (on sd-ext) and data (on sd-ext) independently, right?

Would it be possible for you guys:

* either to create a compatible recovery

* or create a script in a recovery-compatible zip that would offer backup/restore functions for NativeSD ROMs?

Thanks
[HD2 Android SD Development] Xylograph:
Thanks for the explanation, Ext4 partition must be mmcblk0p2 for this to work at the moment..

I suppose portadroid does something with the initrd.gz in that case.. if your EXT4 partition is empty you are missing the whole concept of this method ;)

Well that is not a priority, but maybe later.. for now just backup your ext partition or mount it in recovery and copy the contents of /ext/rom/data to your computer..
[HD2 Android SD Development] giovanne:
Sounds very interesting.

One question. What is most important for the SD card speed?

In this thread http://xdaforums.com/showthread.php?t=1150369 there was discussed the "Random read/write" as most important.

Because of that I have a Sandisk 32GB Class 4 ;)

In case of your new NativeSD - method what is most important for this?

I'm very interesting waiting for speed benchmarks for the different methods (NAND / NativeSD / different SD Card Classes / ...) ;)

Thank you all for supporting the HD2 and having all the time new ideas :p
[HD2 Android SD Development] Robbie P:
Thanks Xylograph, and sorry for raising hopes with this. It is definitely faster though.
[HD2 Android SD Development] HypoTurtle:
I was asking more in terms of the FAT32/SDcard partition as it may change from being the first to 3rd partition - but I don't know if android would detect the WP7 partition (I don't think it does, but can't confirm) thus the eventual sd card layout would be WP7(Unallocated)|||Fat32|||EXT4

But had a look and don't see the fat partition mounted from its mmcblock just vold (vold/179.1 mounted as /storage/sdcard0 and /mnt/secure/asec)
[HD2 Android SD Development] wis1152:
Flashed in recovery.selected native sd folder but no boot for me:(
[HD2 Android SD Development] melando:
Curious that it's faster

There must be a solution waiting to be found here e.g. a boot process that copies the contents of the root folder into sd-ext and then mounts system, data etc. folders there

Look forward to more developments :)
[HD2 Android SD Development] aion92:
I have micro sd newest class, better than class 10 which give me around 95 mb per seconds. Will there be some benefits for HD2 with card something like that? (microSDHC UHS-I Card, UHS Speed class number -1- but its way better class 10; SanDisk Extreme Pro 8 Gigs)
[HD2 Android SD Development] kaiserlein:
Going to try this as soon as there is clk support.

Hope I don't have to wait too long :D
[HD2 Android SD Development] onlinegames:
Hi Xylo,

I tried the SD versions of both 2.2.1.4 and 2.2.2.0 with similar "issues".

- Unpacked the "twrp2.2.1.4" and "twrp2.2.2.0" folders to the SD Card.

- In MAGLDR, set my bootfolder to each of them (in separate attempts)

- Boot from SD folder.

Results are the same - green hTC logo and boot loops.

Is there anything I should be doing differently or in addition to the above?
[HD2 Android SD Development] Xylograph:
Nope.. Works fine here when doing exactly the same steps..

Anyway, maybe you can try to change the folder name to recovery...
[HD2 Android SD Development] duhhh:
Same here, but on WM 6.5
[HD2 Android SD Development] Xylograph:
I've Downloaded the 'recovery_twrp2.2.2.0_leo_sd.zip' from my goo.im folder..

Unpacked the twrp2.2.2.0 folder to the root of my sdcard..

Went into Magldr 10.Service > 1.BootSettings > 3. AS SD Dir > Choose folder 'TWRP22~1.0' > 2. Boot AS SD > Into recovery without a problem..

Seriously.. I test and port all these recoveries using the SD Boot functionality rather than flashing it to my nand for testing purpose..

So am I the only one able to use these on SD ?

my phone bootinfo if it matters :

PB81100 HX-BC
SPL-2.08.HSPL 8G XE
0x05
CotullaHSPL 0x50

Using a cleaned up (formatted yesterday) 16gb class 4 sandisk sdcard with a 4gb EXT4 partition..

Not much more I can tell you...

EDIT: on a side note... what os are you guys using on NAND ? I suppose that could be the cause of it..
[HD2 Android SD Development] vicm:
TWRP 2.2.2.0 booted from SD without issues. Liked it and have it now intalled into NAND replacing CWM touch.
[HD2 Android SD Development] averestefd:
Whats the ramdisk?

Sent using xda app-developers app
[HD2 Android SD Development] makuu:
I got same problem, I use WP7 in nand.
[HD2 Android SD Development] Xylograph:
In that case... something other than android on nand is probably the cause of the not booting twrp recovery.. it's probably doing a nand check on boot..

Can you guys tell me what recovery does work for you ?

I'll see if I can rip out that nand check, but I can't promise anything..
[HD2 Android SD Development] seaman2k:
for me i use twrp 2.2.2.0 with clk 1.5.8 and working great without any problems and it is the best with file manager advantage on all other recoveries
[HD2 Android SD Development] spetrie:
Same for me using WM6.5, twrp2.2.2.0 recovery does not work, just reboots back into WM6.5., 4extrecovery works fine.

No MAGLDR or CLK installed, just using usual clcad and haret to boot from WM6.5 Not sure if this info helps.
[HD2 Android SD Development] zexmunze:
You must put on root sd card,not in folder,working fine with magldr

Edit:ah you are on wm,just try and report
[HD2 Android SD Development] NYLimited:
Nice! Installed 2.2.2.0 NAND without problems - seems to be working fine. Did not hang on boot so there's progress! .:)

Did one backup which looked okay but didn't have time to restore yet.

I could not find a change log for 2.2.1.4 so am not sure of the differences. You labeled them both for hd2.

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] spetrie:
It is installed on the root of my SD card. Quite happy with 4extrecovery, it is working from the root of my SD Card. Was just trying the other versions.
[HD2 Android SD Development] kwag:
OK!

Moved all bins to xbin and chmod all to +x.

I added a file to the init.d folder to auto start the nilfs_cleanerd, so now it start on boot. It's running in the background just fine.

I didn't tweak the .conf settings. I left it as default.

It's running very smooth.

So far, so good!

We'll see :)

Thanks
[HD2 Android SD Development] MarkAtHome:
I am using your TWRP 2.2.2 flashed to NAND, and all is as it should be. Good job, and thanks. ;)

____________________
[HD2 Android SD Development] ictimai:
Hey Guys, congratulations! Please keep trying, you do great job! To me NILFS is also perfect for os which functions 100% within SD card's space and never sees NAND! It's especially clear for those who want their data (e.g. contacts) safe wthin NativeSD.
[HD2 Android SD Development] kwag:
Exactly!

And I'll quote something here:

"Who cares about speed if the integrity of the data can not be guaranteed? btrfs & nilfs2 can checksum your data, ext4 can not. This makes ext4 a no go on any valuable data. Since all my data is valuable ext4 is not an option for me. (Yes, i'm a happy zfs user). "

Reference thread: http://www.osnews.com/comments/21742

As said, EXT4 does NOT checksum data. Only btrfs,nilfs2 and zfs do.

Quote

"NILFS: A File System to Make SSDs Scream"

....... "NILFS uses 32-bit checksums (CRC32) on data and metadata for integrity assurance"

http://www.linux-mag.com/id/7345/
[HD2 Android SD Development] onlinegames:
We already had 4EXTRecovery and CWM Touch Recovery ported by Xylo and it was working great for us SD users. He's now ported yet another one and is asking for more recoveries to port!!!

Xylo, if you continue to port recoveries at this rate, you might need to start a dedicated thread for it. ;)
[HD2 Android SD Development] NYLimited:
If not a thread he will surely have to quit his job (if he still has one) and need a 25 hour day... ^_^

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] Xylograph:
Consider them both at least as 'unofficial releases'

2.2.1.4 is the latest available version for the Nexus One

2.2.2.0 is the latest available version for the SuperSonic

I don't think there are many differences, but made them both available just in case one works better than the other..

I am living of the $5 dollar donation a month.. gives me plenty of time for developing, since I only have to visit the grocery store once a month... :D

Seriously, I am fine ;)
[HD2 Android SD Development] babyvox550:
How abt an idea of transform nand into swap.

If it is workable, pls help to give the modified script.
[HD2 Android SD Development] Xylograph:
No need to quote the first post m8.. it's messy..

Anyway I want to give my thoughts about all these great ideas like nilfs2,swap on nand, dalvic-cache on nand..

I even had the idea to make a dual nand boot using the ext4 as data (a bit like phoenix method) and using nand /system partition for system1, using nand /data partition as system2 and using cache partition as backup data partition when sdcard is not found...

All this is great stuff, but not usable nor user friendy for people with for example a different os other than android on nand and also very confusing for 'the regular user'

I think we should keep NativeSD as is.. which is os independend and usable for every hd2 user..

I am still working on the user-friendly part (which is progressing) and maybe I'll even consider making a 'miffy tutorial' for the NativeSD and Dual Install method.. though it would be great if someone could take over that part, since it's very time consuming which I rather spend on something else..

So if anyone likes all of our work and would like to give something back in return.. Such a step-by-step tutorial with pictures would be great :)
[HD2 Android SD Development] babyvox550:
We could just add NAND mount script, such as MTDblock3 as swap partition in intrid.gz. And add swapon script in etc/intrid/

would it work?
[HD2 Android SD Development] securecrt:
you cant format mtd as swapdisk
[HD2 Android SD Development] HypoTurtle:
Was intending on doing the same with init.d; gave up pretty quickly adding it to the ramdisk (think that's a bit overkill). Can you upload your script, just to see if it's similar to what I have here. That and removing the e2fsck (we don't/shouldn't be using this with nilfs2; correct?) from the init and I think we're done.
[HD2 Android SD Development] g.andy:
When i clk 1.5.0.5 with touch recovery, a rom in nand and one in sboot. What steps i take to get TWRP 2.2.2.0. on my nand without losing my 2 roms?

Thanks

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] babyvox550:
I was trying to modify intrid.rc

But after reboot it kept unchanged.

Why?
[HD2 Android SD Development] seaman2k:
nothing just install twrp 2.2.2.0 nand from your recovery and reboot
[HD2 Android SD Development] Magic2010:
@ Xylo

The 4Ext recovery in your nand folder is also recovery flashable?

Yesterday I tryed to flash it and it gave me an error.

Anyone else tryed to flash this one?

Running TWRP 2.2.2 now without any problems.
[HD2 Android SD Development] securecrt:
you should extract it from initrd.gz

and after making some modification repack it .
[HD2 Android SD Development] Xylograph:
Yes m8, it's also flashable...

Keep in mind though that you will need a bigger recovery partition for it which is probably the reason why you get that error .

Use at least a 7mb recovery partition (default = 5mb I think) on nand when using 4EXT ;)
[HD2 Android SD Development] Magic2010:
That should be the problem...I didn´t change the system partitions size.

Thanks m8 ;)
[HD2 Android SD Development] g.andy:
Thank you very much.

I simply would you explain wath difference between 4ext recovery and TWRP 2.2.2.0?

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] zexmunze:
With flashebles zip always error,but i finaly manage to loaded 4ext recovery on magldr as option 8.ad recovery. :D
[HD2 Android SD Development] denseye:
Hello,

Just wanted to let you know i did a full backup/restore with twrp 2.2.2.0 installed in nand.

Restore seemed to be ok, but phone didnt boot (boot kernel init nand failed or something like that). So i tried reinstalling my rom from twrp... Had an error.

So i reinstalled my rom from 4ext-sd and that was finally ok

Envoyé depuis mon HTC HD2 avec Tapatalk
[HD2 Android SD Development] makuu:
Hello, I'm using the I downloaded here:

http://goo.im/devs/Xylograph/Various/Recoveries/SD/recovery_4EXT2.2.7_leo_sd.zip

it works fine.
[HD2 Android SD Development] Xylograph:
Thanks for the report and I am looking into it !

I suppose you are talking about Magldr..Could a cLK user please test the backup/restore feature of the boot partition ?

Thanks
[HD2 Android SD Development] JeremyGuan:
Do you mean Primary and then Secondary?:confused:
[HD2 Android SD Development] Xylograph:
1. Primary Fat32 partition and 2. Primary EXT4 partition

Both partitions need to be primary and not logical...

If you don't understand that it's probably better to format your sdcard with 4EXT recovery which will take care of that. ;)