yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] Robbie P:
It booted. Had to format the ext4 partition from recovery. Care should be taken not to format sd ext2 because I think that is the WP7 partition.

Data and wifi working.

WP7 seems unaffected.
[HD2 Android SD Development] melando:
Assume you mean on the SD card... I have sandisk class 4 with

- first FAT32 partition (12GB)

- second ext4 parition (4GB)

- third WP7 space (~14GB)

All set as primary.

I created the WP7/non-WP7 split using xboxmod's CAB file for 16GB FAT paritition, so allowing WP7 space to be less than half of the total. I then reduced the 16GB FAT partition to allow the ext4 to be created.

EDIT appears to have crossed with yours, well done.

Maybe I will try wiping and re-formatting the ext4 partition to see if it works better on a second attempt.

EDIT2: yes, data now seems to be working on the 2nd install. Seems to be necessary to use recovery to format sd-ext before use.

Would like to try the PA version when you or wis can let me have a copy :)
[HD2 Android SD Development] Xylograph:
I think something went wrong with your installation...

Also I don't know the steps you have taken regarding the installation.

Try to use the recovery I provided > install the rom (no messing around in recovery with mounting/unmounting partitions) > reboot (to sd.)

EDIT: never mind you got it running ;)
[HD2 Android SD Development] Robbie P:
I just got it to boot from wm6.5 using the same sdcard used previously for dual booting.

Just added clrcad,haret and startup.txt from an sd build.

Edited startup.txt "rel_path=NativeSD" and deleted "data_size=256"

Edit; Data not working but I guess we are waiting for PPP update, wifi works

Edit2; scratch that data working ok, just took time to show itself.

Will try to start from clean sd and install recovery
[HD2 Android SD Development] tytung:
Installing new kernel for NativeSD ROM:

Since we don't flash anything to the 'boot' partition, we could just copy zImage and kernel modules into the SD card (Fat32 and Ext4 respectively).

Execute the script below while running a NativeSD ROM.

Change 'NexusHD2-ICS' to your running NativeSD ROM name.

#!/sbin/sh

# Set the ROM name
export ROM_NAME=[COLOR="Blue"]NexusHD2-ICS[/COLOR]
# Set the kernel zip
export KERNEL_ZIP="[COLOR="blue"]/sdcard/HTCLEO-Kernel_2.6.32-ics_tytung_HWA_r3.5-update.zip[/COLOR]"
# Set the temp dir
export TEMP_DIR="/sdcard/NativeSD_temp"

echo Installing Kernel...
if busybox [ -f $KERNEL_ZIP ]; then
echo Unzipping...
mkdir $TEMP_DIR
cd $TEMP_DIR
busybox unzip $KERNEL_ZIP

echo Copying zImage...
busybox cp -a boot/zImage /sdcard/NativeSD/
busybox cp -a boot/zImage /sdcard/NativeSD/$ROM_NAME/

echo Copying kernel modules...
mount -o remount rw /system
rm /system/lib/modules/*
busybox cp -a system/lib/modules/*.ko /system/lib/modules/
chmod 644 /system/lib/modules/*.ko
chown root.root /system/lib/modules/*.ko

echo Cleanup...
cd ..
rm -r $TEMP_DIR

echo All done!
echo Rebooting...
sync; sync; sync; sleep 5
reboot
else
echo Cannot find a new kernel.
fi

Edit:

You can execute this script via GScript app.

Edit:

V2: set correct modules permissions
[HD2 Android SD Development] c1cl0n:
Hi dear master wis

I think if I did new port of tyween and do not post zip file of port, I don't need any permissions because I just share the success of this

If my screenshots are violate the rights of tyween owner, I'll remove it right now

:(
[HD2 Android SD Development] seaman2k:
i also port slim rom cm9-rc1 from nand to nativesd ..but i dont know if i have permission to uplode it here or not it base on tytung rom with the all of slim roms functions ...wooow it is great but i still remmber someone was port it to nand and after 2 days removed i remmber his name zorua..

and look at this thread http://xdaforums.com/showthread.php?t=1767944...so what do u think ????
[HD2 Android SD Development] wis1152:
You are right my friend:good: What im saying is why dont you release it in sd thread:)
[HD2 Android SD Development] Gastozz:
Can I use 4ext recovery on Nand roms?
[HD2 Android SD Development] wis1152:
I afraid this rom is a NO NO for release to public:( The Nand rom was ported from http://xdaforums.com/showthread.php?t=1536783 krarvind doesn't want any ports of it:rolleyes:
[HD2 Android SD Development] azizi_ppc:
also wont to know that, i have 16GB calss 10 adata
[HD2 Android SD Development] seaman2k:
i asked krarvind now and i am waiting his answer :)
[HD2 Android SD Development] Gastozz:
Why I don't have option boot NativeSD? :confused:
[HD2 Android SD Development] datagr:
I will have it ready tonight mate! :D
[HD2 Android SD Development] famewolf:
Perhaps kravind needs to read the XDA sharing rules.

08/22/2012

http://www.xda-developers.com/annou...addition-to-sharing-policy-on-xda-developers/

Specifically "No selective sharing will be allowed (ie allowing certain people to use it and not others). Should the dev decide to start sharing the work with others, the work automatically becomes fair game for all to use."

---------- Post added at 03:44 PM ---------- Previous post was at 03:40 PM ----------

@Tytung

I may be misreading this but isn't the kernel modules portion at the bottom still updating the nand? I don't see where it's specifying which /system to update or maybe I'm missing something in the process. I'd like to use your latest kernel on multiple nativesd roms.
[HD2 Android SD Development] Xylograph:
Quote tytung : "Execute the script below while running a NativeSD ROM."

The NativeSD /system will be already mounted ;)
[HD2 Android SD Development] makuu:
Ext4 and Web Browser Cache

I want to report my feedback on using a Web Browser (Default & Dolphin) with any NativeSD rom using a 3G connection:

On my case booting via Magldr with WP7 in nand, browsing using 3G is dramatically slow, if I compare my experience using any other SD rom.

So I moved the cache of Dolphin (using lab option),& the one of the default browser (creating a symbolic link) on the SD fat32 partition of my card. The result is really impressive for me and I'm back surfing smoothly. I don't know if it's because of the hardware specification of my card, but the result is there. Browser cache doesn't like EXT4 partition of my card, but prefers Fat32.

I'd like to make test on EXT4 formated without journal, but I don't know how to do that, (if anyone could explain me).

Anyway just my feedback if it can help other member.
[HD2 Android SD Development] LinChina:
Delete

Cheers.....LinChina
[HD2 Android SD Development] LinChina:
Could you provide what your issue is/are as well your kind of set up NAND, WP7 or 6.5 how many ROM's you have already on your SD.......etc. ??

Sorry but your posts sound a little bit weird :confused:

Cheers.....LinChina
[HD2 Android SD Development] tytung:
Yes. NativeSD /system will be already mounted

Maybe datagr could consider integrating this script feature into his great NativeSDBoot app since "updating a kernel" is just a copy-and-paste work for NativeSD.

Simple steps are as follows:

Running a NativeSD ROM

Start NativeSDBoot app (need to know which NativeSD we are running)

Choose a kernel zip file from NativeSDBoot

Do the copy-and-paste work
[HD2 Android SD Development] securecrt:
:good:
[HD2 Android SD Development] LinChina:
Some ROM's have SD boost integrated (settings-> ROM Tool -> performance or settings->performance), if not search for in Google Play store, I use ROM ToolBox Pro.

No recommended value, you have to try and figure out what works best for your set up.

Cheers.....LinChina
[HD2 Android SD Development] c1cl0n:
New Native port in my collection AmeriCanAndroid AOSP HD2 GB2.3.7 CM7.2

:laugh:
[HD2 Android SD Development] hutc:
bug in 4ext recovery

hi xylo i think there is a bug in 4ext recovery ,when i had my new ultra sandisk 16gb card with 30mb/sec ,i formatted with 4ext recovery then rechecked the partitions for errors it showed errors although the partition alignment was normal so when i corrected the errors and tried to install the native sd rom i was unable to do it as when you go to boot settings you see various different alphabets but no recovery folder, then i tried again with no correction after partition and tried to install it works like a charm, native sd roms are damn fast ,it took half a minute to install on my sd card i am amazed,now installing tytungs native sd rom will update with the results,the new sandisk ultra card just cost me 13 dollars on amazon

i am happy
[HD2 Android SD Development] mengfei:
& here is his answer

http://xdaforums.com/showpost.php?p=31969082&postcount=5033
[HD2 Android SD Development] otaku888:
N00b to NativeSD here. I never got on the Nand/Magldr boat so I have always run my SD roms with a Haret loader.

I used to use Exceller's excellent ;) loader to autostart my roms. Is there an alternative to this for NativeSD?
[HD2 Android SD Development] hutc:
clear dalvik and cache partition

hi how to clear dalvik and cache partition in native sd roms
[HD2 Android SD Development] c1cl0n:
- Run the terminal and execute this commands:

:)
[HD2 Android SD Development] LinChina:
And I use mskip Android loader V6.0 which you can find here on XDA

Cheers.....LinChina
[HD2 Android SD Development] otaku888:
But will this work for NativeSD? I thought because it was in an ext4 partition winmo could not see it?
[HD2 Android SD Development] melando:
It runs as if it is an SD Rom in NativeSD folder
[HD2 Android SD Development] filipepro:
Performance Degradation

Hi!

Sorry if my question is a little bit dumb...

Is it expectable to feel a ROM (NativeSD) working slower as the card gets with less space available? I'm talking about the 2 partitions EXT4 and FAT32. In which one should it matters most?

I'm at the Xylo CM9ight... the system performed almost perfectly, but now it, sometimes, lags...

Thanks
[HD2 Android SD Development] seaman2k:
i saw it yesterday ..and like u see i cant share it ..at least i try:mad:
[HD2 Android SD Development] LinChina:
Make sure your EXT4 is big enough, at least 512mb for each Native SD, I made it 4GB big for currently 4 ROM's, FAT32 is 11GB.

Cheers.....LinChina
[HD2 Android SD Development] Xylograph:
I took that value from phoen!x DataOnExt method.. There were various reports of that value was working well back then.. it's still working fine for me.. anyway I see he also changed it back to 2048 :)

I will set it back to 2048 next rom updates if that's the best value for everybody ;)
[HD2 Android SD Development] denseye:
hi

I just ported a ROM from NAND to NATIVESD following c1cl0n step-by-step.

ROM boots well and always seems OK, but I have no mobile connection at all, even to make a call :(

Anyone knows how I could investigate the problem ?

I'm using MAGLDR and RMNET.

Thank you
[HD2 Android SD Development] LinChina:
Did you try to set up APN manually or to restore from an existing build, as far as I know MAGDLR are more stable on RMNET otherwise you can change to PPP and try.

Cheers.....LinChina
[HD2 Android SD Development] datagr:
I will include kernel update function in the next release. :)
[HD2 Android SD Development] onlinegames:
I read the post but am not sure what krarvind meant. Did he mean we can compile the source to create the ROM but just not share the completed zip?
[HD2 Android SD Development] Robbie P:
I am sure that is right. But remember that seaman2K was granted permission. If you do manage it, it might be wise to ask permission yourself.
[HD2 Android SD Development] ppk.net:
the process com.android.phone has stopped

Hi,

I'm on clk 1.5.1.1 cwm recovery

PA 1.5b on nand

AOKP on sboot

I try to install PA 2.13b on tboot

make tboot

install rom zip file

install flash_tboot_v2.zip

reboot by tboot kernel from multi boot menu of clk

nothing stuck

but when rom start (welcome page) the popup window appear

Unfortunately, the process com.android.phone has stopped

:crying:

reinstall -> same

delete PA folder and reinstall -> same

download new zip and reinstall -> same

download new zip form mirror and reinstall -> same

Can someone advise me, how to fix this?

Thanks in advance,

and sorry if wrong thread
[HD2 Android SD Development] bojanbl:
And could you separate reboot and CLK buttons from rom buttons? It would be prettier :D

Can this app be resizable? When I change resolution buttons aren't centered :o
[HD2 Android SD Development] datagr:
Ok my friend but on the next release. You requested this cosmetic change 1 minute after I released the version 6! :P
[HD2 Android SD Development] bojanbl:
No problems ;) Thanks for V6 I am out of thanks for today :(
[HD2 Android SD Development] wis1152:
Hi all, I have had a PM from king200

Can Any help him/her out as i dont use my HD2 daily any more:crying:

Thanks for any help you can give:angel:
[HD2 Android SD Development] Magic2010:
Nice work m8. :good:

Just a tip, maybe after we press the update button, the reboot could be automatic.

IE, after the kernel sucessfully updated, some kind of message "Your phone will now reboot." and after 2/3 seconds auto reboot, and if it fails for some reason a message with "Update failed, please check if you follow all the instrutions"

Something like this. Just a tip. ;)

EDIT:

I'm geting errors, and the kernel flash fails.

Anyone sucessfull update the kernel with the app?
[HD2 Android SD Development] poyensa:
no luck here trying to update kernel on MIUIJB nativeSD booting from WM (CLRCAD+HARET), the screen show error messages in every step and even the final message is updated kernel successfully, the kernel was not updated. One question please ... rom name has to changed in install.sh file, or using your apk it is not necessary? TIA
[HD2 Android SD Development] securecrt:
the problem is weird. how many bad blocks on his Nand flash ?

The NativeSD ROM will not touch the NAND but every time the NativeSD ROM boot up the NAND flash will be detected by the kernel, but it should not write anything to the NAND. I will check the NAND driver to confirm it.
[HD2 Android SD Development] Robbie P:
It worked for me using magldr on cm10 nativeSD.

update.zip in nativeSD folder

No error messages apart from warning to reboot immediately.

The zip file contained "MIUIJB" in install.sh from previous install, so datagr has included this name changing script.

Nice job.:D
[HD2 Android SD Development] datagr:
Try this:

Go to app, then go to switch, then click the running rom, then go to tools and try updating the kernel.

Also check please if the tytung zip has the same folders init with the kernel that you try to update.

The script that is executing is for tytung kernel so maybe that's the problem.
[HD2 Android SD Development] ad2003:
Thank You very much for your great work! I got error messages chmod 644 error ? But finally got the message success...

Ad
[HD2 Android SD Development] datagr:
What rom do you use? This option works only to tytung 3.5 kernel.

---------- Post added at 07:45 PM ---------- Previous post was at 07:40 PM ----------

Please post any kernel that you wish to update so I will add them in the app. :)

For now we have only tytung new kernel support.
[HD2 Android SD Development] ad2003:
Hi datagr,

I am using CM10 - Unofficial NativeSD (Kernel: 2.6.32-ics_tytung_HWA-r3.3_JB)...After reboot my wlan is not longer working...uh...:(

My next question would be: how could I repair my installation? Can I just reinstall the rom?
[HD2 Android SD Development] gpietron:
how can we change the setting to test?

thx,
[HD2 Android SD Development] ad2003:
you can use an app from playstore sd increase...:)

https://play.google.com/store/apps/details?id=com.sdincrease.it&hl=de
[HD2 Android SD Development] Szczepanik:
Cheers

Tom
[HD2 Android SD Development] HanSolo80:
I don't get it

Hi folks.

I'm so lost getting this to work. Although I use custom roms for a very long time now, I'm not getting nativeSD to work. I am using NAND-ROMs for a long time now and the procedure to flash a ROM like this seems to differ a lot from this method.

So what do I have to do?

Right now I have MAGLDR installed with a 170MB system partition. I just don't know how to install this ext4-recovery via DAF.exe since this needs a flash.cfg which isn't in the zip file, and flashing the recovery_leo.img with another configuration cfg gets me an error that reads "cannot read ramdisk image".

So what are the necessary steps to flash the ext4-recovery when I have a working NAND Rom installed?

Thanks for your help.
[HD2 Android SD Development] gpietron:
thanks ! but "if you reboot/turn off your device, you lose the setting that you did" - any way to make the setting permanent without third-party app?

EDIT: putting (used ES File Explorer)

#!/system/bin/sh

echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb

into file "99sdcardreadfix" in /system/etc/init.d and setting permissions to 777 seems to work.

Found in http://xdaforums.com/showthread.php?t=1010807
[HD2 Android SD Development] vicm:
Go to

http://goo.im/devs/Xylograph/Various/Recoveries/NAND, download recovery_4EXT2.2.7_leo_nand.zip, put in on your SD and flash through your existing recovery like any ROM/kernel/fix...

More details here: http://xdaforums.com/showpost.php?p=31506141&postcount=562
[HD2 Android SD Development] datagr:
Yes, you can reinstall the rom. Which kernel did you update? Tytung 3.5 or another kernel?
[HD2 Android SD Development] ad2003:
Hi datagr!

I used tried this one: http://xdaforums.com/showpost.php?p=31958450&postcount=1075 tytung_HWA_kernel.20120924_22_41_NativeSD_jb.zip

With your app, should I take the nandversion?

...I think I am doing something wrong.

Thank you!

AD
[HD2 Android SD Development] datagr:
Ok this is the problem!

You updated the kernel of securecrt. ;)

No problem I will create an update for that.

It will be ready soon.

edit :

After I saw the zip of ics and jb from securecrt, I saw that they are exactly the same like tytungs!

So if you follow the guide I have posted, you will have no problem! :)
[HD2 Android SD Development] securecrt:
I know it's my problem I changed the update zip dir structure. I will change it back. We need some rules for the update.zip.
[HD2 Android SD Development] ad2003:
no, sorry. Its not working. I changed the name to CM10 and tried it again. Errors again - and after update, wlan is not working....

thx!

AD

edit:

Ah! ok! Thank you!

AD
[HD2 Android SD Development] datagr:
I can create switches with cases in the update function of the app so it can accept all the available structures of the kernels update.

The future updates can include all the cases (different folders and different permissions in each folders).

I will try to keep up to date the app like the kernels updates. :)

Edit :

I noticed that the folder structure of tytungs' kernel is identical with your kernel.

Are there any differences that I should add for your kernel, in the privileges, on the script that tytung has posted, for his kernel update?

---------- Post added at 08:26 AM ---------- Previous post was at 08:23 AM ----------

Can you try to update the kernel of tytung 3.5?

I have tested both [tytungs'] and [securecrts' ICS] kernels in a CM9 rom and both of them are working perfect.
[HD2 Android SD Development] securecrt:
I think keep the update zip same dir structure is a good idea , no need to do some special for that, I will change it in the next release.
[HD2 Android SD Development] denseye:
Does anyone have an idea ?

I don't want to try ppp for the moment, because it should work in RMNET ...

And another important thing is that WIFI is not working either

so : NO (mobile connection + WIFI) but anything else looks ok. :silly:
[HD2 Android SD Development] wis1152:
May i ask what Rom you have ported?

Make sure you are using correct lib/modules for the zimage you are using.

Is it all working with ppp ?
[HD2 Android SD Development] denseye:
I'm trying to port iCyanogen 1.3.

I used zimage found in bootsd folder of NexusHD2-ICS-CM9-HWA_V2.7_NativeSD.zip and also system/libs/modules from this same ROM (have same tytung 3.4 kernel as original iCyanogen 1.3)

I didn't try ppp for the moment because I'd like to resolve RMNET problem (I'm a little stubborn ;)
[HD2 Android SD Development] wis1152:
Upload it and PM me the link i will have alook for you:)
[HD2 Android SD Development] denseye:
Thank you for your help, I'll do that once I am at home :good:

But it's very weird : I just installed NexusHD2-ICS-CM9-HWA_V2.7_NativeSD, selecting RMNET during install.

And once the ROM is booted, I have mobile connection ... but ... system/default.prop and sytem/ppp were not deleted (whereas this should have be the case, referring to tytung updater-script.

So the connection is OK, but maybe it's in PPP :D

Is there a way to know if I'm connected in RMNET or PPP mode ?...

Maybe NexusHD2-ICS-CM9-HWA_V2.7_NativeSD is also KO in RMNET :confused:

PS : by the way, I just tested my ported iCyanogen 1.3 with PPP and mobile connection is OK, but wifi KO
[HD2 Android SD Development] zbeky:
Little question - will factory reset in CWM recovery delete all NativeSD ROMS? Because I think that it formats sd-ext in this procedure. Thanks
[HD2 Android SD Development] Magic2010:
Yes it also formats sd-ext.
[HD2 Android SD Development] KyJelly69:
1.can i use nativesd dual installer v5 or should i stick with nativesd dual installer v2? can i still use the rom i have already installed on nand without it getting messed up in the process?

2. would there be any benefit of formatting most of the card to EXT4 and having a very small fat32 and just store everything on EXT4? why do we even need a fat32 part other than to acces from a pc?

3. after clearing the nand would it make sense to use it for taking photos and videos? or as cache/swap/virtual memory? maybe the virtual memory/cache/swap could be written to nand then copied to sd afterwards then read from the sdcard or both in raid0? or use the nand and sd in a 2gig(us hd2) raid0 drive?
[HD2 Android SD Development] Magic2010:
1 - I think you are confusing with NativeSd Multiboot, this app you can update anytime without problems.

The dual installer is the Aroma menu that appears to you when installing a new NativeSd Rom.

2 & 3 - Gonna let this two for the Devs ;)
[HD2 Android SD Development] Spaqin:
You can stick with v2, but don't have to. And you can use NAND ROM and it won't get messed up.

Music, videos, game data. All of this sits on FAT partition. Think about it.

Not rly. I don't think you could even have access to NAND after booting to SD.
[HD2 Android SD Development] tytung:
Sorry for that.

There's a checking bug while selecting RMNET on NexusHD2-ICS-CM9-HWA_V2.7_NativeSD, so PPP is still used even you choose RMNET.
[HD2 Android SD Development] denseye:
No problem, happy to find the bug :D

I will modify your updater script to force rmnet installation of your rom and see if mobile connection and wifi work to compare with my port
[HD2 Android SD Development] tytung:
You can mount NAND at any time when running NativeSD.

cd /

# mount NAND system partition to /system_nand
mkdir system_nand
mount -t yaffs2 -o rw,noatime,nodiratime /dev/block/[B]mtdblock3[/B] [B]/system_nand[/B]

# mount NAND data partition to /data_nand
mkdir data_nand
mount -t yaffs2 -o rw,noatime,nodiratime /dev/block/[B]mtdblock5[/B] [B]/data_nand[/B]
[HD2 Android SD Development] ayysir:
http://xdaforums.com/showthread.php?t=1896614

thought this may interest Xylo
[HD2 Android SD Development] datagr:
And you could use that storage space, also(rom,data,anything)?

Would it be possible to make a NAND rom boot from the sdcard/nativeSD/ folder?

I mean make it boot from nativeSD but use the NAND (yaffs) partition?

Is it possible to format this partition in ext4 instead of yaffs from a nativeSD rom?

I know, too many questions but you exited my imagination with that comment master tytung! :)
[HD2 Android SD Development] HypoTurtle:
Xylograph included a NAND boot initrd.gz (that installed into /sdcard/NativeSD/NAND), with the latest PA and yes it should be possible but it hasn't worked for me; after switching rom to NAND with your app.

I think the formatting NAND to ext4 question was asked before, and believe that it can't be. (Was actually wondering this myself in the pre NativeSD days)

And just to add to this there shouldn't be a problem installing a ROM (composed of .img files) to NAND while running a NativeSD ROM.