supplierdeeply

IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread

  • 678 Replies
  • 118115 Views
*

Offline Benoe

  • *
  • 12
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #580 on: 27 / September / 2010, 11:13:57 »
Advertisements
My experiences with edge overlay is the same as andrewhazelden's.

Free memory for me after startup: 213632 bytes
After enabling edge overlay, and displaying it once on the screen: 181168 bytes

Btw, do you see any chance that the following will be fixed for this camera:
"switch from manual to Auto mode and back is not working. I need to turn off the camera, switch to auto mode, and turn back on."

This is the only thing keeps me run CHDK with the update firmware option, and not as boot.

*

Offline reyalp

  • ******
  • 10055
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #581 on: 27 / September / 2010, 12:14:11 »
Great, from edge overlay we can say that screen layout is correct.

The memory size difference may be because I have games and calender disabled in my build (but I'm using the original windows toolchain which makes bigger binaries). 130k is fairly marginal for zebra... it is enough for the buffers, but then the camera will try to allocate some for something else, fail, and shut down with an assert. We can try sx20 style, which will be a bit uglier but may work...

@benoe:
I have no idea about that, sorry.

edit:
test build http://drop.io/reyalp_chdk/asset/ixus100-sd780-100c-0-9-9-osdtest-2-zip

Only difference is adding
    #define CAM_ZEBRA_NOBUF 1
« Last Edit: 27 / September / 2010, 12:38:50 by reyalp »
Don't forget what the H stands for.

Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #582 on: 27 / September / 2010, 13:53:13 »
edit:
test build http://drop.io/reyalp_chdk/asset/ixus100-sd780-100c-0-9-9-osdtest-2-zip

Only difference is adding
    #define CAM_ZEBRA_NOBUF 1


The different zebra bar modes seem to work fine on my camera now with 0.9.9-osdtest-2 build. On startup the camera has 133544 bytes free. After taking a photo with Zebra bars on, the camera has 99416 bytes free.


« Last Edit: 27 / September / 2010, 13:56:06 by andrewhazelden »
Canon SD780IS

Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #583 on: 27 / September / 2010, 14:08:30 »
I'm using the original windows toolchain which makes bigger binaries

That is interesting.

So, what is the recommended setup for creating smaller binaries ?


David


*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #584 on: 27 / September / 2010, 14:49:57 »
So, what is the recommended setup for creating smaller binaries ?
I believe the state of art in terms of size is a gcc 4.5.x toolchain. I'm still using gcc 3 too myself, tried to build a 4.5.x a while back but failed miserably (to build gcc on ubuntu karmic, that is...).

For windows there are binaries of gcc 4.5.1 available at http://drop.io/gcc_for_chdkshell.

Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #585 on: 27 / September / 2010, 14:58:56 »
For windows there are binaries of gcc 4.5.1 available at http://drop.io/gcc_for_chdkshell.

Thanks.

I will think about it but I hate this compiling 'business'.

It can only end in tears !

In the 'early' days my compilations suddenly failed simply because I had installed a Logitech webcam.
Luckily, GrAnd reported the solution that was posted on a Russian forum.

*

Offline fe50

  • ******
  • 3038
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #586 on: 27 / September / 2010, 15:20:50 »
I believe the state of art in terms of size is a gcc 4.5.x toolchain. I'm still using gcc 3 too myself, tried to build a 4.5.x a while back but failed miserably (to build gcc on ubuntu karmic, that is...).
For windows there are binaries of gcc 4.5.1 available at http://drop.io/gcc_for_chdkshell.
The international Autobuild Server runs gcc 4.4.3 under linux (Debian).

*

Offline reyalp

  • ******
  • 10055
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #587 on: 27 / September / 2010, 16:24:30 »
The different zebra bar modes seem to work fine on my camera now with 0.9.9-osdtest-2 build. On startup the camera has 133544 bytes free. After taking a photo with Zebra bars on, the camera has 99416 bytes free.
Ok, I'll check in this version. It's normal for some memory to be consumed by taking the first time you take a photo, even if zebra is disabled.
Don't forget what the H stands for.


*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #588 on: 27 / September / 2010, 16:47:56 »
Quote
... I believe the state of art in terms of size is a gcc 4.5.x toolchain ...

Just to warn you guys that currently GCC 4.5.1 (at least the one I built) fails on 5 (or 4 if
not counting duplicates) out of the current 116 firmwares: A2000-100C, G11_100F, G11_100J,
G11_100K (= dup of 100J) and IXUS100_SD780-100C. Interestingly, G11-100L compiles without warnings.
I'm fairly sure this is due to more rigid error checking from the linker. I also PM'ed ultimA for a
second opinion, he was the first to report he got 4.5.1 to compile CHDK successfully:
http://chdk.setepontos.com/index.php/topic,4348.msg53187.html#msg53187, but no reply so far ...

wim


 




Re: IXUS 100 IS (Europe) / PowerShot SD780 IS - Porting Thread
« Reply #589 on: 27 / September / 2010, 17:44:04 »

Just to warn you guys


I am even more convinced now not to bother.

As a matter of interest, do you know how much smaller the smallest build is compared with the largest ?

Anything substantial like 25% smaller ?


 

Related Topics