yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] giovanne:
@Xylo,

Ok - thanks, you are so fast. I have to Update my PA to 2.0 now ;)

Some information before. I wanted to know something about the speed for my 32GB Sandisk Class 4.

I'm new to AnTuTu and don't know how it work, but I was wondering a little bit why the speed is so different?

I tested without doing something between the testsequences.

Is this normal or is there an alternative tool for benchmark the sd card speed?

Is it although possible to benchmark the real Nand speed (should be near 4MB/s)?

But the result for me is, that I will search for an alternative SD card in my equipment, espacially for the write speed and test again.

Here my results for the Sandisk 32GD Class4:

Edited: Compared benchmarked from PC with CrystalDiskMark over USB

I am searching for an alternative card and will clone for next tests ...

Edited: Cloned the sd card to:

First tests, seems to be a performance boost for me ;)

Waiting for your results and maybe looking if I find a Class 10 card for testing again... ;)
[HD2 Android SD Development] CyberClaw:
Various users ran tests that prove we get speed inprovements up to class 6, but we get the same speed at class 10. So, our limitation is at class 6, not class 4, from the tests I've seen in the past. If giovanne gets a class 10 sd card, you'll be able to see this.
[HD2 Android SD Development] maneken25:
IMHO random r/w is most important, good example is my Toshiba micro SD hc class 4, it have sequential read of 17mbs and write 5 Mbs, but it sux badly in random r/w and even when using a2sd script lags awful.

Random r/w can be significantly different even when 2 different manufacturer SD card on paper looks almost identical.

Don't be fooled by numbers on SD card package, try to look different crystalmark SD card tests and try to find in shop card which users on xda forum were happy with them.

Offtopic, thx guys for help but still can't set through Magldr ad SD dir, tried low lvl format, tried 5 time to set up partitions and no luck its like my SD card doesn't exist.

Ofc, every try I first made fat32 primary partition then second primary ext4 partition.

This is one more reason ill never again use any SD card except Sandisk, that card manufacturer never failed while using on hd2.
[HD2 Android SD Development] jjblaster3:
when flashing kernel or fixs or other types of zips using the recovery, do the zips need to be modified in some way special for the nativesd rom?

consider the scenario that one has two roms, one in nand and the other in ext, how will the recovery know where we want to install it to?
[HD2 Android SD Development] Xylograph:
Maybe ask for this kind of functionality @ cLK thread ?

Nope.. not needed.

Yes, all flashable files for NAND will need modifications to mount the sd-ext/rom/system instead of the yaffs2/system..

For now the only 'simple' solutions I can think of is to insert all modification into the rom.zip before flashing or flash the rom with all modifications again..sd-ext install will only wipe the sd-ext/rom/system and sd-ext/data/dalvic-cache folder so in theory you won't lose anything doing that..

If the flashable file doesn't contain any weird permission setting stuff one could also easily unzip the flashable.zip.. go into recovery, mount sd-ext, use QtADB to push the files to the right folders.. reboot and go.
[HD2 Android SD Development] onlinegames:
Is FAT 32 partition required at all?

Hi,

My current partition info. is 7.5GB FAT || 7.5GB WP7. I plan to retain the WP7 partition as is but would like to know if I can simply convert the existing FAT partition to a EXT4 partition and use that to boot the NativeSD ROMs.

[Edit] - Just realized files cannot be copied from the laptop to the SD card if the partition is EXT4. There needs to be a FAT partition to hold the ROM/Recovery files.
[HD2 Android SD Development] giovanne:
you are right, therefore was my question in the beginning of this thread:

http://xdaforums.com/showpost.php?p=31127127&postcount=54

In there is although the link to the sd card discussion http://xdaforums.com/showthread.php?t=1150369

and that was the reason why I have the Sandisk 32GD Class 4.

But at the moment - from my personal feeling using the phone - I have the feeling the second tested Class 6 card is faster for me.

CrystalDisk for that card - random speed is not so good as for the Class 4 Sandisk:

Transcent Class 4 - 8 GB:

But maybe my feeling is wrong :confused:

Keep on testing ... :o

Edit: I think I need a different card with more space. 8GB is not enough. No space left for music :(

I haven't a Class 10 MicroSD for testing :(

Think have to wait for some test from others...

Edit: Topic "Battery Drain"

- seems to be OK for me, espacially in Standby compared to my Nand PA1922 it is the same and goes down to the minimun from 2mA.

- I will have a look for it tomorrow in daily use compared to the Nand version
[HD2 Android SD Development] Xylograph:
Boots and works fine for me from Magldr SD Boot.. Anyone else having problems with the Touch recovery found @ 1st post ?
[HD2 Android SD Development] jjblaster3:
thats weird.. using magldr sd boot as well, just that i rename my folder to ics for it to initialize in magldr (as you know, keys problem)

the thing is as it boots, the htc logo comes up and then after that it reboots.. i even tried cwm touch recovery and the same thing happens, it just reboots after loading kernel.

however if i try any non-touch based recovery (such as the old twrp, cwm or 4ext) they work.. maybe i need to format my sd card and try?

Edit:

low level formatting didnt help :( back to old version of twrp
[HD2 Android SD Development] Bib_x:
Please can someone tell me, how to disable journaling on ext4 partition? Will this speed up my nativesd installation?
[HD2 Android SD Development] clio94:
Ι found out that with clk v1.5.0.x from kokotas we can make triple boot !!

After we make the sboot partition in clk--->settings appears add tboot

I tried it and now i have in main clk screen boot,sboot,tboot

In boot-->nand i have nexushd2 v2.7,sboot paranoid v1.992 and tboot aokp v2 n409.I flashed tboot partition via fastboot method that rick1995 describes here http://xdaforums.com/showthread.php?t=1114053 in the section boot from sd card.I copied in sdcard Aokp folder and in pc in the fastboot folder i copied zimage and initrd.gz from aokp folder,Then i gave the command

fastboot -c "rel_path=AOKP nand_boot=0" -b 0x11800000 flash:raw tboot zImage initrd.gz

and it boots ok.All the roms work perfect
[HD2 Android SD Development] djxcee:
Using this on a class 10 64gb SanDisk and its made my hd2 feel like a faster phone.

Will report back with results later.
[HD2 Android SD Development] ictimai:
OK, but isnt't so called alignment anything to do with felt SD efficiency? I've asked the question 3 times aleady here but all people ignore them :( So, what's up? Are modern SD cards designed in a way the question has gotten already totally transparent for users? Or maybe does the latest partitioning software take the whole care of aligning? Please address both sorts of alignment of: partitions and filesystems... Thx in advance.
[HD2 Android SD Development] Faith_G:
Using a 4ext partition was a must for me. I tried with the 3ext partition that cwr makes, but the ROM ran slower than on NAND. I converted to 4ext partition, re installed the ROM, and now it works awesome! Polaroid class 10 32GB SD card.
[HD2 Android SD Development] ictimai:
OK, but please once again the question: should we bother with the partitioning/formatting aligment at all? Perhaps all presently purchased SD card do address translation or sth similar so the whole problem seems outdated, don't they? If not then it'd seem of the great importance for NativeSD - so why doesn't anybody take stands on it here?
[HD2 Android SD Development] c1cl0n:
Thanks securecrt, Xylograph, clio94, Phoenix, LNE team and all@xda

ROM is very fast and smooth

Mobile data ... [OK]

WiFi ... [OK]

Root access ... [OK]

Market ... [OK]

GPS ... [OK]

Games ... [OK]

... everything fine, thank you for respect work

:o

One question - Now I have 2 partition on my sdcard (FAT16 as visible & EXT4 as NativePA)

If I will install new ROM to EXT4 (via Recovery folder on sdcard), is my current NativePA will be overwite or new ROM will established close?

:confused:
[HD2 Android SD Development] maneken25:
Can you make cristalmark test and post results about your SD card, ty in advance.
[HD2 Android SD Development] Dhruna:
Xolygraph,

I just wanted to confirmation about 2nd post is that , If I want to use PA 1.5b with NativeSD boot, I have to simply copy the content of NAND ROM's Zip as mentioned in the Sample to make it bootable ?

Thanks.
[HD2 Android SD Development] Xylograph:
Thanks for helping the cLK users m8 !

Btw.. I have found the issue with ADB 'not working' ... It is actually working just fine.. it's just not running when the ROM is started..

If you boot up the NativeSD ROM and plug in the usb cable when you see the bootanimation you'll have adb connection.. however when the ROM starts.. it stops the ADB running.

I think it's related to the NativeSD ramdisk so I will have a closer look at it asap..

For now just download this simple app and push the 'Enable ADB' button and you'll have it running :)

I didn't answer your question, because I think all the 'aligning/journaling/formatting' stuff is behind my knowledge...

I use 4EXT recovery which tells me after formatting my sd card partitions are perfectly alligned and I am fine with that.. It works great.. don't get to deep into it if it works fine..

However.. securecrt know a lot about this and I am sure he will give you some more details about all that stuff, but he is very busy with real-life atm so just be patient..

Here are 3 links securecrt gave me with more about that stuff, maybe you can read it while waiting for your answer :)

link 1

link 2

link 3

When you install a different ROM it will get a new folder on your sd-ext partition..

Your previous rom will remain untouched..

That's why you can install mutiple roms on your SD-EXT and boot the one you would like to run ;)

If you update PA to a newer version, your PA system folder will be wiped and updated and only the dalvic-cache will be deleted..

No, it's just an example.. I will port PA ICS when I find the time for it..
[HD2 Android SD Development] HypoTurtle:
Haven't seen any scripts posted yet, so here you go. A couple of simple ones to switch which ROM is booted, use with scripter/gscript/terminal etc. and add a widget to the home screen for easy access.

Can't upload .sh's so you may need to change the extension.
[HD2 Android SD Development] pakure:
Hi..xylo...using the aokp version..i dont have 'google now'...has it been removed?

Also can the cpu tweak be made to set up on boot. ...?...it is presently resetting to default on reboot

Otherwise...super concept...never had an sd so fast
[HD2 Android SD Development] kanoej:
can someone plz explain in detail the steps of how to install xylo's paranoid android leo beta v2.00 via magldr and also using native rom sd boot script.

i and others like me will be grateful.

i tried w/ lil success with running into 1 issue or another. so please a comprehensive single guide would absolutely be appreciated.
[HD2 Android SD Development] HypoTurtle:
Google now is working fine for me (long press - soft home or hard windows button)
[HD2 Android SD Development] Xylograph:
Fixed SD-EXT-ADB

Ok guys I have fixed the 'no adb on SD-EXT installation' issue..

It was indeed in the ramdisk so I've uploaded new ramdisks for PA and for AOKP.

# Used to disable USB when switching states
on property:sys.usb.config=none
[COLOR="Red"]stop adbd[/COLOR]
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/bDeviceClass 0
setprop sys.usb.state $sys.usb.config

# [COLOR="Red"]red = removed[/COLOR]

adbfixed_ramdisk_NativeSD_PA.zip (unzip to the root of your sdcard when using PA rom)

adbfixed_ramdisk_NativeSD_AOKP.zip (unzip to the root of your sdcard when using AOKP rom)

The above fixes will be included in the next ROM updates.
[HD2 Android SD Development] mccmjoon76:
Wooooo thanks securecrt.Xylograph and the team ..will try this out after i getting my HD2 back from repairing ... thanks guys for the hard work :good:
[HD2 Android SD Development] osama marouf:
Xylograph

Thank you on behalf of thousands of fans in ( ce4arab) and I hope you explain the meaning of "set your SD Bootfolder to 'NativeSD' folder on your sdcard

Can you please tell us the detailled steps

Thanks to you all
[HD2 Android SD Development] zexmunze:
Use search button !!!!!!!!!!

http://xdaforums.com/showpost.php?p=31200115&postcount=176
[HD2 Android SD Development] Xylograph:
I am working on it, since securecrt is very busy lately.... I hate making/writing tutorials though :(

I hope to update the 2nd post with more details today..

EDIT: Updated the 2nd post with more instructions.. I hope regular users will understand things better now..
[HD2 Android SD Development] mr-evil1:
EvoHd2

Hello Securecrt and Xylograph!!

Thank you for your hard work!

As you know , i have make a fast ICS rom "EvoHd2" http://xdaforums.com/showthread.php?t=1584160 and would like to make a Version with NativeSD script! It does not run for me!

Can someone help me please?

Thank you!!
[HD2 Android SD Development] Robbie P:
As i read it, you should

1. unzip and un-cpio the ROM initrd.gz

2. rename init to init.android

3. replace script in init.rc with the code in the box (changing rom folder name)

4. cpio and rezip initrd.gz

5. Replace the meta_inf updater script with the code in box post#3

6. make install.sh changing ROM name as above using notepad++

7. Change lines in meta_inf aroma config to reflect roms attributes

7. bundle it up like Xylo's and zip it

steps 1 to 4 should be done in linux or using a kitchen eg http://xdaforums.com/showthread.php?t=633246

I have tried the above but fail on install using recovery.

If anyone can add/edit the above, feel free. I have to go to work.;)

Edit; wis1152 is busy with studies this week, good luck m8:)
[HD2 Android SD Development] mr-evil1:
Thak you ! I will try it!
[HD2 Android SD Development] Xylograph:
I hope securecrt will pick up that explaining part of the NativeSD method, but I will try to fill up some important things I came across using it...

keep in mind not every android init is compatible with this method.. so renaming 'a random ramdisk' init file to init.android will most likely not work.. use the init.android file from the NativeSD ramdisk found in 1 of my roms or you better download the adb fixed ones..

Same goes for all the files inside the ramdisk folders (/bin , /sbin) be very carefull with replacing them.. it will easily break things.

Not all kernels are compatible with this method.. As far as I understand there have to be some important commits included in the kernel..Use securecrt kernels if you want to be sure it's included.. (so no Gingerbread ROMS for now unfortunately)

Compare all files with the provided NativeSD ramdisk and take your time :)
[HD2 Android SD Development] ictimai:
So does 4EXT much more than NAND's CWM booted by cLK? In other words, doesn't CWM care of alignment so much like 4EXT does?

Besides, probably EXT4 can't align partitioning scheme since it already sits on one of partitions, can it? Since it sits on "SD-Card" fat32 partition probabely all it can align is "SD-Ext" partition's Ext4 filesystem... Or maybe somehow does it manage the complete set of all alignments for the whole SD card?

How can we run 4EXT when already having set cLK with 2 ROMs: both NAND and NativeSD? Is it possible to run it ad-hoc, i.e. without reversing the whole setup?
[HD2 Android SD Development] dsleo:
Installed in the phone's memory and applied patch CronMod-INT2EXT4 + _signed and now I have to eхt4 1024 megabytes, it works fine and programs are installed on SD card)
[HD2 Android SD Development] Xylograph:
You can assume when a recovery is named 4EXT it does his stuff right for EXT partitions ;)

Try to read a 4EXT recovery thread to find out what it's all about..

Just a small quote from that thread regarding formatting :

You can boot 4EXT recovery from SD if you don't want to flash a different recovery to your nand for some reason though I highly recommend 4EXT recovery..

I have been using it for a long time now and never have issues and have lots of extra features and options compared to the regular CWM..
[HD2 Android SD Development] mr-evil1:
Thank you for Info! I have try it, but it doesnt work! Can you help me and make a working Initrd.gz ? I have Upload the original Initrd.gz http://depositfiles.com/files/5q2pedk2l of my Rom! The Kernel is the latest ICS from "securecrt"

Thank for spend time!
[HD2 Android SD Development] Xylograph:
Sorry, but I am to busy with other stuff and have my hands full on my own ROMS..

I hope to start working on converting my ICS roms to NativeSD soon and you can probably grab the ramdisk from that when I am done..

Anyway.. if I look at the size of your ramdisk.. I wonder what you have tried yourself ?

Seems like a nand ramdisk to me..
[HD2 Android SD Development] wega007:
Nice work securecrt and Xylograph! Tried to use NexusHD2 v2.7 as NativeSD Rom.. Doesn't work, maybe someone can provide a working initrd.gz for CM9?
[HD2 Android SD Development] dsleo:
camcorder is not working, Please any suggestions to correct this problem!
[HD2 Android SD Development] mr-evil1:
Yes this is my original initrd.gz from Nand! The moded one does not work! It does not boot!
[HD2 Android SD Development] Xylograph:
Please keep this thread related to NativeSD and don't post rom stuff here..
[HD2 Android SD Development] dsleo:
Sorry, but you are here to discuss the problems of the entire assembly? I respect your work and does not clog up the chat, and only shows some of the things which can be already found the answers! Sorry for bad english!
[HD2 Android SD Development] Xylograph:
What have you modded in the ramdisk that does not boot ?

Use the (jellybean) ramdisk I've provided with the adb fixed and set your roms name in the init script :

# set the name of the rom to boot

rom_name="your_rom_name_here"

remove init.trace.rc (this is for jellybean only)

remove init.usb.rc (this is for jellybean only)

modify init.rc for ICS

check init.htcleo.rc and init.htcleo.usb.rc for differences just in case..

That should get you going..

---------- Post added at 04:22 PM ---------- Previous post was at 04:19 PM ----------

It's not related to NativeSD.. native camera is not working yet on Jellybean and is a known issue if you read the ROM threads..

Use the provided Videocam illusion application if you need videocamera functionality..
[HD2 Android SD Development] ric69:
I will feel like a noob, I'm sorry but I don't understand this :eek:
[HD2 Android SD Development] :
Ive read the thread and just to clarify can i use this to boot any ROM from sd card instead of NAND?
[HD2 Android SD Development] melando:
I believe yes, in theory, AFTER it has been adapted/converted to run as a NativeSD install. You will have seen discussion shortly above on how dev.s can do this - just for JB currently
[HD2 Android SD Development] bojanbl:
I managed to have triple boot system using this NativeSD method :D

Look here ;)
[HD2 Android SD Development] Robbie P:
clio94 posted this http://xdaforums.com/showpost.php?p=31223674&postcount=208 :p

Us sd build users have been multiple booting android for ages:D Admittedly they were a bit slower.
[HD2 Android SD Development] mr-evil1:
I hope securecrt and Xylograph can make a running version for all CM9 ICS users! This script is really fast but this run only on JB roms! I don´t give up to run on CM9!!!!!!!!!!!
[HD2 Android SD Development] clio94:
Υes when we were in wm we had multiboot with old sd method.Also if i compared gingerbread cm7/aosp roms vs nand cm7/aosp there was difference in speed but no so much.You could use the rom for daily use.After moving to ics full hwa roms,any sd android ics rom with classic method i tried to use at least for me,it was almost unsuable.I tried with many sd cards and the result was the same.A no go for me.With this new method things are far way better sd roms are usuable again.
[HD2 Android SD Development] bojanbl:
:p I have read that, and I had multiboot ages before this one, I had been experimenting with sboot and tboot right after kokotas released his build with sboot only at first and than with tboot. And even than you could have only dual boot with older CLK or triple boot with 1.5.0.7 CLK build... I made several modifications of files flash_sboot to boot from different folders (ICS, MIUI, ANDROID, ICS_Sense4, etc).

Actually I posted this so that everyone can try this, because I think this is simplified method for triple booting ;)
[HD2 Android SD Development] ppk.net:
Hi,

I try to search. but have not an answer

Can someone give me more detail

"Boot into cLK and make a sboot partition" :confused:

I also try this

" fastboot -c "rel_path=Android nand_boot=0" -b 0x11800000 flash:raw sboot zImage initrd.gz"

from http://xdaforums.com/showpost.php?p=22234739&postcount=925 by clio94

but not work :crying:

thanks in advance
[HD2 Android SD Development] datagr:
Can I enable zram? Do I need to create a swap partition for that? How can I enable zram? In terminal emulator I see that zram is disabled.
[HD2 Android SD Development] Rubanzip:
create ext 4 partition of minimum 512mb

1.unzip the recovery file copy zimage & intrid file from recovery and paste these files on root of your sd card

2.go to magldr menu and 2 nd option (ad sd) then press call button

3.then it will take you to recovery mode

4.flash the rom(paranoid 1.99 or 2)

5.after that your sd card will have folder called nativesd click on folder inside there will be one more folder pa

6.copy zimage & intrid files

7. before that delete the zimage & intrid files of recovery from root of your sd card

8.paste the zimage & intrid files of pa

9.reboot
[HD2 Android SD Development] ictimai:
So, you suggest to flash 4EXT recovery (into NAND) this way replacing CWM which in turn you regard inferior and more cumbersome, do you? Thx for clarifying it as so far it looked like 4EXT was SD-version of CWM...

Anyways still ve'got completely no idea neither how to flash 4EXT into NAND nor how to boot it's SD-verision from SD... Please, would anybody here be so kind to explain the procedure? Thx in advance.

---------- Post added at 09:18 PM ---------- Previous post was at 09:12 PM ----------

the 4EXT NAND version's readme.txt says:

1. Installation
===============
You should have at least MAGLDR 1.09 on device.
For installation you need enter MAGLDR (hold power button during boot)
and select "Flasher" via "VolUp" and "VolDown". Confirm key is "green".

So, does it only cooperate with MAGLDR but with cLK - not?
[HD2 Android SD Development] clio94:
4ext recovery in clk needs better support.If you charge with closed phone,you cant open it by simply pull cable and press power button.You have to pull battery or make reboot from red hole.Also when i had clk 1.5.0.7 i couldnt install it,so i moved to clk 1.5.0.5 and it installed ok.Of course it has the charging problem but i dont care as i never charge with closed phone.The reason i prefer clk is the simplicity that gives user to make re-partition.But when magldr 2 comes out if gives the abillity of triple boot wp7 (i hope wp8 :laugh: )/wm/android i will move to it
[HD2 Android SD Development] Xylograph:
I really hope a moderator can clean up this kind of trash talk which has nothing to do with NativeSD :(

Sorry for the readme (old leftovers..) You should also be able to use it on cLK..

I do not use cLK myself, but I think you'll have to push the recovery.img with fastboot or something..

Have you checked HD2 toolkit ? I think there is an option to flash custom recovery for cLK..

As for booting from sd using cLK.. please read some posts back.. it's explained several times..
[HD2 Android SD Development] bojanbl:
I am using CLK 1.5.0.7 with CWM touch beta 8 and I was able to install all three roms with no problems so far :cool:
[HD2 Android SD Development] ric69:
Yes like all us but what about 4EXT recovery ?