IXUS 500 HS - ELPH 520 Porting Thread - page 2 - DryOS Development - CHDK Forum
supplierdeeply

IXUS 500 HS - ELPH 520 Porting Thread

  • 76 Replies
  • 15352 Views
*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #10 on: 04 / February / 2014, 12:03:05 »
Advertisements
Thanks for the code. I will try it as soon as posssible.

*

Offline reyalp

  • ******
  • 11924
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #11 on: 04 / February / 2014, 15:48:20 »
- SD_READONLY was not detected  by finsig, It is missing.
This camera uses micro SD, so there is no lock switch.

No mirco SD cameras have been ported before, so it will be interesting to know whether autoboot is possible. Hopefully they just rely on the BOOTDISK string.
Don't forget what the H stands for.

Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #12 on: 05 / February / 2014, 05:58:46 »
IXUS 500 HS have version 100D.
Ready to provide any assistance in testing.
I have little experience. Need help and detailed explanations for the start of testing.
There are experiments for 1 megabyte SD card. Which files to copy to the card?
Thank you.
« Last Edit: 05 / February / 2014, 06:02:01 by Chairman72 »

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #13 on: 05 / February / 2014, 13:10:12 »
Trying to fix compiler errors. Dont know how to fix this:
main.c: In function 'startup':
main.c:16:46: error: '_end' undeclared (first use in this function)

Theres no "_end" in this function


*

Offline srsa_4c

  • ******
  • 3921
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #14 on: 05 / February / 2014, 15:31:45 »
Trying to fix compiler errors. Dont know how to fix this:
main.c: In function 'startup':
main.c:16:46: error: '_end' undeclared (first use in this function)

Theres no "_end" in this function
Can you compile CHDK for any other supported camera? Try comparing the sources in platform/ixus500_elph520hs and loader/ixus500_elph520hs to a different, recent camera's source (for example sx260).
see note in core/camera_info.c:
Code: [Select]
/*
note, from tools/link-boot.ld
    link_text_start = _start
    link_data_start = link_text_end
    link_bss_start = link_data_end
    link_bss_end = _end
*/

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #15 on: 05 / February / 2014, 21:43:07 »
Thanks for the hint. I couldn´t find the file core/camera_info.c so I found out that I was working with the code from the wrong svn site. I switched from CHDKDE to CHDK and was able to compile the code from nafraf without problems.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #16 on: 05 / February / 2014, 22:06:42 »
The first try resulted in a firmware error. Then I switched NEED_ENCODED_DISKBOOT = 8 to NEED_ENCODED_DISKBOOT = 7 and was able to update the firmware.
When I press the record button I can see this:


*

Offline reyalp

  • ******
  • 11924
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #17 on: 05 / February / 2014, 23:21:07 »
The first try resulted in a firmware error. Then I switched NEED_ENCODED_DISKBOOT = 8 to NEED_ENCODED_DISKBOOT = 7 and was able to update the firmware.
When I press the record button I can see this:
Excellent progress.

It looks like your bitmap dimensions are not correct, see the CAM_BITMAP* define in camera.h / your platform_camera.h
Don't forget what the H stands for.


*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #18 on: 05 / February / 2014, 23:30:11 »
changed CAM_BITMAP_WIDTH to 960. Looks good now.
I didn´t have to do any coding. Code was provided by nafraf. Thanks a lot for the code nafraf.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #19 on: 05 / February / 2014, 23:58:32 »
At the moment I get low battery warnings when i start chdk. In the code I found this:
Code: [Select]
long get_vbatt_min()
{
    return 3300;
}

long get_vbatt_max()
{
    return 4020;
}
Is there a way to find out the right values or is it just try and error?

 

Related Topics