SCRIPTS (and other) directories are empty - Script Writing - CHDK Forum

SCRIPTS (and other) directories are empty

  • 8 Replies
  • 5422 Views
SCRIPTS (and other) directories are empty
« on: 14 / April / 2016, 14:10:55 »
Advertisements
Camera Canon SD750

Using linux with the fs mounted as vfat, I've loaded counter.bas into the SCRIPTS directory.  I can see a game in the GAMES directory, and files in other directories with linux.

When I boot to CHDK, and using either the filereader (or whatever it's called) or trying to load the script from "scripting parameters" (from the CHDK menu) I don't see the counter.bas file or the two subdirectories in the SCRIPTS directory.  Neither do I see any entries in any of the other subdirectories eg GAMES, BOOKS

Any idea why I can't see these files?

I'm using a version of CHDK from about 2010. This is the version I've been using since I first got it going back then. I've just decided to try running an intervalometer script.  The installation is on a 32GB SD card, with CHDK on a small (2G?) first partition and the videos/picttures on a 29G second partition.

Unfortunately after what I thought was mounting both partitiions (ro), to look in the directories, the camera doesn't boot to CHDK anymore. Any suggestions on fixing this? (I can probably restore from backups, or start reading manuals).

(I'm new here. I haven't quite figured out how the forums work yet, so apologies for not knowing what I'm doing).

Thanks Joe

*

Offline srsa_4c

  • ******
  • 4451
Re: SCRIPTS (and other) directories are empty
« Reply #1 on: 14 / April / 2016, 14:37:54 »
You can find card setup related information on this page: http://chdk.wikia.com/wiki/Prepare_your_SD_card

CHDK, once running, sees the same partition as the camera's firmware. Also, when CHDK starts, it auto-creates some of the sub-directories under the CHDK directory. It's possible that you have copied all CHDK files to the small partition.

SCRIPTS (and other) directories are empty
« Reply #2 on: 14 / April / 2016, 17:15:16 »
To expand on what srsa_4c posted, you probably put the counter.bas file onto the small partition. It needs to be on the big partition for CHDK to be able to see it.

Also, you are using a really old version of CHDK.  There have been a lot of improvements that you might appreciate since then.  The STICK utility at the top of the page srsa_4c linked is an easy easy to get an update.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SCRIPTS (and other) directories are empty
« Reply #3 on: 14 / April / 2016, 17:44:34 »
Thanks for the quick replies

I have duplicate sets of directories on the two partitions, starting from CHDK down, including the GAMES and SCRIPTS directories. (I don't know where the duplicates came from, possibly the install, or possibly when I was trying to get it to do and hadn't figured things out.) I put the intervalometer script in the SCRIPTS directory in both partitions, first as counter.bas and then as COUNTER.BAS (as seen when mounted vfat), and threw in a few text files for good measure, but couldn't see the script file or the text files from the filereader.

Thanks Joe

*

Offline reyalp

  • ******
  • 14126
Re: SCRIPTS (and other) directories are empty
« Reply #4 on: 14 / April / 2016, 22:00:10 »
Thanks for the quick replies

I have duplicate sets of directories on the two partitions, starting from CHDK down, including the GAMES and SCRIPTS directories. (I don't know where the duplicates came from, possibly the install, or possibly when I was trying to get it to do and hadn't figured things out.) I put the intervalometer script in the SCRIPTS directory in both partitions, first as counter.bas and then as COUNTER.BAS (as seen when mounted vfat), and threw in a few text files for good measure, but couldn't see the script file or the text files from the filereader.

Thanks Joe
From linux, do you see any files with unusual names the script directory like . files other than "." and "..", non ASCII characters etc.

Did you ever transfer files with a Mac? If so http://chdk.wikia.com/wiki/FAQ/Mac#Still_Having_Trouble.3F might apply.

You mentioned you were using a version of CHDK from 2010. I don't specifically remember any bugs with the file browser or directory listing from that time, but trying something more recent might not be a bad idea. Make sure to save your current files if you don't have the original download somewhere.
Don't forget what the H stands for.

Re: SCRIPTS (and other) directories are empty
« Reply #5 on: 15 / April / 2016, 14:10:50 »
from linux all the directories and files look normal. Some files are lc and some are uc.

I expect the next thing to do is to try an install with STICK.

Thanks Joe

*

Offline reyalp

  • ******
  • 14126
Re: SCRIPTS (and other) directories are empty
« Reply #6 on: 15 / April / 2016, 15:46:53 »
from linux all the directories and files look normal. Some files are lc and some are uc.
Have you tried a chkdsk or fsck.vfat on the card? Probably a long shot since Linux works OK, but linux FAT implementation may be more robust than Canons.

You could also try putting the script in a different directory, i.e. the root of the card. There nothing really special about the SCRIPTS directory, it's just the default location.
Don't forget what the H stands for.

Re: SCRIPTS (and other) directories are empty
« Reply #7 on: 15 / April / 2016, 18:03:51 »
Thanks I didn't realise the SCRIPTS directory was nothing special. It makes sense.

The filebrowser can't the other files and directories in the SCRIPTS directory and can't see files in the GAMES directory. However linux has no problem seeing the files and subdirectories and doesn't give any errors on mounting the filesystem, so it's unlikely that there's a fsck problem.

Thanks Joe

Re: SCRIPTS (and other) directories are empty
« Reply #8 on: 18 / April / 2016, 11:52:52 »
I've installed the latest version of CHDK using STICK. The counter.bas script works fine and the filebrowser sees all the files. Thanks for your help

Joe

 

Related Topics


SimplePortal © 2008-2014, SimplePortal