Scribbles and Snaps

Linux, Open Source, Photography

Install CHDK on Your Canon Camera Using Linux

with 4 comments

Got a Canon compact camera? Then you ought to give CHDK a try. This alternative firmware turns your humble Canon point-and-shoot camera into a powerful photographic tool.

Installing CHDK onto an SD card using a Linux machine is a three-step procedure. First, if you plan to install CHDK on a card larger than 4GB, you must create two partitions on it: a small FAT16 partition for booting CHDK and a FAT32 partition that takes up the rest of the available space for storing photos. The best tool to do this is the GParted utility which is available in the software repositories of pretty much all mainstream Linux distributions. On Ubuntu and its derivatives as well as Debian-based distros, you can install GParted by running the apt-get install gparted command as root. Launch then GParted and create the two required partitions. To make it easier to identify the partitions, you might want to assign labels to them (e.g., CHDK for the FAT16 partition and CANON for the FAT32 partition).

Next step is to make the partitioned card bootable. To do this, open the terminal and run the following command as root:

echo -n BOOTDISK | sudo dd bs=1 count=8 seek=64 of=/dev/sdbx

Replace theĀ sdbx part with the actual name of the small FAT16 partition. To find out the exact name of the partition, run the mount command which returns a list of all mounted partitions.

Next, you need to find out the firmware version of your camera. Create two empty text files called ver.req and vers.reg and save them in the root of the FAT16 partition. Insert the card into your camera, and put the camera into the Playback mode. Press and hold the FUNC SET button, then press DISP to display the firmware version. Download the CHDK package for your camera model and firmware version, and unpack the contents of the downloaded archive into the root of the FAT16 partition. Lock the card (this is important!), insert it into your camera, press the Power On button, and you should see the CHDK splash screen.

Written by Dmitri Popov

2010/11/16 at 12:00

Posted in Open Source, Photography, Software

Tagged with ,

4 Responses

Subscribe to comments with RSS.

  1. I’m thinking of trying this, Work on a elph?

    Andrew

    2010/11/16 at 18:32

  2. Is this as easy to revert to the in-built firmware a just removing those two files, or this SD card?

    lefty.crupps

    2010/11/17 at 15:18

    • CHDK is only on the SD cqrd you put it on, it does not replace any firmware inside your camera. On my Powershot, CHDK only starts automatically when I put the SD card to lock, otherwise I have to start it through an extra menu option.
      Have a look at the chdk wiki, google after chdk on the internet.

      Cheers, Bezn

      Ben

      2010/11/17 at 21:42


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 367 other followers

%d bloggers like this: