PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Apache (http://forum.ppcgeeks.com/forumdisplay.php?f=14)
-   -   OEM & General ROM questions (http://forum.ppcgeeks.com/showthread.php?t=6693)

YaTwice 08-01-2007 12:57 AM

OEM & General ROM questions
 
Can anyone enlighten me on the following or point me to a source?

1. How is memory allocated on the 6700 in regards to the ROM?
Meaning I always have a 65M Rom image but my storage memory
decreases after changing OEMs, etc and reflashing. I thought ROM
was separate from storage memory? Does moving files (initflashfiles
or provXML) after flashing put them in storage memory?

2. Why are some of my files not being moved when other are?

Example:The following provXML code does absolutely nothing:

Code:

<characteristic type="FileOperation">
        <characteristic type="\Windows\Rings" translation="install">
        <characteristic type="MakeDir" />
                <characteristic type="Move">
                        <parm name="Source" value="\Windows\cRing1.mp3" translation="install" />
                </characteristic>
        </characteristic>
</characteristic>

I've also tried this:
Code:

<characteristic type="FileOperation">
        <characteristic type="\Windows\Rings" translation="install">
                <characteristic type="MakeDir" />
                <characteristic type="Copy">
                        <parm name="Source" value="\Windows\cRing1.mp3" translation="install" />
                </characteristic>
        </characteristic>
  <characteristic type="\Windows\cRing1.mp3" translation="install">
    <characteristic type="Delete">
  </characteristic>
</characteristic>
</characteristic>

And I've tried the appropriate initflashfiles.txt:

Copied: Sometimes
Moved: Never

Code:

        ;==================================================
                        ; Start: FileSetup[MyCustomRingtones]
                        ;==================================================
                       
                        ;==================================================
                        ; Start: Shortcuts[ MyCustomRingtones]
                        ;==================================================
                        ; NONE
                        ;==================================================
                        ; End: Shortcuts[ MyCustomRingtones]
                        ;==================================================
                       
                        ;==================================================
                        ; Start: Files[MyCustomRingtones]
                        ;==================================================
                       
                        ;Incase we get put ahead of the windows directory constructor
                        Directory("\Windows"):-Directory("Rings")
                       
                        ;Move Files
                        Directory("\Windows\Rings"):-File("cRing1.mp3","\Windows\cRing1.mp3")
                       
                        ;==================================================
                        ;  End:  Files[MyCustomRingtones]
                        ;==================================================
                       
                        ;==================================================
                        ; End:  FileSetup[MyCustomRingtones]
                        ;==================================================


Any Thoughts?

gguruusa 08-01-2007 01:37 AM

Your program memory goes down because OEMs sometimes need to make copies of the files in different paths or with different names than those found in /windows - the copies consume program memory (done via initflashfiles.txt or provxml).

You provxml looks like it's missing the enclosing <wap-provisioningdoc></wap-provisioningdoc>

You can't move ROM files, you can only copy them.

Not sure why you're having intermitent success/failure with initflashfiles.txt. I suspect it's something your doing. The syntax looks correct.

YaTwice 08-01-2007 02:16 AM

Thanks for the quick reply!

That was a excerpt from a provXML, I have the <wap-provisioningdoc></wap-provisioningdoc> enclosing the whole file.


So, Just to clarify:

EVERYTHING in my ROM is installed\locked to \Windows,
Then shortcuts, templates, etc are COPIED to the appropriate directory?

luv2chill 08-01-2007 02:22 AM

That's exactly right. Here's how to think of it.

You are creating a read-only image when you run createrom.bat. Think of it like creating a CD or DVD image. Once it's created--that's it.

Therefore initflashfiles and provxml are just copying files from that image to the storage partition on your device. This is why you want to try to avoid too much of that--otherwise the advantages of "baking" that app into your ROM are negated.

YaTwice 08-02-2007 04:34 AM

OK, I was under the assumption that the initflashfiles was executed during the ROM build, not at boot time on the device.

Any info on the structure of the imgfs image? Does it support subdirectories, etc. that could be integrated at build time?

luv2chill 08-02-2007 04:52 AM

I'm sure there is documentation somewhere (maybe in the PPC SDK? Not sure). But no it is a flat file structure, and is all located in \Windows. Literally every other directory and containing files you see on your device is created on first boot and is using up space in your storage memory.


All times are GMT -4. The time now is 11:05 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0