PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-01-2007, 12:57 AM
YaTwice's Avatar
Lurker
Offline
Pocket PC: Moto Droid, HTC Touch Pro
Carrier: Verizon
 
Join Date: Jun 2007
Posts: 16
Reputation: 5
YaTwice is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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?
Reply With Quote
  #2 (permalink)  
Old 08-01-2007, 01:37 AM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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.
Reply With Quote
  #3 (permalink)  
Old 08-01-2007, 02:16 AM
YaTwice's Avatar
Lurker
Offline
Pocket PC: Moto Droid, HTC Touch Pro
Carrier: Verizon
Threadstarter
 
Join Date: Jun 2007
Posts: 16
Reputation: 5
YaTwice is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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?
Reply With Quote
  #4 (permalink)  
Old 08-01-2007, 02:22 AM
luv2chill's Avatar
Retired Staff
Offline
Pocket PC: Apache (PPC6700); Titan (Mogul)
Carrier: Sprint
Location: Lawrence, KS
 
Join Date: Nov 2006
Posts: 1,524
Reputation: 143
luv2chill is keeping up the good workluv2chill is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via ICQ to luv2chill Send a message via AIM to luv2chill Send a message via MSN to luv2chill Send a message via Yahoo to luv2chill Send a message via Skype™ to luv2chill
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.
Reply With Quote
  #5 (permalink)  
Old 08-02-2007, 04:34 AM
YaTwice's Avatar
Lurker
Offline
Pocket PC: Moto Droid, HTC Touch Pro
Carrier: Verizon
Threadstarter
 
Join Date: Jun 2007
Posts: 16
Reputation: 5
YaTwice is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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?
Reply With Quote
  #6 (permalink)  
Old 08-02-2007, 04:52 AM
luv2chill's Avatar
Retired Staff
Offline
Pocket PC: Apache (PPC6700); Titan (Mogul)
Carrier: Sprint
Location: Lawrence, KS
 
Join Date: Nov 2006
Posts: 1,524
Reputation: 143
luv2chill is keeping up the good workluv2chill is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via ICQ to luv2chill Send a message via AIM to luv2chill Send a message via MSN to luv2chill Send a message via Yahoo to luv2chill Send a message via Skype™ to luv2chill
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.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 06:50 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com