CHDK Forum

Using CHDK => General Help and Assistance on using CHDK stable releases => Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) => Topic started by: ltraynor on 30 / December / 2012, 09:09:53

Title: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 30 / December / 2012, 09:09:53
The current build 1.1.0, revision 2423 for the SX120 has the following bugs:

- On switching on RAW capture for DNG an error message "cannot find badpixel.bin" appears even after the badpixels have been identified and the file is in the correct directory.

- On loading a new script, pressing "func/set" (= enter) does not load the file under the cursor, only returns to the menu with the default script loaded.

This appears to be a problem with the way CHDK treats the file system.

Any idea when this problem might be solved?

Cheers,

Lee
Title: Re: SX120 fails to load scripts, bad pixels
Post by: waterwingz on 30 / December / 2012, 10:49:29
The current build 1.1.0, revision 2423 for the SX120 has the following bugs: - On switching on RAW capture for DNG an error message "cannot find badpixel.bin" appears even after the badpixels have been identified and the file is in the correct directory.
- On loading a new script, pressing "func/set" (= enter) does not load the file under the cursor, only returns to the menu with the default script loaded. This appears to be a problem with the way CHDK treats the file system.
As this code is common to every camera and nobody else has reported this problem, it seems unlikely that this is a CHDK bug. It's more likely that the files CHDK is looking for are not in the right place on your SD card. 

What card configuration are you using - single or dual partition ?  If dual partition, did you copy everything to the large partition and just the diskboot.bin and ps.fi2 to the small boot partition ?   Are you using the "complete" distribution file rather than the "small" ?  When you copied CHDK to the SD card, did you copy all the files to the directories specified in the zip file ? 

Quote
Any idea when this problem might be solved?
As CHDK has no schedule or staff,  things get done when someone is interested in the problem,  has the time and usually has either access to the camera or a volunteer tester.   Let's work through the PEBKAB possabilities before worrying too much about that.

Title: Re: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 30 / December / 2012, 11:15:33
I am using a single partition card onto which I have put the entire contents of sx120is-100b-1.1.0-2040-full_BETA.zip, a build from August 2012. This works fine, but when I update the files diskboot.bin and ps.fi2 from a current build the problems described arise.

If I replace everything on the card with the contents of sx120is-100b-1.1.0-2423-full_BETA.zip, the same problem occurs. When reading the Scripts directory, all of the files end with a slash and CHDK treats them as directories, whereas the the directories look like file names. Clicking on the subdirectories brings up the default script. The problem with the badpixel.bin files persists.

Any suggestions.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: waterwingz on 30 / December / 2012, 11:53:42
I am using a single partition card onto which I have put the entire contents of sx120is-100b-1.1.0-2040-full_BETA.zip, a build from August 2012. This works fine, but when I update the files diskboot.bin and ps.fi2 from a current build the problems described arise.
Not a good idea to just update those files.  Much of CHDK is built as loadable .FLT modules and those modules need to be from the same build as the diskboot.bin / ps.fi2 file.  So you need to update the whole distribution - not just those two files.

Quote
If I replace everything on the card with the contents of sx120is-100b-1.1.0-2423-full_BETA.zip, the same problem occurs.
When reading the Scripts directory, all of the files end with a slash and CHDK treats them as directories, whereas the the directories look like file names. Clicking on the subdirectories brings up the default script. The problem with the badpixel.bin files persists.
Any suggestions.
Have you tried reformatting the card completely (in the camera or PC)  and loading the new 2423 version from scratch ?

Also,  are you using a Mac or PC ?  Apparently this can cause problems with a Mac : http://chdk.wikia.com/wiki/FAQ/Mac#Still_Having_Trouble.3F (http://chdk.wikia.com/wiki/FAQ/Mac#Still_Having_Trouble.3F)
Title: Re: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 30 / December / 2012, 13:51:13
I am using a PC.

Formatting the card makes no difference; formatting another card also makes no difference.

In general the problem appears to be that files are being treated as directories and vice versa. Some variation occurs in this behaviour (sometimes a file is recognised as a file and a directory as such, but not consistently), it is not invariant which leads me to believe their must be some logical bug in the code.

Is there anyone out there with an SX120 who can say whether they can load scripts and bad pixel files with the latest version of CHDK, or not, that would help in identifying where the problem lies.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: srsa_4c on 30 / December / 2012, 14:05:29
There have been several reports about this camera recently, see from here: http://chdk.setepontos.com/index.php?topic=4284.msg94053#msg94053 (http://chdk.setepontos.com/index.php?topic=4284.msg94053#msg94053)
Probably not a coincidence.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 30 / December / 2012, 14:26:58
Thanks to the previous contributor, the problems their link refers to seem to be that same as those here.

BTW when browsing the directory, all files seem to have a file size of "3.1 G" regardless of the size of the card.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: waterwingz on 30 / December / 2012, 14:31:20
Is there anyone out there with an SX120 who can say whether they can load scripts and bad pixel files with the latest version of CHDK, or not, that would help in identifying where the problem lies.
Unfortunately, AFAIK none of the dev have an SX120.  I took a look at the stubs_entry.S file for this camera and there are several things reported as possibly not correct by the sigfinder.   However, this is a fairly popular cameras so I'd be surprised to find it not working like this.

You could try the newer development branch to see if that works better : http://mighty-hoernsche.de/trunk/ (http://mighty-hoernsche.de/trunk/)  ?
Title: Re: SX120 fails to load scripts, bad pixels
Post by: philmoz on 30 / December / 2012, 14:40:36
Should be fixed in revision 2427 (release-1.1) and 2428 (trunk).

Camera was missing a #define for the DryOS firmware version which caused the incorrect code to be built for the 'stat' function.

Phil.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: waterwingz on 30 / December / 2012, 14:55:24
Should be fixed in revision 2427 (release-1.1) and 2428 (trunk).
@ltraynor : rebuilt and posted here : https://www.box.com/s/vha2p2s1masqnqe9xyla (https://www.box.com/s/vha2p2s1masqnqe9xyla)  if you want to test this prior to the autobuild updating tonight
Title: Re: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 30 / December / 2012, 15:14:30
Sorry, but that doesn't fix the problem.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: waterwingz on 30 / December / 2012, 15:19:30
Sorry, but that doesn't fix the problem.
@philmoz :  did an svn update (now at 2429) - got the change in platform/sx120is/platform_camera.h :
Code: [Select]
    #define CAM_DRYOS_2_3_R39               1 // Defined for cameras with DryOS version R39 or higherand built with that.   Do any of the questionable definitions in stubs_entry.S need to get changed ?

Title: Re: SX120 fails to load scripts, bad pixels
Post by: philmoz on 31 / December / 2012, 00:54:01
Sorry, but that doesn't fix the problem.

Can you try the attached version please.
Be sure to extract ALL of the files from the .ZIP file to the SD card.

Phil.
Title: Re: SX120 fails to load scripts, bad pixels
Post by: ltraynor on 31 / December / 2012, 04:38:43
Thanks, Phil, that version does work. None of the three problems can be found:

Browsing files to load scripts correctly identifies files and directories;
File sizes are correct;
Badpixel.bin can be found and loaded.

This appears to be one of the last versions that I saved. I noticed a problem with newer versions earlier in December.

Cheers

Lee
Title: Re: SX120 fails to load scripts, bad pixels
Post by: philmoz on 31 / December / 2012, 04:49:29
Thanks, Phil, that version does work. None of the three problems can be found:

Browsing files to load scripts correctly identifies files and directories;
File sizes are correct;
Badpixel.bin can be found and loaded.

This appears to be one of the last versions that I saved. I noticed a problem with newer versions earlier in December.

Cheers

Lee

Thanks for testing.
The fixed version should be on the autobuild server in a few hours (revision 2432 or later).

Phil.