SX510 - page 8 - CHDK Releases - CHDK Forum

SX510

  • 218 Replies
  • 96274 Views
Re: SX510
« Reply #70 on: 21 / April / 2014, 17:36:50 »
Advertisements
thanks for your quick answer, if i try it i'll let you know.
 :D

*

Offline nafraf

  • *****
  • 1308
Re: SX510
« Reply #71 on: 22 / April / 2014, 11:45:11 »
Maybe the zebra code could be modified to not write anything to
a) the cam's bitmap overlay
or
b) its internally malloc'd memory
but make boundary checks instead.
Or, does anyone have a better idea?
Using #define CAM_ZEBRA_NOBUF 1  camera has not crashed.
It is not perfect, but it is usable: https://trac.assembla.com/chdk/browser/trunk/modules/zebra.c#L150


*

Offline srsa_4c

  • ******
  • 4451
Re: SX510
« Reply #72 on: 22 / April / 2014, 15:01:57 »
Maybe the zebra code could be modified to not write anything to
a) the cam's bitmap overlay
or
b) its internally malloc'd memory
but make boundary checks instead.
Or, does anyone have a better idea?
Using #define CAM_ZEBRA_NOBUF 1  camera has not crashed.
It is not perfect, but it is usable: https://trac.assembla.com/chdk/browser/trunk/modules/zebra.c#L150
If the define prevents the crash, it should be made official.
We still should hunt down that bug someday (the behaviour change on CAM_ZEBRA_NOBUF will help to narrow down the search)...

*

Offline nafraf

  • *****
  • 1308
Re: SX510
« Reply #73 on: 23 / April / 2014, 13:54:40 »
#define CAM_ZEBRA_NOBUF 1 : Added to trunk in changeset 3422

*

Offline koshy

  • *****
  • 1096
Re: SX510
« Reply #74 on: 30 / May / 2014, 08:07:56 »
Hi all,

I tried the CHDK for the sx510 from http://mighty-hoernsche.de/trunk/
I found that it always reports "RAW DISABLED" / "DNG DISABLED" when I try to get the camera to record RAW images (depending on whether I turn DNG on or not). I need the raw mode for a test and it'll be fine by me if there is the optical difference to the JPEG that was discussed on page 4 of this thread.

So my question is where / how do I obtain a firmware 101a version of CHDK that does write DNG files?
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline reyalp

  • ******
  • 14126
Re: SX510
« Reply #75 on: 30 / May / 2014, 16:47:49 »
Hi all,

I tried the CHDK for the sx510 from http://mighty-hoernsche.de/trunk/
I found that it always reports "RAW DISABLED" / "DNG DISABLED" when I try to get the camera to record RAW images (depending on whether I turn DNG on or not). I need the raw mode for a test and it'll be fine by me if there is the optical difference to the JPEG that was discussed on page 4 of this thread.

So my question is where / how do I obtain a firmware 101a version of CHDK that does write DNG files?
This probably has to do with settings. Do you have something set in "raw exceptions" ?

There is no special build with raw enabled.
Don't forget what the H stands for.

*

Offline koshy

  • *****
  • 1096
Re: SX510
« Reply #76 on: 30 / May / 2014, 18:19:46 »
This probably has to do with settings. Do you have something set in "raw exceptions" ?

Thanks that was the final nudge I needed.

My reasoning had been that it should work with a clean build. I did build several trunk versions starting with 3381 where the camera/firmware combination I need was added through 3449 myself after posting this message but still to no avail.
Well, little did I know the camera was still switched to movie recording mode and there actually is a default "RAW recording off" setting for movie recording mode... It works now.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

Re: SX510
« Reply #77 on: 05 / June / 2014, 11:22:14 »
I'm interested in developing CHDK further using this camera as a base for my work. In particular, I'm interested in adding in some hooks to control the WiFi and to send/receive TCP/UDP packets. Applications would include shooting over WiFi, uploading images to custom servers, smart phone apps etc, and perhaps evening streaming the viewport - depending on whether it is available already compressed in H.264 etc.

A couple questions, as I'm a noob with the setup here - we have a Digic 4 processor based on an ARM instruction set, and we use GCC to cross compile the sources. When the CHDK firmware runs, how does it interact with the original firmware? are parts of the assembly from the original firmware inlined into the CHDK build?? or does CHDK load the original firmware and access it's functions like a library?

Cheers!

 

Re: SX510
« Reply #78 on: 05 / June / 2014, 11:50:07 »
I'm interested in developing CHDK further using this camera as a base for my work. In particular, I'm interested in adding in some hooks to control the WiFi and to send/receive TCP/UDP packets. Applications would include shooting over WiFi, uploading images to custom servers, smart phone apps etc, and perhaps evening streaming the viewport - depending on whether it is available already compressed in H.264 etc.
http://chdk.wikia.com/wiki/For_Developers
http://chdk.wikia.com/wiki/Adding_Firmware_Features

Quote
When the CHDK firmware runs, how does it interact with the original firmware?
At boot, CHDK is loaded into RAM and gets control of the processor before the Canon firmware gets a chance to run.  It activates the O/S in the firmware (VxWorks or DryOS depending on the camera) and hooks/replaces several tasks that the original firmware would have run. It also adds one of its own.  It then lets the original firmware take control.   

The hooked tasks mimick what the original tasks would have done but provide hooks for CHDK to use.  The new task is essential "CHDK" at that point - doing a few simple things that would not make sense to do in the original and hooked tasks.

Quote
are parts of the assembly from the original firmware inlined into the CHDK build??
Essentially - the code for the boot process and hooked tasks is a close match to the original firmware code.

Quote
or does CHDK load the original firmware and access it's functions like a library?
No.  It makes direct calls to the firmware in place.
« Last Edit: 05 / June / 2014, 12:40:14 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14126
Re: SX510
« Reply #79 on: 05 / June / 2014, 16:32:45 »
I'm interested in developing CHDK further using this camera as a base for my work. In particular, I'm interested in adding in some hooks to control the WiFi and to send/receive TCP/UDP packets. Applications would include shooting over WiFi, uploading images to custom servers, smart phone apps etc, and perhaps evening streaming the viewport - depending on whether it is available already compressed in H.264 etc.
This thread may be of interest:
http://chdk.setepontos.com/index.php?topic=10724.0
If you can convince the camera to go into PTP/IP mode outside of the regular menu, all of the CHDK extension stuff will be available.

Alternately, if you want to write your own socket code, most of those functions are easy to find, and I was able to start the network system (without PTP/IP) using console commands.

The magic lantern folks have also done some wireless stuff, though it's not clear how much will be applicable to P&S http://magiclantern.wikia.com/wiki/6D/Networking
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal