yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] babyvox550:
http://www.computeres.net/access-memory/a-swap-system-on-nand-flash-with-compressed-cache.html

A Swap System on NAND Flash with Compressed Cache

I think this is good idea.
[HD2 Android SD Development] denseye:
yes, Magldr

it would be interesting if someone else could confirm that problem ... maybe it was my fault ; it was the first time I used backup/restore functionnality of TWRP :D
[HD2 Android SD Development] Xylograph:
No not your fault..I have confirmed it not working and I found the reason why...

It's not mounting the /boot partition as /yaffs2 (magldr) so I think cLK users won't face this issue.. I would like to have that confirmed though.

Anyway I am working on it..

Also.. I would like hd2 users without android on nand to test twrp_nodroid.zip

unpack to the root of your sdcard and boot it the usual way.

I've taken out the complete mounting of nand partitions except the sdcard and ext partition... I am curious if it will boot for wp7, wm6.5 users...

Please report.
[HD2 Android SD Development] clio94:
I tried in clk 1.5.0.8.I have in nand tytung v2.7.I made a compressed backup,then i wipe partitions and i made a restore.It booted ok

i like the compress feature that this recovery has,because backup takes almost half size of the real size of partitions.
[HD2 Android SD Development] jkalford:
Windows Mobile user here.

I installed PA 2.0 three days ago using the 1st page instructions using 4ext recovery and it's running great! Thank-you.

I just tried the twrp you posted and after clicking on haret I got about 5 seconds of htc logo in green on black, then 2 seconds of black screen, then it reboots. I tried 3 times, same thing.

Thanks again,

Looking forward to testing the next one.

:)
[HD2 Android SD Development] poyensa:
Yep, confirmed behaviour here WM too
[HD2 Android SD Development] staneb:
WM user. I tried your recovery and it shows the green HTC logo for about 5 seconds, than the screen goes black and the phone reboots. Tried 2 times
[HD2 Android SD Development] ShadowXPde:
Feedback:

Really good work!! After some problems with speed I ordered the Sandisk microSDHC UHS-I 16 GB especially for android. With the power of Ext4 it is now really fast, faster than nand.

It is really important that you have a good sd card for nice result.
[HD2 Android SD Development] ioy:
I've done the same and I must confirm this! The bottleneck is not sd->device interface (as some people suggested here) but multiple simultaneous i/o operations with small portions of data. In such a situation the real transfer rate drops dramatically and far below that "model" one of any marketing-like tech specifications printed on SD wrapping. It is just then the matter of SD card quality how it starts behaving at this moment of truth. ;)

However I must confirm after putting class 10 card into the phone all NativeSD ROMs have just minute delays on the same level as NAND versions do, indeed there is no felt difference between NAND and SD class10 thou...
[HD2 Android SD Development] timmymarsh:
Anyone having problems with wifi, is it possible nativesd install is causing problems with connecting to wifi - keeps looping on authentication and doesnt connect.

Ive tried several JB roms which have the same problem, ICS rom is fine???
[HD2 Android SD Development] ric69:
After 1 week with this tweak, I agree with all opinion about good sdcard. With mine : 8go class6, after boot it's very slow, more slow than in nand (eg to open contact in nand, it's 5s and 10s in native) but after 10min when I opened all what I want, it's really better than nand version (eg 1/2s to open contact instead of 3/4 in nand) so I think sdcard must be heated before giving all it has :D and after 2/3 days without boots, it's really responsive so thanks a lot for all your work i keep it :good:
[HD2 Android SD Development] ad2003:
5secs? How many contacts do you have? In my nativesd jellybean it takes about 1sec... class4 sandisk.
[HD2 Android SD Development] g.andy:
I with the last aokp nativesd not have any problem with wifi

Inviato dal mio HTC HD2 con Tapatalk 2

---------- Post added at 08:33 PM ---------- Previous post was at 08:29 PM ----------

Up

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] NYLimited:
I can't recall the last time I ran something that was an "official" release! ;)

Good, I have an HD2 so it should blow up! :laugh:

Ha! I thought you would go to the store 5 times a month!
[HD2 Android SD Development] Mithrandix:
I am about to buy a new SD card since my last SD was only a Class 4. Anyone that could tell me what the best SD card is when using your SD card as internal memory?

Thanks in advance
[HD2 Android SD Development] spetrie:
Same here. WM 6.5 nand
[HD2 Android SD Development] Szczepanik:
http://xdaforums.com/showthread.php?t=1150369

Cheers

Tom
[HD2 Android SD Development] ad2003:
---> me <-- stupid

Hi -

just wanted to install twrp 2.2.2.0 to nand.

I bootet into sdext4 Recovery and tried to flash the twrp 2.2.2.0 zip - got an error, and now I can't even boot into AD Recovery...

Do I get this right: I can install twrp 2.2.2.0 instead of using the normal recovery? I am using sdext4 from SD...

any idea? Sorry.... AD

EDIT: --- ok solved it...

I know most of this Topic readers won't have this prob - but for those like me:

used daf.exe to flash official clockwork mod and changed flash.cfg to "boot yboot|ro 7M" --> flashed --> then in recovery I flashed twrp v 2.2.2.0 :)
[HD2 Android SD Development] denseye:
I think your recovery partition is too small. You have to resize it from DAF to 5M
[HD2 Android SD Development] makuu:
It doesn't boot for me with WP7.
[HD2 Android SD Development] ad2003:
Hi Xylo - I just made a fresh install of the whole system and booted directly from sd into twrp - installed cyanogenmod 9 native sd - works so far!

AD
[HD2 Android SD Development] idos601:
How many ext4 size is enough to run nativesd ?

Thx.
[HD2 Android SD Development] ad2003:
hi - depends on how many ROMs you gonna install. I have 4gb- but 1gb is also ok - or even smaller sizes.

AD
[HD2 Android SD Development] Szczepanik:
Gparted Windows Virtual PC USB?

Thanks. I have Gparted running at last (in failsafe mode after a lot of trial and error) as a Windows Virtual PC on my Windows 7 64bit pro but it does not see any USB drives. Any tricks to get the Integration Features working so it will show SDHC or USB drive?

Cheers

Tom
[HD2 Android SD Development] ictimai:
So, the more it's not that important whether Ext4 is a bit faster than NILFS as NILFS is way more stable, safer for data and for high quality expensive SD card lifes!
[HD2 Android SD Development] ad2003:
Hi!

Is it possible to flash different kernels or updates for a specific native rom from recovery?

thx,

AD
[HD2 Android SD Development] securecrt:
yes this is by design. need the rom devs to change the update scripts a few lines.
[HD2 Android SD Development] NYLimited:
Just to let you know, it is correct - the boot partition is NOT restored by v2.2.2.0

It looks real pretty and seems to do what it is supposed to but no boot ..

On another thought, I have 2 quick questions for you:

Do you know if it is possible to restore backups created with CWM Recovery v5.5.0.4 or v5.0.2.7? I realize the file names are different (TWRP adds the .win in the names) but I was wondering if the files could be used at all. It'd be really nice if older backups could be restored with TWRP..

Why does TWRP create a directory by the name of "00000000" under backup? Seems to that "/twrp/backup/backup_name" would be simpler and quicker to navigate to, no? No big deal, but I figured I'd ask.. :)
[HD2 Android SD Development] Xylograph:
You are better of with downloading the live cd.. burn the .iso to cd and boot from cd... you don't have to worry about virtual drivers and stuff that way and works great !

1. I have yet to experiment with renaming old backups, but I suppose it won't work.. as a workaround one could use a cwm recovery from sd (I made these available) to recover their 'old' backups and either use that or backup the nand with twrp again if you would like them 'converted'

2. I don't know why it creates that folder, but it seems by design, since older 'official' hd2 releases do exactly the same..
[HD2 Android SD Development] adell_:
Which SD class is the limitation of improving performance? Class 4 or 6 or 10?
[HD2 Android SD Development] poyensa:
Discussion about SD has been linked just previous page. Please use search function and keep on topic. Thanks!
[HD2 Android SD Development] adell_:
Thanks. I saw the discussions but no conclusion yet. It would be nice if somebody could benchmark a NativeSD ROM with SD card class 4, 6, and 10.
[HD2 Android SD Development] anhnq:
any one help me port one rom sense to nativeSD ? please
[HD2 Android SD Development] AlexDOS:
How to change kernel in NativeSD port after installing it in ext4?
[HD2 Android SD Development] FCORivers:
My native language is Spanish so I've been having a hard time understanding how this nativesd roms works, specially the ext4 recovery part.

Don't get me wrong, I have managed to install some roms with it and started (again) from scratch due to this recovery managing to destroy all partitions on my sdcard obviously deleting all info on it while doing a backup and thought it was my fault. After using it for a couple of days and it behaving right I want to try other roms on nand while having sdroms. And this brought some Q's.

How do I change partitions on magloader? When I run daf of ext4recovery it automatically partitions to 200/5 and I cannot change it on hd2toolkit cause it will install the recovery it includes and I don't know what and where to change from ext4recovery nand file to hd2 toolkit files. This doesn't allow me to install big roms like miuijb or sense on nand. I like to try many roms =-}

How do I install a native SD rom on the second ext4 partition specifically? I know the recovery recognize it and backs it up when doing a full or advance backup.

Maybe this are answered before but this thread has gotten big fast.

Just point me out in the right direction, I cannot search the thread cause I check the forum and do most stuff directly from the best phone on earth, my htc hd2.

Thanks in advance.

Tmous device with magloader 1.13, you get the rest...
[HD2 Android SD Development] borsuk23:
I have tested my two installed roms, using AnTuTu benchmark.

Results attached below.

1. NexusHD2 ICS v2.6 NAND

2. ParanoidAndroid JellyBean nativeSD

It would be the best when compare to the same roms... anyway score is pretty much the same.

Only the RAM score is lower in NativeSD test.

edit: // I forgot to say that I am using class 10, 8gb sdcard

PS. Sorry for possible language mistakes.
[HD2 Android SD Development] clio94:
The low ram benchmark is not due to native sd method but any jb rom for some reason has lower score compared to ics.
[HD2 Android SD Development] ad2003:
Instead of flashing the market dpi mod or kernel through recovery I just used droidexplorer - worked great!
[HD2 Android SD Development] jjblaster3:
have tried the nodroid version as well and it doesnt work (wp7 on nand)

the one im using is twrp v1.1.0 because of button issue(call button not working, recovery uses power button to select), but i remember the non-touch versions of cwm and 4ext had also booted..

I think it is restricted to only touch versions of recoveries (according to my tests) that do not boot
[HD2 Android SD Development] adell_:
Thanks. Between NAND and NativeSD, which one do you feel running faster/smoother?
[HD2 Android SD Development] bojanbl:
Hi I want to thank you for your work here ;) But is there any option that you could make this app (for us CLK users) to flash sboot partition after we select NativeSD rom? Maybe to copy initrd.gz and zimage from rom folder to NativeSD folder and than run flash_sboot.zip? I don't know if it is already implemented, so sorry if it is so :) I didn't have time to try this option yet ;)
[HD2 Android SD Development] Xylograph:
And another one for the 'NativeSD ROM' collectors !!

This is a ROM I think you guys should give a try !

And since NativeSD users actually do not have an excuse now like.. will have to nand backup first blah blah.. GO GO GO :laugh:
[HD2 Android SD Development] ghynee81:
hai Xylograph what agreat job dude :good:, btw i'm wp7 in nand, i've install that twrp_nodroid.zip but it wont boot, only at htc green logo then it restart again, sory for my english, thax for your hard work :o
[HD2 Android SD Development] jjpdijkstra:
room for improvement

1: stock 7mb recovery cache would be nice, It has been a struggle for hours with that nasty error.

2: I have a class 10 micro sd, supposedly 18/17mbps read/write. But the cm9light I installed is laggy.

Is it me or is native SD not yet perfect?

(I have installed CLK (latest) with EXT4 2.2.7. and 768mb EXT4 at the right place on the card)
[HD2 Android SD Development] ictimai:
So, how are your ROMs with NILFS doing so far? Is it too much to humbly request you to share your zip installation files with us? ;)

One notion: would it be possible to somehow switch off the snapshotting at all? Perhaps it'd be the smiplest and the most elegant remedy (as the simplicity itself always used to be)...
[HD2 Android SD Development] kwag:
WONDEFUL! :D and running fantastic!

Yes, but I havent tweaked those settings yet. I'm running with the .conf file as received.

I haven't created any zip installations or scripts (yet!)

The only thing I added to my /etc directory was that I created a file called "04nilfs" under "system/etc/init.d" with these lines:

#!/system/bin/sh

/system/xbin/nilfs_cleanerd

Then "chmod +x" all the binary files that HypoTurtle posted and that I put under "system/xbin". (Thanks again, HypoTurtle! :) )

Rebooted, and that's all!

The file "nilfs_cleanerd" is clearly running in the background, and memory seems to be stable, and phone is pretty responsive ( But never as a GB build! )

I'm currently trying "[15-09-2012][ROM][GB][2.3.8] CyanMobileX Leo v1.0 [NativeSD][A2SD][WIP][tytung_r14]" just becasue it's a GB build, and it FLIES!

Would LOVE to see that build running with nilfs2 :D

Anyway, I think NativeSD is here to stay, and we only need to add nilfs2 "mount" support in the recovery utilities so that nilfs2 partition will be seen, and then it's going to be another different ballgame ;)
[HD2 Android SD Development] giovanne:
maybe the "random read/write" for the sd card is nevertheless important :laugh:, especially for fast read / write access on short data to read or save.

my sandisk class 4 - 32GB is therefore working well.

maybe a class 10 card with good random read/write will be an improvement for me. I will try it - if I have such a crad ;)
[HD2 Android SD Development] borsuk23:
As mentioned JellyBean rom is a little bit slower according to IceCream, but in my case first feeling was, that it is stable.

My HD2 has Bad Blocks and with rom on NAND it was rebooting very often. Now I use it with pleasure.

So, to summarize, it is hard to see any differenece in speed. In two words Great job!
[HD2 Android SD Development] Szczepanik:
Updating NativeSD ROM

Just an advice that updating a NativeSD ROM was very easy (using WM6.5). The [NIGHTLY] CyanogenMod 9 [tytung HWA R3.4] [SD/MAG/NativeSD] was released as NativeSD with Update 08/09/2012 thanks to wis1152 of the Learning Never Ends team. I updated from NativeSD 10/09/2012 to 13/09/201212. It was effortless - particulary using the WM mortscripts I wrote to run Recovery and NativeSD!

Download NativeSD PORT

Run Recovery to Flash zip file and reboot

Run NativeSD

After Android upgraded all the apps, my apps, data, icons & settings etc were there intact! I am sure I could use the same process to flash back to the previous version using Recovery. The ROM had the same Native SD name c1cl0n.

Producing NIGHTLY CyanogenMod 9 NativeSD is a tremendous effort by c1cl0n and he deserves the Recognised Contributor status I nominated him for and having his thanks button pressed!

Cheers

Tom
[HD2 Android SD Development] ictimai:
Perhaps you've forgotten to mention about the install.sh and ramdisk (to copy to /kernel/bootsd/), haven't you?

The kernel already has NILFS support compiled in, hasn't it?

Without modified ramdisk the system probably won't boot, will it?

Does this modified installer its job when run from recovery without NILS support?

Please,

clarify all what is needed

, e.g. the minimum with the assumption one has already formatted NILFS partition using linux pc and copied (cp -a) previous installation of PA from (previous) Ext4 partition (and also putted the alterred ramdisk into fat32 partition NativeSD folder and then flashed it with flash_sbootv2.zip into sboot) ...

However what about this ClockworkMod Recovery 5.0.2.6 recovery, have you tried it? Have you cLK? So, maybe is it good idea to put it's SD version to tboot and the newest twrp2.2.2.0 into NAND-boot?
[HD2 Android SD Development] kwag:
I didn't do that script.

I just copied + pasted several lines and executed them from terminal mode. It just mounts the nilfs filesystem and creates several directories.

I used Linux on my PC to format the partitions to nilfs2.

Put microSD card on a reader, run "Gnome Disk Utility", and create a FAT partition and a nilfs partitions.

Yes, for a very long time, as I requested it to Tytung about 2 years ago!

No it won't That's why I used the one posted

Nope. Recovery utilities apparently don't have nilfs suport compiled in. That's the only thing they need to add :)

I haven't run cLK for a very long time, because of dropped data connections. I went back to MagLDR because of that.

Easy steps to install (for the time being):

Have 2 SD cards on hand.

Do the install of your NativeSD ROM on one (cheap) SD card on the phone, and format the other (expensive, fast) card to fat and nilfs.

Once installed, pull the microSD card and put it on an external card reader.

Mount it on Linux, copy both fat and ext4 partitions to two folders on your hard drive.

Unmount card and insert your new high speed card on the reader.

Copy (rsync best) your ext4 folder partition contents on your hard drive (the one you just copied from the installed SD) to the nilfs2 partition and your fat folder contents to your fat partition on your card.

Copy the nilfs binaries to system/xbin and change to executable on the mounted nilfs SD partition

Copy the .conf to the etc folder on the mounted nilfs partition.

Copy the init.rd to NativeSD folder on the mounted FAT partition.

I think that's the easiest way for now.

To recap: You're basically performing a regular EXT4 NativeSD installation and then you copy all contents to a fat/nilfs2 SD card.

Until this process is automated, that would be the best aproach. At least my aproach!

Note: Just get a cheap small SD card for the initial EXT4 installation, and use the expensive larger and faster card for the nilfs you're going to run the system.
[HD2 Android SD Development] ictimai:
class4+NILFS = class10+Ext4

This is exactly what I've just done, only with the exception the cheaper class4 card used for NILS (for the caution).

The result is amazing: the PA runs on a cheap Kingston class4 way faster than it used to when Ext4 partition was there! It runs almost as fast as NAND version, just a litle bit slower.

Someone here asked about benchamarks, now I can confirm: NativeSD on NILFS runs way faster than on Ext4!

The felt speed: class4+NILFS = class10+Ext4 definitely!

So Guys, there is well founded need of developing NILFS on NativeSD even further!

One question, how to modify the initrd, now I want to have BareBoneCM7 NativeSD on NILFS too...
[HD2 Android SD Development] kwag:
+1 to that! :)

Not 100% sure, but I think you only have to modify the init file you see inside the initrd gzipped file.

Compare the init you have to the init supplied for the nilfs, and there you'll see the differences.

I want nilfs on CyanMobileX Leo v1.0, which is a piece of work! http://xdaforums.com/showthread.php?t=1888633
[HD2 Android SD Development] hutc:
thank you very much xylo

i had a question if we had a prexisting sd ext4 partition for data usage for the nand android rom and then if we use the native sd implementation for another android rom, do we have to sacrifice the ext4 data partition (for nand data) on the sd card.or can we make the sdext4 data for nand roms to be ext3 and still implement the native sd installation with 3 different partitions on sd card(does sd card support three partitions).please let me know xylo

plan to but new microsd with uhs 45 mb/sec write for 20 dollars on amazon and use your native sd implementation,

plan to use sense roms on native sd and tytungs or your rom on the nand so i have 2 roms one for regular usage and another for back up emergency.

thank you very much xylo and others for this project, this has made my hd2 alive again.
[HD2 Android SD Development] idos601:
How to create nilfs ?

Thx.
[HD2 Android SD Development] netchamp.faris:
how do i convert this ROM into NativeSD? or can somebody do it for me ?

And What is NILFS ?
[HD2 Android SD Development] kwag:
Format your partitions with "Gnome Disk Utility".

It's in most Linux package distros.

Here's some great specifications and features: http://www.nilfs.org/papers/lcj2011-nilfs.pdf

---------- Post added at 04:48 AM ---------- Previous post was at 04:47 AM ----------

http://www.nilfs.org/en/about_nilfs.html
[HD2 Android SD Development] poyensa:
Hi all, please try to keep this thread development focused. Many questions are already answered and can be easily found just reading a few pages back and/or using search function. If you cannot find it also can post in General - Q&A sections. Thanks in advance for your collaboration to keep this thread on topic.
[HD2 Android SD Development] HypoTurtle:
First, lets keep the nilfs2 posts out of this thread; I'll start a thread in Q&A tomorrow. Second, I don't think I'd be using NILFS2 if I had to do all that to install, CWM has had nilfs2 support for a while and I've been installing using CWM touch 8; you just need to replace the install.sh file with the ones I've posted (and reattached), (found either in the first folder of the zip or in /kernel/ of the NativeSD ROM installation zip.) and replace the initrd.gz in /kernel/bootsd/. During install via CWM just select install to sd-ext, (haven't got round to changing it so it displays nilfs2 instead of ext4 yet)

Snapshotting can't be turned off (its an integral part of the fs), but editing the .conf file so that snapshots are continuosly cleaned (min_clean_segments 0) should work.

Also reattached the nilfs.zip folder containing the bins and conf that I posted earlier
[HD2 Android SD Development] 433Mhz:
Woah, great job guys! I think, I'll keep my HD2 a little bit longer because of this.

The Nightly CM9 Rom is the fastest Android 4.X Rom so far imho and I have tried out all other NAND Roms before.

Btw, can someone please post a detailed guide on how to dual Roms? There would be no downside to running WP7 along with Android anymore!
[HD2 Android SD Development] Xylograph:
A very complicated story you have there m8,

Let's put it this way..

When using Nativesd it will create a folder with the name of the ROM on the root directory of your EXT partition and in that folder all the ROM related stuff is installed..

When using any kind of a2sd script it will create different folders (app, data etc.) on the root of your EXT partition..

That said.. You can combine the 2 without running into trouble, since NativeSD is using it's own folder on your EXT partition and will leave the rest of your root folders untouched..