Chdk for SX130 IS ? - page 6 - CHDK Releases - CHDK Forum

Chdk for SX130 IS ?

  • 1095 Replies
  • 426542 Views
Re: Chdk for SX130 IS ?
« Reply #50 on: 14 / December / 2010, 02:22:57 »
Advertisements
Hi liuhb86,

good to have You here, i am newbie too.

Regarding other camera memory usage, here is page with some data:

http://chdk.wikia.com/wiki/CHDK/Camera_RAM_memory_usage

We need some chdk guru here, to check my source, to confirm there are no stupid mistakes regarding memory usage.

Camera crash logs (romlog) in attachments, for debuging purpose.

*

Offline reyalp

  • ******
  • 14111
Re: Chdk for SX130 IS ?
« Reply #51 on: 14 / December / 2010, 23:02:41 »
Haven't looked at the code yet.

270kb is quit normal for CHDK build. If you haven't already, you can disable non-essential things like games, calender etc.

Zebra can also take a lot of memory, you can define CAM_ZEBRA_NOBUF in camera.h to make it more efficient.

I think ixus95_sd1200 has a similarly small amount of free memory.
Don't forget what the H stands for.

Re: Chdk for SX130 IS ?
« Reply #52 on: 15 / December / 2010, 10:53:55 »
I just read the Camera_RAM_memory_usage page.
Maybe remove zebra and edge overlay modules will make it better? the number mentioned is the dynamic memory, don't how will it affect the static memory.

The file received, but not viewed. i don't have much spare time until Feb. But maybe you will have been already got it work by then, haha

Re: Chdk for SX130 IS ?
« Reply #53 on: 15 / December / 2010, 12:34:30 »
just now, I cleared the photos in the camera.
This time, when I check the memory usage, there is about 170k left. much more! (there was 180 photos there, and 20k+ memory left)
But still cannot shoot...
« Last Edit: 15 / December / 2010, 12:45:01 by liuhb86 »


Re: Chdk for SX130 IS ?
« Reply #54 on: 15 / December / 2010, 16:08:20 »
Recapitulation of a problem:

- My port of CHDK does not yet include capt_seq.c, hook for capture is not present, so when camera go to capture mode, original firmware routine is called

- Because of that, zebra and edge overlay, and all other features of chdk capture mode are not important for now ( I believe that features dynamically allocate memory)

- chdk size is cca 270 kb

- free memory after chdk loading is :

    a)  zero pictures on memory card ( blank play mode screen) : cca  170 kb

    b)  picture shown on screen in play mode: cca 20 kb

- when camera go to capture mode, crash happens

- I believe that cause of crash is limited memory, 170 kb of free memory is maybe not enough for successful start of original firmware  capture mode

- it is possible to test this on other cameras, adding dummy memory allocation in special chdk build, creating similar memory conditions, and after that trying to start capture mode

- my suggestion:

         add this option to chdk debug mode:

             Allocate dummy memory (ask for size)

-  with that feature in place, we can test how much free memory is needed for original firmware routines to run

Re: Chdk for SX130 IS ?
« Reply #55 on: 16 / December / 2010, 07:55:32 »
Hi sikahr
Got the camera to go into capture mode, lens extended, menus can be activated (though its very slow and it crashed afterward).
The problem seems to be in boot.c at the function sub_FF810354_my() where the check is made to start in capture or playback mode. By switching the values ie. using 0x100000 for capture and 0x200000 for playback it started. I think the conditional check is using the wrong memory address however I know zero assembler  (slowly trying to learn though) so I can't check it thoroughly.
Also the camera doesn't shut down properly (the lens remains extended) to fix this I had to switch back to the original canon firmware.
Hope this helps

Re: Chdk for SX130 IS ?
« Reply #56 on: 16 / December / 2010, 10:10:19 »
Hi genepool,

switching 0x100000 and 0x200000 values, camera start in record mode instead of play mode when you press play button, which is wrong.

After you start directly in record mode by this switching, camera crash with same symptoms (extended lens, shutdown, assert in romlog) as camera first start in play mode and then switch to record mode.

Unfortunately, I believe cause of all this is low free RAM memory.


Re: Chdk for SX130 IS ?
« Reply #57 on: 16 / December / 2010, 10:16:05 »
Info from s95 thread:

sikahr:

Hi,
   sorry for offtopic,
   please someone test how much memory is free after chdk loading on S95 in play mode with empty memory card ( black screen - no pictures),

greetz:

I loaded CHDK with play-startup on a 16GB SDHC after deleting all pictures

Free Memory 545088 bytes
CHDK size 269552 bytes
loaded at 0x16EE30

hope that is helpfull#
greetz


*

Offline reyalp

  • ******
  • 14111
Re: Chdk for SX130 IS ?
« Reply #58 on: 17 / December / 2010, 00:02:59 »
I my post, I mentioned ixus 95 (also called sd1200) not s95.  I thought someone posted that it had less than 100k free, but I haven't found the post.
Don't forget what the H stands for.

Re: Chdk for SX130 IS ?
« Reply #59 on: 20 / December / 2010, 15:14:11 »
Excited that people are working on this!!!! Can't wait for AEB!!!

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal