SD980 port - page 13 - DryOS Development - CHDK Forum  

SD980 port

  • 169 Replies
  • 45439 Views
Re: SD980 port
« Reply #120 on: 08 / October / 2009, 23:01:16 »
Advertisements
BTW if you do a 8Mb dump of your FW (you should be able to do it quickly now) there are mappings of function names to locations later in the firmware.  They should help you greatly.

Harpo
Canon Models - SD300, SD780, & SX210

*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #121 on: 08 / October / 2009, 23:06:29 »
Oh, I found them already, they are here:
NHSTUB(PutInNdFilter, 0xFFA9C410)//string MoveIrisToFullOpen
NHSTUB(PutOutNdFilter,0xFFA9C3E8)//string MoveIrisToFullClose

Once I realized the functions have new names, finding the address was trivial (was right next to the string). They are tested and work.

*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #122 on: 08 / October / 2009, 23:12:08 »
BTW if you do a 8Mb dump of your FW (you should be able to do it quickly now) there are mappings of function names to locations later in the firmware.  They should help you greatly.

Harpo

Oh, I didn't know that, I'll try it.

Re: SD980 port
« Reply #123 on: 08 / October / 2009, 23:13:22 »
My functions by (almost) that same name do nothing for me ND wise.

RealRom:FFA92348 MoveIrisFullOpen                        ; DATA XREF: RealRom:FFB59D84o
RealRom:FFA92348                 STMFD   SP!, {R4,LR}
RealRom:FFA9234C                 LDR     R4, =0xBEFC
RealRom:FFA92350                 MOV     R1, #1
RealRom:FFA92354                 LDR     R0, [R4]
RealRom:FFA92358                 BL      sub_FF8661AC
RealRom:FFA9235C                 ADR     R0, loc_FFA92234
RealRom:FFA92360                 MOV     R1, #0
RealRom:FFA92364                 BL      sub_FFA92438
RealRom:FFA92368                 LDR     R0, [R4]
RealRom:FFA9236C                 LDMFD   SP!, {R4,LR}
RealRom:FFA92370                 MOV     R2, #0
RealRom:FFA92374                 MOV     R1, #1
RealRom:FFA92378                 B       sub_FF865FD4
RealRom:FFA9237C ; ---------------------------------------------------------------------------
RealRom:FFA9237C
RealRom:FFA9237C MoveIrisFullClose                       ; DATA XREF: RealRom:FFB59D8Co
RealRom:FFA9237C                 STMFD   SP!, {R4,LR}
RealRom:FFA92380                 LDR     R4, =0xBEFC
RealRom:FFA92384                 MOV     R1, #1
RealRom:FFA92388                 LDR     R0, [R4]
RealRom:FFA9238C                 BL      sub_FF8661AC
RealRom:FFA92390                 ADR     R0, loc_FFA92234
RealRom:FFA92394                 MOV     R1, #0
RealRom:FFA92398                 BL      sub_FFA92400
RealRom:FFA9239C                 LDR     R0, [R4]
RealRom:FFA923A0                 LDMFD   SP!, {R4,LR}
RealRom:FFA923A4                 MOV     R2, #0
RealRom:FFA923A8                 MOV     R1, #1
RealRom:FFA923AC                 B       sub_FF865FD4
Canon Models - SD300, SD780, & SX210


*

Offline reyalp

  • ******
  • 13449
Re: SD980 port
« Reply #124 on: 08 / October / 2009, 23:15:39 »
I would assume the iris functions only do something on a camera with an iris. It's common to see code for features your camera doesn't actually have.
Don't forget what the H stands for.

*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #125 on: 08 / October / 2009, 23:30:32 »
I would assume the iris functions only do something on a camera with an iris. It's common to see code for features your camera doesn't actually have.

By Iris do you mean an aperture thingy? If so, I guess Canon decided to use MoveIrisFullOpen and MoveIrisFullClose on all cameras, and they probably have an #ifdef in there that acts differently depending on if the camera has an Iris or a ND. As I was saying, I tried the functions and they work (photo much darker with ND on).
It makes sense for them to do it this way, it's easier to adapt the code to different hardware with minimal modifications.

Re: SD980 port
« Reply #126 on: 08 / October / 2009, 23:42:00 »
I still think your camera is evil....
Canon Models - SD300, SD780, & SX210

*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #127 on: 08 / October / 2009, 23:50:31 »
Oh, yeah, it's really nasty, but I managed to tame it a bit :D
I still have to find stat() and a few other functions though..


*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #128 on: 09 / October / 2009, 18:47:55 »
Fixed the crash that happened when switching from play mode to record mode. Made some mistakes in exp_drv_task.
Will release a new binary tomorrow maybe.

*

Offline RaduP

  • *****
  • 908
Re: SD980 port
« Reply #129 on: 10 / October / 2009, 19:19:58 »
Released another binary, same place like the old one.

 

Related Topics