yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] mastamov:
SD Rom (not NativeSD) install as NaviveSD

Hi,

is it possible to install a "normal" SD Rom as an NativeSD with this tool.

I am using this Rom

http://xdaforums.com/showthread.php?t=1058809

for long time and like it very much (good performance and very good battery life), but was wondering if it would be of benefit if you can install it as an NaviveSD?

Thanks
[HD2 Android SD Development] Willy89:
For the one who have troubles here is my videotutorial (in italian) on how to triple boot your hd2.

Hope it helps!!!!
[HD2 Android SD Development] datagr:
You have to convert it to nativeSD by using the guide posted by c1clon.

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

Added to the todo list for next release! Thanks :)
[HD2 Android SD Development] zain0300:
hi datagr I know it is related to bootloader but is it possible to add in you app option to boot nand rom? Instead of going to bootloader and change the boot source to SD if we have this option in the app it would be a lot easier. Thanks
[HD2 Android SD Development] Robbie P:
Even using c1cl0n's excellent guide ( http://xdaforums.com/showthread.php?p=31925620#post31925620 ), that build is tricky to convert since it uses rootfs.img

Also AFAIK any 35 kernels won't work with haret. And they won't work with nativeSD+magldr either, unless you use marco.palumbi/securecrt method to edit the NAND version of initrd.gz (could use HypoTurtle's patcher here http://xdaforums.com/showthread.php?t=1953428 )

Interestingly I noticed a script in aca rom which added a delay to wait for card to mount.
[HD2 Android SD Development] ictimai:
Hi, datagr! Thanks for your bright project!

However would you ponder to advance even one step further? Why not to make it possible to boot another NativeSD ROM directly from other curently running Android ROM, in the same fashion as it used to be done from WM6.5 (via haret.exe & clrcad.exe)?

It should be feasible to implement even easier than for WM6.5 - maybe some sort of chroot, how do you think?
[HD2 Android SD Development] macs18max:
Hi, datagr. Noob but valid question. I have updated kernels in native sd with your App. However would like to ask If i can install CWM flashable mods made for NAND ROM on NativeSD?? (Mods that don't include boot.img, but other system files such as apps, libs, data, frameworks etc etc.)
[HD2 Android SD Development] datagr:
Hmmm this is going to be tough on development but I will try add this in next release. Thanks for the idea.

---------- Post added at 11:40 AM ---------- Previous post was at 11:36 AM ----------

You can't boot more than 1 OS at the same time in ANY portable device( vm wares are excluded). You don't have enough cpu ram resources to do that. If you are talking about vmware bootloader then this is a pointless option since it would cut at 50% the total performance of both running OS. Correct me if I understood wrong. :)
[HD2 Android SD Development] HypoTurtle:
Various methods and zips have been posted in various threads, several by myself, look in the softkey thread in Apps and Themes for example, and also this page. The gapps zip there can be used as a template. Just need to change the rom_name in install.sh and change the contents of /system or look a few posts below at my (untested) solution to extract the rom_name from the current running rom and have the zip install into it.

I think I'd leave that out of the app, as some things would/could lead to multiple FC's if the device isn't rebooted quickly enough, i.e. systemUI.apk and frameworks. But I'd guess you'd be able to use the above; changing it so that the rom_name is taken from the rom_name.txt that you have generated at the minute rather than extracting it from the ramdisk
[HD2 Android SD Development] datagr:
Yes you are right mate, I was thinking that you could apply flashable mods only to not running roms(not the live running rom).

After all, CWM is a stand alone OS (like android) that from there you can flash files in specified folders. :)

Of course, this means that you have to have installed 2 or more nativeSD roms in the ext4 (but I have a feeling that most of us already did that...) :P
[HD2 Android SD Development] ictimai:
Perhaps we've got some misundersting here... I meant the same funcionality which WM's haret.exe had, but this time from Android.

So, not running 2 OSs at the same time (like you're saing) but starting one from another and completely replacing the previous one from RAM!

Still not sure how haret.exe exactly works but it seems there is some memory reset.

Please, let's try to ponder how to port WindowsMobile's haret.exe into Android? The source code is available however it's been developed for WindowsMobile platform and probably needs deep modification to do the same trick but from Android (as opposed to: from WM).
[HD2 Android SD Development] Robbie P:
I am sure that this would not be worth the effort. The running rom would have to fully shut down and the new rom would have to boot from scratch, else there would be 2 roms in RAM at the same time. It is only the time it takes in between that would be saved.

Booting from magldr takes seconds, less if you automically boot from ad-sd. I think this may be the majority of users (I might be wrong;))

Booting from wm6.5 takes longer, but there are android loader apps.

Not sure how long clk takes. But it seems a lot of work to make a bootloader (running from android) just to save a few seconds for a minority of people (albeit an important and worthy minority:)).
[HD2 Android SD Development] ictimai:
Really? And have you experienced any issues after hot reboots etc so far?

Besides, what about chroot command?

There is the same that holds for WindowsMobile's harret.exe, so?

Somewhat above minute when first you've got to wait for WindowsMobile to boot and only afterwards running haret.exe you can start an Android from NativeSD...

Some people still need and want to have WindowsMobile on their NANDs. The NativeSD concept renders NAND's Android spurious since you can rely fully upon NativeSD ROMs. So it is very sensible to use NAND for the OS which can not be set otherwise...

the source code of WindowsMobile's haret.exe is available. Is it really so hard to convert it into Android's haret.apk?
[HD2 Android SD Development] Burag:
I bet that it is more or less *impossible* ...
[HD2 Android SD Development] ictimai:
So, we need Mission Impossible specialists here ;)

If yet about the proper closing of first Android then it seems the only thing we should take care of is filesystem consinstency (is there enything else?) and this is easy to keep.

If somebody here feels Linux Guru then please, enlighten us whether and how chroot system command can be adopted for the purpose of fast switchng various Android ROMs sitting on our NativeSD SD-Ext partition?

Please also provide info "why?"
[HD2 Android SD Development] marco.palumbi:
--

chroot only restricts the access to a portion of filesystem. this only for the process that exec the command and his childs.

chroot doesnt switch the kernel, it doesnt kill other processes but they remains living with the original filesystem...

switching to another rom need a new kernel to be loaded, and before of that all the activities must be shut down and filesystems synced, then a new kernel must be loaded in memory and be started.

I think there should be some kernel loader able to load linux kernel from linux like HaRET does from WM.

Anyway you cannot skip the shutdown process to avoid filesystem corruption and databeses inconsistencies.

using MAGLDR or CLK the time improvement in respect going with the standard reboot is very minimal.

Different it may be for users with WM........

EDIT:

there is kexec for linux to load a new kernel.

the problem with kexec is that a kernel to run kexec must be compiled with that feature. Most of android kernel doesnt have that feature enabled.

----
[HD2 Android SD Development] ictimai:
So, is there such a problem to compile kexec into kernel, i.e. would it introduce any noticeable performance overhead? Seems now, when the app in question (Android's "haret") arrived then the community would take care of maintaining the feature across kernel releases that follow, wouldn't it?

Please ponder this, what is the point of still keeping Android in NAND while NativeSD offers greater both: flexibility and performance? So many users would like to have WM for some reasons multibooted with several Android ROMs (which sit on NativeSD). The only thing which discourage them is necessity of getting through this chain of intermediate bootings.

Besides, WM still is unbeatable in reliable handling of some critical situations, like "proverbial" charging fully emptied battery...

Other argument is, we don't need tampering with the device itself any more in order to run Android on HD2.

Just take a Leo still on warranty (with original WM on board), put there SD card with NativeSD and many installed Android ROMs and... voila!

Yet another bonus: you can have as many Androids as only the space of your sd-ext partitions allows for. You don't need sboot...xboot partitions anymore to choose which ROM you want to boot so the number of ROMs is "unlimited".
[HD2 Android SD Development] mastamov:
Hi,

thanks for the reply.

I didn't understood much of what you are saying, but as long as i understood, it would be very difficult for noob like me.

What do you mean with

"script in aca rom which added a delay to wait for card to mount"?

Is this good or bad?

Thanks
[HD2 Android SD Development] marco.palumbi:
MAGLDR can be used only if you renounce to WM, and MAGLDR is the only way to support rmnet for data connection.

rmnet is more stable than ppp and many may chose this way for this.

regarding kexec, in order to implement the switch between different rom, it must be compiled in each kernel of each ROM you want to use.

you should ask each ROM maker to use a kernel supporting kexec, or may be you must recompile the kernels on your own. Unfortunately not all the kernel are provided with sources....

furtther I don't know what is the state of kexec support on ARM kernel.... it may be you want to go deeper in this reserch...

---
[HD2 Android SD Development] djsolidsnake86:
i have a question: if i want install a zip update (using a android sd version), this will be installed in ext partition or in nand?
[HD2 Android SD Development] djsolidsnake86:
Anyone please?

Inviato dal mio HD2 con Tapatalk 2
[HD2 Android SD Development] Szczepanik:
I do not understand your question. If you install an update it will be in the same place as the original ROM. Since this is NativeSD thread, the ROM and the update are in the ext4 partition. It may help if you give more details. What update to which ROM?

Cheers

Tom
[HD2 Android SD Development] djsolidsnake86:
Im using mymiui nativesd and i want install the gps patch by tytung, it will be installed by recovery in the ext partition only right? Not in the nand where i have Windows phone installed

Inviato dal mio HD2 con Tapatalk 2
[HD2 Android SD Development] melando:
OK Here's an answer... it depends on the update file. They can be written to do either one.

EXAMPLE:-
[HD2 Android SD Development] djsolidsnake86:
ok thanks

http://xdaforums.com/showthread.php?t=953630

for example i can install these files on a nativesd android?

the fact is that i have this problem now see here please http://xdaforums.com/showthread.php?p=35121630#post35121630
[HD2 Android SD Development] melando:
Doesn't look to me as if you need to install the zip file at this link, you can just extract and copy the updated gps.conf file using e.g. root explorer
[HD2 Android SD Development] luciferps:
hello guys i am having some problems in the multiboot app whenever i delete some rom the rom gets deleted but the name of that rom remains there forever.. i think its a bug or my phone is faulty ?..

and when i tried to delete that already deleted rom again ..for obv reasons it says chk your sd-ext partition rom doesn't exists!

any help ?
[HD2 Android SD Development] datagr:
Uninstall the app and download (again) the version 10.

Try to delete again the rom.

If success then ignore the rest post.

If fail then follow this guide :

Go with root explorer to the path /nativeSD and note the folders that are inside there.

Then go to the path sdcard/NativeSD and see if there is the same folder list there.

It should be the same folder list.

If not then create or delete from sdcard/NativeSD the folder that is faulty.

Also check if the folders are empty.

Just to make sure you will do that, I repeat :

Uninstall the app and download (again) the version 10. :)
[HD2 Android SD Development] luciferps:
thank you very much.

well the culprit was

the folder(boxmax rom) in sdcard/ native sd.. and i deleted that..

and i also reinstalled v10 as you said lol. many thanks once again problem solved.
[HD2 Android SD Development] oucha:
Not sure what I'm doing wrong, but I can't get the SD Card to mount using [Nov. 18, 2012][MAGLDR/SD][NativeSD] NexusHD2-ICS-4.0.4-CM9-HWA V2.8

Created FAT32 and Ext4 partitions on SD card.

I put files onto the Fat32 partition ready to install as I have done with previous Roms, but it does not see the SD card when I start File Explorer at all. Any Clues?

Checked that the partitions are as above and tried a few things to get it to work, but no luck so far
[HD2 Android SD Development] enkor:
I have a dual boot with NAND and NativeSD. Is it possible to apply kernel patch to NativeSD rom ? I want NativeSD rom for usb host and if I apply patch from recovery, it will affect NAND rom.

Thx for help
[HD2 Android SD Development] g.andy:
You need a sd recovery

Inviato dal mio multiboot HD2
[HD2 Android SD Development] enkor:
sd recovery still affect only nand rom, but thx for answer.
[HD2 Android SD Development] wis1152:
No it will work with native sd:) see post 2
[HD2 Android SD Development] enkor:
So, I dont know what Im doing wrong. I boot from sd recovery than flash usb-host patch and than it will affect nand rom not the nativesd rom.
[HD2 Android SD Development] wis1152:
I haven't played with native SD for about 4 month but I know the zip file has to be set up for native sd flash, I sure someone that is using native SD can help you:)

Some zip file will update your android nand If it not set up for native SD any way happy Christmas:)
[HD2 Android SD Development] yeyoo:
hello

when i try to update the kernel following the method in update 6 of nativesd multi boot

i get errors i cannot understand why and the kernel wont change

im using nexus hd2 jellybean nativesd and trying to update kernel to marc jellybean kernel
[HD2 Android SD Development] d.brega:
NativeSD switch rom

Please help me.

I have install the rom PARANOIDANDROID version 2.15 with more application.

I have to test another rom.

When i compile the new files rom downloaded i lost my PARANOIDANDROID version 2.15?

Thank's a lot for you response.
[HD2 Android SD Development] Robbie P:
Which new build did you install?

There is a nativeSD ROM which overwrites PA files, can't remember which one ATM.
[HD2 Android SD Development] bravo261:
can anyone help me out with this? i haven't been able to back up anything ever and i've installed version 10 probably 50 times across my different roms yet still get the same error, though zain0300 seemed to have resolved his

on any rom, even after i unstall the nativesd app via Applications or titanium, when i reinstall, it asks if i want to replace the existing application. likewise, if i install version 10 across all my roms, i'll often reboot and version 9 will reappear.

something about the apps directory i need to kill off?
[HD2 Android SD Development] datagr:
Kernel updates to nativeSD builds is supported only to kernels from Tytung,securecrt and dorimanx.

For marc kernel I should create a proper zip to flash it through the app.

I will have it ready as soon as possible :)

Merry Christmas

---------- Post added 28th December 2012 at 12:02 AM ---------- Previous post was 27th December 2012 at 11:53 PM ----------

In order to create a backup make sure you do the following:

1) Go with root explorer to /nativeSD/name_of_rom/system/app and delete nativeSDboot.apk

2) Go with root explorer to /nativeSD/name_of_rom/data/app and delete nativeSDboot.apk if exists

3) Reboot your device

4) Download the latest apk from XDA devs forum(here)

5) Install

6) Make sure you have no folder called RomBackups in your sdcard

7) Make sure you have at least 1 GB free space in your sdcard (maybe 2 GB would be needed for large roms)

8) Open the app and give root access

9) Go to backup and click your rom to backup

Also try to reboot from the app.

If it doesn't reboot then you have problem with the commands executions (it happens to sense roms and we don't know why) and this means that you have to install another nativeSD rom ( I suggest a CM7 rom which is minimal and easy to test things) and from there do all the following procedure.

I hope you will make it. :)

Merry Christmas!

---------- Post added at 12:05 AM ---------- Previous post was at 12:02 AM ----------

As wis1152 said you have to modify the update-script from the zip file to update a nativeSD rom.

In the next updates of the app, this feature will be available. :)

Merry Christmas to you, too!

---------- Post added at 12:09 AM ---------- Previous post was at 12:05 AM ----------

What do you mean compile? :eek:

All you need to do is flash the new nativeSD rom through cwm recovery, that is made for nativeSD, and then go from nativeSDmultiboot app and switch roms back and forth. :)

Don't modify anything if you are not really sure on what you are changing.
[HD2 Android SD Development] bravo261:
Whew...thanks for the reply but still no go after following the directions. I've been able to boot between multiple roms well, just the backup. Deleting the apk and RomBackup folder let me get a message that I can backup roms, which is a new message, but it then goes on to give the .tar error.

The roms aren't named anything odd either, as I found that spaces in the names gave me switching errors
[HD2 Android SD Development] datagr:
Can you try do a backup with a rom that I use and I am 100% sure that it works? Try the latest cm7 nativeSD rom.

Which rom are you trying to backup and from which rom are you running the app?

How much free space on your sdcard do you have?
[HD2 Android SD Development] enkor:
I dont know what to modify, so I will rather wait for new version :). Thank you.
[HD2 Android SD Development] Ekapatt:
version 10

Thank you

version 10 Worked very good. :good:
[HD2 Android SD Development] d.brega:
OK actually I want to install the rom overwrites files PA.

But I lose the settings, sms, contacts and programs installed in the old rom which is overwritten?

thank's a lot for response.
[HD2 Android SD Development] spam.anonym:
hi!

hope this isnt a stupid question.

with normal SD-ROMS you should allways shutdown the device, not reboot. cause of sd-card promlems or so. can i reboot nativesd-roms without problems? or should i also shutdown completly?

(sry for my poor english)

k.r.
[HD2 Android SD Development] gazzacbr:
Ah yes, I had forgotten about not rebooting but I use magldr nand with data on ext and also a native SD builds and have never had any corruption. So for me I would say it has made no difference.

Maybe a warm reboot is not recommended but I never need to do that anyway.

Sent from my HD2 using the power of Jelly Bean
[HD2 Android SD Development] mjharis:
Heyho,

how to flash 4ext oO using magldr.

There's no Daf.exe in it and can't flash it via cwm

anyone give the clue :P

regards
[HD2 Android SD Development] adityameena26:
bootloop after installing apps

i successfully converted a rom to nativeSD..but whenever i try to install any app..it starts from android boot screen..{not full reboot}..anybody help plzz..
[HD2 Android SD Development] henry9:
i need some help: i have this rom intalled in native sd, i use a beat audio headphone but beat audio do not work, i have no sound when i select beat audio to perfect the sound
[HD2 Android SD Development] datagr:
If you have WP in NAND then this is the problem.

I had experienced the same situation with a cm9 nativeSD rom and I couldn't find solution for that problem.

If you are willing to flash an android rom in NAND and try your custom rom in nativeSD please share the results here. :)

---------- Post added at 02:22 AM ---------- Previous post was at 02:21 AM ----------

Why are you posting this problem here? Obviously this is not related to nativeSD technology my friend...

You have to search in another topic for your problem, sorry.
[HD2 Android SD Development] mytboss:
I initially installed 3 NativeSD Roms in my sdcard in this order:

1. BoxmaX

2. PAC

3. HYPERDROID

The three ROMS runs interchangeably smooth using the NativeSD Multiboot version 10 until I installed

4. JELLYTIME rom

Now, when I used version 10 to switch to other rom, I got this errors (in order of appearance):

error while trying to execute:#!/system/bin/sh

Error while trying to execute:cp sdcard/NativeSD/PAC/*sdcard/NativeSD/

Error while trying to execute:rm-f sdcard/NativeSD/PAC/*sdcard/NativeSD/rom_name.txt

I am stuck to JELLYTIME rom because of this. Is there any solution to this? Thanks
[HD2 Android SD Development] mytboss:
Problem Solved

It's OK guys. I was able to switch to one of my roms in my Native SD folder simply by pasting the following script in Terminal Emulator:

#!/system/bin/sh

echo

echo "Switching ROMs..."

echo

cp sdcard/NativeSD/HYPER/initrd.gz sdcard/NativeSD/initrd.gz

echo

echo "Done"

echo

echo

echo "Your device will now boot into HYPER"

echo

reboot

Take note: If you will paste it in Terminal Emulator, just COPY the text exactly. You only change the name of the ROM. Wait for the emulator to do its thing. In my case after the emulator did its job, i manually rebooted my hd2. My device booted to HYPER rom afterward. From hyper, I was again able to use Multiboot version 10 to switch to other roms in my nativeSD folder EXCEPT that i did not TRY switching to Jellytime rom. It seems to me that this rom refuce to be switched off.

I hope i made a little contribution to the community.
[HD2 Android SD Development] datagr:
You say that it shows something about rom_name.txt. From that I understand that you are not using the latest version. Please download (again) the latest version. It should work properly. I have tested Jellytime personaly and the multiboot app is working. Let me know if problems persist.
[HD2 Android SD Development] iphuang:
Error when switching ROM

Hi,

I use clk bootloader and installed NativeSD roms. I tried to use the nativesdbootv10.apk to switch nativeSD rom.

When I pressed the 'clk' button, there was an error message "Error while trying to execute flash_image..."

I am running nand ROM and the NativeSD ROM also works through sboot.

I copied the mentioned two files in flash_sboot_v2.zip to sdcard/nativesd, too.

What's wrong?

Edit

* I have found the answer. I am using MIUI on NAND and there is no flash_image in MIUI.

I grab one and place it in /system/bin. Thereafter, everything goes fine.
[HD2 Android SD Development] datagr:
Good that you shared the solution here so if anyone else have the same problem we will have a reference. :)

After all, this topic is mandatory for all nativeSD topics.
[HD2 Android SD Development] rin67630:
Can you please permit an android noob to raise a critical question?

Why ext4? does Android require it over ext2?

I come from Linux and know that ext2 runs MUCH faster on a basic SD card. (your mileage my vary on a SSD). To my knowledge ext3 and ext4 just add neat things like journalling which make the filesystem more robust and a lot of stuff for high load servers, but do involve lots of incremental writes to disk, which makes them unsuitable for a small filesystem stored on a basic SD card.

At least on Linux. Is it different in the Android world? Just wondering?

Would your guide work on a ext2 formatted card?

Thank your for your opinion and a QSL.

RIN67630​