I've made a little bit more progress:
There was some debugging code left from before that was preventing the script menu from loading, and also preventing the config fie from being loaded at startup, so those are now fixed.
I've tried running the lua lib test script, and at first it just crashed (switching off the camera), so I set all the disables to 1 and it then ran.
Then I tried just the IO test, and that crashed. On the SD card it left an empty llibtst.log file, and a file called iotest0.txt. The romlog dump contained:
ASSERT!! ReadFDir.c Line 466
Occured Time 2010:11:08 23:44:41
Task ID: 16187425
Task name: FsIoNotifyTa0
SP: 0x0033AF60
StackDump:
0x00000000
0xFFA75358
...
ShootConDump:
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
CameraConDump:
07 0a 02 0f 0f 0f 0f 0f 0f 0f
00000070: *** Camera Log Start ***
00000130: UI:LogicalEvent:0x5001:adr:0,Para:0
00000150: SS:S-Imag
...
Later on, the IO test did run (maybe because of different files being on the SD card?), leaving the following test log:
test log opened
platform: ixus130_sd1400 100c
version: CHDK 0.9.9 built on Nov 8 2010 22:51:58
os: dryos platformid: 12787
***test io***
file info for io.input: closed file!
file info for io.output: valid file
ptr: 3243624 fd: 3 len: 224 pos: 224
raw vals: 0:3 4:224 8:1 12:224 16:1 20:1 24:1077052544 28:0 32:1819029313
io.open("A/iotest0.txt","w+b"): ERR msg=A/iotest0.txt: error FAIL
aborting
close test log
Yet other times (I also happened to have the string tests enabled), it failed to run properly, just displaying the message:
*** STARTED ***
not enough memory
PRESS SHUTTER TO CLOSE
Running just the OS tests leaves behind an empty MDTST0 directory, and in the log two failures (the first only happens sometimes):
os.mkdir("A/MDTST0"): ERR A/MDTST0: error FAIL
os.remove("A/MDTST0): ERR A/MDTST0: error FAIL
The string tests pass.
So there is some work to be done to get the scripts working properly, but I'm not really sure where to start. What could cause these errors? I've checked the addresses of the mkdir, Remove, and open functions and they all look right to me (virtually identical to the Ixus300).