Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Microsoft Windows [Version 6.1.7601]
- Copyright (c) 2009 Microsoft Corporation. All rights reserved.
- C:\Users\User\Desktop>cfp
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- Usage: CFP [-u<port>] [-g<GUID>|-ig] [-w<password>|-np]
- [-v<verbosity>]
- [-t<max connect timeout>]
- [-c<max command timeout>] <command>
- <command> is one of
- HELP [<command>]
- INFO
- FLASHINFO
- FILEINFO <filename>
- LOAD <filename1> [filename2] [-v] [-p]
- WIPE [-F|-I]
- SAVEFS [-X] <filename>
- CSAVEFS <filename>
- NUKE [-A]
- FRESH
- ERASE <range>
- READ <range> [-A] <filename>
- CREAD <range> [-A] <filename>
- WRITE <range> <filename> [<offset>] [-v]
- WRITE <start address> <filename> [<offset>] [-v]
- HIS
- HOS
- GETHISMODE
- SETHISMODE
- HASHBOOTROM [<bootromfile> [<hwvfile>]]
- USBMS [-i<INFO> | -s<ENABLE> | -c<DISABLE>]
- PATRIOT [-o] <subcommand> [<arguments>]
- GETLOG [filename]
- <range> is one of
- <start address>-<end address> (start address < end address)
- <start address>,<length> (length > 0)
- All addresses, lengths, and offsets are expressed in HEX. Also,
- <end address> is the address of the last byte in the range (e.g.
- <length> = <end address> - <start address> + 1)
- Verbosity Level:
- -vd Display nothing at all (output disabled)
- -v0 Display nothing other than progress
- -v1 Display errors
- -v2 Display errors and warnings (default)
- -v3 Display procedural steps
- -v4 Display protocol commands
- -v5 Display everything. Lots of chatter!
- USB Ports: to use this feature, configuration with USBPortMapper.exe
- is required. Please see 'USBPortMapper.exe HELP' for more information.
- C:\Users\User\Desktop>cfp help
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- CFP Usage
- =========
- CFP [-u<port>] [-g<GUID>] [-IG] [-W<password>] [-NP] [-FS] [-V<verbosity>] [
- -T <max connect timeout>] [-C <max command timeout>] <command>
- -U<port> specifies the USB port (e.g. -U4 specifies USB port 4). Configuration with USBPortMapper.exe is required.
- -G<GUID> specifies the device GUID. Cannot be combined with -U
- -IG specifies that cfp will ignore the device GUID when connecting to a device. Cannot be used with -U or -G options.
- -W<password> specifies the device password. If a password is required, but not provided, the user will be prompted to enter the password.
- -NP specifies that the operation should only procede if there is NO password. The operation will abort if a password is set.
- -FS specifies that only a full speed RAMImage may be uploaded.
- -V<verbosity> specifies the level of information chatter. If ,<filename> is specified, all output other than the progress will be sent to the specified file.
- -T<max connect timeout> specifies a maximum conection timeout in ms.
- -C<max command timeout> specifies a maximum command timeout in ms.
- All of the above are optional.
- <command> is one of HELP, INFO, FLASHINFO, FILEINFO, LOAD, SAVEFS, CSAVEFS WIPE, ERASE, READ, CREAD, WRITE, HIS, HOS, USBMS, NUKE, FRESH, HASHBOOTROM, PATRIOT, GETLOG.
- Where:
- ------
- The CFP command is used to load firmware and assist RIM internal developers.
- Use CFP HELP <command> for more information.
- C:\Users\User\Desktop>cfp help info
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- INFO Usage
- ==========
- INFO
- Description:
- ------------
- The INFO command extracts and then displays a wealth of information about the device.
- Examples:
- ---------
- The following command will display all known information about a device:
- CFP INFO
- C:\Users\User\Desktop>cfp help flashinfo
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- FLASHINFO Usage
- ===============
- FLASHINFO
- Description:
- ------------
- The FLASHINFO command extracts and then displays information about the flash
- Examples:
- ---------
- The following command will display all known information about a device:
- CFP FLASHINFO
- C:\Users\User\Desktop>cfp help fileinfo
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- FILEINFO Usage
- ==============
- FILEINFO <filename>
- Where:
- ------
- <filename> is a list of one or more space separated filenames
- Description:
- ------------
- The FILEINFO command extracts and then displays a wealth of information about the specified files.
- NOTE: specifying a verbosity level >= 3 will cause extra info to be displayed.
- Examples:
- ---------
- The following command will display all known information about pcs1900.bin:
- CFP FILEINFO pcs1900.bin
- C:\Users\User\Desktop>cfp help load
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- LOAD Usage
- ==========
- LOAD [-P] <file1> [file2]
- Where:
- ------
- -P specifies that existing UMP files on the device should be preserved when loading additional UMP files. However, if a file being loaded has the same name as an existing file, then it will still replace the existing file.
- <file1> is a valid, supported binary or an SFI file
- Description:
- ------------
- The LOAD command loads the specified file(s) onto a device.
- If the new OS is larger than the the OS currently on a device, the entire device will be erased and the contents of the file system will be lost.
- If loading a new FS image any old data on the device is lost.
- There must be a valid OS on the device.
- Examples:
- ---------
- The following command will load the firmware onto a device:
- CFP LOAD gsm.bin
- C:\Users\User\Desktop>cfp help wipe
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- WIPE Usage
- ==========
- WIPE [-F|-I]
- Where:
- ------
- -F specifies that only the filesystem should be wiped.
- -I specifies that only the installer partition should be removed.
- If no option is specified, both the filesystem and OS are wiped.
- Description:
- ------------
- The WIPE command allows the filesystem
- or all the filesystem and OS regions of flash to be irreversibly erased.
- This command should be used when initially upgrading to the new loader to ensure that old (unrecognized) versions of applications are destroyed.
- C:\Users\User\Desktop>cfp help savefs
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- SAVEFS Usage
- ============
- SAVEFS [-X] <filename>
- Where:
- ------
- -X implies that a compressed save is done.
- Only valid file system segments are output.
- Description:
- ------------
- The SAVEFS command saves the file system data from a device to the specified file. There must be a valid OS on the device. Since this saves a plaintext copy of the data, it is only supported on insecure devices. For secure devices, use the CSAVEFS variant which will save an encrypted file.
- Examples:
- ---------
- The following command will save the file system data from a device to the file filesys.dmp:
- CFP SAVEFS filesys.dmp
- C:\Users\User\Desktop>cfp help csavefs
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- CSAVEFS Usage
- =============
- Save an encrypted filesystem dump. See SAVEFS for usage details
- C:\Users\User\Desktop>cfp help nuke
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- NUKE Usage
- ==========
- NUKE [-A]
- Where:
- ------
- -A specifies that the OS should be erased as well (requires password).
- Description:
- ------------
- The NUKE command erases all of the user's data off the device including the filesystem and the password. This command is useful if a password is lost and one would like to make the device usable again at the expense of lost data.
- CFP NUKE
- C:\Users\User\Desktop>cfp help fresh
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- FRESH Usage
- ===========
- FRESH
- Description:
- ------------
- The FRESH command puts the device into freshness seal.
- Namely, after sending this command, the battery will be turned off
- and a manual reset will be required to turn the device back on.
- Examples:
- ---------
- CFP FRESH
- C:\Users\User\Desktop>cfp help erase
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- ERASE Usage
- ===========
- ERASE <range>
- Where:
- ------
- <range> specifies the flash region to be erased.
- Please type CFP alone for the definition of <range>.
- Description:
- ------------
- The ERASE command erases flash sectors on a device. The INFO will provide all of the address information required to use this command. Note that address ranges must be sector size aligned.
- Please BE CAREFUL! If you don't know exactly what you are doing, use WIPE.
- This command is not fully functional on secure devices
- Examples:
- ---------
- The following command will erase the OS & filesystem (depends on flash size:
- CFP ERASE 0x01010000-0x13FFFFF
- So will:
- CFP ERASE 0x01010000,0x3F0000
- C:\Users\User\Desktop>cfp help read
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- READ Usage
- ==========
- READ <range> [-A] <filename>
- Where:
- ------
- <range> specifies the flash region to be read.
- -A specifies that the data should be appended to file <filename>.
- Please type CFP alone for the definition of <range>.
- Description:
- ------------
- The READ command reads data from flash on a device and writes it to a file. The INFO should provide all of the address information required to use this command. If not, you shouldn't be using this command. Since this saves a plaintext copy of the data, it is only supported on insecure devices. For secure devices, use the CREAD variant which will save an encrypted file. This command is not fully functional on secure devices.
- Examples:
- ---------
- The following command will read a sector of the filesystem:
- CFP READ 0x013F0000-0x013FFFFF dump.bin
- C:\Users\User\Desktop>cfp help cread
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- CREAD Usage
- ===========
- Save an encrypted image of memory. See READ for usage details
- C:\Users\User\Desktop>cfp help write
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- WRITE Usage
- ===========
- WRITE <range> <filename> [<offset>]
- WRITE <start address> <filename> [<offset>]
- Where:
- ------
- <range> specifies the flash region to be erased.
- If <start address> is specified, the length of file <filename> will be used. <offset> specifies the data location offset from the start of file <filename> Please type CFP alone for the definition of <range>.
- Description:
- ------------
- The WRITE command writes data from a file to flash on a device.
- The start address must be the start of a sector and the length must be a multiple of 4 (for now). Each sector written will first be erased -- this means that writing to the first byte of a sector will cause the sector to be empty aside from the first byte.
- Please BE CAREFUL!
- This command is not fully functional on secure devices
- Examples:
- ---------
- The following command will load data.bin, starting at first sector of the OS:
- CFP WRITE 0x01010000 data.bin
- Assuming that data.bin is 145 bytes in length, so will:
- CFP WRITE 0x01010000,0x91 data.bin
- And so will:
- CFP WRITE 0x01010000-0x0x01010090 data.bin
- The following command will load 1024 bytes to flash (address 0x01023424), starting 200 bytes into data.bin:
- CFP WRITE 0x01023424,0x400 data.bin 0xC8
- C:\Users\User\Desktop>cfp help his
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- HIS Usage
- =========
- HIS
- Description:
- ------------
- The HIS puts the device into Head in Sand mode. Namely, after sending this command, the device will reset on a catastrophic error instead of displaying an error code.
- Examples:
- ---------
- CFP HIS
- C:\Users\User\Desktop>cfp help hos
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- HOS Usage
- =========
- HOS
- Description:
- ------------
- The HOS takes the device out of Head in Sand mode. Namely, after sending this command, the device will NOT reset on a catastrophic error and will display an error code.
- Examples:
- ---------
- CFP HOS
- C:\Users\User\Desktop>cfp help gethismode
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- GETHISMODE Usage
- ================
- GETHISMODE
- Description:
- ------------
- The GETHISMODE gets the Head in Sand mode of the device. The modes are developer, user and default. In developer mode, the device will NOT reset on a catastrophic error and will display an error code. In user mode, the device will reset on a catastrophic error. In default mode, the HIS mode is dependent on the security of the device and the OS loaded on it. On insecure devices, the default mode is developer mode. On secure devices, the default mode is user mode if a SFI is loaded and developer mode if a MFI is loaded.
- Examples:
- ---------
- CFP GETHISMODE
- C:\Users\User\Desktop>cfp help sethismode
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- SETHISMODE Usage
- ================
- SETHISMODE
- Description:
- ------------
- The SETHISMODE sets the Head in Sand mode of the device. The modes are developer, user and default. In developer mode, the device will NOT reset on a catastrophic error and will display an error code. In user mode, the device will reset on a catastrophic error. In default mode, the HIS mode is dependent on the security of the device and the OS loaded on it. On insecure devices, the default mode is developer mode. On secure devices, the default mode is user mode if a SFI is loaded and developer mode if a MFI is loaded.
- Examples:
- ---------
- CFP SETHISMODE HIS
- CFP SETHISMODE HOS
- C:\Users\User\Desktop>cfp help hashbootrom
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- HASHBOOTROM Usage
- =================
- HASHBOOTROM [<filename1> [<filename2>]]
- Description:
- ------------
- The HASHBOOTROM command connects to a device and calculates a SHA-1 hash signature of the bootrom. Optionally it can hash a specified bootrom file against the HWV on the device or against a provided HWV file. The provided bootrom file may be a BIN file or a valid bootrom contained in a SFI
- Examples:
- ---------
- The following command will hash the file using the HWV from the connected device
- CFP HASHBOOTROM bootromfile.bin
- The following command will hash the file using the specified HWV file
- CFP HASHBOOTROM bootromfile.bin hwvfile.hwv
- C:\Users\User\Desktop>cfp help usbms
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- USBMS Usage
- ===========
- USBMS [-i | -s | -c]
- Where:
- ------
- -i: Returns current USBMS mode
- -s: Enables USBMS mode
- -c: Disables USBMS mode
- Description:
- ------------
- The USBMS command can be used to check or change USB Mass Storage mode on USBMS-capable devices
- Examples:
- ---------
- The following command will return the current USBMS mode
- CFP USBMS -i
- The following command will enable USBMS mode on USBMS-capable devices
- CFP USBMS -s
- The following command will disable USBMS mode on USBMS-capable devices
- CFP USBMS -c
- C:\Users\User\Desktop>cfp help patriot
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- PATRIOT Usage
- =============
- PATRIOT [-o] <subcommand> [<arguments>]
- Where:
- ------
- -o specifies use of old-style Patriot communication (through the OS).
- <subcommand> is one of the following Patriot commands:
- INFO
- LOAD [-f] <patriot binary file>
- BERBUG <Berbug script file>
- ERASE <range>
- WRITE <range> <filename>
- WRITE <start address> <filename>
- READ <range> <filename>
- LOCKSTATUS
- RESETLOG
- MEMTEST [<string>]
- WIPE
- Description:
- ------------
- The PATRIOT command accesses a set of sub-commands for Patriot operations. LOAD, ERASE, WRITE and READ behave similarly to the standard CFP commands. BERBUG accepts a text file of line-delimited Berbug command/response pairs. LOCKSTATUS checks the status of Patriot's flash lock state for Baryon devices only. INFO command reports info on the loaded Patriot binary. RESETLOG command dumps the Patriot reset log. MEMTEST command loads the memory test kernel and sends out each character in the string and prints the response.
- If the string is not specified then MEMTEST enters interactive mode.
- WIPE erases all erasable sections of Patriot.
- Use CFP HELP PATRIOT <subcommand> for help with specific subcommands.
- Examples:
- ---------
- The following command will load a Patriot binary
- CFP PATRIOT LOAD patriotbinary.bin
- C:\Users\User\Desktop>cfp help getlog
- RIM Wireless Device Command-Line Programmer Version 3.9.0.165
- Copyright 2010 Research In Motion Limited
- GETLOG Usage
- ============
- GETLOG [filename]
- Where:
- ------
- [filename] specifies that the bugdisp log should be written to file [filename].
- If not specified then c:\log.bug is assumed.
- Description:
- ------------
- The GETLOG command reads the bugdisp log for debug RAMImages.
- Examples:
- ---------
- The following command will read the bugdisp log to file bug.bug:
- CFP GETLOG bug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement