yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] adrian.shepard:
SD Cards

So I was trying out different SD cards with Xylo's CMTight NativeSD ROM, and here's what I got.

Patriot 16GB Class 10 - Performed terribly, very laggy.

SanDisk 16GB Class 2 - Performed okay, light lag, slightly slower than NAND.

SanDisk 64GB UHS-1 - Performs very well, slightly faster than NAND, rare light lag.

(Did not run last benchmark)
[HD2 Android SD Development] Xylograph:
So are you saying that rmnet works on android without Magldr??

Can you zip up these files and post them ?

Thanks m8.
[HD2 Android SD Development] melando:
I cannot get root access - did you? Super SU gives a message that binary needs updating and the update fails every time... possibly related to access to system?
[HD2 Android SD Development] Robbie P:
attached files

still testing....
[HD2 Android SD Development] Robbie P:
Sorry, didn't check root.

Have got recovery to boot from haret:D.......
[HD2 Android SD Development] Xylograph:
And I was already suprised that rmnet just worked out of the box with booting from SD method....

I am really confused now.. can you download the app 'quick system info pro' from the market and check your connection is rmnet ?

Or maybe someone with more knowledge of the HD2 history can explain us why PPP has always been default for sd roms???

I came a bit late to the show with the HD2 and flashed Magldr+android to nand on the first day I had this device and never looked back.. so I am missing quite some history for that matter... please enlighten me !
[HD2 Android SD Development] melando:
3rd time lucky - another clean install, superSU seems to be behaving now
[HD2 Android SD Development] Robbie P:
I think it has to do with Portadroid only able to use ppp

I might be wrong
[HD2 Android SD Development] wis1152:
You guys are doing a amazing job here:) I will post jb paranoid soon hopefully:)
[HD2 Android SD Development] Key2run:
Waiting ...... Thanks in Advance. :D
[HD2 Android SD Development] Xylograph:
Hmmm.. I hope someone knows the answer.. and what about sd roms that weren't ported with portadroid ?

Anyway...this changes things once again :eek:

I will make an extra option to choose between rmnet and PPP connection during installation for NAND as well as SD-EXT installation.

PPP connection should work no matter what boot method is used and that way people can decide for themselves what connection they want to try/use..
[HD2 Android SD Development] clio94:
i think that ppp connection on sd android roms is the only option we have from july 2010,when we started to run android from sd.Rmnet came when magldr came.I remember that it has to do something with our radio part,because it is wm radio.
[HD2 Android SD Development] Xylograph:
I understand that, but that doesn't explain why robbie is having a data connection while he is using windows mobile without Magldr installed..

That would also make rmnet connection possible with cLK in theory ??

Strange...............
[HD2 Android SD Development] clio94:
When i tried yesterday to boot rom from clk,after first boot i saw that the connection icon came up but i hadnt internet.But i didnt wait some time (as robbie said he did ) to see if connection will work ok,because i knew that clk needs ppp.And then i copied the required for ppp files and i am working it with ppp.

As for the wifi problem i had,i found out that it wants to put static ip.But i dont understand why i need to do this,only in this rom.
[HD2 Android SD Development] Robbie P:
I can't reproduce it yet. Trying with clean install.

Like melando earlier, I have no data or wifi atm. Reformatted ext4 twice

Will keep trying...
[HD2 Android SD Development] melando:
FWIW I have connection now!
[HD2 Android SD Development] ictimai:
So will your project allow for booting SD-Android having cLK as the main loader?

(Once again asking this question as magldr doesen't let charge completely discharged battery, does it?)

In general please provide some sort of How2 tutorial for individuals who joined this thread only now - as for them this discussion seems so messy and don't know how to start experimenting with your great outcome...

Specifically, I'd like to install any of your latest ROMs (preferably Paranoid) in both versions: one on NAND and the second as "NativeSD", wishfully dual-booting them from cLK, and then to compare their benchmarkings (to see if we can trully rely on NativeSD ROMs to this extend as we used to rely upon the NAND versions so far - if it proved right then the dual-boot configuration like e.g. Artemis, i.e. WM6.5x still kept developing, combined with Paranoid-NativeSD would be absolutely STATE OF THE ART all over the world!)
[HD2 Android SD Development] Xylograph:
Yes you will be perfectly able to use cLK as main bootloader and dual boot nand and sd with the upcoming update ;)

I will release it together with PA.. no ETA !!

Don't ask me how to boot SD rom from cLK though.. that's not my area,

but I am sure there is a lot of information regarding this to be found @XDA..

I think clio explained a couple of pages back how he got it to work..
[HD2 Android SD Development] jjblaster3:
awesome man, eagerly waiting for the release
[HD2 Android SD Development] ictimai:
Is this what you mean?

It's so nice but would be even nicer if the first step "1.i installed rom via magldr" was proved not necessary... So, is it really required to begin from installation of magldr over already well set cLK just to put ROM on SD (and just after that to reinstall back cLK)? Why can't we do it "manually" e.g. on our PC linux box having the SD plugged in with its Ext4 partition mounted? IMHO it'd be safer for the phone itself...

Anyway, if anybody here knows HOW to make it simpler/safer to set dual-boot of NativeSD Android from cLK PLEASE provide ANY clue (or links)! ;) Thanks a lot in advance!
[HD2 Android SD Development] wis1152:
You guys are doing a amazing job here:) I will post jb paranoid soon hopefully:)

Sorry people just realised that workplace is not working for some reason :( Not sure why
[HD2 Android SD Development] pakure:
I have always used SanDisk 16 gb class 4 cards on my 3 hd2... never had any issues even with any Rom of android/ wp7....I recommend them...
[HD2 Android SD Development] c1cl0n:
Hi securecrt and Xylograph

Do you have any informations about "Howto mount Magldr bootloader" from BASH script?

I asking for this because it is will be very nice, if after installation complete, autochange AD SD Dir to NativeSD from Native ROM Installer
[HD2 Android SD Development] Tiller:
Yes I use sboot partition, proof is I already have a ROM on the sd-ext which works fine.

NAND or SD rom ? I don't get it, I'm using the version "Native-SD".. (You can't use directly NAND roms on sd-ext, right ?)

But, I also have a ROM on my NAND, but I don't use it right now, the auto-boot is on my sd-ext one.

The instructions, do you mean :

?

If so, yes I did it.
[HD2 Android SD Development] ppk.net:
After switch to new rom

Did you press "CLK" button before reboot?
[HD2 Android SD Development] Tiller:
Haha.. no..

Sorry :)

It seems to work now !
[HD2 Android SD Development] jjblaster3:
hi

i was wondering if you could put an option in settings or something to change the directory from "/sdcard/nativesd" to "/sdcard/ics" or any other folder name, since thats my boot directory and my green hardware button doesnt work to change that in magldr.

im not sure of the level of difficulty in implementing this into an android app, but if it is not hard, would be glad as then i would also be able to use your app :)
[HD2 Android SD Development] robekia1:
Fast & Stupid Question.!

How to port the NativeSD ROM Back to SD version???!!!???
[HD2 Android SD Development] c1cl0n:
Hi robekia1

You can port NAND roms (include NativeSD) to SD with great tool Port-a-Droid

:)
[HD2 Android SD Development] robekia1:
Port-a-Droid

Thank you man,

I already used that GREAT tool and converted many NAND Roms.

The Problem is:

I failed to convert this rom http://xdaforums.com/showpost.php?p=29851395&postcount=1 because it is built on NativeSD.

1- I tried to convert it Directly as per the "PORT_A_DROID" procedure and failed.

2- I tried to "install the rom to nand-backup the rom using recovery-open the IMG files-extract them-using them under Port-a-droid" and always failed.

Any help?
[HD2 Android SD Development] wis1152:
I will send you a pre-port later:)I can't port this as HD2 HAS DIED:mad:
[HD2 Android SD Development] robekia1:
Glade to here this

Sad to hear that
[HD2 Android SD Development] wis1152:
Ok i have done it;) SEE HERE
[HD2 Android SD Development] datagr:
Great! I thought you were pressing the CLK Button (lol). :)

@ ppk.net : thanks for the guidance!
[HD2 Android SD Development] maheg:
META-|INF

where i can find the META-INF folder in the root?

i need your help
[HD2 Android SD Development] hherceg:
Help

Hello everybody.

Please can someone help me how to boot PA JB rom from SD.

I have Primary Fat32 partition and 1GB Primary EXT4 partition on class 6 SD card.

When i go to choose '10.services' , '1. Bootsettings' , 3. AD SD Dir in the Magldr menu I get only <..> and cannot select folder for boot.

Please someone help, thx in advance!
[HD2 Android SD Development] robekia1:
Excellent and well done.

but my point was:

i need to do it my self not to use the SD Version because if i success to port it from NAND, then i'll be able to do any modifications @ any time..

hope you got me...;)
[HD2 Android SD Development] magnus48:
I have an hd2 european.

I have two sd cards one class 4 and the other class 2

When I've installed nativeSD rom the result was too laggy.

I have change the mount int the init file of initrd.gz for one following the same mount of a2sd script

Code:

mkdir -p /NativeSD

#mount -t ext4 -o rw,noatime,nodiratime /dev/block/mmcblk0p2 /NativeSD

mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /NativeSD

The result is a rom with less lag for me. Maybe adjusting barrier=0 and some others parameters can get a better result
[HD2 Android SD Development] securecrt:
can you change a new sdcard? sandisk UHS-1 class 10
[HD2 Android SD Development] KyJelly69:
i bought a 16gb samsung plus class10 tonight and will buy a sandisk ultra class10 uhs-1 sdhc/sdxc tomorrow. radio shack has them on sale. i'll post benches after android settles.

http://www.radioshack.com/product/i...&filterName=Price&filterValue=$10.00+-+$49.99
[HD2 Android SD Development] Bib_x:
Can i do that only when i make a fresh install or can i do that on a previously installed rom as well?
[HD2 Android SD Development] a3r0n1:
Use View attachment 4EXT-RECOVERY(2.1.3_RC2).zip flash via CWM to setup the EXT partiton.

Flash the rom opting for the NativeSD, then follow these instructions and reboot.
[HD2 Android SD Development] runkle6:
how can i backup ext4 partition ... 4ext recovery will not do it ... i wanna save my installed nativesd version and format this partition but with the option to go back if i want ...

thx, oppen
[HD2 Android SD Development] melando:
Use advanced backup in 4ext recovery
[HD2 Android SD Development] Bib_x:
Where can i find initrd.gz on a already installed rom? Can i edit initrd.gz or which file is it?
[HD2 Android SD Development] JeremyGuan:
Let's say i need to test several kernel see which perform better, i cant direct flash them like how i used to do on NAND before correct? How can i ddo that on NativeSD's rom?
[HD2 Android SD Development] LinChina:
Install NativeSD MultiBoot V 6.0 (thank to Datagr) and follow his instruction

Cheers.....LinChina
[HD2 Android SD Development] dcos:
Probably OT, but I was wondering does 4ext exists as touch recovery and is it available for HD2?

My volume keys are sort of dead....

:o
[HD2 Android SD Development] Xylograph:
Yes, it exists.. not for HD2 though.

I tried porting it to our device and it booted fine, but the calibration is #&^*$@ so you can't do anything with it..

I asked madmaxx82 for some help regarding the calibration and his answer was :

Maybe some day we'll get it officialy... don't get your hopes up though
[HD2 Android SD Development] dcos:
Thanks Xylo,

well I'll just have to manage with CWM Touch recovery and TWRP, too bad I really liked 4EXT. For partitioning, I guess I'll use gparted.
[HD2 Android SD Development] utrecht56:
Thanks Tytung et al for again a very good and stable ROM.

Just installed NativeSD on a 16 Gb Sandisk Mobile Ultra Class 10 Card, no lag, performance somewhat better as with NAND (all settings the same).

AnTuTu reports score of 3047 (was 3002 with NAND) SD card write = 6,4 MB/s and SD card read = 9,9 MB/s

Funny thing is that previous I have tried 2 other SD cards including a 16 Gb Class 10 card brand ICIDU which had better numbers but a lot of lag with NativeSD:

AnTuTu reported SD card write = 6,4 MB/s and SD card read = 13,3 MB/s

My guess is that Caching and response to short/random read/write pefrormance seems more important with Natve SD than raw read/write performance.
[HD2 Android SD Development] Bib_x:
Has anyone tested both sandisk versions of the UHS-I cards? One with 30 MB/s and other with 90 MB/s?

Is there a noticeable difference or is HD2 the limiting thing?
[HD2 Android SD Development] Magic2010:
There is a thread alllll about sdcards, maybe someone can help you there.
[HD2 Android SD Development] denseye:
hello

just wanted to let you know I solved the problem replacing

/system/xbin/echo "2048"

by

echo "2048"

;)
[HD2 Android SD Development] JeremyGuan:
I've did exactly what you said, change the name to [update.zip] and placed it in NativeSD folder.. but when i clicked on the update kernal button. Nothing happens?
[HD2 Android SD Development] MSephiroth:
First you must choose the rom in the "switch" menù. Don't reboot, and then tap on the kernel update. It will work :)

I think that this step is not clear to many users (i was one of them! )... Maybe datagr can update the instructions specifying it!
[HD2 Android SD Development] c1cl0n:
New rom in my collection - PureCM7 NativeSD

Permissions granted

:D

OS: CM7 GB2.3.7

Kernel: 2.6.33.7_tweekos_t6

DL: DEV-HOST | MEDIAFIRE
[HD2 Android SD Development] KyJelly69:
how can we convert recovery installation zips to install to nativesd instead of nand? for instance http://xdaforums.com/showthread.php?t=1797292
[HD2 Android SD Development] wis1152:
I use these inverted gapps on my sg2 rom:)

I haven't had a proper look at this zip file but unzip it and see whats inside system folder if its only apps then I would guess you could just replace the apps you want into the jellybean native SD apps folder and flash the native SD ROM again.

That's only a guess at the moment

I'm sure someone will correct me:)
[HD2 Android SD Development] jjblaster3:
as wis1152 posted above thats the manual (and easy method) of adding update files (if the app files to be installed dont need any special permissions or what not)

if you however want to use the zip file intact and flash it in recovery for nativesd build, you need to modify the updater-script in the zip file and add install.sh for mounting ext4 appropriately.. u can use securecrt's kernel update zip for nativesd as comparison for updater-script (which also has code to execute the install.sh) and the install.sh can be found in the zip installer for the nativesd rom you are currently using (you can use any, even the one in securecrt's zip, just make sure to modify rom name to the one you are using)

thats about as simple as i can put it i guess, wish you good luck
[HD2 Android SD Development] HypoTurtle:
Had posted this; in the softkey mods thread, based on securecrt's kernel install zip. Just need to add a system folder to it and whatever is in it will get installed into the NativeSD rom set in install.sh (currently PA), shuld be easy moddedto also install to /data/app etc. if needed
[HD2 Android SD Development] jhha:
NAND vs Native SD

Just to know some direct & simple information.

1. What's better(fast & smooth) Android NAND or Native SD(say with a 32 GB class 10 card)??? :confused::confused::confused:

2. If we change or modify something (eg. SystemUI.apk) how to flash these mods (like in flashable CWM zip files for installed NAND ROMs) in to a installed Native SD ROM??? :rolleyes::rolleyes:

Any advice??? :fingers-crossed::fingers-crossed::fingers-crossed:
[HD2 Android SD Development] Magic2010:
Your answers can be found all over the thread.
[HD2 Android SD Development] poyensa:
1. You have to find by yourself. There is a long discussion about that, but really this is not the thread for that. Please keep on topic (development)

2. Please read post above yours

Sent from my HTC HD2

PS. Magic you beat me: )
[HD2 Android SD Development] KyJelly69:
I'm having no luck creating a flashable version of justin bean's inverted app. I'm starting with his quick flash version and the updater-script.zip. added the data and system folders from justin's package to the same level as the META-INF directory. i copied the update-binary to the android directory.

on my mac the updater-script file in justin package is an Unix Executable File and a document file type in updater-script.zip. i've tried using both file types and it fails each time. i'm using the built in archiver on my MAC to remake the zip files.

Install.sh is the same:

#!/sbin/sh

# Set the ROM name

ROM_NAME=PA

export ROM_NAME

mmcblk0p2=`ls /dev/block/mmcblk0p2`

# Mount the ext4 partition

if [ $mmcblk0p2 == "/dev/block/mmcblk0p2" ]

then

mkdir -p /ext4p

mkdir -p /sdcard/NativeSD/$ROM_NAME

mkdir -p /boot /boot_dir

mount -t ext4 /dev/block/mmcblk0p2 /ext4p

mount --bind /ext4p/$ROM_NAME/system /system

mount --bind /ext4p/$ROM_NAME/data /data

mount --bind /sdcard/NativeSD/$ROM_NAME /boot

mount --bind /sdcard/NativeSD	/boot_dir

#all the dir has ready write some info for updater-script

echo "NativeSD=true" >> /tmp/nfo.prop

else

#no ext4 partition found

echo "NativeSD=false" >> /tmp/nfo.prop

fi

--------------------------------------------------------------

changed updater-script to:

package_extract_file("install.sh", "/tmp/install.sh");

set_perm(0,0, 0777, "/tmp/install.sh");

run_program("/tmp/install.sh");

show_progress(0.8, 80);

if file_getprop("/tmp/nfo.prop","NativeSD") == "true"

then

ui_print("Jus-Tun bean Inverted Gapps");

ui_print("Mounting /system");

show_progress(1, 20);

delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/Vending.apk");

package_extract_dir("system", "/system");

package_extract_dir("data", "/data");

set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");

ui_print("Fixing Permissions...");

set_perm_recursive(0, 0, 0755, 0644, "/system/app");

run_program("/sbin/busybox", "umount", "/system");

ui_print("All done!");

ui_print("Reboot");

else

ui_print("Can't find an ext4 partition on your SDcard");

ui_print("Install failed!");

endif;
[HD2 Android SD Development] HypoTurtle:
Just noticed that update-binary wasn't in my zip, (I'm sure it was there before I uploaded), have reattached, I think that would be one of the few reasons for the install not to start at all (you haven't stated anything appearing after trying to install so I assume it doesn't run at all??). Take the update-binary out of the attached zip and try it will your current one. (Can't test myself as phone needs a repair)
[HD2 Android SD Development] mengfei:
has anyone got the "Pimp My Rom" to work well with nativeSD?
[HD2 Android SD Development] KyJelly69:
Same, just says FAIL in red letters.
[HD2 Android SD Development] Dunc001:
I am confused (I know, it's easy to do these days :silly:) I have followed these instructions correctly I believe. I started with Xylos PA 2.0 ROM on NativeSD and kernel @ sboot (used flash_sboot_v2.zip when I installed that ROM many weeks ago). Now I have flashed two more NativeSD ROMs (PAC and latest JB MIUI). In cLK I have default kernel set to sboot, and multi-boot menu shown. When I flashed PAC I also flashed flash_sboot_v2 thinking it would be a newer kernel (not understanding at that point how the NativeSDBoot app works and thinking that kernel would be used by all three ROMs...). However regardless of which ROM I select in the app, when I reboot it always boots to PAC. What am I missing to be able to switch between ROMs using the app (so without the need for numerous xyz-boot partitions and selecting through cLK?

On another side note, if I hide the multiboot menu in cLK settings and go for a reboot the phone reboots to the white HTC menu, then reboots again into the cLK menu - ie it doesn't boot to the default kernel @ sboot. If I have the multiboot menu shown, then it waits for the 10s and boots to the default kernel. Is that the expected behavour for cLK or is something wrong there as well?
[HD2 Android SD Development] datagr:
Done!

Thank you for pointing out an improved guide to update kernel! :)
[HD2 Android SD Development] Robbie P:
Oh, while you are there datagr. Recently i had a message come up saying something like "you must first select the rom you are using before choosing the one to switch", but it disappeared before i could read it. Perhaps there could be a checkbox in the window so that it stays on until you cancel it, it could be missed elsewise. Great job though m8:good:
[HD2 Android SD Development] JeremyGuan:
Hi there datagr,

However I still failed to replace the kernel with that steps..

here's what I did.

1)rename to-be-replace-kernel.zip as [update.zip]

2)enter the NativeSDMultiBoot apps

3)press Switch rom button (then I select MIUI)

4)without reboot (even system asked me to reboot), I press Tools, and hit Update Kernel.

5)the progress words below "failed to ...., failed to...."

6)and in the end it says "kernel has been successfully updated. please reboot"

And ended up the kernel didn't change at all

is there anything wrong on my steps?:(
[HD2 Android SD Development] datagr:
Which kernel are you trying to update?

Did you put the update.zip in folder sdcard/nativeSD folder?

Could you show me a logcat please?

I remember that there are some differences on adding privileges on MIUI in apps.

I am not so familiar with MIUI roms, that's why I would like to see your logcat to see what's wrong.

---------- Post added at 03:51 PM ---------- Previous post was at 03:39 PM ----------

Actually there is something like a check box already.

When a user clicks a rom to switch, the app is storing, to a txt file, the rom name that will boot after the reboot.

So the app will know which rom is running.

If a user will go inside the nativeSD folder and start messing with the files (copy paste files manually or altering manually the rom_name.txt file) then the app is not possible to know which rom is running.

If the user keeps switching roms from the app, then the app will always knows which rom is active at anytime.

So if he goes directly to [Tools] and then [Update kernel] then the app will update the correct rom.

Maybe I should remake the user interface and add a popup listbox, with all the available roms, before the update kernel so we can avoid any mistakes on kernel update. :)
[HD2 Android SD Development] Robbie P:
yep, thats what I have been doing sometimes, especially if your app is not pre-installed on rom. Also, i think different versions of app are on different roms. Perhaps an auto update feature? That is, if development is ongoing;)
[HD2 Android SD Development] Dunc001:
@datagr - what binaries should I have in the NativeSD dir for your app to work? I have installed v6 but when I try and switch ROM click clk to generate shoot I just get a stream of error toasts starting with fail on mkdir /tmp. I have installed PA, PAC, and MIUI. I can switch by choosing the Rom in your app, then rebooting to recovery and flashing flash_sboot_v2, just doesn't work doing it in your app. There are no binaries in my NativeDS folder. I have copied mkbootimg and mkbootimg.sh from the flash_sboot_v2 zip, and copied flash_image from /bin. But it appears that mkdir is symlinked to toolbox?
[HD2 Android SD Development] ictimai:
F2FS

Hi guys! How do think about the new filesystem f2fs exclusively dedicated to flash cards?

Is there any chance we could see it in NativeSD replacing cumbersome Ext4 on the SD-EXT partition?