A4000IS porting thread - page 2 - DryOS Development - CHDK Forum supplierdeeply

A4000IS porting thread

  • 205 Replies
  • 51050 Views
Re: A4000IS porting thread
« Reply #10 on: 05 / March / 2013, 13:42:01 »
Advertisements
I intend on using larger capacity SD cards in the future, so I'll have to figure this out before then, but I can leave things as they are while testing.
Did you notice that the BOOTDISK string goes at a different offset with FAT32 cards ?   ( 0x01E0 vs 0x0040 )
« Last Edit: 05 / March / 2013, 13:44:42 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A4000IS porting thread
« Reply #11 on: 05 / March / 2013, 13:45:14 »
I intend on using larger capacity SD cards in the future, so I'll have to figure this out before then, but I can leave things as they are while testing.
Did you notice that the BOOTDISK string goes at a different offset with FAT32 cards ?

I did after I made my initial post, and then edited afterwards.  Your last post arrived while I was editing.  Anyway, yes, you were right to suspect that the problem was with the offset.

Re: A4000IS porting thread
« Reply #12 on: 05 / March / 2013, 15:32:42 »
I took some pictures in high quality mode, converted the DNG files using ufraw, and the results look pretty good for such a cheap camera!  So, I can report that saving to DNG seems to be working fine.

Re: A4000IS porting thread
« Reply #13 on: 05 / March / 2013, 15:48:18 »
I took some pictures in high quality mode,
HQ mode only affects JPG compression ....

Quote
converted the DNG files using ufraw,
Why not take them as DNG directly using CHDK rather than converting from JPG ?
Ported :   A1200    SD940   G10    Powershot N    G16


Re: A4000IS porting thread
« Reply #14 on: 05 / March / 2013, 16:15:43 »
By high quality, I meant full resolution.  Are the RAW images always saved at full resolution no matter what size is selected in the menu?

I didn't have any program on my desktop that displays DNG files directly, so I installed ufraw and used that to convert the DNG files to PPM.  That way I can view them with my usual applications (xv or display), and easily post-process them later when converting pictures of documents into PDF format.

Re: A4000IS porting thread
« Reply #15 on: 05 / March / 2013, 16:20:26 »
By high quality, I meant full resolution.  Are the RAW images always saved at full resolution no matter what size is selected in the menu?
Yes.  CHDK RAW is just that - a raw dump from the sensor.  No post processing or anything.
link> Questions about RAW ?

Quote
I didn't have any program on my desktop that displays DNG files directly, so I installed ufraw and used that to convert the DNG files to PPM.  That way I can view them with my usual applications (xv or display), and easily post-process them later when converting pictures of documents into PDF format.
No shortage of other option - including GIMP.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A4000IS porting thread
« Reply #16 on: 06 / March / 2013, 02:54:06 »
I pulled the code for ptpcam via "svn co http://subversion.assembla.com/svn/chdkde/trunk/tools/ptpcam/", built it, but it gives an error when trying to detect the camera.  Does the A4000 have PTP support yet?  Here is some of what I see:

dmesg:
[1311112.252206] usb 4-1.5: new high-speed USB device number 125 using ehci_hcd
[1311112.338825] usb 4-1.5: New USB device found, idVendor=04a9, idProduct=3243
[1311112.338827] usb 4-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1311112.338829] usb 4-1.5: Product: Canon Digital Camera
[1311112.338830] usb 4-1.5: Manufacturer: Canon Inc.
[1311112.338832] usb 4-1.5: SerialNumber: 76F23FA4449C4A9DBBD39BB18BF3324D

>gphoto2 --auto-detect
Model                          Port                                           
----------------------------------------------------------
USB PTP Class Camera           usb:004,126     

>/scr2/tmp/ptpcam/ptpcam --list-devices
Listing devices...
bus/dev vendorID/prodID device model
ERROR: Could not open session!
Try to reset the camera.
Segmentation fault

dmesg:
[1312141.188684] ptpcam[12866]: segfault at 100000012 ip 00007f9422773e64 sp 00007fff6698ac80 error 4 in libpthread-2.15.so[7f942276a000+17000]


*

Offline srsa_4c

  • ******
  • 4426
Re: A4000IS porting thread
« Reply #17 on: 06 / March / 2013, 08:10:55 »
>/scr2/tmp/ptpcam/ptpcam --list-devices
Listing devices...
bus/dev vendorID/prodID device model
ERROR: Could not open session!
Try to reset the camera.
Segmentation fault
Search for that error message here: http://libptp.sourceforge.net/README


Re: A4000IS porting thread
« Reply #18 on: 06 / March / 2013, 14:29:05 »
@srsa_4c: I looked in the ptpcam source code, and it just indicates that the PTP initialization failed.  There is no reason as to why.  The A4000 isn't shown in the program's device list, so maybe that's the problem.

@nafraf asked me to try with chdkptp instead.  It took a while to get all the dependencies in place, but I finally got it to run.  It does connect to the camera, and the simple actions I tried first all seemed to work (Viewfinder,  UI Overlay, rec, shoot, zoom+/-, menu, set, the effects in the tab, up/down/left/right).  I'll report back if I see any specific problems with it.

*

Offline nafraf

  • *****
  • 1308
Re: A4000IS porting thread
« Reply #19 on: 06 / March / 2013, 14:43:05 »
@rkomar
Now that you have chdkptp running, could you check LED indexes to fix led_table[] in camera_set_led(int led, int state, int bright)?

This post explains how to call LEDDrive from chdkptp.

 

Related Topics