SX120 fails to load scripts, bad pixels - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum  

SX120 fails to load scripts, bad pixels

  • 14 Replies
  • 3398 Views
SX120 fails to load scripts, bad pixels
« on: 30 / December / 2012, 09:09:53 »
Advertisements
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

Re: SX120 fails to load scripts, bad pixels
« Reply #1 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.

« Last Edit: 30 / December / 2012, 10:51:11 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX120 fails to load scripts, bad pixels
« Reply #2 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.

Re: SX120 fails to load scripts, bad pixels
« Reply #3 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
« Last Edit: 30 / December / 2012, 11:55:52 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: SX120 fails to load scripts, bad pixels
« Reply #4 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.

*

Offline srsa_4c

  • ******
  • 4263
Re: SX120 fails to load scripts, bad pixels
« Reply #5 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
Probably not a coincidence.

Re: SX120 fails to load scripts, bad pixels
« Reply #6 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.

Re: SX120 fails to load scripts, bad pixels
« Reply #7 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/  ?
« Last Edit: 30 / December / 2012, 14:34:59 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3163
    • Photos
Re: SX120 fails to load scripts, bad pixels
« Reply #8 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.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)

Re: SX120 fails to load scripts, bad pixels
« Reply #9 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  if you want to test this prior to the autobuild updating tonight
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics