A2100IS Porting - page 3 - General Discussion and Assistance - CHDK Forum

A2100IS Porting

  • 62 Replies
  • 22096 Views
Re: A2100IS Porting
« Reply #20 on: 23 / January / 2012, 13:14:01 »
Advertisements
Current state of porting progress

Code: [Select]
platform/A2100IS/:

main.c - almost completed, needs very custom values for lens/etc.
kbd.c - completed;
lib.c - completed;
platform_camera.h - completed;
shooting.c - not started;
wrappers.c - not started;

platform/A2100IS/sub/100a/:

boot.c - almost completed (except capt_seq, movie, ext_drv, fat32 loader);
lib.c - completed;
capt_seq.c - not started;
movie_rec.c - not started;

Camera successfully boots with CHDK :)
« Last Edit: 23 / January / 2012, 15:25:35 by ac.n1bs »

Re: A2100IS Porting
« Reply #21 on: 23 / January / 2012, 15:51:37 »
Guys, please update wiki for A2100 about CHDK state.
Also, let me know how to pass code into SVN, may be someone could help me with the rest of porting process.

Thanks

Re: A2100IS Porting
« Reply #22 on: 24 / January / 2012, 09:48:43 »
Working on capt_seq.c - and still can't fine anything similar in g10/my own FW :( I was able to find exactly first routine for capt_seq_task() and was able to find place for    

"   BL  shooting_expo_param_override\n"  // +   

But nothing more - everything else is different :(

Please help who is able, how to find the rest ?

Re: A2100IS Porting
« Reply #23 on: 24 / January / 2012, 10:10:07 »
Please help who is able, how to find the rest ?
The G10 was released six months before the A2100.   It might be a good idea to look at the CHDK code for a camera that was released on the same date as the A2100.   I would suggest the D10 for that purpose.  You might also look at the S90 - released six month later.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: A2100IS Porting
« Reply #24 on: 24 / January / 2012, 10:15:37 »
Please help who is able, how to find the rest ?
The G10 was released six months before the A2100.   It might be a good idea to look at the CHDK code for a camera that was released on the same date as the A2100.   I would suggest the D10 for that purpose.  You might also look at the S90 - released six month later.

Thanks for that, I've also checked with D10 - it's different. Will recheck with S90.

Re: A2100IS Porting
« Reply #25 on: 24 / January / 2012, 10:37:05 »
Thanks for that, I've also checked with D10 - it's different. Will recheck with S90.
Cameras released the same date as the A2100 :

D10
SX200IS
SD960IS
SD970IS
SD1200IS
SD780IS
A1100
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2100IS Porting
« Reply #26 on: 24 / January / 2012, 19:16:26 »
Tried with G10/D10/A1100 - seems like I was able to find correct routine, and I was sure that it's fixed - but CHDK is not saving RAW images. (task at boot.c is uncommented).

Please give me advice where to check.

Thanks in advance.

Re: A2100IS Porting
« Reply #27 on: 24 / January / 2012, 21:39:39 »
Please give me advice where to check.

Take a look the core_spytask() function in core/main.c.   You probably want to see if this code is actually executing towards the bottom of that function :

Code: [Select]
     if (raw_data_available) {
            raw_need_postprocess = raw_savefile();
            hook_raw_save_complete();
            raw_data_available = 0;
            continue;
            }

If you look at the end of the function,  there is a little disabled code snippet that should show you how to print debug type messages to the camera's LCD screen to help track where things are going wrong.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: A2100IS Porting
« Reply #28 on: 25 / January / 2012, 17:46:26 »
Quote
<philmoz> I'll have a quick look at the A2100 firmware to see if I can suggest any places to try adding the hook code, can you post you capt_seq.c code to the forum.

Thanks, philmoz!

File in attachment.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: A2100IS Porting
« Reply #29 on: 25 / January / 2012, 18:29:42 »
Quote
<philmoz> I'll have a quick look at the A2100 firmware to see if I can suggest any places to try adding the hook code, can you post you capt_seq.c code to the forum.

Thanks, philmoz!

File in attachment.

That looks like it should at least trigger the raw code, even if it doesn't capture correct data.
Have you tried putting an LED blink into 'raw_savefile' (raw.c)?

(You can also remove lines 239 - 244.)

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)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal