Pixeldoc2000 (talk | contribs) (added Windows) |
Pixeldoc2000 (talk | contribs) (added more Windows info and Backup warning) |
||
Line 1: | Line 1: | ||
This section contains tools to prepare your card for use with the canon script system. |
This section contains tools to prepare your card for use with the canon script system. |
||
+ | |||
+ | {{Warning|Backup the Data on your SD-Card before you continue.}} |
||
==*nix== |
==*nix== |
||
Line 46: | Line 48: | ||
===HxD=== |
===HxD=== |
||
− | * |
+ | * Download [http://mh-nexus.de/en/hxd/ HxD - Freeware Hex Editor and Disk Editor] |
+ | * Start HxD with Administrator Rights |
||
⚫ | |||
+ | * Choose first Partition on SD-Card and uncheck Writeprotected |
||
⚫ | |||
[[File:Canon_scriptdisk_hxd.png|thumb|left|HxD - Canon Script Disk]] |
[[File:Canon_scriptdisk_hxd.png|thumb|left|HxD - Canon Script Disk]] |
||
[[Category:Development]] |
[[Category:Development]] |
Revision as of 18:27, 18 August 2010
This section contains tools to prepare your card for use with the canon script system.
Backup the Data on your SD-Card before you continue. |
*nix
The following shell script is from Alfredo and Orens original documentation. This should be applicable to most unixish systems, but may need some adjustment for your specific system.
Note: Mac OSX users can prepare cards using my CBasicPrep app (which does pretty much what the unix script does but somewhat more safely). Download from http://www.zenoshrdlu.com/clickpansdm/cbprep.html
This script could damage your system if you tell it to use the wrong device. Make sure you know which device is your SD card, and that the usage of /mnt is compatible with your system. |
#!/bin/bash
#Enable powershot basic scripting on a memory card
if [ $# -ne 1 ] ; then
echo
echo "Usage : ./makeScriptCard.sh [ device ]"
echo
echo " [ device ] is a fat32 / fat16 partition on the memory card"
echo " example : ./makeScriptCard.sh /dev/sdb1"
echo "NOTE: please run as root"
exit 112
fi
#TAG on boot sector
echo -n SCRIPT | dd bs=1 count=6 seek=496 of=$1
#mount card
umount /mnt
mount $1 /mnt
#create script request file
echo "for DC_scriptdisk" > /mnt/script.req
#Example script
echo 'private sub sayHello()
a=LCDMsg_Create()
LCDMsg_SetStr(a,"Hello World!")
end sub
private sub Initialize()
UI.CreatePublic()
sayHello()
end sub
'>/mnt/extend.m
#Done !
echo "Please check /mnt for files extend.m and script.req"
Windows
On Windows a Disk Editor can be used to write the string "SCRIPT" onto the SD-Card.
HxD
- Download HxD - Freeware Hex Editor and Disk Editor
- Start HxD with Administrator Rights
- Choose first Partition on SD-Card and uncheck Writeprotected
- Edit you SD-Card following Canon_Basic#Format_of_the_SD_card