IXUS190 porting attempt - page 8 - DryOS Development - CHDK Forum supplierdeeply

IXUS190 porting attempt

  • 97 Replies
  • 30742 Views
*

Offline blackhole

  • *****
  • 937
  • A590IS 101b
    • Planetary astrophotography
Re: IXUS190 porting attempt
« Reply #70 on: 25 / June / 2021, 08:14:58 »
Advertisements
If anything else works, then it´s not my fault...   ::)
https://chdk.setepontos.com/index.php?topic=13146.msg146345#msg146345
I guess you want to ask why the ixus 265 is not available in the Autobuild server.
The answer is still the same, no one wants to go through testing. https://chdk.setepontos.com/index.php?topic=11597.msg145009#msg145009

The same goes for the ixus170 and ixus190.
The ixus170 (DryOS r55 ps6) probably has the same popset problem as the sx410. Here you can see how to check it if you have that camera:
https://chdk.setepontos.com/index.php?topic=13133.msg146472#msg146472

You can see the status of other cameras that are not in the Autobuild server here: https://chdk.fandom.com/wiki/Test_releases_not_available_in_autobuilds
It only depends on you and other users who have one of these cameras what will happen next.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #71 on: 30 / June / 2021, 13:46:18 »
If anything else works, then it´s not my fault...   ::)
https://chdk.setepontos.com/index.php?topic=13146.msg146345#msg146345
It only depends on you and other users who have one of these cameras what will happen next.
Here :haha  Need to confirm "other users". So long I´m happy with the cams as they are.  :xmas
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #72 on: 07 / July / 2021, 15:05:42 »
Ixus 190, 185, 170, 155 & 145 have full size md grid, when size set to wide  :-[ ...
« Last Edit: 08 / July / 2021, 13:37:23 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #73 on: 12 / July / 2021, 15:03:37 »
 ;) ... seems, that cams with real aspect ratio UI setting have always correct md grid.
The upper list has PROPCASE_ASPECT_RATIO: 1=wide (16:9), 0 else...
All lifetime is a loan from eternity.


*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #74 on: 29 / October / 2021, 15:49:35 »
// PS11    ???
#define PROPCASE_ASPECT_RATIO                    311        // 0 = 4:3, 1 = 16:9 //, 2 = 3:2, 3 = 1:1

When I add this lines to lib.c then displayed md_grid, Zebra && ptp-Liveview behave as expected , but previously fine Zebra is shifted down 30 pixels.
Calculated 10*10 grid has always =0 in first row.
(Wide)
Code: [Select]
long vid_get_viewport_height()
{
    if (camera_info.state.mode_play || is_video_recording()) return 240;
    return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 180:240;
}

int vid_get_viewport_yoffset()  // Zebra
{
    if (camera_info.state.mode_play || is_video_recording()) return 0; // 640x480
    return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 30:0; // Wide = 16:9
}

int vid_get_viewport_display_yoffset()  // md_detect...
{
    if (camera_info.state.mode_play || is_video_recording()) return 0; // 640x480
    return shooting_get_prop(PROPCASE_ASPECT_RATIO)==1 ? 30:0; // Wide = 16:9
}

int vid_get_viewport_height_proper()            { return vid_get_viewport_height(); }

// PS11
// #define PROPCASE_ASPECT_RATIO                    311        // 0 = 4:3, 1 = 16:9  //=Wide, 2 = 3:2, 3 = 1:1
in debug-osd propcase 311 is displayed Wide=1, else=0.

Edit: Old default.lua tells unsupp. PS11,  from #6019 ;), language still German.

Edit2:
Ixus 190, 185, 170, 160, 155, 150, 145 & 130 have full size md grid, when size set to wide  :-[ ...
... at least these cams and others with the resolution option "Wide" instead of aspect ratios (A3300,...) should profit from same insert.  :xmas

Edit3: Ix175 & 155 has an additional differenciation...
Code: [Select]
);
extern int _GetVideoOutType(void);
// playback is 480 / 576 for NTSC / PAL respectively

Edit6 4: 14 13 12 14 15 16 17 21*lib.c collection, some known from porting threads...  :haha
One line more added to insert.

Edit57.1: && Ixus170:  :D error: 'viewport_buffers' undeclared > ...
Ix170 needed modification in platform_camera.c, too.

Edit9: With Propset 3 it happens (Ix120,130, Sx120), that the cam boots PROPCASE_ASPECT_RATIO  294 = 1 if set to wide, but with switching to <Rec> it falls to 0 and stays 0.  :(

Edit 8: Successfull finetuning, ...
Code: [Select]
G:\AspectMD_zebra_ptp\platform\a2400\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\sub\100a\lib.c
G:\AspectMD_zebra_ptp\platform\a3300\sub\100d\lib.c
G:\AspectMD_zebra_ptp\platform\a4000\lib.c
G:\AspectMD_zebra_ptp\platform\d20\lib.c
G:\AspectMD_zebra_ptp\platform\d30\lib.c
G:\AspectMD_zebra_ptp\platform\g1x\lib.c
G:\AspectMD_zebra_ptp\platform\ixus115_elph100hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus125_elph110hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus132_elph115\lib.c
G:\AspectMD_zebra_ptp\platform\ixus135_elph120\lib.c
G:\AspectMD_zebra_ptp\platform\ixus145_elph135\lib.c
G:\AspectMD_zebra_ptp\platform\ixus150_elph140\lib.c
G:\AspectMD_zebra_ptp\platform\ixus155_elph150\lib.c
G:\AspectMD_zebra_ptp\platform\ixus160_elph160\lib.c
G:\AspectMD_zebra_ptp\platform\ixus170_elph170\lib.c
G:\AspectMD_zebra_ptp\platform\ixus170_elph170\platform_camera.h
G:\AspectMD_zebra_ptp\platform\ixus185_elph185\lib.c
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\Ix190-DlgItmROMLOG.TXT
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\Ix190ShutdownROMLOG.TXT
G:\AspectMD_zebra_ptp\platform\ixus190_elph200\lib.c
G:\AspectMD_zebra_ptp\platform\ixus220_elph300hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus220_elph300hs\platform_palette.c
G:\AspectMD_zebra_ptp\platform\ixus230_elph310hs\lib.c
G:\AspectMD_zebra_ptp\platform\ixus230_elph310hs\platform_palette.c
G:\AspectMD_zebra_ptp\platform\ixus255_elph330hs\lib.c
G:\AspectMD_zebra_ptp\platform\sx230hs\lib.c
G:\AspectMD_zebra_ptp\platform\sx230hs\platform_palette.c
Edit: (Ix150 unexplored.)
« Last Edit: 09 / November / 2021, 13:30:00 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #75 on: 20 / February / 2022, 10:56:40 »
Expected...
Quote
**** Firmware creation completed successfully
-> CHDK_DE-ixus190_elph200-1.6.0-6022.zip
... got  :-[
Code: [Select]
../../include/camera.h:331:15: error: operator '>=' has no left operand
 #if CAM_DIGIC >= 40
               ^
In file included from ../../include/platform.h:8:0,
                 from main.c:2:
../../include/camera.h:435:6: error: #error "CAM_USE_OPTICAL_MAX_ZOOM_STATUS requires CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO"
     #error "CAM_USE_OPTICAL_MAX_ZOOM_STATUS requires CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO"
      ^
gmake[1]: *** [main.o] Error 1
gmake: *** [all-recursive] Error 1
Adding to /../makefile.inc
Quote
DIGIC = 41
MAXRAMADDR =0x07ffffff
left the zoom issue.
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14079
Re: IXUS190 porting attempt
« Reply #76 on: 20 / February / 2022, 14:04:07 »
Code: [Select]
In file included from ../../include/platform.h:8:0,
                 from main.c:2:
../../include/camera.h:435:6: error: #error "CAM_USE_OPTICAL_MAX_ZOOM_STATUS requires CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO"
     #error "CAM_USE_OPTICAL_MAX_ZOOM_STATUS requires CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO"
The error tells you there is an inconsistency with those platform_camera.h defines. The #error checks in camera.h are intended to tell you when conflicting or incorrect options are used. So in general, you should look at the descriptions of the defines in camera.h and any comments around where the #error directive, and then decide which ones apply to your camera.

In this case, I would *guess* that CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO doesn't need to be defined for this camera, since only very old cameras needed zoom unlocked in video.[/code]
Don't forget what the H stands for.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: IXUS190 porting attempt
« Reply #77 on: 21 / February / 2022, 13:52:59 »
The latest source still compiles and works fine, apparently I continued with an outdated download, with the recent trunk these (only diff in ca_pla.h)
Code: [Select]
    #define CAM_USE_OPTICAL_MAX_ZOOM_STATUS     1       // Use ZOOM_OPTICAL_MAX to reset zoom_status when switching from digital to optical zoom
    #define CAM_USE_ALT_SET_ZOOM_POINT          1       // Define to use the alternate code in lens_set_zoom_point()
    #define CAM_USE_ALT_PT_MoveOpticalZoomAt    1       // Define to use the PT_MoveOpticalZoomAt() function in lens_set_zoom_point()
tell...  :o
Code: [Select]
//   #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO  // unlocked in canon firmware by default
-->>

C:\Users\User\AppData\Local\Temp\ccbkXqRt.s: Assembler messages:
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:129: Error: thumb conditional instruction should be in IT block -- `ldrcc R2,[R0],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:130: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R1],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:137: Error: thumb conditional instruction should be in IT block -- `ldrcc R2,[R0],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:138: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R1],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:144: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R3],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:171: Error: thumb conditional instruction should be in IT block -- `ldreq R0,=capt_seq_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:175: Error: thumb conditional instruction should be in IT block -- `ldreq R0,=init_file_modules_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:208: Error: thumb conditional instruction should be in IT block -- `ldrcc R2,[R0],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:209: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R1],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:216: Error: thumb conditional instruction should be in IT block -- `ldrcc R2,[R0],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:217: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R1],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:221: Error: r13 not allowed here -- `mov SP,#0x1000'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:224: Error: r13 not allowed here -- `mov SP,#0x1000'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:230: Error: thumb conditional instruction should be in IT block -- `strcc R2,[R0],#4'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:332: Error: thumb conditional instruction should be in IT block -- `ldrcc R0,=0xFF024900'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:333: Error: thumb conditional instruction should be in IT block -- `blcc _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:336: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF024918'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:337: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:340: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF024920'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:341: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:345: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF024930'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:346: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:350: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF024944'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:351: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:354: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF024950'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:355: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:358: Error: thumb conditional instruction should be in IT block -- `ldrlt R0,=0xFF02495C'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:359: Error: thumb conditional instruction should be in IT block -- `bllt _err_init_task'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:462: Error: thumb conditional instruction should be in IT block -- `bleq sub_FF03756C'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:497: Error: thumb conditional instruction should be in IT block -- `movne R1,#0'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:498: Error: thumb conditional instruction should be in IT block -- `movne R0,R5'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:499: Error: thumb conditional instruction should be in IT block -- `blne _PostLogicalEventToUI'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:503: Warning: conditional infixes are deprecated in unified syntax
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:503: Error: thumb conditional instruction should be in IT block -- `ldmnefd SP!,{R4-R6,PC}'
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:62: Error: invalid constant (c000002f) after fixup
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:66: Error: invalid constant (40000035) after fixup
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:68: Error: invalid constant (80000017) after fixup
C:\Users\User\AppData\Local\Temp\ccbkXqRt.s:87: Error: invalid constant (80000006) after fixup
gmake[1]: *** [boot.o] Error 1
gmake: *** [all-recursive] Error 1
So it´s all fine here.  :)
All lifetime is a loan from eternity.


*

Offline blackhole

  • *****
  • 937
  • A590IS 101b
    • Planetary astrophotography
Re: IXUS190 porting attempt
« Reply #78 on: 22 / February / 2022, 01:43:06 »
The latest source still compiles and works fine, apparently I continued with an outdated download, with the recent trunk these (only diff in ca_pla.h)
Why don't you use the source code from this post?
https://chdk.setepontos.com/index.php?topic=13146.msg146362#msg146362
Much more useful than adding unnecessary defs to platform_camera.h would be to create a patch to add source code to SVN, before it gets lost. You can do this very easily using the TortoiseSVN application.

Re: IXUS190 porting attempt
« Reply #79 on: 11 / April / 2022, 10:38:57 »
Hello test user of canon ixus 190.
i recently tested this build.it seems doing so well but here are some problems..
   1)if you set in auto mode or tracking af. and if it tracks something and your on the mod menu the menu kinda glitches,but as soon as it stopped tracking it is fine...
   2)I also realise that if you zoom while you are shooting the battery drop down

          I dont know what else to  say ..
                                             Glad to see some people working on this camera.
                                              props to who ever worked hard for this you earned
                                              my respect :xmas
         
          Also i am a newbie on this if you want me to do something in this camera, feel free for suggesting anything.
       
       however,i need some help:-
        1)can we do time-lapse in this build??
        2)if possible can you add some video modes.
         3)the motion detect works wonderful.If there is a same mode but with video that
  would be amazing

     This build is wonderfully done.I would like to thank you for whoever that made this build stable as possible

 

Related Topics