yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ShaDrac:
Yes, it's possible,

But I think it can also be done with a MortScript (since MortScript can run on PC & PPC).

Then you could include that script into your kitchen (kitchen_build_rom.bat) :cool:

Maybe RoryB can post an example script. :)

Thanks!

ShaDrac
[Windows Mobile Apps and Games] selyb:
I have time to write a vbscript to do this, but I may not have time to debug potential in-depth bugs.

I'll do what I can this evening.
[Windows Mobile Apps and Games] twopumpchump:
yeah i would like to have a script that would move files from dump to say "zip" folder, divide them up into folders of 50 files and zip them before imgfsfromdump starts. then all i would have to do is add the zip files to my sdcard and flash :)
[Windows Mobile Apps and Games] jagan2:
Yes i have.
[Windows Mobile Apps and Games] seatone:
Hi there,

tried this one with extendir 1.6 4 mb cache. It works just fine. Haven't noticed any speed difference, although I haven't benchmarked it.

Cheers
[Windows Mobile Apps and Games] RoryB:
I used to do is run your cab creator and then use MSCEInf.exe to extract the folders from the cab. Then I would zip these up.

Now I just follow the template and based on the number of files in the package divided by 30, I create the number of ### subfolders. Then I copy up to 30 files from the pacjkage folder to each sub folder. Then I zip it up. I rename the rgu file to a reg file.

I currently put these zip and reg files into my extended rom and my rom includes a mortscript that after flashing unzips all zipfiles in extended rom and runs all regfiles there too.

We could even create a simple batch file that you could drag and drop a package folder onto and it could create the Extendir folders based on the package folder name, and so on. It could even pull the rgu out and rename it to reg for use by our customizations.
[Windows Mobile Apps and Games] RoryB:
Hmm. . . How would we flag which ones we want to "pull" out of the dump folder?

I currently pull them out of my ROM_batch and zip them up to put with the reg files in my Extended_ROM.nb file to import into my nbf file. Then I throw my ROM_Batch into my OVEN and cook the ROM without those files. I use my Extended_ROM because of the limited ROM space in these old Wizards.

I currently have indivdual zip and reg files for each package I am Extendir-izing to be able to pick and choose which packages I put in my Extended ROM. We could create one big zip file and reg file that would contain all of the Extendir-ized stuff. The file could then be put in an EXT packages files folder and the reg file would become the app.reg file.

Depending on your UC method, unzipping the file and running the reg could be added to config.txt of the autorun or runcc features or what ever other method.

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

Been thinking.

We could create another folder group like EXT packages. We could move packages from ROM or OEM to say an Extendir folder. Our kitchen batch file could maybe take all the package folders from there and run a batch that creates all the Extendir folders. Then the kitchen batch would zip these up into a single zip file. The rgu files would get combined into a single app.reg file. Then an EXT package would get created and added to the EXT group. Any provxml files would just be copied to the EXT package files folder.

One problem is the different kitchens work differently. I have tried to get EVK to work for the Wizard, but have not gotten it to work correctly. There is stuff nested in the exe file that runs before the batch file. This includes platformrebuilder. So I would not be able to add this to the kitchen batch and have it run at the right time. It would have to be a separate batch.

BTW I use a modified version of Cracing's CRBuilder2.
[Windows Mobile Apps and Games] selyb:
All of this is doable. What I need to know is

folder structure including path to Make_Extendir_zips.vbs and path to folder containing packages to zip.

Best to tell me exact paths but I will code it to use relative paths.

I think that everything else, I can make configurable so it would be usable by either of you.

Oh, I also need to know if anything needs to be done to packages whose files have been zipped.
[Windows Mobile Apps and Games] selyb:
<_<

>_>

what happened to everyone?
[Windows Mobile Apps and Games] jackleung:
Do anyone know how extendir handle duplicated files over multiple folders (including original \Windows)? e.g.

\Windows\wince.nls

\Extendir\WinDir\1\wince.nls

\Extendir\WinDir\2\wince.nls
[Windows Mobile Apps and Games] bgcngm:
Well, this one I know because I tried:

\Extendir\WinDir\StartMenu_GridScene_480x640.cpr has more priority than \Windows\StartMenu_GridScene_480x640.cpr.

Between \Extendir\WinDir\1\wince.nls and \Extendir\WinDir\2\wince.nls, I don't know.
[Windows Mobile Apps and Games] bobsbbq:
I guess everyone is enjoying their weekend. After all that flashing and work shadrac was doing I guess he needed a rest. :D
[Windows Mobile Apps and Games] elyl:
Yeah, I'm surprised there isn't more documentation on this. It would make sense that the Extendir file would take priority over the Windows file, meaning you could effectively "overwrite" a ROM file, but I'm not sure.
[Windows Mobile Apps and Games] bgcngm:
I have already answered to that...
[Windows Mobile Apps and Games] RoryB:
Interesting. . .

So maybe we can overwrite dll files etc and reset phone to try out different ones.
[Windows Mobile Apps and Games] mondilv:
Manila

Manila.exe (2.5 with CFC) don't work in Extendir\WinDir.

Proxy files (libgles_mn.dll & zlib_mn.dll) - normal.

If add manila.exe to folder - manila not start.

P.S. Thank for you hard work. It's very interesting project. Wait for the " cached" version.

Interesting, is it difficult to exclude "My Documents" folder from v.1.6?
[Windows Mobile Apps and Games] twopumpchump:
i couldnt get manila to start putting all my _manila files in extendir\windir either, i am using 2.5 2012 cfc compressed.
[Windows Mobile Apps and Games] RoryB:
The old 1919 version of M2D works with all files in Extendir
[Windows Mobile Apps and Games] bobsbbq:
Cook all your .exe, .dll, .xml files into the ROM and you will have no problem. Put all your manila files, compressed or not in zip files and use a mortscript to unzip them and move to Extendir\Windir\Manila

This will work I do it all the time.
[Windows Mobile Apps and Games] jackleung:
Thanks. But would need an answer this one as well. It would be much easier to apply Manila theme without removing the original files if we know for sure how priority is taken for the same files name distributed over multiple folders.
[Windows Mobile Apps and Games] bgcngm:
Well, you just had to try for yourself... Anyway, I've just tried and the priority is (first one has higher priority):

\Extendir\WinDir\DirName\002\FileName.ext

\Extendir\WinDir\DirName\001\FileName.ext

\Windows\FileName.ext
[Windows Mobile Apps and Games] seatone:
Cooked all .manila files in \Extendir\windir

It works alright.

(Manila 2012, WM28232, extendir 1.6 4MB cache)
[Windows Mobile Apps and Games] mondilv:
Sure, I do it all the time.:p

Forgot to add more info: 21896, manila - 2_5_20121431_1 (CFC patched), extendir -v2 Preview/Beta 1.06.
[Windows Mobile Apps and Games] solox:
I wan't to run EzInput 1.5 from Extendir, but seems i'm to stupid to understand. Could someone explain how to do it?
[Windows Mobile Apps and Games] RoryB:
You can:

1) create a cab file to install it using the cab creator on the first page of this thread.

2) create a zip file containing the folder arrangement described on the first page. You will need a reg file to install the registry values.

3) manually copy the files to folders you create in \Extendir\Windir\EzInput and update the registry values.
[Windows Mobile Apps and Games] Farmer Ted:
Try this package, it worked for me. You may want to edit the zip file, though, because I took out all the non-english files from ezinput. You need mortscript for this to work properly. All the mui's, dll's and exe's are in module form, and the support files go into the extendir directory. You can get a mortscript EXT here (it's inside the zip file with a couple other things).
[Windows Mobile Apps and Games] YYYYY:
Hi,

the lates files has the highest priority that means that in your example \Extendir\WinDir\1\wince.nls and \Extendir\WinDir\2\wince.nls, the second file has a higher priority if you put that after the first one.
[Windows Mobile Apps and Games] fr3sh_t0_d3f:
I'm using a CDMA touch diamond and i can't seem to get the preset installer to run during second boot? When i cook with the preset installer I know that it renames my internal storage to storage card. Is there a way I can keep this to say internal storage. Thanks
[Windows Mobile Apps and Games] ShaDrac:
Hi guys,

Hopefully next week, I will be a bit more active again (and post final beta without cache),

I've been recovering from a flu, nothing serious but it eats all my energy and concentrations :(.

ShaDrac
[Windows Mobile Apps and Games] twopumpchump:
no problem man, get better we will be here when you come back :)
[Windows Mobile Apps and Games] RoryB:
Same here.
[Windows Mobile Apps and Games] selyb:
Hey, nobody's phone is more important than your health ;-)
[Windows Mobile Apps and Games] bobsbbq:
Hope you get well soon.

I have found another issue with V2 beta 1.06. With Garmin Mobile XT the whole system slows down to a crawl. Button presses are really delayed, even the hardware buttons also.

I confirmed the by removing the Extendir and also using V1 1.6 which worked without this problem.

I tried putting the Cachefilt back on all volumes but still did not work.
[Windows Mobile Apps and Games] BlackFriar:
I don't know if this is Extendir-related. I ran the Beta w/ Garmin XT without problem.
[Windows Mobile Apps and Games] bobsbbq:
Well it could be related to the combination of the device and storage card filters and Extendir V2 beta combined. But the problem definitely goes away when remove Extendir and or change to the V1.
[Windows Mobile Apps and Games] BlackFriar:
Agreed, it's likely a filter issue. Maybe the final beta will correct this?!
[Windows Mobile Apps and Games] epismax:
Manila In IMGFS

Hi everyone!

I have a question. I'm not sure whether it is related with extendir or not.

My device is Sony Ericsson XPERIA X1. OS build is 23549. and Manila 2.1 is Included.(*manila 2.1 is CFC compressed)

I think (no technical grounds. it's just my opinion) performance of Manila is slow with extendir 2.0 beta.

If I make this manila 2.1 as extendir optimized cab, It will become much faster?
[Windows Mobile Apps and Games] bobsbbq:
I don't notice any slow down in Manila with V2 but it is possible I guess as the V2 beta has 0 cache where V1.6 you have a choice of different cache settings.
[Windows Mobile Apps and Games] bgcngm:
ShaDrac, I hope you recover from that flu.

Does anyone knows how to make a folder appear under \Windows by creating it under Extendir folder? I mean, files under \Extendir\WinDir\Folder_Name1 appear under \Windows. What if I wanted to have \Windows\ManillaGFX but with the files within to be under Extendir?
[Windows Mobile Apps and Games] RoryB:
I am not sure Extendir was written to do that. Everything seems to show up as being in the windows folder.

I used to have ManilaGFX folder for the Angel ROM, but changed the homesettings.xml back to windows folder and moved files from ManilaGFX to windows and then created Extendir Cab file.
[Windows Mobile Apps and Games] bgcngm:
Yeah, that was what I've thought.

I think I'll have to do that also. Thanks, RoryB.
[Windows Mobile Apps and Games] YYYYY:
@ShaDrac

I have an issue with my XPeria camera, as soon as I want to takte a picture with it on the internal storage, the camera tells me that it is not able to save that picture. The save folder is located in \My Documents\Eigene Bilder (My Pictures)\Kamera\100XPRIA.

I can´t change the path of the internal location but if I store the pictures on my sd card, there is no problem.
[Windows Mobile Apps and Games] bgcngm:
Well... lately I've been doing some tests and it seems that this rule doesn't applies with WM6.1, although it does with WM6.5. In the last few days I've been trying WM6.1 build 21056 with Manilla 2D.

I wanted to do some tests with the replacement of graphic files, but when a file already exists under \Windows and a new one (with the same name) is put under \Extendir\WinDir, the two files will appear under Windows folder and Windows won't give more priority to the extendir file.

As I said, with WM6.5 this doesn't happens, only one file is seen under Windows folder and that file is the one the gets prioritized by Extendir.

Strange isn't it? Can you comment on this fact, Shadrac?
[Windows Mobile Apps and Games] epismax:
Thanks For reply :)

I made Manila_Orange_2_1_19203317_0_CFC as cab and tested it.

It is very good! Impressive! (Of course, it is my personal opinion)

But... I encountered a unexpected problem.

I made cab as below.

All "*_manila" files - \Extendir\WinDir\HTCSense\Manila_Files

Other files like dll, exe - \Windows

I can use HTC Sense smoothly. But I can't soft reset :(

My X1 hang up at SPLASH screen "randomly".

Should I put all dll, exe files in ROM?

What do you think? Any suggestion?

EDIT: OK, It doesn't work. Whether I put all dll, exe in ROM or not. X1 hang up at SPLASH screen randomly.

I put all *_manila files(1??? files) in one folder, \Extendir\WinDir\HTCSense\Manila_Files

Is It wrong?
[Windows Mobile Apps and Games] RoryB:
I believe the limit is 30 files per 00x subfolder.
[Windows Mobile Apps and Games] bobsbbq:
Well it depends on the version of manila. I always put .dll, .exe, .xml in the ROM. I put all the manila files in sub folders and zip them and use a mortscript to unzip them and copy to the device. I use about 15 sub folders but as RoryB said 30-50 files per folder. I'm using 124 files per folder and it's working ok.
[Windows Mobile Apps and Games] RoryB:
I based my count on a comment I thought was from ShaDrac. Life would be a lot easier if I could put more in each folder. At 124 files there would probably be a few of my Extendir-ized packages that would need only one folder.

I wonder, if only one folder is needed, could it be program_name instead of program_name\program_name001 ?
[Windows Mobile Apps and Games] selyb:
Extendir is designed to address several different (poorly implemented?) issues with WinMo, one of which is the allocation of too many files in the Windows folder. As I understand it, when any single file is requested, the system actually queries every file in that folder. You could compare the ratio of the # of files to the lag with an exponential curve graph (maybe a little off but just to make the point). The more files you have in the folder, the more each file lags the system. OTOH, there is little difference in lag between a folder with 30 files and a folder with 200 files. A happy compromise between # files and lag is (as per ShaDrac's testimony) 30-50 files.

Edit: Well... seems that I remember seeing 30-50 but now I can't find it :-/
[Windows Mobile Apps and Games] epismax:
@RoryB, @bobsbbq, @selyb

Thank For reply and tips. :)

I splited a folder into 41 folder (using Extendir CAB)

But.. Device is still hang up randomly.

I think I have to test more :(
[Windows Mobile Apps and Games] bobsbbq:
I would not use a cab file as it is too slow. It will take forever to install a cab with 41 folders. A zip file will do the same in 3-4 minutes or less.
[Windows Mobile Apps and Games] sunsetdk:
I could be. I have some programs where I only have a few files, and they just go in /extendir/windir/<program name>

The ones with many files go in /extendir/windir/<program name>/<program name short><number>

example: /extendir/windir/oemfiles/app1

/extendir/windir/oemfiles/app2

....
[Windows Mobile Apps and Games] zenkinz:
I realised that the boot.rgu I've been using for the past few weeks, suddenly won't work anymore when I started to cook WM6.5.5 based ROM for the past 2 days. I'm not sure if it's an issue of WM6.5.5, or the problem persists in my previous WM6.5 based ROM just that I didn't notice.

If you may recall, I've the problem with the photo tab not refreshing the thumbnails when the photo is deleted from the album. The thumbnail of the deleted photo stays until the next reset. I overcome the problem by changing the order of the filter, such that cachefilt comes before extendir.

And all works well until this evening while I was testing my WM6.5.5 based ROM, I ran presetinstaller, and it says the device is not Extendir enabled. I found it strange because I do "feel" the effect of the extendir, as I don't feel any lag when I swipe to music tab, which happened before I started cooking extendir into the ROM.

I tried a few combination, and found that I've to make sure that boot.hv has the right order of the filter (extendir first, then cachfilt), and then I update app.reg in one of my package, to re-order the filter (i.e. cachfilt first, then extendir next). , for the purpose of the photo tab bug.

I also noticed that boot.hv is used in every booting (I had assumed before it's only during first boot), and the ram-based registry hive is used after the device has booted up.

With this setup, the performance of the device is now back to normal. I'm not sure if I'm the only one who cook it this way, but it fix my problem for now :)
[Windows Mobile Apps and Games] bobsbbq:
I think the boot.hv is automatically created by the EVK from the boot.rgu
[Windows Mobile Apps and Games] zenkinz:
actually what I meant is, the boot.hv contains the order of filter where cachefilt

comes after

extendir. Then create a ext package which updates the registry such that the order of cachefilt

comes before

extendir. The two doesn't conflict apparently, as boot.hv being a hive-based registry is used during booting, and the ram-based registry (which the ext package updates), is used once the device has booted up.

boot.rgu is used only to generate boot.hv, but is not used in any way in flashing the rom into the device.

at least from my observation.
[Windows Mobile Apps and Games] bobsbbq:
Shadrac I hope all is well with you. Any update on the progress?
[Windows Mobile Apps and Games] zenkinz:
+1 .. not meant to pressure Shadrac, but can't wait for one that has the cache enabled!
[Windows Mobile Apps and Games] ShaDrac:
Extendir V2 Preview/Beta 1.07

Sorry guys, it took a bit longer than I hoped for but attached Extendir V2 Preview/Beta 1.07. (0MB cache)

If you do find any bugs, PLEASE let me know! :)

For those of you that want to enable cachefilt only at the 'Storage Card', so you can enable the recent documents tab, I've created a workaround for that bug in Cachefilt.

On your storage card create the folowing folders: '\Extendir\Config\VolumeName\Storage Card'

If your 'Storage Card' has an different name, replace the above 'Storage Card' part with your correct name for your 'Storage Card'.

btw. The order (in boot.rgu) can be set to 0!

For this preview/beta I hardcoded that files/folders in "\My Documents" or it subfolders don't use the Extendir optimizations.

This will make notes sync while the order (in boot.rgu) is set to 0. :)

In the final release this is configurable with help of a configuration program/file.

Enjoy! :)

ShaDrac

fyi:
[Windows Mobile Apps and Games] twopumpchump:
wb shadrak :) have a busy day at work today, but i will give it a test either tonight or tomorrow.
[Windows Mobile Apps and Games] bobsbbq:
Great and glad to know you are ok. Was worried there for a bit. Will give it a try today.
[Windows Mobile Apps and Games] bgcngm:
Welcome back, ShaDrac! Good to know that everything is fine with you.

I'm gonna try this new version in a few hours. Will this be the latest version without cache? I'm eagerly waiting for that version. :)
[Windows Mobile Apps and Games] RoryB:
I do not have the recent documents tab, so I do not use the work around.

I still have order (in boot.rgu) set to 0.

Seems very peppy. Do not have the shortcut/zip file problem of the past.

LOOKIN' GOOD!
[Windows Mobile Apps and Games] bobsbbq:
My album refresh issue is gone. I cooked it as is only changing the new version. Now I will try to go back to the Cachefilt on the storage card only. Looking good from my end.
[Windows Mobile Apps and Games] ShaDrac:
Hi makuu,

Could you try attached (non XIP) version?

Thanks!

ShaDrac
[Windows Mobile Apps and Games] bobsbbq:
Shadrac could you explain a little more about how this new config folder structure is to work? I changed my Cachfilt to SDMemory only but my Documents tab is not working now. Maybe I forgot something it has been a while since I was playing with it.

[HKEY_LOCAL_MACHINE\System\StorageManager\SDMemory\Profiles\Filters\CacheFilt]

"Dll"="CacheFilt.dll"

"Order"=dword:2

"FileCacheWriteBackPriority256"=dword:FE

"FileCacheWriteBackTimeout"=dword:A ; 20000ms , defaule is 5000ms
[Windows Mobile Apps and Games] ShaDrac:
Hi bobsbbq, :)

Change the key (on our HD2) to:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory\FatFS\Filters\CacheFilt]

Enjoy! :)

ShaDrac

edit:

This key with values can also be installed afterwards and thus don't need to be in the boot.rgu

This would make it possible to install the Documents tab in Sense (and cachefilt) with just a Cab. :)
[Windows Mobile Apps and Games] bobsbbq:
Thanks, Figured I had forgot something.
[Windows Mobile Apps and Games] makuu:
Thanks Shadrac,

I will let you know of the results.
[Windows Mobile Apps and Games] bobsbbq:
Ok I'm noticing something strange after flash the storage card itself is not visible. Once another soft reset is done everything is ok.
[Windows Mobile Apps and Games] bgcngm:
I don't have that problem. Even in the first boot my storage card is visible.
[Windows Mobile Apps and Games] makuu:
Sorry ShaDrac, it doesn't work I got stuck at welcome screen.

Just like I'm stuck in Paris cannot fly to go on holiday because of volcanic dust cloud.
[Windows Mobile Apps and Games] selyb:
did you ever have v1.06 working?

it is important to know if your problem is only with new version.
[Windows Mobile Apps and Games] epismax:
Enable cachefilt only at the SDMemory?

Hi ShaDrac! Good to see you :)

As you said before, I'm trying to enable cachefilt only at the SDMemory. I searched this thread with "cachefilt". But it is just confusing me :(

First, I have values in boot.rgu as below.

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Filters\CacheFilt]
"Dll"="CacheFilt.dll"
"Order"=dword:2

To preserve boot.rgu, I add additional regs as below.

[-HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Filters\CacheFilt]

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory\FatFS\Filters\CacheFilt]
"Dll"="CacheFilt.dll"
"Order"=dword:2
"FileCacheWriteBackPriority256"=dword:FE
"FileCacheWriteBackTimeout"=dword:A

Is it right? I'm not sure whether deleting entire "StorageManager\FATFS\Filters\CacheFilt" key is right or not.
[Windows Mobile Apps and Games] twopumpchump:
tried latest test version, all shortcuts are in the right places...it just doesnt seem as fast to me. i did a benchmark and my bench was around 200 points lower than with the last test version i used.
[Windows Mobile Apps and Games] zenkinz:
yes, this is what I observed as well (the performance).

that said, I was using it with boot.rgu loading extendir before cachefilt, and the registry loading cachefilt before extendir (I know it's confusing, but if you look at my previous posts, I have explained why I need to do this)

now, if I set the registry such that the extendir is loaded before cachefilt as well, then the performance is back to normal. However, the album problem comes back. In fact, taking new photos will not show up on the photo tab at all (previously it'll, except that it'll not remove when the photo is deleted)

I'm now cooking to just apply cachefilt on sdcard, to see if the problem persist.