PowerShot SX210 IS - Porting Thread - page 22 - General Discussion and Assistance - CHDK Forum

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 254956 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #210 on: 12 / September / 2010, 02:38:25 »
Advertisements
some times yes I have redraw issues, yet

about open and close, yes it worked,  testing the lua lib test I found and error renaming these are the right ones:

NHSTUB(rename, 0xFF836534)  //Get through Backtrace FF836534,in sx200 was: ff823dc4,  and in sd980 was :FF834D00
NHSTUB(RenameFile_Fut, 0xFF836534) //12.9.10 tested OK

Now fails removing directories,
the remove function is right, but fails with directories, any clue?
« Last Edit: 12 / September / 2010, 04:51:49 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #211 on: 12 / September / 2010, 07:04:39 »
for now overrides don't work, neither raw,

Maybe there is a new propset, for newer dryos cammeras,

I try  2 like in sx200, and 3
Code: [Select]
#define CAM_PROPSET   3
and try manually to change some values of example of AV, with no sucess

any clue?????
« Last Edit: 12 / September / 2010, 09:49:09 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #212 on: 12 / September / 2010, 09:47:14 »
Good News on Blurry pictures

Having these:
Code: [Select]
#define CAM_PROPSET  3
solve the problem,so no  need to comment apex2us in captseq.!!

Here is the latest http://es.drop.io/sx210is_platformv01
source:  Sourcesx210isASM1989-v.07.zip
binaries: sx210isCHDKbeta003.zip  ( Use it at your own risk, and repport back please!)

Anyway still some problems:
-Overrides did'nt work
-No raw
-Screen dosn't update correctly, after you go into chdk menu, the rest of the own cam osd didn't update ???
-Some scripts didn't work
-need more testing
-deleting a directory crashes the camera, remove function works with files but not with directories.
« Last Edit: 12 / September / 2010, 09:49:40 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #213 on: 12 / September / 2010, 15:49:53 »
Good News on rerfresh issues (thanks to sx20 102 port)

in stubs_min.s
Code: [Select]
DEF(full_screen_refresh, 0x9D08) // found in FFA1CF40
in entry_2s
Code: [Select]
NHSTUB(UnlockAndRefresh, 0xFFA1EDDC)   // In sx20 102 : FFA0498C
NHSTUB(LockAndRefresh, 0xFFA1ED98)    // In sx20 102 : FFA048E8

in lib.c

Code: [Select]
void vid_bitmap_refresh()
{
extern int enabled_refresh_physical_screen;
extern int full_screen_refresh;

// i've tried refreshphysical screen (screen unlock) and that caused the canon and
// function menu to not display at all. This seems to work and is called in a similar
// way in other places where original OSD should be refreshed.
extern void _LockAndRefresh(); // wrapper function for screen lock
extern void _UnlockAndRefresh(); // wrapper function for screen unlock

_LockAndRefresh();

enabled_refresh_physical_screen=1;
full_screen_refresh=3; //found in ScreenUnlock underneath a CameraLog.c call sub_FFA02598

_UnlockAndRefresh();
}


*

Offline pixeldoc2000

  • ****
  • 356
  • IXUS900Ti 1.00C, IXUS300HS 1.00D
    • pixel::doc homebase
Re: PowerShot SX210 IS - Porting Thread
« Reply #214 on: 12 / September / 2010, 16:28:19 »
-Screen dosn't update correctly, after you go into chdk menu, the rest of the own cam osd didn't update ???

Good News on rerfresh issues (thanks to sx20 102 port)

in stubs_min.s
Code: [Select]
DEF(full_screen_refresh, 0x9D08) // found in FFA1CF40
in entry_2s
Code: [Select]
NHSTUB(UnlockAndRefresh, 0xFFA1EDDC)   // In sx20 102 : FFA0498C
NHSTUB(LockAndRefresh, 0xFFA1ED98)    // In sx20 102 : FFA048E8

in lib.c

Code: [Select]
void vid_bitmap_refresh()
{
extern int enabled_refresh_physical_screen;
extern int full_screen_refresh;

// i've tried refreshphysical screen (screen unlock) and that caused the canon and
// function menu to not display at all. This seems to work and is called in a similar
// way in other places where original OSD should be refreshed.
extern void _LockAndRefresh(); // wrapper function for screen lock
extern void _UnlockAndRefresh(); // wrapper function for screen unlock

_LockAndRefresh();

enabled_refresh_physical_screen=1;
full_screen_refresh=3; //found in ScreenUnlock underneath a CameraLog.c call sub_FFA02598

_UnlockAndRefresh();
}

Does fix redraw issus on SD4000 too!
« Last Edit: 12 / September / 2010, 16:38:19 by pixeldoc2000 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #215 on: 13 / September / 2010, 09:26:05 »
with more testing, only fixes the refresh on review mode, on shot mode the chdk menu disappers quickly,

Need to look more at it

Re: PowerShot SX210 IS - Porting Thread
« Reply #216 on: 13 / September / 2010, 09:27:11 »
Need fix address of WriteSDCard:
Code: [Select]
NHSTUB(WriteSDCard, 0xFF95416C) //was 0xFF953F88
NHSTUB(ReadSDCard, 0xFF953F88)  //same prototype as WriteSD:
//extern int _ReadSDCard(unsigned int drive, unsigned int start_sect, unsigned int num_sect, void *buf);

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #217 on: 13 / September / 2010, 11:03:21 »
Thanks Ameglin,

Status:
-No overrrides / no clues why yet
-No raw but I was able to run the badpixel and generate it
-Screen refresh is ok with play, but wrong with shot mode
-Remove fails with directories
-most of the scripts seem to work


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #218 on: 13 / September / 2010, 11:47:28 »
Some RAW progress

I was able to generate a raw file almost manually, I mean I have to disable these lines at raw.c

Code: [Select]
//if (conf.save_raw && (!(shooting_get_prop(PROPCASE_RESOLUTION)==5)) && (!((movie_status > 1) && conf.save_raw_in_video   )) && (!((m==MODE_SPORTS) && conf.save_raw_in_sports)) && (!((m==MODE_AUTO) && conf.save_raw_in_auto)) && (!(conf.edge_overlay_enable && conf.save_raw_in_edgeoverlay)) && (!((shooting_get_drive_mode()==1) && conf.save_raw_in_burst && !(m==MODE_SPORTS))) && (!((shooting_get_drive_mode()>=2) && conf.save_raw_in_timer)) && (!((shooting_get_prop(PROPCASE_BRACKET_MODE)==1) && conf.save_raw_in_ev_bracketing)) ) {
and replace it with
Code: [Select]
 if (conf.save_raw){
and also:

Code: [Select]
sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, img_prefixes[conf.raw_prefix], get_target_file_num(),conf.dng_raw&&conf.raw_dng_ext ? ".DNG" : img_exts[conf.raw_ext]);
and replace latter the open with

Code: [Select]
fd = open("A/test.crw", O_WRONLY|O_CREAT, 0777);
So there must be something wrong with the modes, and maybe the directory namings...????

anyway I have a CRW file!!! and Raw Therapee opens IT !!!
« Last Edit: 13 / September / 2010, 12:08:12 by asm1989 »

*

Offline reyalp

  • ******
  • 13501
Re: PowerShot SX210 IS - Porting Thread
« Reply #219 on: 13 / September / 2010, 12:31:29 »
If the if condition change is needed, either propcase, movie_status or modemap is wrong.
Don't forget what the H stands for.

 

Related Topics