SOAP - Simple OSX App to swap Partitions
SOAP is a Java application for OSX that lets you switch partitions on SDM and CHDK dual partition cards. If you don't have Java installed, here is the official download site (for Mac OSX, Windows and Linux).
Canon cameras introduced before 2011 can only autoboot SDM or CHDK from a FAT16 partition and the maximum size of such a partition is 4Gb, so larger cards have to be partitioned into a small FAT16 partition containing DISKBOOT.BIN and a large FAT32 partition containing scripts, fonts etc as well as photos.
While Mac OSX lets you see both partitions simultaneously, to boot SDM or CHDK the active partition has to be the FAT16 one. That means that if you unlock the card and put it in the camera, the camera will only see the small partition and you will not be able to take many photos! The purpose of SOAP is to make it easy for OSX users to switch the active partition.
The two images below show the same card with either the FAT16 or FAT32 partition active.
Downloading and Installing SOAP
Download the SOAP zip file and unzip it. You'll get a folder called 'soap' which you can relocate anywhere you fancy. Inside the folder are the following files:
- 'soap.jar' - the java executable
- 'soapML.cmd' - a command file to run SOAP under Mountain Lion or a later versions of OSX (see below)
- Switching changes the information in the boot records so the card must not be locked (read-only).
- Mountain Lion, Mavericks and Yosemite require root access to make changes to cards. As a result, SOAP will fail with a "permission refused" message unless it has root access. To run SOAP under Mountain Lion or later versions of OSX, double-clicking the soapML.command script which will bring up a terminal window and sudo will ask you to type your logon password so SOAP can get root access. SOAP will run when you press return.
- if you have problems, send me the log file (soaplog.txt).
- version 1.01 - January 2016 - fix bug analysing cards under El Capitan (OSX 10.11)
- version 1.0 - August 27 2014 - initial release
SOAP has some extra features that can be enabled by changing its properties file, "soap.properties", (which you will find in the same folder as the app once you've run it). These features are:
- the ability to specify the maximum size card the app will handle via the 'maxsize'
property. By default the properties file contains the line:
which sets the limit at 64000MB or 64GB. Changing it to 128000 would make the limit 128GB.
- the font name, size and boldness used for text.
By default the properties file contains the lines:
fontname=SansSerif fontsize=12 fontbold=NO
but fontname can be set to "Serif", "Monospaced", or the name of any of the installed fonts, such as "Century Schoolbook". You can see the names by typing the command "fc-list" or by looking at Edit/Preferences/Fonts & Colours in the Text Editor.
- The properties file also remembers the size of the window ('height=...' and 'width=...').
Comments, suggestions and bug reports welcome. Dave@zenoshrdlu.com.
All my apps are freeware, but if you've found them useful and would like to thank the author, you can make a donation (for example £1, €1 or $1) to show your appreciation for the many hours spent working on them!