A2200 IS porting thread - page 11 - DryOS Development - CHDK Forum supplierdeeply

A2200 IS porting thread

  • 514 Replies
  • 98547 Views
*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: A2200 IS porting thread
« Reply #100 on: 08 / December / 2011, 07:37:34 »
Advertisements
Do you know where I can download a pre-compiled version of GCC 4.6.2 for Windows that will work with CHDK, so I can test this?

Phil.
Not yet, but working on uploading right now - [edit] Ok, done + scanned OK @ Jotti :

kit with GCC 3.4.5 / 4.6.2 (native/cross): gcc462.7z (15.2 MB)
                    CRC-32: 33BFBCAF 
                    MD5:      1875D833FA966E9B6C09A05C8C5383CF   
                    SHA1:     4AF97AAFC6C7BEC3F06111721C3574F9E0BDD3AD

[edit2: in case others want to test this: don't forget that a mini-patch to the CHDK source code is
           needed for this to work, see Nilinhim's post or if you prefer a patch file see attachment]

cheers,

wim

PS Only tested with included gmake.exe (which is Gnu make 3.77 compiled for msys)

Thanks wim,

CHDK compiled with this version of GCC boots and most things work.

Saving a DNG file crashes the camera though - haven't had time to debug it yet.

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)

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A2200 IS porting thread
« Reply #101 on: 08 / December / 2011, 13:40:06 »
Thanks wim,

CHDK compiled with this version of GCC boots and most things work.

Saving a DNG file crashes the camera though - haven't had time to debug it yet.

Phil.
Hi Phil,

Confirmed on ixus220_elph300hs w/ r1459 compiled by GCC462. Crashes on saving DNG with lens extended.
Additionally, after a reboot/reload above CHDK, "Save ROM crash log" also failed - no crash
though, just no success reported and no ROMLOG.LOG produced.
After switching my DISKBOOT.BIN to an identical version compiled with GCC451,
managed to dump the crash log (attached).

I'm not sure on which camera you tested, but if there's no direct connection with A2200
maybe we should move any further discussion on this to the CHDK-Shell thread ?

thanks,

wim


Re: A2200 IS porting thread
« Reply #102 on: 08 / December / 2011, 14:34:30 »
...
Confirmed on ixus220_elph300hs w/ r1459 compiled by GCC462. Crashes on saving DNG with lens extended.
Additionally, after a reboot/reload above CHDK, "Save ROM crash log" also failed - no crash
though, just no success reported and no ROMLOG.LOG produced.
After switching my DISKBOOT.BIN to an identical version compiled with GCC451,
managed to dump the crash log (attached).
...

Revision 1459 compiled with cross gcc 4.6.0, tested on A2200, saving DNG's mostly works. In a series of shots in every zoom position, there was one dng missing, but no crashes (shots were done in a single session). But I need to test it some more, since it might just be a dying SD card's fault.

Re: A2200 IS porting thread
« Reply #103 on: 08 / December / 2011, 15:38:16 »
Messing around a bit more with RAW's I noticed that they are smaller resolution then the JPG's.

The JPG's are 4320x3240, while DNG's are 4036x3026. Is this normal?

In platform_camera.h I have defined:
Code: [Select]
#define CAM_RAW_ROWPIX     4416 // Found @0xff937b24
#define CAM_RAW_ROWS       3296 // Found @0xff937b2c


*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: A2200 IS porting thread
« Reply #104 on: 08 / December / 2011, 16:16:36 »
...
Confirmed on ixus220_elph300hs w/ r1459 compiled by GCC462. Crashes on saving DNG with lens extended.
Additionally, after a reboot/reload above CHDK, "Save ROM crash log" also failed - no crash
though, just no success reported and no ROMLOG.LOG produced.
After switching my DISKBOOT.BIN to an identical version compiled with GCC451,
managed to dump the crash log (attached).
...

Revision 1459 compiled with cross gcc 4.6.0, tested on A2200, saving DNG's mostly works. In a series of shots in every zoom position, there was one dng missing, but no crashes (shots were done in a single session). But I need to test it some more, since it might just be a dying SD card's fault.

This might be the problem we had on the IXUS 310 and SX220/SX230. A delay is needed for the camera to update the image number otherwise the CHDK RAW code overwrites a previous image.

See the code for PAUSE_FOR_FILE_COUNTER in the IXUS310.

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)

*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: A2200 IS porting thread
« Reply #105 on: 08 / December / 2011, 16:17:58 »
Messing around a bit more with RAW's I noticed that they are smaller resolution then the JPG's.

The JPG's are 4320x3240, while DNG's are 4036x3026. Is this normal?

In platform_camera.h I have defined:
Code: [Select]
#define CAM_RAW_ROWPIX     4416 // Found @0xff937b24
#define CAM_RAW_ROWS       3296 // Found @0xff937b2c

Check the CAM_ACTIVE_AREA_??, CAM_JPEG_WDTH and CAM_JPEG_HEIGHT values in platform_camera.h

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)

*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: A2200 IS porting thread
« Reply #106 on: 09 / December / 2011, 18:57:36 »

Not camera specific, but could the "-Wl" option be added to the line 100 in chdk/core/Makefile?
Change from
Code: [Select]
$(CC) $(CFLAGS) -o $@ --start-group $^  $(LDLIBS) --end-group $(LDFLAGS) $(LDOPTS)to
Code: [Select]
$(CC) $(CFLAGS) -o $@ -Wl,--start-group $^  $(LDLIBS) -Wl,--end-group $(LDFLAGS) $(LDOPTS)Newer versions of gcc are a bit more anal about passing arguments to the linker, at least in my experience here.

I've added this in changeset 1463

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: A2200 IS porting thread
« Reply #107 on: 20 / December / 2011, 04:20:00 »
Update report:

(same links, new files)
* beta build (2011.12.20): DISKBOOT.BIN firmware version 1.00b, use the Card Lock method
* beta source (2011.12.20): chdk.a2200.zip based on CHDK svn version 1491

I'm calling this one first beta. Updated to latest CHDK build, checked every file four times referencing a different camera, implemented everything I know how (from cropping RAW's to implementing custom colors).

So far what I've tested works, with these bugs (in order of annoyance):

- Zebra is misaligned and doubled (see attached image).
- Custom colors based on ixus310 work, but I can't find the active_palette_buffer for CHDK menu. Logo looks fine, so does games and file browsing. I tried buffers from 0 to 32.
- Enabling unlock optical zoom in video works, but after using zoom once, the zoom controls become unresponsive in any mode, needs a reboot. (Also, does CHDK support continuous AF?)
- Sokoban doesn't run.

Any tests to find more bugs or advices how to fix the know ones will be greatly appreciated!


*

Offline dejco

  • *
  • 20
Re: A2200 IS porting thread
« Reply #108 on: 20 / December / 2011, 19:17:11 »
if I enable Override Subj. Dist. V camera crashes

Re: A2200 IS porting thread
« Reply #109 on: 22 / December / 2011, 07:57:54 »
Hi all... i'll want to ask something. I've my a2200 with C firmware, so i've tried to install the ported "C" dowloading it from this thread. I'll want to know if i can make Time lapse with it and how. Tnx for your hard job and merry xmas for all  :xmas
Tnx (sorry for my bad english  :-[ )

 

Related Topics