IXUS 105 / SD1300 IS porting thread - page 4 - DryOS Development - CHDK Forum

IXUS 105 / SD1300 IS porting thread

  • 772 Replies
  • 129268 Views
*

Offline fe50

  • ******
  • 3108
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: IXUS 105 / SD1300 IS porting thread
« Reply #30 on: 22 / October / 2010, 05:18:26 »
Advertisements
c10ud - i guess it's the same prop as in waldo's S95 port:
Here's something odd I just noticed.  The uBasic shoot function did not work on the S95.  I tracked this to the PROPCASE_SHOOTING always being 0, so I assumed that the property case address was wrong.  I searched through all the property cases and found what seems to be PROPCASE_SHOOTING located at 303.  I cannot find a reference to this address in the code or on the forum, so I guess they changed it on this camera.  Patching this address in my code makes the shoot function work. 

If Canon is going to change these addresses more often, it seems like this is a camera-dependent thing that belongs in the Platform/camera directory, but the current code structure puts this information in trunk/include.  It seems a bit cumbersome to create a new propset each time anything changes for one particular camera.

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #31 on: 22 / October / 2010, 05:56:11 »
thanks Fe for the quick response.
In my case i see 303 remains 0, but 301 changes from 0 to 1 like the usual 208 does.
I did more testing, seems like if i start the shoot() script it hangs, but if i click the shoot_half button (yes, manually finger-on-button) then the script is executed and terminated correctly (!!!) i'll recheck kbd.c, i guess it's a wrong shoo_half value at this point...

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #32 on: 22 / October / 2010, 06:27:45 »
physw_status[2] when nothing is pressed is 207c0b. Pressing shoot_half manually gets it to 203c0b. However, when camera is ready to shoot (you see canon-osd with chosen sspeed, iso, etc.) it changes again to 203c0f.

I defined shoot_half  as   { 2, KEY_SHOOT_HALF   , 0x00004000 },  do you think i am missing something here?

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #33 on: 23 / October / 2010, 08:29:19 »
meh. just discovered that shoot_half mustn't go into the keymask. shoot script is now fixed.


*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #34 on: 23 / October / 2010, 09:15:37 »
ok, new source available in http://drop.io/ixus105_sd1300 just download ixus105_0.2.zip and have fun.
I added ptp stuff for easier debug of some stuff, since it's in trunk now.. :)

This version has shoot() fixed, zoom fixed, fl should be ok, gui ok, etc.

tested:
- loading, drawing
- some lua stuff
- exp override

current issues/unfeatures:
- load script = camera shutdown
- save raw = camera shutdown (some stub must be wrong)
- no video override
- edge overlay works but disappears soon
- zebra doesn't seem to be working
- some other overrides does not seem to work correctly

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #35 on: 10 / November / 2010, 08:56:26 »
so i was trying to find the right values for vid_get_viewport_live_fb(), and come up with
Code: [Select]
void *vid_get_viewport_live_fb()
{
    void **fb=(void **)0x43f8;
    unsigned char buff = *((unsigned char*)0x4270);          
    if (buff == 0) buff = 2;  else buff--;    
    return fb[buff];
}

basing myself on my findings, then i asked for some disasm help and found this nice values
Code: [Select]
ROM:FFCBC250 dword_FFCBC250  DCD 0x1001043           ; DATA XREF: sub_FFCBBCF8+8r
ROM:FFCBC254 dword_FFCBC254  DCD 0x4270              ; DATA XREF: sub_FFCBBCF8+4r
ROM:FFCBC254                                         ; sub_FFCBBDC4+4r ...
ROM:FFCBC258 off_FFCBC258    DCD unk_FFEAEC38        ; DATA XREF: sub_FFCBBDC4+8r
ROM:FFCBC258                                         ; sub_FFCBC6E0+2Cr
ROM:FFCBC25C dword_FFCBC25C  DCD 0x665FC             ; DATA XREF: sub_FFCBBEB0+4r
ROM:FFCBC25C                                         ; _sub_FFCBBF04__LiveImage.c__812+558r ...
ROM:FFCBC260 dword_FFCBC260  DCD 0x665A8             ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+18r
ROM:FFCBC260                                         ; _sub_FFCBBF04__LiveImage.c__812+38r ...
ROM:FFCBC264 aLiveimage_c    DCB "LiveImage.c",0     ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+80o
ROM:FFCBC264                                         ; _sub_FFCBCA58__LiveImage.c__0+44o ...
ROM:FFCBC270 dword_FFCBC270  DCD 0x4408              ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+90r
ROM:FFCBC270                                         ; _sub_FFCBBF04__LiveImage.c__812+180r
ROM:FFCBC274 dword_FFCBC274  DCD 0x43F8              ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+A8r
ROM:FFCBC278 dword_FFCBC278  DCD 0x4430              ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+230r
ROM:FFCBC27C dword_FFCBC27C  DCD 0x4428              ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+260r
ROM:FFCBC280 dword_FFCBC280  DCD 0x4420              ; DATA XREF: _sub_FFCBBF04__LiveImage.c__812+294r


the LiveImage routine is like this http://ixus105.pastebin.com/KHNsaGpR so i guess the 4270 value is correct. though i don't get a valid image (and i still have no clue on where to find buffer width, width and height of the viewfinder)

any thoughts?
« Last Edit: 10 / November / 2010, 08:59:23 by c10ud »

Re: IXUS 105 / SD1300 IS porting thread
« Reply #36 on: 11 / November / 2010, 19:27:27 »
welp, just tried to load this onto my SD1300 with a bootable card made with CardTricks and got the dreaded "Lens Error.  Will shut down automatically".  I've tried taking out the battery, restarting, nothing.  The lens stay extended and the camera won't turn on other than showing this message.  I was using the 2nd version of this hack when this all went down.  I've tried removing the card, reinstalling batteries, etc, and I can't get the error fixed.

Any ideas?

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #37 on: 12 / November / 2010, 08:15:17 »
no idea, what were you doing exactly? (so i can try it maybe)

edit: btw, i think you should return it to assistance, i don't think it's because of chdk


Re: IXUS 105 / SD1300 IS porting thread
« Reply #38 on: 12 / November / 2010, 23:39:46 »
update:  the next day I tried to turn on the camera with a different SD card inserted and it started up fine.  strange.

should anyone be able to download the ixus105_0.2.zip file and play around with what has been done to start a CHDK hack on this device?

*

Offline c10ud

  • ***
  • 245
Re: IXUS 105 / SD1300 IS porting thread
« Reply #39 on: 13 / November / 2010, 05:00:10 »
i'm using it for my tests and it's working good, however features are still broken - do you have the same firm version?

 

Related Topics