yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] ictimai:
Hey, datagr, have you already considered incorporating option to choose *boot partition like in this script - maybe kokotas wouldn't mind to include his work?
[HD2 Android SD Development] NYLimited:
You can't format NAND as ext4.

NAND is an MTD device in the HD2. MTD devices are dumb and must rely on file-system for wear leveling. SD cards and USB-sticks, have an internal controller that manages wear levelling - remapping flash blocks and showing flash as a block device.

---

Turn on, tune in, drop out... (via Tapatalk)
[HD2 Android SD Development] Xylograph:
I used the wrong ramdisk for PA BootNandFromSD, but will be fixed next PA update ;)

Sorry for that..
[HD2 Android SD Development] ictimai:
So, why was it said filesystem like NILFS saved SD in terms of wearing off?
[HD2 Android SD Development] tytung:
1. You could use NAND space (system, data, cache, etc.) for anything while running NativeSD.

But, is there any benefit?

2. Yes, it is possible to make a NAND rom boot from the sdcard/nativeSD/ folder. I.e. Put system and data in NAND, and put zImage and initrd.gz in SD card.

Actually, it was an old feature since MAGLDR supports "Boot AD SD", so kernel devs can test new kernel without flashing it into the boot partition.

3. AFAIK, we cannot format NAND as ext4.
[HD2 Android SD Development] g.andy:
I downloaded the kernel of securecrt jb (not the one for native sd),i rename to update.zip,put in the folder nativesd of the fat32, i upgraded from the kernel, i did reboot, but after has not been update,why?

Inviato dal mio HTC HD2 con Tapatalk 2
[HD2 Android SD Development] ogonzuhnina:
I think the wear-leveling term is overinterpretted here.

What YAFFS does - it handles bad blocks, and their replacement by operational ones. this is true for NAND.

In terms of NILFS - it does control which bits/blocks how written and erased, so that whole memory wears evenly; SD internal controller takes care of the bad blocks themselves - not sure how does NILFS relate to worn-off/bad blocks though :/

Besides, EXT4 has an option to enable TRIM support, which is a ware-leveling algorithm alone (but that's towards EXT3 vs NILFS on SD saga ;) )

CORRECTION:

TRIM is a command sent to SSD controller to mark blocks for erase. This does not have any benefit to SD cards, as their controller does not support TRIM command.

cheers
[HD2 Android SD Development] hboyer:
what kernel update zip should be taken for securecrt 24Sep2012 kernel from here: http://xdaforums.com/showpost.php?p=31958450&postcount=1075

the nand or the nativesd version? (or should it work with both)

I assume it shall update the kernel for all installed nativesd roms - or only for the "active" one?

thanks for your clarification!
[HD2 Android SD Development] datagr:
Because you should read the description before you try :

Added : kernel update(*) for nativeSD ONLY roms ;)

---------- Post added at 01:25 PM ---------- Previous post was at 01:22 PM ----------

It will update the one that the app will inform you before the update occurs.

There is an info message that tells you which rom will get the update.

Also, make sure that you will get the nativeSD update and use it to a nativeSD rom.

This app is made for nativeSD ONLY!

It is clear enough I think on the app description when you download it. :)
[HD2 Android SD Development] denseye:
thanks for your help wis1152

I finally got my ported ROM working in RMNET ! :)

It was just a problem with an unwanted symlink in updater-script

II also solved my wifi problem (conflicts using eth0 or wlan0 in several files)

Now I've got my lovely iCyanogen 1.3 running in NativeSD mode.

My HD2 is flying !!! :D

Thanks to all ! ;)
[HD2 Android SD Development] Xylograph:
You're doing great work m8,

Any chance you could push your app to the market for easy updating ? :D
[HD2 Android SD Development] onlinegames:
Congratulations, denseye!! :)

Coincidentally, I have also been trying to convert iCyanogen to NativeSD using the CM9ight_leo_v1.1a_div2.zip ROM as base. I am facing the same Wifi & data issues with both RMNet & PPP. Which symlink did you comment out in the updater-script to get it to work? Also, do you mind sharing the updater-script?
[HD2 Android SD Development] wis1152:
Can you share what you did to get WiFi working please:):) having problems with WiFi on another port.

Thanks
[HD2 Android SD Development] NYLimited:
MTD is a "Memory Technology Device".

Unix traditionally only knew block devices and character devices (character devices were things like keyboards or mice, that you could read current data from, but couldn't seek and didn't have a size.)

Flash doesn't match the description of either block or character devices. They behave similar to block device but not exactly. For example, block devices don't distinguish between write and erase operations. Therefore, a special device type to match flash characteristics was created: MTD. MTD is neither a block nor a char device.

There are differences between block devices and raw flash devices. SSD, MMC, eMMC, RS-MMC, SD, mini-SD, micro-SD, USB flash drive, CompactFlash, MemoryStick, MemoryStick Micro, and other FTL devices are block devices, not raw flash devices.

A block device

Consists of sectors

Sectors are small (512, 1024 bytes)

Maintains 2 main operations: read sector and write sector

Bad sectors are re-mapped and hidden by hardware (at least in modern LBA hard drives); in case of FTL devices it is the responsibility of FTL to provide this

Sectors are devoid of the wear-out property (in FTL devices it is the responsibility of FTL to provide this)

An MTD device:

Consists of eraseblocks

Eraseblocks are larger (typically 128KiB)

Maintains 3 main operations: read from eraseblock, write to eraseblock, and erase eraseblock

Bad eraseblocks are not hidden and should be dealt with in software

Eraseblocks wear-out and become bad and unusable after about 103 (for MLC NAND) - 105 (NOR, SLC NAND) erase cycles

Ext2, ext3, XFS, JFS, FAT and other "conventional" file systems work with block devices. They are designed this way. Flashes are not block devices.

Do not be confused by USB stick, MMC, SD, CompactFlash and other popular removable devices. Although they are also called "flash", they are not MTD devices. They are out of MTD subsystem's scope.

In order to use one of the conventional file systems over an MTD device you need a software layer which emulates a block device over the MTD device. These layers are often called Flash Translation Layers (FTLs).

There is an extremely simple FTL layer in the Linux MTD subsystem - mtdblock. It emulates block devices over MTD devices. There is also an mtdblock_ro module which emulates read-only block devices. When you load this module, it creates a block device for each MTD device in the system. The block devices are then accessible via /dev/mtdblockX device nodes.

But in many cases using mtdblock is a very bad idea because what it basically does if you change any sector of your mtdblockX device, it reads the whole corresponding eraseblock into the memory, erases the eraseblock, changes the sector in RAM, and writes the whole eraseblock back. This is very straightforward. If you have a power failure when the eraseblock is being erased, you lose all the block device sectors in it. The flash will likely decay soon because you will wear few eraseblocks out - most probably those ones which contain FAT/bitmap/inode table/etc.

If you really want to read/know more go

here

.
[HD2 Android SD Development] denseye:
I had to comment this

#symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid","/system/xbin/iwlist", "/system/xbin/iwpriv", "/system/xbin/iwspy");
[HD2 Android SD Development] tolian_hoang:
Hello everybody!

if I want to run parallel WM and Ext4, how do i do?(sd formaed by SDformatter, and the SD have two partitions Ext4 and FAT32 (primary). on SD i copyed folder Recovery and AOKP_N2408se_dual_installer. nexti don't now, my device rún WM. help me step by step ok .i stupid very.
[HD2 Android SD Development] denseye:
In my case wifi interface was named eth0 in the nand rom, but wlan0 in sd kernel(i used nativesd nexushd2 one).

So i used notepad++ to do a "find in files and replace " from eth0 to wlan0 in all files from original nand rom
[HD2 Android SD Development] Magic2010:
Read, read and read.

http://xdaforums.com/showthread.php?t=913815
[HD2 Android SD Development] Robbie P:
I noticed that smokin901 has put an option in JB beta4 to disable ext4 journalling. This is in order to get a speed boost, at the possible expense of data loss I assume.

Is journalling on in native SD?

Can it be switchable (datagr?;))?
[HD2 Android SD Development] KyJelly69:
could a virtual sdcard be mounted as the ext4 partition (or maybe the other way around?) and fool android into thinking there was an external one there? i could still xfer videos and things to/from the card via adb and or finding a way to dual mount the sdcard as usb and system.
[HD2 Android SD Development] mengfei:
hey why don't you give it a try?

AFAIK Andy needs Fat32 to store pics, movies, music & other files that needs Fat32
[HD2 Android SD Development] famewolf:
Is any part of the NativeSD HD2 ONLY? My impression from what I read is that my Desire HD could easily also use the NativeSD method by having it's initrd.gz ported along with the appropriate scripts.....are there kernel specific changes? I'm guess from the requirement in the docs to use a "nativesd kernel" that there are but is it something simple that would work on multiple devices? I think the ability to easily run multiple roms with decent speed is something more devices then just the HD2 could use...even my old AT&T Tilt which was plagued by it's limited internal flash would suddenly be able to run more roms as long as a suitable SD card was available.
[HD2 Android SD Development] jully3881:
why my c4 sdcard use the native sd rom the speed is very slower than my nand rom, oh , oh is it my sdcard is too slow, but not , nand read is 4m/s, but my c4 sdcard also read is 4m/s.., why is slower than nand
[HD2 Android SD Development] securecrt:
I highly recommend you go back to use NAND rom until you buy a brand new faster sdcard.
[HD2 Android SD Development] denseye:
hi

for NativeSD we all have sdcard speed fix in init

# SD Card Speed Fix
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

but once my nativesd ROM is booted, when I go in /sys/devices/virtual/bdi/179:0/read_ahead_kb I always have 1024

Am I alone in this case ?

Does anybody knows why ? :confused:

---------- Post added at 10:12 AM ---------- Previous post was at 10:10 AM ----------

I think the modification has to be done in initrd.gz (init file)

so it can't be switchable by datagr app
[HD2 Android SD Development] Tortipower:
Hello, i got always an error if i try to install ext4 nand recovery. It say's "error number7"

Gesendet von meinem HTC HD2 mit Tapatalk 2
[HD2 Android SD Development] Xylograph:
Please let us know if you succeed in this.. If so.. this method could be a breakthrough for a lot if not all android phones ;)
[HD2 Android SD Development] giovanne:
for me too, when I start SD Speed Increase it shows Status of 1024 (in PA2.15)
[HD2 Android SD Development] melando:
+1

The SD speed increase app can be set to correct this after every boot but I understood that 2.15 was to have 2048 as default...
[HD2 Android SD Development] canaQ:
I'm sorry if this has already been asked. Is it possible to boot directly to my NativeSD ROM instead of booting into magldr and select 'Boot AD SD'? If I let it boot normally it still boots into my NAND ROM.
[HD2 Android SD Development] Mithrandix:
Go in Magldr to 10. Services. Then Bootsettings > Bootsource > SD AD

Anyone could help me with finding a stable and fast SD card for Native SD?

I got two SD's that i tried and they both fail in some deperatment:

1. http://www.ebay.nl/itm/ws/eBayISAPI.dll?ViewItem&item=221014838532 keeps crashing randomly. (aka i have to reset all the time and it wont go in to sleep mode)

2. A sandisk 8 GB 4 class SD card. It works but waaay slower then nand.

So could anyone share their name of the SD card they are using? That is fast and stable.
[HD2 Android SD Development] Xylograph:
aMAGLDR V1.13 Boot menu :

10. services > 1. Bootsettings > 1. Boot source > 1. Android from SD
[HD2 Android SD Development] canaQ:
Thanks for yor reply!

About the SD card; I'm using an ADATA 32GB Class 4, one of the cheapest at the time, but it works perfect. Never had any problem with it, NativeSD ROM is running smooth as well (smoother than from NAND!). Just my 2 cents...

EDIT: How can I switch between ROMS with the NativeSDMultiBoot app? I tried putting the ZIP in the NativeSD folder and on the SD card root, none of them worked.
[HD2 Android SD Development] azizi_ppc:
I have in one hd2 16gb class 10 adata and it work ok, but in another hd2 with 8gb class 4 kingston card android is working bad, both are ranning the same rom

increasing speed don't change anything
[HD2 Android SD Development] jully3881:
you say the NAND flash R/W speed is only about 4MB/s, but my sdcard is C4 , so my sdcard R/W is higher than 4MB/S, but now why use thd native sdcard rom is too slower than the nand rom? what work the speed of the rom, read speed or write speed?
[HD2 Android SD Development] ppk.net:
No guy, not put the zip, but install via recorery as usual

Then in multiboot app

press new rom

press clk (instruction in the app skip this step)

press reboot

that is

:cowboy:
[HD2 Android SD Development] Getrid:
Hello,

put the zip file anywhere, in settings set a tick at allow uncertified apps, with file explorer navigate to the multiboot app, install it. Install your desired ROM as usual via recovery. After that you can open the multiboot file normally. Be careful! To change the ROM youfirst have to tick the currently running ROM. And if you want to delete a ROM you mustn't(!) delete the currently running ROM.

Have fun

Getrid ...
[HD2 Android SD Development] giovanne:
in terms of the sd card speed, has someone from you made some test with AnTuTu?

For me AnTuTu shows really different results on same SD Tests.

I have started with WriteSpeed about 5MB/s, some time later I have only 3MB/s, later maybe 4MB/s ...

Same for Read, sometimes 15MB/s, sometimes 8MB/s.

All on the same card (Sandisk Class10 32GB, although same behaviour with Sandisk Class4 32GB card)

Isn't it a good way to test the card with AnTuTu?

But general feeling is smooth.
[HD2 Android SD Development] VDodi:
Cannot select AD SD Dir in Magldr

Post deleted for now! Sorry! :(
[HD2 Android SD Development] Robbie P:
That is how it works.

Next goto 2. boot ad sd:)

Edit; did you select NativeSD folder in AD SD DIR?
[HD2 Android SD Development] VDodi:
Really? Hm will try but now installed PA to NAND... need to charge the phone. After I'll see! Thanks!

Edit 1: No I cannot select the NativeSD in the magldr... :-\ dunno what doing wrong...

steps what I made so far:

1. format sd card on computer (2,5 GB sd-ext [ext4 primary], rest fat32 [primary])

2. task29 (HD2 toolkit)

3. install magldr (HD2 toolkit)

4. repratition of magldr (HD2 toolkit)

5. install 4ext recovery by DAF.exe

6. install PA 2.15 via 4ext recovery (select install to sd-ext, connection type rmnet)

7. reboot device

8. something new is on sd-ext, because less space is free now...

9. back to magldr and try to select NativeSD at services--> bootsettings --> ad sd dir but when I select ad sd dir it immediately drops me back to the magldr front page. I cannot see anything neither select anything.

What step did I missed? I used to understand how-tos and have no problem so far following them :-\

Thanks for your help!
[HD2 Android SD Development] HypoTurtle:
Three suggestions:

1. Reboot a few times

2. Unplug/replug the sdcard

3. Check both partitions are primary
[HD2 Android SD Development] VDodi:
Interesting... put in a random sd-card what I've used before and now the menu is showing... And I see folders from the fat32 section (there is no ext partition on this card I think).

Maybe something wrong with my 32GB Sd-card?...

Anyway thnaks for the help! I'll try to investigate this issue...

Edit: Checked the malfunctioning Sd-card: both partition is primary and there is a NativeSD folder at the fat32 partition.
[HD2 Android SD Development] Robbie P:
4. Make sure your first partition is FAT32, EXT4 is second
[HD2 Android SD Development] boxmax:
initrd.gz for " Sense 3.5 android 2.3.5" Native SD ...

Must use old kernel ( tytung r14 or dorimanx or rafpigna ... ) kernel marc not support Native SD
[HD2 Android SD Development] HypoTurtle:
Thought that on first reading but if it installed fine the he was good on that regard.

Have had this issue a few times, myself on minute can't set sd dir, next minute I can, so wouldn't say it's a faulty card, I'd make sure you've set Magldr to boot to menu, try to set sd dir, remove sdcard (while still on magldr menu), try sd dir again, then reinsert card and see if you set sd dir.

ext4 size shouldn't be an issue, have you tried reinstalling (which ROM where you using), it could that the partition wasn't unmounted properly after install.

What happens if you set it to boot automatically to SD android? Nothing? Might've been a bad ext4 format I suppose
[HD2 Android SD Development] VDodi:
I found out it is some problem with my 32GB Sd-card, because with an 8 GB card it is working flawlessly.

Tried to format and do the partition of my 32GB card with the 4ext recovery but no luck... maybe I want too big ext4 (2 or 4 GB - but on the 8gb the 2 gb ext4 is working...)

Any idea what could be wrong? I really want to use NativeSD on it... :)

Edit: Thanks for the previous post! It is unbelievable but... it seems to work now... at least I could select AD SD DIR and now the system seems to boot...

I never had the idea to plug/unplug sd card when I'm in magldr... I'm too scary probably? :P

Anyway thanks a lot for your help guys! :)

Edit2: rebooted several times and have the same problem each and every reboot... at least now I take out sd card and everything is fine... something must be wrong with the sd card... anyway thanks again!!!
[HD2 Android SD Development] OvaisAlam:
Now I can install one rom in SD card, one rom in NAND and multiple roms in SD Card via NativeSD, am I right?
[HD2 Android SD Development] KyJelly69:
if i knew how i would have done it so i could get all the credit but i can't so someone else can get all the thanks.

i don't think it matters what file system it uses just that it sees an sdcard. if the sdcard that it sees is virtual and mapped to the ext4 part(just like we do with app2ext) then both needs would be met and we would get to use the entire sdcard size without needing seperate partitions.
[HD2 Android SD Development] jully3881:
you say the NAND flash R/W speed is only about 4MB/s, but my sdcard is C4 , so my sdcard R/W is higher than 4MB/S, but now why use thd native sdcard rom is too slower than the nand rom? what work the speed of the rom, read speed or write speed?

i want to know why your native rom is slower than nand on the same r/w speed of the sdcard and the nand, i want to know know know know
[HD2 Android SD Development] ppk.net:
Yes

:D
[HD2 Android SD Development] OvaisAlam:
Now I am using two flavors of JB and two flavors of ICS on ONE HD2.
[HD2 Android SD Development] king200:
I ran NAND x NexusHD, and NativeSD x JB, NexusHD, and PA on a single 32 gb card. I wanted to go to JellyB and wanted to test first. My problem was that I only had an ext4 partition of 2 go and the memory was low for the 2 NativeSD roms. I didn't know,

" how to remove a single rom and recover the space on the ext4 partition"?.

I made a mess of it and deleted the NAND rom. I was using EXT4 recovery and must have made a bad choice.

FYI, you can, and I did change the sizes of the FAT and ext4 partitions using gParted. I did so successfully changing from 0.5 gb to 2gb.
[HD2 Android SD Development] datagr:
Use this tool. :)

http://xdaforums.com/showpost.php?p=32004077&postcount=1019
[HD2 Android SD Development] king200:
"Use this tool.

http://xdaforums.com/show...postcount=1019"

I used the tool and wasn't sure which rom I was deleting. The one I just selected or the one that was in current use? I.e., if I was on the NAND rom and selected AOKP which was I deleting? Do I have to reboot to the Rom I want to delete and then delete that one?
[HD2 Android SD Development] Szczepanik:
You cannot delete the NativeSD ROM you are currently using - in fact it is not shown on the Delete rom menu. Actually that is a (potentially dangerous) way of seeing what your currently loaded ROM is by comparing Switch & Delete menu. The blank in Delete is your active ROM.

Cheers

Tom
[HD2 Android SD Development] MSephiroth:
Hi datagr! I tried to use your app to flash tytung's newer kernel on the NexusHD2.. But without success! I followed the instruction that you posted but when click on the button nothing change.. Same for Fix permissions and Clear dalvik cache! Am i missing something? Thank you for your work :)

Inviato dal mio NexusHD2 con Tapatalk 2
[HD2 Android SD Development] c1cl0n:
With console (terminal) all root users can mount and edit any file from NAND or NativeSD partitions at the SD builds

I just added master tytung's script with modifications to autostart and I'm happy man

:laugh:

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]

[COLOR="RoyalBlue"]# mount NativeSD system partition to /system_native
mkdir system_native
mount -t ext4 -o rw,noatime,nodiratime /dev/block/[B]mmcblk0p2[/B] [B]/system_native[/B][/COLOR]

... and it's working perfectly (screenshots in attach)

and you can modify (delete, wipe dalvik, add/delete apps and apply patches and more and more) directly from SD builds

:o
[HD2 Android SD Development] datagr:
Are you in nativeSD nexusHD2? This tool works only for nativesd rom. If yes, then go 1st to switch menu and choose nexusHD2 option and then try update the kernel according to the guide I have posted. :)

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

Please don't use the app in NAND. It is for nativeSD builds only and it will create problems.
[HD2 Android SD Development] MSephiroth:
Yesss it worked! That was the missing step! I thought the app automatically knew the rom from which was running... (so no need to select it manually)! by the way, thank you again! ;)

Inviato dal mio NexusHD2 con Tapatalk 2
[HD2 Android SD Development] secaplus:
Hi Datagr

I've some issue when using your application with Boxmax full nativeSd. I've some error when trying to reboot, fixing permisssion, deleting some ROM, ... Is it due to Boxmax rom structure, or did I have to re-instal the rom ?

Thanks, Secaplus
[HD2 Android SD Development] datagr:
I have also the same errors in Boxmax rom but they are only false error messages. The functions are actually executed normally. Just ignore them. I will debug this case tomorrow and post you my results. :)
[HD2 Android SD Development] c1cl0n:
I need for help with BASH (.sh) script for Native installer:

- How I can mount for read/write sdcard & boot partition from installer?

I default tryed this script (install.sh) but I still can write to boot partition zImage file

inird.gz successfully copyed and zImage not changed
[HD2 Android SD Development] canaQ:
Something is still not very clear for me: when I use NativeSD and want to flash a .zip (say, Google Apps), do I have to flash that in 4EXT Recovery or in CWM?