S100 porting thread - page 6 - DryOS Development - CHDK Forum
supplierdeeply

S100 porting thread

  • 286 Replies
  • 97181 Views
Re: S100 porting thread
« Reply #50 on: 04 / May / 2012, 23:49:24 »
Advertisements
This might be a dumb question but what happens when this number is wrong?
Nothing much.  The calculated information for hyperfocal distance / depth of field information reported in the CHDK OSD will be slightly off - depending on how wrong the circles of confusion number is.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline funnel

  • ****
  • 349
Re: S100 porting thread
« Reply #51 on: 05 / May / 2012, 04:42:38 »
as for the boot, unfortunately i've been unable to find the correct value to check during boot in order to choose between play or rec so the camera only boots in play mode and then you have to switch manually (left as a todo in notes.txt)

I found this when looking for sx260 power on button.

for s100 in boot.c it should be

Code: [Select]
*(int*)(0x26E0+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000;
@colon247 would be great if you could test this.

« Last Edit: 05 / May / 2012, 04:52:39 by funnel »

Re: S100 porting thread
« Reply #52 on: 05 / May / 2012, 17:12:47 »

I found this when looking for sx260 power on button.

for s100 in boot.c it should be

Code: [Select]
*(int*)(0x26E0+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000;
@colon247 would be great if you could test this.



Great news it works!!!!!! I compiled it and now I can hold my power button and it goes straight into shooting mode instead of play mode like before.   :D   

Edit:
I have also had time to test the battery levels.  And the correct min max are:

Code: [Select]
long get_vbatt_min() // TODO:
{
    return 3200;
}

long get_vbatt_max() // TODO:
{
    return 4050;

« Last Edit: 05 / May / 2012, 20:44:28 by colon247 »

*

Offline c10ud

  • ***
  • 245
Re: S100 porting thread
« Reply #53 on: 06 / May / 2012, 07:01:32 »
Nice one funnel, how did you find the value?

I remember struggling a bit around that address and the value for a correct power on in play/rec mode but no luck :)


*

Offline funnel

  • ****
  • 349
Re: S100 porting thread
« Reply #54 on: 06 / May / 2012, 08:35:27 »
Quote
how did you find the value?

Code: [Select]
ROM:FF00FE48 loc_FF00FE48                            ; CODE XREF: sub_FF00FDDC+10j
ROM:FF00FE48                                         ; sub_FF00FDDC+1Cj
ROM:FF00FE48                 MOV     R0, #0x36           ---------v Plug this value
ROM:FF00FE4C                 BL      sub_FF02BC18       <-------< down here            |

Code: [Select]
ROM:FF02BC18 sub_FF02BC18                            ; CODE XREF: sub_FF00FDDC+24p
ROM:FF02BC18                                         ; sub_FF00FDDC+34p ...
ROM:FF02BC18                 LDR     R1, =dword_FF452BDC
ROM:FF02BC1C                 LDR     R2, [R1,R0,LSL#3] //0xFF452BDC+(0x36<<3)==0xFF452D8C==0xC022F48C
ROM:FF02BC20                 LDR     R2, [R2]
ROM:FF02BC24                 ADD     R0, R1, R0,LSL#3
ROM:FF02BC28                 LDR     R0, [R0,#4]   //0xFF452D8C+0x4==0x00000004
ROM:FF02BC2C                 ANDS    R0, R0, R2
ROM:FF02BC30                 MOVNE   R0, #1
ROM:FF02BC34                 BX      LR

that's it 0xC022F48C & 0x00000004

*

Offline c10ud

  • ***
  • 245
Re: S100 porting thread
« Reply #55 on: 06 / May / 2012, 08:43:46 »
Got it, thanks!

Re: S100 porting thread
« Reply #56 on: 06 / May / 2012, 09:39:29 »
WOW.....did you guys go to a university to learn this.  Those two codes that funnel wrote went way over my head  :blink: ....jajaja 

You smart people figure out anymore codes that might work, throw them at me I will try it.

for now I will stick to the simple stuff

*

Offline c10ud

  • ***
  • 245
Re: S100 porting thread
« Reply #57 on: 07 / May / 2012, 05:58:47 »


Re: S100 porting thread
« Reply #58 on: 07 / May / 2012, 09:53:38 »
was reading through c10ud's changes about Fi2 and.....

Does anybody actually know the Fi2key for the s100 yet? 
If nobody has it....is it hard to find?

Will the Fi2 fix for the SX260 work for this camera?

c10ud-----if you are working on this already, let me know and I will just wait   :)

*

Offline c10ud

  • ***
  • 245
Re: S100 porting thread
« Reply #59 on: 07 / May / 2012, 10:44:21 »
since i don't have the camera anymore i'm not working on this, but i am confident that the fix for sx260 will apply to s100 too, just wait until it gets upstreamed or apply the patch by yourself ;)

 

Related Topics