yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] denseye:
hello

I would like to learn how to port a NAND Rom to NativeSD.

could someone explain me the step by step ?

I've read the third post "how to convert the NAND ROM to NativeSD ROM" but I'm not sure to understand everything :

1. extract the zip of the original ROM

2. modify initrd.gz to change the init script to mount the ext4 partition --> wich file within initrd.gz ??? init.rc ???

3. modify updater-script with code in post 3

4. modify install.sh

is it OK ?

so I do not need to convert NAND to SD first ?...

how do I modify init.rc ?...

thanks for your help ... just want to learn ;)

PS : I've dsixda kitchen installed
[HD2 Android SD Development] Xylograph:
Datagr, Could you have a look at the 'delete ROM' functionality by making some kind of additional verification and show users the output..

For example on my NAND I have CyanMobileX rom with mount sd-ext option disabled.. so the sd-ext partition is not accessible from within the ROM.

Using your great app says the ROM is deleted fine, but it only actually removed the folder from the sdcard and obviously the ROM is still there on SD-EXT ;)

Using the recovery (folder) inside the NativeSD folder could bring this functionality though it's not recommended, since some recoveries (which is like an OS itself) are very sensible for being 'overwritten' while flashing stuff..

Things might get corrupt doing so.. I've experienced this myself..
[HD2 Android SD Development] securecrt:
keep the recovery outside of the NativeSD dir is safe.
[HD2 Android SD Development] SalviaLover:
Do you think this would work with a class 6 microSDHC card? Currently using the nand version of NexusHD2 with an int2sd init script and an acceptable performance. My test showed that write speed is on the SD card is higher than nand. On the other hand reading from NAND was 3 times faster. Could anyone please have a look at the results and advise if it is worth to do an upgrade? Would this work with cLK or is it just Magldr?

P.S. The int2sd script swapped /data and /sd-ext hence Nand test was on /sd-ext. The test with a bigger file (60 MB) got similar results on the SD card, but I had no available memory to test on Nand.
[HD2 Android SD Development] Xylograph:
Why don't you just try it out yourself.. let's be honest.. what do you have to loose ??

Make a backup of your EXT partition if you really don't trust it...

btw. a2sd scripts are soooooooooooo 2011 :D
[HD2 Android SD Development] mengfei:
hi guys, i made This

then i'm getting this error afterwards but all is working fine & sorry i know nothing about workings of android/ linux :eek:
[HD2 Android SD Development] Xylograph:
It's because WP7 is using that 2nd (non EXT3 or EXT4) partition and 4EXT recovery doesn't recognise that FS..
[HD2 Android SD Development] cameleon39:
Good day everybody!

Thanks Xylo for this awesome job, realy it's amazing to use this new concept NATIVESD:good:

I just did an update from the PA 1.992 to PA 2.13 and I notice a strange behavior, I can't switch from Phone mode to other one, It seems locked on Phone mode. Perhaps, it's related to SU!:rolleyes:

Any help??
[HD2 Android SD Development] datagr:
Easy! :)

It will be ready tonight v6.1 :)

To make sure that I understood correct :

App will check if rom exists in sd-ext4 partition.

If rom exists then

go for delete function

else

do nothing.(show some message)

Correct? :)
[HD2 Android SD Development] Xylograph:
Yeah, that will do ;)
[HD2 Android SD Development] datagr:
Here you go. :)

P.S. I accidentally typed v6.1 but I meant v5.1 :P
[HD2 Android SD Development] romavdv:
Прозьба

Guys please tell me for more info. How to convert a ROM NAND NativeSD ROM?
[HD2 Android SD Development] mengfei:
thank you sir for your reply :highfive:
[HD2 Android SD Development] mootmetal:
after choosing cyanx rom i click reboot but the phone boot again to nand ...any idea
[HD2 Android SD Development] franciscofranco:
Hey all. I saw this on the News Portal. I don't have this device or anything, but since it seems like a nice project I'd like to give some contribute.

When formatting the sdcard partition to ext4 theres a way to get some extra juice out of it:

mkfs.ext4 -i 4096 -b 4096 parition_name

-i is the inodes size. By default is 1024.

-b is the block size. By default is 1024.

Back in the days when I messed with a device with installations on the sdcard I managed to juice out roughly +1k IO score on benchmarks only using this command.

Another thing, don't mount with barrier=0, the chance of corrupting everything with that on 0 is huge. You also don't need to mount with noatime and nodiratime, noatime alone is enough, it has nodiratime incorporated. Also mount /data and /cache with noauto_da_alloc, it gives some extra boost as well.

I hope this is useful, good luck with your endeavours.
[HD2 Android SD Development] MTN_HD2:
great job but isn't this what the magldr team already working on ? (according to Cotulla's tweets)
[HD2 Android SD Development] Xylograph:
Yep and I've heard the download is available on saturday 20:00 EST

Wait, what are you implying with that ?

Btw, thanks to everyone for bringing this on the news page ! :D
[HD2 Android SD Development] timmymarsh:
Yh, congrats guy!!! :cool:
[HD2 Android SD Development] NYLimited:
That is not correct, Sir.

Rick specifically said "LST" not "EST". You are mixing up time zones (and planets!) :D

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] ayyu3m:
this is kick ass awesome. congrats to the the team. a great win in the history of hd2 again. why htc decided to discontinue support to its greatest invention (hd2) is something i wud never know.
[HD2 Android SD Development] HypoTurtle:
Not sure if you want/need it but have modified the installer so that you can use a second ext partition

Have the first sd-ext set to mount ext4 as normal, (might need a tidy in terms of file names, but should be straight forward to follow).and the second one should automatically mount any supported partition type.

Was trying to get this done last night, but it wouldn't run properly for some reason; found the problem a couple hours ago was one of the first things I'd changed. Well live and learn I suppose.

Attached is two zips, only (major) difference being the initrd included. One for mmcblk0p3 as ext4 and one for that other filetype.

I'd guess this may be of benefit of the people who wanted to test a new build (I think someone(s) were asking for PA-test or something), install to second ext4, test then install over the one on the first ext partition.

Edit. wasn't quite right

Edit. added some tidier versions (think I changed all the right places but not tested)

Edit. not to many takers it seems, anyway have posted slightly revised versions over here
[HD2 Android SD Development] thepgo:
Hey, just seen you on portal. Great things you do here, I almost started regretting buying desire s instead of hd2 ;)

I just wanted to say that, if you're looking for a good sd card in resonable price(at least it was rather low-mid price in class10 sector here in PL), try Sandisk mobile ultra (red+grey coloured one). Have 8gb one, and this beast can get transfers up to 15/50 r/w... with cluttered fs and long without format, it's still about 10/40 in bench. Have it for a good while and it worked perfect in any device i put it in.

Just leaving a hint in case someone wanted a recommendation :)
[HD2 Android SD Development] Xylograph:
Sure, bring it on m8 !

Haven't had the time to look into it myself so all the help is welcome if you ask me ;)
[HD2 Android SD Development] datagr:
nand?

So you didn't set the mgldr to boot from nativeSD folder.

Search on topic. There is a guide for the mgldr setup to be able to boot from nativeSD. :)
[HD2 Android SD Development] g.andy:
And for clk? It is possibile choose the nativesd and reboot into this rom?

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] MarkAtHome:
Any progress on this? Sorry, Xylograph, you know that I have to ask. ;)

____________________
[HD2 Android SD Development] clio94:
It is possible if you have the latest clk version from kokotas http://xdaforums.com/showpost.php?p=31789393&postcount=1312
[HD2 Android SD Development] Xylograph:
I hope to do something about it this week.. no promises though.. ny_limited also put a Strike through my name in his signature which is somehow disturbing... ;)
[HD2 Android SD Development] HypoTurtle:
Had some last minute checks and tidies (and make a ext4 mmcblk0p3 initrd), have attached changes to the previous post
[HD2 Android SD Development] g.andy:
I have clk 1.5.1.0, it is impossible with this version?

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] clio94:
Go settings--->set default kernel and choose sboot
[HD2 Android SD Development] denseye:
nobody ? :crying:
[HD2 Android SD Development] NYLimited:
Okay, Okay.. Is this better? ;-]

Seriously, is "Xylograph" on your drivers license and birth certificate? Your parents must have been at Woodstock! :D

Hey, I do too many backups and restores. I had to go back since I was too lazy to manually restore boot. Besides, I didn't think anyone looks at signatures any more...

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] g.andy:
Ok, I have already done this, I was referring to the application nativesd multiboot. I installed the latest version, but even if I choose the rom in tboot, after the reboot, always starts in the sboot (my default kernel)

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] mootmetal:
after flashing the rom i have to set AD SD DIR to nativesd ...well when i click on sd sd dir it goes back to magldr menu and i dont access the sd card ...but since the ad sd dir is set to Recovery ( from the step befor) i copied all files in nativesd to recovery folder ...but when i reboot and choose boot from sd i get a kernel error
[HD2 Android SD Development] xman323:
Although i'm not a desire HD owner

i salute the amount of development and effort which were made here in particular and in Desire HD forums in general

we - SGS2 users envy you

Good luck securecrt & Xylograph with all your future projects
[HD2 Android SD Development] Zirus69:
Back to the future

nearly 1 month ago I changed my HD2 (EU) to an SGSIII (was a hard choice between the HOX and the GSGIII) because I tought its time to move on ....with bigger Ram space and faster speed ......... but if I read this thread I really want to get back my lovely HD2 .... because nothing is that flexible like the HD2.

Do you think this way it should be possible to port a working HOX build (or any other new-sense Build) to the HD2?
[HD2 Android SD Development] naser6355:
Hi guys,

i tried this method from yesternight and i have some little problems.

in some apps and games i saw the error message "xxx is not responding,would you like to close it? wait or ok"

i saw this message on angry birds space, google maps and so on.and i am using NexusHD2 2.7 SD-Ext version.

i have 4G EXT4 on my joyflash class 10 8G memory card,

any suggestions? thanks
[HD2 Android SD Development] taxi81:
Hallo all.I have little problem with switching rom.I have ICS on nand and PA and AOKP on ext4.All rom from Xylo.I install swich apk from this threde and it don't work.Nevermind wich rom are work,always after reboot start rom from nand.Can someone tell me what I must do to swiching rom?Must install somthing?Sorry for my english-I'm from Poland and my english isn't good :)

Wysłane z mojego HTC HD2 za pomocą Tapatalk 2
[HD2 Android SD Development] Xylograph:
You should set your bootloader to boot from SD otherwise it will always boot from nand..

Datagr app is not some magical bootloader manipulator...
[HD2 Android SD Development] taxi81:
I do this but how can swich beetwen two rom on sd?

Wysłane z mojego HTC HD2 za pomocą Tapatalk 2
[HD2 Android SD Development] borsuk23:
Hi, You must hold on Power button as long as you don't see Magaldr Menu. When it shows, choose AD SD - Android from SD

The same in Polish

// A teraz powiem ci po polsku

Trzymaj czerwony przycisk słuchawki tak długo aż pojawi się Magaldr Menu, a potem wybierz AD SD i powinien wystartować.

Pozdro!
[HD2 Android SD Development] taxi81:
How start from sd or nand i know but how switch beetwen rom on sd :) ?

Wysłane z mojego HTC HD2 za pomocą Tapatalk 2
[HD2 Android SD Development] g.andy:
Good morning everyone. Sorry for the stupid question. I clk 1.5.1.0 with a rom in nand, a rom aokp in sboot and a rom PA in tboot. I would be grateful if you would tell me how to update the aokp rom that I have in sboot without losing applications and settings.

PS: I suppose that I have to flash the new version of rom from recovery choosing the 'nativesd' option, but then I do the flash to file 'flash_sboot_v2.zip'?

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] taxi81:
Ok.All work fine.A setup sdrom like a first boot after reboo and apk to swich roms now work :D

Wysłane z mojego HTC HD2 za pomocą Tapatalk 2
[HD2 Android SD Development] datagr:
Your NAND boot partition is the sboot?!

It should be the "boot" (according to the latest update (*) from kokotas) and the nativeSD boot partition should be the sboot.

The nativeSDmultiboot app is flashing to sboot.

No tboot or vboot or *boot or any other from the extra partitions are used.

I could create this option in the app if Xylograph would request it. :)

(*) : 11/Sep/2012 - UPDATE #16

Default partition table: recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5

Included recovery: CWM Recovery Touch Beta 8 Release Candidate 1

ExtRom: Disabled

Added option to set the default boot partition.

At start default is 'boot', but you can change it.

Added option to show or not a MULTIBOOT MENU at startup.

Default behavior is to be hidden.

The MULTIBOOT MENU will show any existing boot partitions and will boot from the default selection in 10s if you don't select something else.

Code:

supported_boot_partitions[] =

{

{"boot",},

{"sboot"},

{"tboot"},

{"vboot"}, //no uboot :D

{"wboot"},

{"xboot"},

{"yboot"},

{"zboot"},

{""},

};

As you see we have the primary boot + 7 extra boot partitions.

However there is NO change to the MAX_NUM_PART (max number of the partitions) which is 12, so you can eventually add 5 (of the 7 extra) different boot partitions,

(unless you don't have a NAND installation and you have deleted 'system' and 'userdata' so you can use all 7 extra, but I think it will be a mess ).

---------- Post added at 09:39 AM ---------- Previous post was at 09:36 AM ----------

Just keep in mind that the app is flashing to the sboot partition and all the other partitions are not used.

So the nativeSD boot partition should be the sboot always! :)
[HD2 Android SD Development] taxi81:
Ok thx for your sugestion.I remember this :D :thumbup:

Wysyłane z mojego HTC HD2 za pomocą Tapatalk 2
[HD2 Android SD Development] Faith_G:
Your SD card is too slow. Check the speed with androbench, my phone ran poorly and have the same errors with a class 10 Polaroid card that would only random write at 0.3 mb/s. I'm now using a Sandisk class 4 that runs 3.4 mb/s random write and the phone runs properly.
[HD2 Android SD Development] MTN_HD2:
i'm not implying anything :D their method might be incompatible with yours ... they are also planning to have working sd wp7 rom on it .

btw that was posted in august edit: nvm i read the posts after that :D

thanks for all your work
[HD2 Android SD Development] g.andy:
Yes, my default kernel boot is sboot. Each reboot (after selected the rom in tboot by you app) i see multiboot menù, and if i don't select tboot kernel, my phone boot always in sboot partition.

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] skyhew:
Thanks for keeping HD2 alive... The best ever phone...
[HD2 Android SD Development] kokotas:
The NativeSDBoot app

doesn't

control which boot partition is the default to load the kernel!

cLK controls that! Option under SETTINGS/SET DEFAULT KERNEL.

If you want to use the NativeSDBoot app and have it working as it is supposed to, you must just add 'sboot' partition and set it as default (and

forget about all the other extra boot partitions

). Then whatever choice of Rom you make in the NativeSDBoot app, will be the Rom that boots by default (since 'sboot' will be flashed over and over again with the selected Rom's kernel).

If you want to have a different kernel at each extra boot partition and switch between them, you don't need the NativeSDBoot app. You only need to flash once the kernel to the %X%boot partition and select from cLK's MULTIBOOT MENU which kernel to load.

Regards!

PS:I hope I didn't confuse you. I meant to help you understand:)
[HD2 Android SD Development] g.andy:
Ok i understand all.

I have 2 nativesd roms, and i switching there by multiboot menù of clk

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] pakure:
Use the native sd multiboot app.. install the apk from 1st post
[HD2 Android SD Development] relic:
interesting mine is 0.21 on random write with a 16GB class 2. Time to switch to a class10 I guess.
[HD2 Android SD Development] Szczepanik:
I will have to nominate XDA Recognized Contributors*securecrt*and*Xylograph to have the title "great god" for http://www.xda-developers.com/android/htc-hd2-android-roms-reinvented-introducing-nativesd/

Cheers

Tom
[HD2 Android SD Development] Vitaliqqq:
securecrt, pls include to the first post info about importance of random r/w speed of our sd cards. My sd card is 10 class, but random write lower for 15 times than HD2 NAND, and every NativeSD ROM is laggy for me.
[HD2 Android SD Development] djsolidsnake86:
i have 1gb of ext 3

can i use the same? any difference from ext4?

so i can install a native sd rom on that partition from cwr , and then install wp7 from magdlr on nand?
[HD2 Android SD Development] securecrt:
can you benchmark it with a sdcard reader on your PC?
[HD2 Android SD Development] NYLimited:
Many will debate this but it is quite possible that a good Class 4 card will outperform a Class 10 card in various devices, including the HD2. There is a lot of information available on this at

sdcard.org

although it is hard to find and interpret and we need to consider several points.

First, SD memory card manufacturers use different types of flash memory to create cards, so actual transfer speeds can vary. Varying speeds make it difficult to determine which card will provide reliable recording of streaming content (which is what most manufacturers seem to be concerned with these days). The Class of a card is a general indication of the read/write speed. So, in theory Class 10 is faster than Class 4. As an example, recording video requires a constant minimum write speed while random access (

such as our phones mostly use

) does not rely on the same type of access.

Speed Classes 2, 4, and 6 assert that the card supports the respective number of MB/s as a minimum sustained write speed for a card in a fragmented state.

Class 10 asserts that the card supports 10 MB/s as a minimum non-fragmented

sequential write

speed. This is really great if you are often recording long videos but I suspect most of us use our phones a little differently. :)

Secondly, keep in mind that SD cards ideally should match the bus of the device. Not unlike a CPU which can often be overclocked (to a point) the bus can often handle faster speeds than the official rating. Most of the older devices, such as the HD2 I am using currently, are rated only for Class 2 speed. I know Rick doesn't agree but HTC's official rating for the HD2 was 2 when it was released. Some newer devices now come with faster ratings. I can use somewhat faster cards - I have been using a Class 4 SanDisk for some time.

Lastly, often you will get higher speeds from a card than it is rated for. For example, my Class 4 32 GB card reads much faster than one might expect it and all too often it is the read speed that makes the device "snappy" (like loading an app).

Hope this made some sense.

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] adell_:
Thanks. I would like to see some benchmark on this; not on PC but specifically on HD2 with a NativeSD ROM.

I notice that most of people only try/use NativeSD ROM on a single SD card. However, they might get a wrong idea about the performance. For example, people who use a class 10 card and get good performance might think that it's because the card is class 10 but they might get even better performance with a class 4 card.

On the other hand, people who use a class 4 card and get good performance might think that if they use a class 10 card the performance will be improved which might not be true.
[HD2 Android SD Development] NYLimited:
You may be right but benchmarks are not simple. Android tends to do things in the background sometimes and that may impact a test.

Anyway, I only have Class 4 cards so I can't be of much help. :[

Although these tests were not done on an HD2 they may be indicative and of some interest:

http://m.tomshardware.com/reviews/sdxc-sdhc-uhs-i,2940-10.html

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] djsolidsnake86:
someone can help me please?
[HD2 Android SD Development] NYLimited:
Technically, ext4 is newer and somewhat better. If you are starting over

you might as well go to ext4

.

However, ext3 should work too.

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] djsolidsnake86:
and so i can install native sd from clockwork recovery mod and wp 7.8 in nand from magdlr?
[HD2 Android SD Development] melando:
Best to use 4ext recovery and run on SD from MAGLDR to install to ext4
[HD2 Android SD Development] djsolidsnake86:
ok! but windows phone and android native sd can coexist in the same sd card?
[HD2 Android SD Development] melando:
yes see my avatar :)

Plenty of instructions posted how to set up ... Try reading this

http://xdaforums.com/showpost.php?p=31593732&postcount=617
[HD2 Android SD Development] HypoTurtle:
Already working on it
[HD2 Android SD Development] Robbie P:
Another one for overflowing ext4s

wis1152 has uploaded Jellybean Native SD beta 3 by smokin901

http://d-h.st/eZD

Works good
[HD2 Android SD Development] bmans:
how to delete rom from sd-ext?
[HD2 Android SD Development] pakure:
Use the latest version of native sd multi boot app to delete Rom easily
[HD2 Android SD Development] Gastozz:
I can't boot,there is no option Boot NativeSD,can you help me?
[HD2 Android SD Development] onlinegames:
Still having trouble converting NAND ROMs..

Hi,

With all of your help, I am slowly but surely reaching the point where I would be able to modify a NAND ROM to NativeSD on my own... :)

Of the three steps required to convert, I am familiar with step 2 (updater-script) and step 3 (install.sh), it's the 1st step that I keep tripping. Based on what I understood from the pointers given by Xylo in this thread, I am performing the below steps. Are they correct?

1. In Linux, unpack the initrd.gz (using gunzip and cpio) into a folder.

2. Rename the init to init.android

3. Copy the scriptlet provided by SecureCRT in post #3 and save it as init in the above folder.

4. Make the necessary correction in the ROM name in the init file.

5. Pack the initrd.gz.

6. Save the initrd.gz in the kernel/boot and kernel/bootsd folders (create the bootsd folder if it doesn't exist) in the NAND ROM.

Thanks for your help, guys.. I am still learning.
[HD2 Android SD Development] pakure:
It is an apk ...(native SD multiboot.apk ...get the latest)..download from first post of this thread and install like any other Apk .....the latest Roms have it preinstalled...in the apps.
[HD2 Android SD Development] g.andy:
Try with root Explorer, delete the ROM folder nativesd on your FAT32 and inside folder nativesd on your EXT4

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] djsolidsnake86:
i have a question, do you know if using fo daily use a native sd rom can damage or reduce the life of a sd card?