PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   ROM/Kitchen Development (http://forum.ppcgeeks.com/forumdisplay.php?f=38)
-   -   Mr Happy's Portable Extended_Rom (http://forum.ppcgeeks.com/showthread.php?t=3061)

MrHappy 03-05-2007 03:57 PM

Mr Happy's Portable Extended_Rom
 
A while back I did a great deal of work on customizing a ROM setup for the company I worked for. We had over 300 WM5 devices all with Sprint (660x and 6700). I started this project simply as a way for the Telecom folks to provision a new phone without all the crapware from Sprint and also to install some custom cab files I created that filled out some of the Exchange OTA information.

There are 2 keys within the registry that tell the phone to run the autorun.exe in the extended ROM.
HKLM,Comm,AutoRun lists the autorun.exe
HKLM,Comm,AutoRunCFG lists the config.txt file to use.

###
If fileExists \Windows\donotremove.txt
Exit
Else
RegWriteString HKLM,Comm,AutoRun,\Storage Card\install\Autorun
RegWriteString HKLM,Comm,AutoRunCFG,\Storage Card\install\Config.txt
Copy "\Storage Card\install\donotremove.txt", "\Windows\donotremove.txt",1
Run \Storage Card\install\Autorun.exe
EndIf
Exit
###
This is the final script which is much smaller but everything else is done from the cab files. If you have a good setup on Extended_ROM and want to make it portable or if you have some programs you would like to include but they are too large for the extended rom.... This should do it.
Just copy everything off of your extended rom into a folder on your storage card.

Make sure your config.txt is changed to reflect the new location.

LOCK:Enabled
SHOW:\Storage Card\install\Sprint_Logo.bmp
CAB: \Storage Card\install\DirectShow.sa.CAB
CAB: \Storage Card\install\RTPlugin_CDMA.sa.CAB
CAB: \Storage Card\install\Cert_SPCS.sa.CAB
CAB: \Storage Card\install\Cert_SPCS.CAB
CAB: \Storage Card\install\Fetch.CAB
CAB: \Storage Card\install\Getmail.ppc2003.ARMV4Rel.sprint.CAB
CAB: \Storage Card\install\IOTA.sa.CAB
CAB: \Storage Card\install\Customize_SPCS.sa.CAB
CAB: \Storage Card\install\ButtonLock.sa.CAB
CAB: \Storage Card\install\Enable_RingTone.sa.CAB
CAB: \Storage Card\install\PhoneSetting_HelpFile.sa.CAB
CAB: \Storage Card\install\TimeSnyc.sa.CAB
CAB: \Storage Card\install\HiddenDurationPage.sa.CAB
CAB: \Storage Card\install\ResString.sa.CAB
CAB: \Storage Card\install\PP_IOTA_v1_10_Apache_206300.sa.CAB
CAB: \Storage Card\install\PP_ErrCodeForSPCS_Apache_206300.sa.CA B
CAB: \Storage Card\install\PT_RemoveHTCBatteryICON_Apache_206300 .sa.CAB
CAB: \Storage Card\install\PP_Version_Apache_206300.sa.CAB
CAB: \Storage Card\install\PP_HTC_CM_Guardian_Apache_206300.sa.C AB
CAB: \Storage Card\install\HoldEm.sa.CAB
CAB: \Storage Card\install\MortScript-3.1.CAB
CAB: \Storage Card\install\PocketBiblePktPC.ARM.CAB
CAB: \Storage Card\install\SpeedDialTodayPlugin.cab
CAB: \Storage Card\install\VJCandela0.2.cab
CAB: \Storage Card\install\DeviceLock.CAB
CAB: \Storage Card\install\Pmorrison.cab
CAB: \Storage Card\install\mail2websettings.cab
LOCK:Disabled
RST: Reset
This is what I have on mine.

One final step. Create a folder from the root of the SD card and name it 2577. In it, you place the mortscript.exe autorun.exe(from mortscript) and your autorun.mscr(mortscript file).


So the process goes.
1 Hard Reset
2 Soft reset when you see the 3 second warning from Extended_ROM
3 When the phone has reset pop the SD card into the phone, after 3 or so seconds the Extended Rom from the SD card will kick off and you will see it install all your custom apps.

gguruusa 03-05-2007 10:28 PM

What's the significance of naming the folder 2577?

MrHappy 03-06-2007 10:17 AM

naming a folder 2577 will cause any ppc device to attempt to autorun whatever is in that folder.


<snip from: http://msdn2.microsoft.com/en-us/library/aa454908.aspx>
Media cards that autoplay
Imagine an SD card behaving on your Smartphone or Pocket PC much like a CD-ROM behaves on your Windows–based desktop computer. This feature is one of the easiest things to implement on a Windows Mobile–based device. To do this, rename the application that you want to start, such as a software catalog or game, to autorun.exe, and then copy it into a folder specifically called 2577. (The number is important) Then, copy that folder and its contents to the root of your media card, insert the media card into your Windows Mobile–based device, and your application will automatically start the application.
Note The number used to name the folder indicates the CPU type that the autorun.exe is targeting. 2577 is the processor code for the ARM–based processor family and, therefore, indicates that the contained autorun.exe is to be used by ARM–based processor devices. In the case of Windows Mobile–based devices, the folder is always named 2577 because all Windows Mobile–based devices have ARM–based processors.


All times are GMT -4. The time now is 05:14 PM.

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


Content Relevant URLs by vBSEO 3.6.0