Ixus275/Elph350 HS porting thread - page 3 - DryOS Development - CHDK Forum supplierdeeply

Ixus275/Elph350 HS porting thread

  • 47 Replies
  • 3513 Views
*

Offline Caefix

  • ***
  • 143
  • Sorry, busy deleting test shots...
Re: Ixus275/Elph350 HS porting thread
« Reply #20 on: 05 / February / 2020, 12:17:04 »
Advertisements
osd-clock= 0:00:01  ???

steps 100 (FWUp)
EFL:75348 / FL:13500 = 5

steps 100 (boot) // same as i170
EFL:125000 / FL:22500 = 5
All lifetime is a loan from eternity.

*

Offline blackhole

  • *****
  • 737
  • A590IS 101b
    • Planetary astrophotography
Re: Ixus275/Elph350 HS porting thread
« Reply #21 on: 05 / February / 2020, 14:18:43 »
Code: [Select]
#define NUM_FL      101
#define NUM_DATA    1   
extern int focus_len_table[NUM_FL*NUM_DATA];

// Conversion factor lens FL --> 35mm equiv
// lens      35mm     CF
// ----      ----     --
// 4.5         25      ( 25/4.5) * 45 = 250  (min FL)
// 54          300     ( 300/54) * 45 = 250  (max FL)
#define CF_EFL      250
#define CF_EFL_DIV  45
I don't know why it doesn't work.

*

Offline Caefix

  • ***
  • 143
  • Sorry, busy deleting test shots...
Re: Ixus275/Elph350 HS porting thread
« Reply #22 on: 05 / February / 2020, 14:47:05 »
 :o Let´s expect similar problem at Ix285:
Quote
#define NUM_FL      551
#define NUM_DATA    1   
extern int focus_len_table[NUM_FL*NUM_DATA];

// Conversion factor lens FL --> 35mm equiv
// lens      35mm     CF
// ----      ----     --
// 4.3         24      ( 24/4.3) * 43 = 240  (min FL)
// 129        720      (720/129) * 43 = 240  (max FL)
#define CF_EFL      240
#define CF_EFL_DIV  43

const int zoom_points = NUM_FL;
All lifetime is a loan from eternity.

*

Offline Caefix

  • ***
  • 143
  • Sorry, busy deleting test shots...
Re: Ixus275/Elph350 HS porting thread
« Reply #23 on: 07 / February / 2020, 14:39:02 »
 ??? I played with the num_data setting up to 5 & 6.
EFL gets stretched to either 275 or 325(!) this way, never 300.
Any sense here?
All lifetime is a loan from eternity.


*

Offline philmoz

  • *****
  • 3146
    • Photos
Re: Ixus275/Elph350 HS porting thread
« Reply #24 on: 07 / February / 2020, 19:28:09 »
SVN commit 5418 fixes finsig_dryos to correctly find the 'focus_len_table' address for the IXUS275 (and the IXUS170 and IXUS285).
SVN commit 5419 fixes the focus related entries in main.c for the IXUS285.


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 srsa_4c

  • ******
  • 4144
Re: Ixus275/Elph350 HS porting thread
« Reply #25 on: 07 / February / 2020, 19:37:28 »
stubs_entry_2.S
Code: [Select]
NHSTUB(time, 0x006B9180)0xff86c2d8 is a different routine. From a simple disassembly, code above address 0xff8642f4 (start of "RAM code" in the below stubs_entry.S section) is relocated to a lower RAM address.
Code: [Select]
// Detected address ranges:
// ROM      0xff010000 - 0xffffffff (16711680 bytes)
// RAM code 0x006b1000 - 0x006e2d30 copied from 0xff8642f4 ( 204080 bytes)
// RAM data 0x00001900 - 0x000189bc copied from 0xff84d238 (  94396 bytes)
... and Phil fixed the rest while I was writing this.

*

Offline blackhole

  • *****
  • 737
  • A590IS 101b
    • Planetary astrophotography
Re: Ixus275/Elph350 HS porting thread
« Reply #26 on: 08 / February / 2020, 11:37:48 »
SVN commit 5418 fixes finsig_dryos to correctly find the 'focus_len_table' address for the IXUS275 (and the IXUS170 and IXUS285).
SVN commit 5419 fixes the focus related entries in main.c for the IXUS285.


Phil.
stubs_entry_2.S
Code: [Select]
NHSTUB(time, 0x006B9180)0xff86c2d8 is a different routine. From a simple disassembly, code above address 0xff8642f4 (start of "RAM code" in the below stubs_entry.S section) is relocated to a lower RAM address.
Code: [Select]
// Detected address ranges:
// ROM      0xff010000 - 0xffffffff (16711680 bytes)
// RAM code 0x006b1000 - 0x006e2d30 copied from 0xff8642f4 ( 204080 bytes)
// RAM data 0x00001900 - 0x000189bc copied from 0xff84d238 (  94396 bytes)
... and Phil fixed the rest while I was writing this.
Thanks guys.
Attached is a test build.

*

Offline Caefix

  • ***
  • 143
  • Sorry, busy deleting test shots...
Re: Ixus275/Elph350 HS porting thread
« Reply #27 on: 08 / February / 2020, 12:29:10 »
:xmas Ixus 275 EFL + timestamp, maybe everything  good.
:xmas I 170 same here.

 Ix285+990 :( not my cam.
All lifetime is a loan from eternity.


*

Offline blackhole

  • *****
  • 737
  • A590IS 101b
    • Planetary astrophotography
Re: Ixus275/Elph350 HS porting thread
« Reply #28 on: 09 / February / 2020, 07:57:29 »
:xmas Ixus 275 EFL + timestamp, maybe everything  good.
:xmas I 170 same here.

 Ix285+990 :( not my cam.
OK, the source code is now updated.
https://chdk.setepontos.com/index.php?topic=13151.msg142554#msg142554

*

Offline Caefix

  • ***
  • 143
  • Sorry, busy deleting test shots...
Re: Ixus275/Elph350 HS porting thread
« Reply #29 on: 21 / February / 2020, 12:23:55 »
 :) Now I found an USB-slot that seems stable enough for:
exec require'camtests'.runbatch{shoot=true}

Result: Passed 15, failed 0, but:
Quote
rec_info:ok
remoteshoot:start
cam does not support remote capture, skipping
All lifetime is a loan from eternity.

 

Related Topics