SX280 / 275 / 270 porting - page 5 - DryOS Development - CHDK Forum

SX280 / 275 / 270 porting

  • 365 Replies
  • 222674 Views
Re: SX280 / 275 / 270 porting
« Reply #40 on: 11 / July / 2014, 16:05:52 »
Advertisements
In playback mode, memory read is a bit faster, but nothing spectacular: 66873 Kb/s. Screen read: 2773Kb/s. Also, after some fidling, card read dropped to 8000 Kb/s consistently (even after in-camera reformat). No difference on the computer though. Maybe the camera sd reader can be in different modes?

*

Offline srsa_4c

  • ******
  • 4451
Re: SX280 / 275 / 270 porting
« Reply #41 on: 11 / July / 2014, 19:06:49 »
Also, after some fidling, card read dropped to 8000 Kb/s consistently (even after in-camera reformat). No difference on the computer though. Maybe the camera sd reader can be in different modes?
I don't know what is happening at lower level, but the camera surely does card access in its own way (and it is not using the card's UHS support, unlike your card reader).
In playback mode, memory read is a bit faster, but nothing spectacular: 66873 Kb/s. Screen read: 2773Kb/s.
That's better, no big difference in RAM performance then.

Re: SX280 / 275 / 270 porting
« Reply #42 on: 13 / July / 2014, 08:17:26 »
I enjoyed your great work for 3 days. Then I succeeded to feed my SX270 with 12 Volt instead of 3,7 Volt.  :(
I am afraid, there is no way to repair it - R.I.P.!

I found, that all shops stopped to sell SX270/280. Some even kicked all Powesrshots out. And I wonder why Canon went back to DIGIC-4 in the new SX600. So I hesitate to buy another SX270.

Anyway, I am out of this porting game  :(

Re: SX280 / 275 / 270 porting
« Reply #43 on: 16 / July / 2014, 03:15:11 »
Hello,
I am reading a bit about chdk, and I read in some other thread that the repo (or at least the trunk) is intended to be compiled with GCC 4.6, while I am reading here that you are using GCC 4.8 to cross/compile on linux. Also, looking at the makefile.inc, there is CROSS_COMPILE=arm-elf-, while for GCC version equal or greater than 4.7 I would expect CROSS_COMPILE=arm-none-eabi-, or something like that. Am I wrong? Are there many other differences in order to compile the repo with GCC 4.8 instead of 4.6??

Actually I own a SX700 (I also posted the fw dump) that should not be so much different from sx280, and I know a bit about cortex-m4 and about programming... so I would like to have a starting point setting up the toolchain on linux to cross-compile, while I study the code a bit more (in parallel), and eventually try something more :-X


*

Offline srsa_4c

  • ******
  • 4451
Re: SX280 / 275 / 270 porting
« Reply #44 on: 16 / July / 2014, 17:56:54 »
I am reading a bit about chdk, and I read in some other thread that the repo (or at least the trunk) is intended to be compiled with GCC 4.6
The official trunk supports arm-elf toolchains (from gcc 3.4? to gcc 4.6.x)
Quote
while I am reading here that you are using GCC 4.8 to cross/compile on linux.
I chose to go with modern gcc because the ARM core in DIGIC 6 is a relatively recent one, and newer gcc/binutils has better support for new arm cores. Also, the arm-elf target was discontinued by gcc developers, gcc 4.8 no longer supports it.

Quote
Also, looking at the makefile.inc, there is CROSS_COMPILE=arm-elf-, while for GCC version equal or greater than 4.7 I would expect CROSS_COMPILE=arm-none-eabi-, or something like that. Am I wrong? Are there many other differences in order to compile the repo with GCC 4.8 instead of 4.6??
The CHDK tree in my repo currently requires
- arm-elf gcc toolchain for all DIGIC II, III, 4, 5 ports
- arm-none-eabi toolchain for DIGIC 6
Since your interest is a DIGIC 6 camera, you need arm-none-eabi. I mentioned several times that I'm using a precompiled binary toolchain from https://launchpad.net/gcc-arm-embedded , so you can just download one from that site, uncompress it and add its /bin folder to your PATH. I have tested compilation with the 32-bit Linux and Win32 precompiled toolchains.

Quote
Actually I own a SX700 (I also posted the fw dump) that should not be so much different from sx280, and I know a bit about cortex-m4 and about programming... so I would like to have a starting point setting up the toolchain on linux to cross-compile, while I study the code a bit more (in parallel), and eventually try something more :-X
Use this script to disassemble your dump (to reduce file size, it's recommended that you cut off the data part of the dump, I'm using a 0x9530c0 bytes long dump for disassembly in case of the sx280 102b).
Since there is no sigfinder for thumb firmware, you'll have to find all stubs and fw variable addresses manually.

*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: SX280 / 275 / 270 porting
« Reply #45 on: 19 / July / 2014, 10:53:24 »
Added the
  • SX280 1.02C
full 32MB dump by Raj from this forum post to the CHDK P&S FW dumps repository.

Re: SX280 / 275 / 270 porting
« Reply #46 on: 19 / July / 2014, 13:05:29 »
I figured I would in the least post my benchmark results since I am now using CHDK on my sx280hs.

SanDisk Extreme 30MB/s 8GB card

CPU  99950 kIPS
Screen
Write : 38400 Kb/s 128 FPS
Read : 2773 Kb/s 2147483647 FPS
Memory
Write : 156038 Kb/s
Read : 66197 Kb/s

Flash-Card
Write (RAW) : 20140 Kb/s
Write (Mem) : 20827 Kb/s
Write (64k) : 11377 Kb/s
Read (64k) : 17617 Kb/s

Re: SX280 / 275 / 270 porting
« Reply #47 on: 22 / July / 2014, 17:04:44 »
Hello srsa_4c and people here, I already purchased a new camera SX270 HS, I want to use CHDK for this camera but I don't know how to start CHDK in this version.
I had before an SX240 HS and I was using the update firmware version and this new CHDK is not showing this option when I turn-on the camera in playback mode.

I need help to know how to load CHDK in this camera.

Thanks for all your hard work to do this possible in Digic 6 :D
« Last Edit: 22 / July / 2014, 17:16:19 by joselube »


*

Offline srsa_4c

  • ******
  • 4451
Re: SX280 / 275 / 270 porting
« Reply #48 on: 22 / July / 2014, 18:04:40 »
I had before an SX240 HS and I was using the update firmware version and this new CHDK is not showing this option when I turn-on the camera in playback mode.
Pre-releases published here on the forum do not include the CHDK file that can be started as a firmware update.
You need to make your SD card bootable for example with this application (if you don't use Windows, see the top of that page for Mac and Linux alternatives). After that, just extract the files and directories from the latest prealpha archive to the card and lock it before putting it to the cam. You can identify your firmware version with ACID or CameraVersion, but the latest prealpha download here will not attempt to run on a non-matching firmware (it will just blink the camera's LED and you'll need to pull the battery).
If you have a firmware earlier than 1.02b, download the official Canon fw upgrade package and install it.

edit:
Since the firmware update CHDK starting method is really slow (2-3 seconds) on this cam, I don't think many people would want to use that.
« Last Edit: 22 / July / 2014, 18:08:54 by srsa_4c »

Re: SX280 / 275 / 270 porting
« Reply #49 on: 22 / July / 2014, 19:35:07 »
srsa_4c Thanks for your quick answer...
Now I have working correctly CHDK into my cam.  :lol :D

Video quality is not working still or how can I use this option.
Thanks again...

 

Related Topics