S90 Porting Thread

Damned! I forgot to update the files under platform\generic for the S90. I posted now the missing updates to the "[REQ]Adding new cameras, applying patches into trunk (with source code prepared)" thread.

On my S90, it works until Line 262. Then I get an error because the expression list_jpg[count_jpg] returns NIL.This indicates that there are no JPG's. The reason is, that no WAV-File was generated a few lines before (Line 222).

I'm not a programmer, but I think, the function raw_merge_add_file(result_crw(i)) (Line 219) or the funtion raw_merge_end() (Line 223) is not working - but I get no error message, not on display and not in the logfile.I scanned the whole CHDK-dirrectory for the definitions of these functions, but didn't find this strings.

Additional information : When using the script, I have a tmp16_1.tmp file in the root-Directory of the SDHC-Card, which ist a little bit bigger than the RAW-Files. Perhaps this helps to locate the error.

I think i found the problem. In raw_merge.c there is a rename function call:

The second parameter TEMP_FILE is not so good for cameras with DryOS 2.3#39, because this OS does not like pathname without a leading devicename "A/". So the rename of raw16_1.tmp to raw16.tmp failes and leads to the following error. So another CAM_DRYOS_2_3_R39 patch in the CHDK core is needed to fix this.

Update: Even with this patch, the script failes later. It throws a error because of the function getImageDirs().It look likes this function searches for all image directorys by removing all dirs from the list which are not contains the substring "CANON".But this is a problem on the S90/G11. Because Canon now uses another sheme to name the directorys (without the CANON substring, it is now some sort of day/month string used). So the script needs also a adaption for the S90/G11 image directory naming.

The second parameter TEMP_FILE is not so good for cameras with DryOS 2.3#39, because this OS does not like pathname without a leading devicename "A/". So the rename of raw16_1.tmp to raw16.tmp failes and leads to the following error. So another CAM_DRYOS_2_3_R39 patch in the CHDK core is needed to fix this.

Update: Even with this patch, the script failes later. It throws a error because of the function getImageDirs().It look likes this function searches for all image directorys by removing all dirs from the list which are not contains the substring "CANON".But this is a problem on the S90/G11. Because Canon now uses another sheme to name the directorys (without the CANON substring, it is now some sort of day/month string used). So the script needs also a adaption for the S90/G11 image directory naming.

Thank you very much ERR99 for the quick response !So I will wait until the CAM_DRYOS_2_3_R39 patch is available.Perhaps I could try to do the adaption of the script to the new Canon diretory structure.