CHDK Wiki
(Undo revision 19822 by 188.136.138.131 (talk) vandalism)
No edit summary
(39 intermediate revisions by 15 users not shown)
Line 1: Line 1:
  +
{{Notice|'''WARNING''' : The CardTricks utility is obsolete. '''It may not correctly install the current version of CHDK.''' It is also not recommended use with cameras released after 2010 or with SD cards bigger than 4Gb. The most recent documentation about SD card preparation for use with CHDK can always be found at this link> [[Prepare_your_SD_card| Prepare Your SD Card]]}}
<blockquote>"Card Tricks - a small utility to help manage SD cards" created by [http://chdk.setepontos.com/index.php/topic,964.0.html whim].</blockquote>
 
  +
 
<blockquote>"CardTricks - a small utility to help manage SD cards" created by [http://chdk.setepontos.com/index.php/topic,964.0.html whim].</blockquote>
  +
  +
 
{| align="right"
 
{| align="right"
 
| __TOC__
 
| __TOC__
 
|}
 
|}
[[Image:CardTrick-1.41-Screenshot.jpg|right|thumb|250px|Card Trick v1.41 Screenshot]]
+
[[Image:CardTrick-1.41-Screenshot.jpg|right|thumb|250px|CardTrick v1.41 Screenshot]]
   
 
==Features==
 
==Features==
 
*formats your memory card (also adds 'ver.req' to get firmware version)
*Copy CHDK binaries to your memory card
 
 
*makes your memory card bootable
*Create a "Universal Dumper Card" to dump your firmware (You have to select the correct OS Version for your camera model!!! for example SD900 has a VxWorks 5.5 OS, dump works with VxWorks)
 
 
*copies CHDK binaries to your memory card
*View strings in firmware dump with bintext.exe (included)
 
 
*backs up and restores CHDK folder / config file
*Format your memory card (also adds 'ver.req' to get firmware version)
 
*Make your memory card bootable
 
*Backup &amp; Restore CHDK folder / config file
 
   
 
==Usage==
 
==Usage==
 
*Card preparation & installation: [[CHDK for Dummies#Let's put the CHDK in the card|CHDK for Dummies - Let's put the CHDK in the card]]
 
*Card preparation & installation: [[CHDK for Dummies#Let's put the CHDK in the card|CHDK for Dummies - Let's put the CHDK in the card]]
*'''Pictured installation guide: [[CHDK/Installing with Cardtricks]]''' {{New!}}
+
*'''Illustrated installation guide: [[CHDK/Installing with Cardtricks]]'''
*'''Note:''' Under MS Windows 98/ME Cardtricks do not support the 'make bootable' function, use a disk editor to do it manually&nbsp;!
+
*'''Note:''' Under MS Windows 98/ME Cardtricks does not support the 'make bootable' function. Use a disk editor to do it manually!
  +
  +
{|border="0" cellspacing="1" cellpadding="3" width="95%"
  +
|align = "center" width="42px"|[[Image:Attention.png]]
  +
|align = "left"|
  +
  +
'''Note :''' the "Universal Dumper Card" option does not work with cameras released after 2009. The recommended method to dump any camera's firmware is to use [http://chdk.wikia.com/wiki/Canon_Basic/Scripts/ <u>Canon Basic Dumper</u>]. Read the [http://chdk.wikia.com/wiki/Canon_Basic <u>Canon Basic main page</u>] to learn how to prepare a card. [http://pel.hu/down/EOScard.exe <u>Pelican's EOScard</u>] (Win) or [http://www.zenoshrdlu.com/macboot/macboot.html <u>zeno's MacBoot</u>] (Mac) can be used to write the required SCRIPT signature.
 
|}
   
 
==Download==
 
==Download==
{{tagb|→ }} [http://chdk.setepontos.com/index.php/topic,964.0.html Forum post] always has a link to the latest version, an alternative download location is at http://drop.io/chdksoft
+
{{tagb|→ }} [http://chdk.setepontos.com/index.php/topic,964.0.html '''This Forum post'''] always has a link to the latest version.<br />
 
:'''Note:''' The program gets falsely flagged as malware sometimes - if this happens try an online scan, e.g. with [http://www.virustotal.com/ VirusTotal - Free Online Virus and Malware Scan] or [http://www.viruschief.com/ Virus Chief].
   
 
*<big>[http://savedonthe.net/download/78/CardTricks-144-SFX.mht CardTricks '''v1.44''' (510 kB)] (The exe is unziped OUTSIDE the "cardtricks" folder)</big><br />
{{tagb|→ }} The program gets falsely flagged as malware quite often - if this happens try an online scan:
 
  +
:functionally identical to v1.43, but now packed with [http://www.7-zip.org/ 7zip] instead of UPX<br />(Additional download places: [http://www.assembla.com/spaces/chdkde/documents/b6C8HmgVir34UVeJe5afGb/download?filename=cardtricks144sfx.exe mirror1], [http://downloads.chdk-treff.de/tools/CardTricks-144-SFX.exe mirror2], [http://www.filefactory.com/file/b01geh2/n/cardtricks144sfx_exe mirror3], [https://docs.google.com/folder/d/0B08pqRtyrObjSmFqSV8yRUlqbnM/edit CHCKfiles tools folder])
:[http://www.virustotal.com/ VirusTotal - Free Online Virus and Malware Scan] or [http://www.viruschief.com/ Virus Chief].
 
   
   
  +
----
*[http://savedonthe.net/download/78/CardTricks-144-SFX.mht Card Tricks v1.44 (510 kB)]
 
  +
:<small>functionally identical to v1.43, but now packed with [www.7zip.org 7zip] instead of UPX</small>
 
  +
<u>Older versions:</u>
*[http://savedonthe.net/download/60/CardTricks143.exe Card Tricks v1.43 (410 kB)]
+
*[http://savedonthe.net/download/60/CardTricks143.exe CardTricks v1.43 (410 kB)]
 
:<small>Added support for <u>C</u>CHDK.CFG </small>
 
:<small>Added support for <u>C</u>CHDK.CFG </small>
:Resizing ("GUI Config") now no longer forces re-selection of the card
+
:<small>Resizing ("GUI Config") now no longer forces re-selection of the card</small>
*[http://savedonthe.net/download/57/CardTricks142.mht Card Tricks v1.42 (410 kB)]
+
*[http://savedonthe.net/download/57/CardTricks142.mht CardTricks v1.42 (410 kB)]
 
:<small>New: last used path for copying CHDK binary zips is now remembered; file selection will open there next time</small>
 
:<small>New: last used path for copying CHDK binary zips is now remembered; file selection will open there next time</small>
*[http://savedonthe.net/download/30/CardTricks141.zip Card Tricks v1.41 (0.4MB)] ''(for Windows version 2000 or higher)''
+
*[http://savedonthe.net/download/30/CardTricks141.zip CardTricks v1.41 (0.4MB)] ''(for Windows version 2000 or higher)''
 
:<small>Now checks the card size before creating Udumper; refuse on cards &lt; 16 Mb; reduced empty.dum size to ~ 10 Mb, now 16 Mb cards are OK for Udump </small>
 
:<small>Now checks the card size before creating Udumper; refuse on cards &lt; 16 Mb; reduced empty.dum size to ~ 10 Mb, now 16 Mb cards are OK for Udump </small>
:New: updated Udumper + sources (uses brake's corrected encode.c now)
+
:<small>New: updated Udumper + sources (uses brake's corrected encode.c now)</small>
:Helper files and source code now always overwritten (bugfix)
+
:<small>Helper files and source code now always overwritten (bugfix)</small>
:New: checkbox to activate CF support for DSLR's
+
:<small>New: checkbox to activate CF support for DSLR's</small>
{{Notice|''Card Tricks 1.39 is the last version which supports Windows 98/ME,<br/> since version 1.40 Card Tricks does '''NOT''' support Windows 98/ME. Windows 2000/XP/2003/2008 is needed!''}}
+
{{Notice|''CardTricks 1.39 is the last version which supports Windows 98/ME,<br/> since version 1.40 CardTricks does '''NOT''' support Windows 98/ME. Windows 2000/XP/2003/2008 is needed!''}}
*[http://www.zshare.net/download/1982625511b5e97d/ Card Tricks v1.39 (0.4MB)] ''(last version with support for Windows 98 / ME)''
+
*[http://www.zshare.net/download/1982625511b5e97d/ CardTricks v1.39 (0.4MB)] ''(last version with support for Windows 98 / ME)''
 
:<small>Modified udumper to dump firmware to the end (=0xFFFF FFFF) </small>
 
:<small>Modified udumper to dump firmware to the end (=0xFFFF FFFF) </small>
:Modified cleaning routine for the dump, after removing leading/trailing zeroes it now chops the last 2 bytes; this should assure painless loading into IDA
+
:<small>Modified cleaning routine for the dump, after removing leading/trailing zeroes it now chops the last 2 bytes; this should assure painless loading into IDA</small>
:The 'Download CHDK' button now opens both GrAnd's and Hacki's Autobuild pages in default browser
+
:<small>The 'Download CHDK' button now opens both GrAnd's and Hacki's Autobuild pages in default browser</small>
*[http://www.zshare.net/download/18225585b9ff990c/ Card Tricks v1.38 (0.39MB)]
+
*[http://www.zshare.net/download/18225585b9ff990c/ CardTricks v1.38 (0.39MB)]
 
:<small>New: If other CT running, bring that to the front, then exit; little splashscreen (should only be visible on first run); added checkbox to control tooltips</small>
 
:<small>New: If other CT running, bring that to the front, then exit; little splashscreen (should only be visible on first run); added checkbox to control tooltips</small>
*[http://www.zshare.net/download/17802120d04195aa/ Card Tricks v1.37 (0.39MB)]
+
*[http://www.zshare.net/download/17802120d04195aa/ CardTricks v1.37 (0.39MB)]
 
:<small>New: Improved universal dumper support: now has a button to clean your dump (will auto-remove leading and trailing zeros, and remind you to give it a useful name)</small>
 
:<small>New: Improved universal dumper support: now has a button to clean your dump (will auto-remove leading and trailing zeros, and remind you to give it a useful name)</small>
*[http://www.zshare.net/download/16872238def33a24/ Card Tricks v1.36] ''(with new udumper2008)''
+
*[http://www.zshare.net/download/16872238def33a24/ CardTricks v1.36] ''(with new udumper2008)''
*[http://www.zshare.net/download/13163755c4a0473f/ Card Tricks v1.34]
+
*[http://www.zshare.net/download/13163755c4a0473f/ CardTricks v1.34]
*[http://sourceforge.net/project/downloading.php?group_id=229629&filename=133.exe&abmode=1 Card Tricks v1.33]
+
*[http://sourceforge.net/project/downloading.php?group_id=229629&filename=133.exe&abmode=1 CardTricks v1.33]
*[http://sourceforge.net/project/downloading.php?group_id=229629&filename=125.exe&abmode=1 Card Tricks v1.25]
+
*[http://sourceforge.net/project/downloading.php?group_id=229629&filename=125.exe&abmode=1 CardTricks v1.25]
   
 
==Links==
 
==Links==
*[http://chdk.setepontos.com/index.php/topic,964.0.html Card Tricks - a small utility to help manage SD cards] (Forum)
+
*[http://chdk.setepontos.com/index.php/topic,964.0.html CardTricks - a small utility to help manage SD cards] (Forum)
 
*[[CHDK For Newbies - How To Install]]
 
*[[CHDK For Newbies - How To Install]]
   
Line 58: Line 69:
 
*Cardtricks is written in the AutoIt scripting language. More informations about this very powerful, free tool can be found [http://www.autoitscript.com/autoit3/index.shtml on the AutoIt v3 Homepage].
 
*Cardtricks is written in the AutoIt scripting language. More informations about this very powerful, free tool can be found [http://www.autoitscript.com/autoit3/index.shtml on the AutoIt v3 Homepage].
   
*{{File|CardtricksXXX.exe}} is a self-expanding file. When it is started it creates a sub-folder on the current folder, named {{File|Cardtricks}}, then it copies its source code, unpackers, the helper tools like the dumpers & the bintext tool, GUI images and some other stuff into this folder.
+
*{{File|CardtricksXXX.exe}} is a self-expanding file. When it is started it creates a sub-folder on the current folder, named {{File|Cardtricks}}, then it copies its source code, unpackers, the helper tools like the dumpers & the bintext tool, GUI images and some other stuff into this folder.
   
* When Cardtricks is started the first time, it creates also its configuration file named {{File|CardtricksXXX.ini}} in the folder from where it was started from.<br/> So check whether you have the permission to '''write & create files/folders''' when you start Cardtricks, e.g. create a new folder in your personal user area, copy {{File|CardtricksXXX.exe}} to this folder and run it from there.
+
* When Cardtricks is started the first time, it creates also its configuration file named {{File|CardtricksXXX.ini}} in the folder from where it was started from.<br />So check whether you have the permission to '''write & create files/folders''' when you start Cardtricks, e.g. create a new folder in your personal user area, copy {{File|CardtricksXXX.exe}} to this folder and run it from there.
   
 
*The logic of the "Make Bootable" button is this:
 
*The logic of the "Make Bootable" button is this:
 
:{| class="wikitable"
 
:{| class="wikitable"
|-
 
 
|"File System: FAT32" &nbsp; &nbsp;|| → button greyed out (card > 4 GB or you need to Format as FAT first)
 
|"File System: FAT32" &nbsp; &nbsp;|| → button greyed out (card > 4 GB or you need to Format as FAT first)
 
|-
 
|-
Line 71: Line 81:
 
| || → button available if not yet bootable ("CHDK Autorun: OFF ...")
 
| || → button available if not yet bootable ("CHDK Autorun: OFF ...")
 
|}
 
|}
  +
  +
===CardTricks for DSLR / CF cards===
  +
There's also a special CardTricks version for DSLR users available:
  +
  +
* '''CardTricks for DSLR / CF version 1.45''' - a utility to make FAT16 and FAT32 CF cards bootable
  +
  +
This is a special version of CardTricks to also allow making FAT32 partitions bootable.
  +
  +
When the option '''[CF boot sector]'''is checked, the following strings are written to MBR:
  +
<pre>
  +
FAT16: at 0x2B "EOS_DEVELOP" at 0x40 "BOOTDISK"
  +
FAT32: at 0x47 "EOS_DEVELOP" at 0x5C "BOOTDISK"
  +
  +
(the quotes are not written, of course)
  +
</pre>
  +
  +
Note that, because the program was originally developed just for CHDK on SD cards, it will not allow you to format cards <= 4GB as FAT32.
  +
For Canon P&S owners there is no new functionality.
  +
  +
Please note: the cmdline utils DO NOT CHECK the file system - after running
  +
<tt>bootableCF32.exe</tt> on a FAT16 card, or <tt>bootable(CF).exe</tt> on a FAT32 card you will need to FORMAT and '''LOSE ALL DATA !'''
  +
  +
<big>'''See also whim's forum link: http://chdk.setepontos.com/index.php/topic,4214.msg39827.html#msg39827'''</big>
  +
  +
'''Download links:'''
  +
* [https://www.assembla.com/spaces/chdkde/documents/cRktRKBZKr37UweJe5cbLr/download/CardTricks145-sfx.exe assembla.com chdkde mirror]
  +
  +
==Other Resources==
 
[[Category:CHDK]]
 
[[Category:CHDK]]
 
[[Category:Help]]
 
[[Category:Help]]

Revision as of 16:34, 12 January 2014

Notice

WARNING : The CardTricks utility is obsolete. It may not correctly install the current version of CHDK. It is also not recommended use with cameras released after 2010 or with SD cards bigger than 4Gb. The most recent documentation about SD card preparation for use with CHDK can always be found at this link> Prepare Your SD Card


"CardTricks - a small utility to help manage SD cards" created by whim.


CardTrick-1

CardTrick v1.41 Screenshot

Features

  • formats your memory card (also adds 'ver.req' to get firmware version)
  • makes your memory card bootable
  • copies CHDK binaries to your memory card
  • backs up and restores CHDK folder / config file

Usage

Attention

Note : the "Universal Dumper Card" option does not work with cameras released after 2009. The recommended method to dump any camera's firmware is to use Canon Basic Dumper. Read the Canon Basic main page to learn how to prepare a card. Pelican's EOScard (Win) or zeno's MacBoot (Mac) can be used to write the required SCRIPT signature.

Download

This Forum post always has a link to the latest version.

Note: The program gets falsely flagged as malware sometimes - if this happens try an online scan, e.g. with VirusTotal - Free Online Virus and Malware Scan or Virus Chief.
functionally identical to v1.43, but now packed with 7zip instead of UPX
(Additional download places: mirror1, mirror2, mirror3, CHCKfiles tools folder)



Older versions:

Added support for CCHDK.CFG
Resizing ("GUI Config") now no longer forces re-selection of the card
New: last used path for copying CHDK binary zips is now remembered; file selection will open there next time
Now checks the card size before creating Udumper; refuse on cards < 16 Mb; reduced empty.dum size to ~ 10 Mb, now 16 Mb cards are OK for Udump
New: updated Udumper + sources (uses brake's corrected encode.c now)
Helper files and source code now always overwritten (bugfix)
New: checkbox to activate CF support for DSLR's
Notice

CardTricks 1.39 is the last version which supports Windows 98/ME,
since version 1.40 CardTricks does NOT support Windows 98/ME. Windows 2000/XP/2003/2008 is needed!

Modified udumper to dump firmware to the end (=0xFFFF FFFF)
Modified cleaning routine for the dump, after removing leading/trailing zeroes it now chops the last 2 bytes; this should assure painless loading into IDA
The 'Download CHDK' button now opens both GrAnd's and Hacki's Autobuild pages in default browser
New: If other CT running, bring that to the front, then exit; little splashscreen (should only be visible on first run); added checkbox to control tooltips
New: Improved universal dumper support: now has a button to clean your dump (will auto-remove leading and trailing zeros, and remind you to give it a useful name)

Links

Internals

  • Cardtricks is written in the AutoIt scripting language. More informations about this very powerful, free tool can be found on the AutoIt v3 Homepage.
  • CardtricksXXX.exe is a self-expanding file. When it is started it creates a sub-folder on the current folder, named Cardtricks, then it copies its source code, unpackers, the helper tools like the dumpers & the bintext tool, GUI images and some other stuff into this folder.
  • When Cardtricks is started the first time, it creates also its configuration file named CardtricksXXX.ini in the folder from where it was started from.
    So check whether you have the permission to write & create files/folders when you start Cardtricks, e.g. create a new folder in your personal user area, copy CardtricksXXX.exe to this folder and run it from there.
  • The logic of the "Make Bootable" button is this:
"File System: FAT32"     → button greyed out (card > 4 GB or you need to Format as FAT first)
"File System: FAT" → button greyed out if already bootable ("CHDK Autorun: ON ...")
→ button available if not yet bootable ("CHDK Autorun: OFF ...")

CardTricks for DSLR / CF cards

There's also a special CardTricks version for DSLR users available:

  • CardTricks for DSLR / CF version 1.45 - a utility to make FAT16 and FAT32 CF cards bootable

This is a special version of CardTricks to also allow making FAT32 partitions bootable.

When the option [CF boot sector]is checked, the following strings are written to MBR:

FAT16:    at 0x2B "EOS_DEVELOP"    at 0x40 "BOOTDISK"
FAT32:    at 0x47 "EOS_DEVELOP"    at 0x5C "BOOTDISK"

(the quotes are not written, of course)

Note that, because the program was originally developed just for CHDK on SD cards, it will not allow you to format cards <= 4GB as FAT32. For Canon P&S owners there is no new functionality.

Please note: the cmdline utils DO NOT CHECK the file system - after running bootableCF32.exe on a FAT16 card, or bootable(CF).exe on a FAT32 card you will need to FORMAT and LOSE ALL DATA !

See also whim's forum link: http://chdk.setepontos.com/index.php/topic,4214.msg39827.html#msg39827

Download links:

Other Resources