supplierdeeply

can't run scripts

  • 12 Replies
  • 1625 Views
can't run scripts
« on: 14 / August / 2013, 18:41:16 »
Advertisements
Hi folks. I have a Powershot SX IS and want to shoot regularly spaced images to make a time-lapse movie. To that end I downloaded the Intervalometer script. However, I can't get it to work.

The instructions say copy it to your SCRIPT folder. Mine was named SCRIPTS, but that doesn't matter, does it?  Anyhow, continuing. Install and boot CHDK, enter <ALT> mode, press FUNC/SET to bring up a menu. So far so good. Then I'm to select the first item "Load Script from File..." (using FUNC/SET?), but nothing happens except the menu blinks. I saw that default.bas was 0B so I copied interval.bas into it; same behavior.

It's also OK if there's a laptop running Linux or XP controlling the exposures via USB. Is that possible? Thanks.

My file layout is as follows (the card is mounted on /media/CHDK):
[email protected]:/media/CHDK$ ls -l
total 512
-rwxr-xr-x  1 eben root   2107 2013-07-30 22:41 changelog.txt
drwxr-xr-x 14 eben root  65536 2013-08-14 01:59 CHDK
drwxr-xr-x  4 eben root  65536 2013-08-02 20:16 DCIM
-rwxr-xr-x  1 eben root 139201 2013-08-01 16:54 DISKBOOT.BIN
-rwxr-xr-x  1 eben root  10403 2013-08-01 16:54 readme.txt
-rwxr-xr-x  1 eben root    107 2008-08-01 15:52 vers.req

[email protected]:/media/CHDK/CHDK$ ls -l
total 832
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 BOOKS
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 CURVES
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 DATA
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 FONTS
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 GAMES
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 GRIDS
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 HELP
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 LANG
drwxr-xr-x 3 eben root 65536 2013-08-01 18:43 LUALIB
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 MODULES
drwxr-xr-x 5 eben root 65536 2013-08-11 23:33 SCRIPT
drwxr-xr-x 2 eben root 65536 2013-08-01 18:43 SYMBOLS
-rwxr-xr-x 1 eben root  8192 2009-05-03 00:21 syscurves.CVF

[email protected]:/media/CHDK/CHDK/SCRIPT$ ls -l
total 832
-rwxr-xr-x 1 eben root  2765 2013-08-11 23:33 counter.bas
-rwxr-xr-x 1 eben root     0 2009-01-07 20:06 default.bas
drwxr-xr-x 2 eben root 65536 2013-08-01 16:40 EDITOR
drwxr-xr-x 2 eben root 65536 2013-08-01 16:40 EXAM
-rwxr-xr-x 1 eben root   338 2012-12-28 18:22 hdr.bas
-rwxr-xr-x 1 eben root   398 2012-12-28 18:22 hdr.lua
-rwxr-xr-x 1 eben root   162 2011-12-15 02:37 interval.bas
-rwxr-xr-x 1 eben root   194 2011-12-15 02:37 interval.lua
-rwxr-xr-x 1 eben root   332 2013-02-01 16:32 motion.bas
-rwxr-xr-x 1 eben root  1078 2013-02-01 16:32 motion.lua
-rwxr-xr-x 1 eben root  1011 2011-12-15 02:37 readme.txt
-rwxr-xr-x 1 eben root   276 2011-12-15 02:37 shoot.bas
-rwxr-xr-x 1 eben root   304 2011-12-15 02:37 shoot.lua
drwxr-xr-x 2 eben root 65536 2013-08-01 16:40 TEST

Re: can't run scripts
« Reply #1 on: 14 / August / 2013, 18:49:08 »
Hi folks. I have a Powershot SX IS and want to shoot regularly spaced images to make a time-lapse movie. To that end I downloaded the Intervalometer script. However, I can't get it to work.

The instructions say copy it to your SCRIPT folder. Mine was named SCRIPTS, but that doesn't matter, does it?  Anyhow, continuing. Install and boot CHDK, enter <ALT> mode, press FUNC/SET to bring up a menu. So far so good. Then I'm to select the first item "Load Script from File..." (using FUNC/SET?), but nothing happens except the menu blinks. I saw that default.bas was 0B so I copied interval.bas into it; same behavior.
This typically means that you have not installed the complete CHDK distribution to your SD card.   This could be an install error on your part or it could be that you downloaded the small rather than complete distribution file.  To verify this,  are there any files in the CHDK/MODULES folder on your SD card?

Also,  Powershot SX IS is not the full complete model number of your camera - there is a number missing there ( i.e. SX30IS).

Ported :   A1200    SD940   G10    Powershot N    G16

Re: can't run scripts
« Reply #2 on: 14 / August / 2013, 19:00:29 »
Then I'm to select the first item "Load Script from File..." (using FUNC/SET?), but nothing happens except the menu blinks.
This typically means that you have not installed the complete CHDK distribution to your SD card.   This could be an install error on your part or it could be that you downloaded the small rather than complete distribution file.  To verify this,  are there any files in the CHDK/MODULES folder on your SD card?
Yes, 29 of them.
Also,  Powershot SX IS is not the full complete model number of your camera - there is a number missing there ( i.e. SX30IS).
Oops, you're right.  It's an SX1 IS.

Thank you for replying.

*

Offline zeno

  • *****
  • 882
Re: can't run scripts
« Reply #3 on: 15 / August / 2013, 04:31:40 »
You don't say, but is the card larger than 4GB and hence has two partitions (so that CHDK can boot from FAT16)?
If so, note that the SCRIPTS folder must be on the large partition (where photos will go too). CHDK will switch to the large partition after booting and won't look at the small partition for scripts.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit


Re: can't run scripts
« Reply #4 on: 15 / August / 2013, 13:04:27 »
You don't say, but is the card larger than 4GB and hence has two partitions (so that CHDK can boot from FAT16)?
If so, note that the SCRIPTS folder must be on the large partition (where photos will go too). CHDK will switch to the large partition after booting and won't look at the small partition for scripts.
Good to know. Unfortunately not the case -- the card is 4GB.  For my first try I decided to keep it simple.

Also, it's "SCRIPTS" on yours, right?  I'm reasonably sure case doesn't matter; I'm not sure it's even preserved on FAT16.

Re: can't run scripts
« Reply #5 on: 15 / August / 2013, 13:49:12 »
Good to know. Unfortunately not the case -- the card is 4GB.  For my first try I decided to keep it simple.
Please describein detail the procedure you used to configure your SD card - including any tools or utilities you used.

Its still possible that you have created a dual partition card, which would completely explain you problem.

Quote
Also, it's "SCRIPTS" on yours, right?
Yes..
Ported :   A1200    SD940   G10    Powershot N    G16

Re: can't run scripts
« Reply #6 on: 15 / August / 2013, 14:23:43 »
Good to know. Unfortunately not the case -- the card is 4GB.  For my first try I decided to keep it simple.
Please describe in detail the procedure you used to configure your SD card - including any tools or utilities you used.
OK. This machine (desktop) is faster but has no SD reader. The slower laptop has an SD reader. TTBOMK:
On laptop: Block-copy SD card into a file. Transfer to desktop.
On desktop: Partition card image into one big chunk. Format chunk FAT16. Split out filesystem, other stuff into two files. Add "BOOTDISK" to filesystem. Assemble other_stuff + filesystem > SD_image. Loopback-mount first (only) partition on image. Unzip stuff into it. Unmount, transfer to laptop.
On laptop: Block-copy image to actual SD card.

There are simpler ways to do it. Instead of copying the card to a file, I could have just created a blank file of the same size. And instead of splitting the image to two parts, I could have just noted the offset and applied it appropriately.
Quote
Its still possible that you have created a dual partition card, which would completely explain you problem.
Pretty darned unlikely.

Re: can't run scripts
« Reply #7 on: 15 / August / 2013, 15:12:09 »
There are simpler ways to do it. Instead of copying the card to a file, I could have just created a blank file of the same size. And instead of splitting the image to two parts, I could have just noted the offset and applied it appropriately.
There are certainly easier ways.  You could just run the STICK utility on your laptop with the SD card reader?

Or format the card in the camera, put the card in the reader on the slower laptop,  unzip the CHDK distribution file to the card (maintaining the directory structure) and then issuing this command :

Code: [Select]
echo -n BOOTDISK | dd bs=1 count=8 seek=64 of=/dev/sdx1
from http://chdk.wikia.com/wiki/Prepare_your_SD_card#Linux.


Quote
Quote
Its still possible that you have created a dual partition card, which would completely explain you problem.
Pretty darned unlikely.
I see that now that you have described your process.

However,  CHDK works for thousands of people so it seem very likely that whatever you are doing in your card prep method is causing problems.  The symptoms are that once CHDK is loaded, it can't find other files (specifically the .flt files). 
Ported :   A1200    SD940   G10    Powershot N    G16


Re: can't run scripts
« Reply #8 on: 15 / August / 2013, 15:36:46 »
There are simpler ways to do it. Instead of copying the card to a file, I could have just created a blank file of the same size. And instead of splitting the image to two parts, I could have just noted the offset and applied it appropriately.
There are certainly easier ways.  You could just run the STICK utility on your laptop with the SD card reader?
I wanted to, but no Java on the laptop. I tried to make a fake SD card on the desktop to fool STICK, but couldn't. It would be really nice if STICK had a less-smart mode or command-line switch where you could specify the drive onto which to install.
Quote
Or format the card in the camera, put the card in the reader on the slower laptop,  unzip the CHDK distribution file to the card (maintaining the directory structure) and then issuing this command :

Code: [Select]
echo -n BOOTDISK | dd bs=1 count=8 seek=64 of=/dev/sdx1
That should work. I can try that next.  Formatting the card in the camera applies FAT32 IIRC, so I might have to do that part in a computer.
Quote
However,  CHDK works for thousands of people so it seem very likely that whatever you are doing in your card prep method is causing problems.  The symptoms are that once CHDK is loaded, it can't find other files (specifically the .flt files).
Yes, I've apparently done something wrong.  It might be as simple as "something's in the wrong place".  But if everything looks reasonable, it must be something invisible like the partitioning or formatting.

Re: can't run scripts
« Reply #9 on: 15 / August / 2013, 15:47:02 »
Formatting the card in the camera applies FAT32 IIRC, so I might have to do that part in a computer.
The SX1is is a 2009 camera - it definitely won't boot from a FAT32 partition.  Formatting as FAT16 on your laptop should be fine.

Quote
Yes, I've apparently done something wrong.  It might be as simple as "something's in the wrong place".  But if everything looks reasonable, it must be something invisible like the partitioning or formatting.
The problem you had when in the script menu is caused by CHDK not being able to find the  FSELECT.FLT file in the MODULES directory. Whatever you have done is confusing CHDK.

Incidentally,   when CHDK boots do you see the round CHDK icon (like the one on the top of the wiki page) or just the text box with filename and data info?

Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics