CHDK Forum

CHDK Development => General Discussion and Assistance => DryOS Development => Topic started by: KevB on 05 / October / 2009, 23:20:58

Title: SD1200 IS Porting Thread
Post by: KevB on 05 / October / 2009, 23:20:58
SD1200IS CHDK Wiki (http://chdk.wikia.com/wiki/SD1200IS)
Firmware Dumping Thread (http://chdk.setepontos.com/index.php/topic,3547.msg39712.html#msg39712)
ixus95_sd1200-100c.7z (http://drop.io/chdkdumps2/asset/ixus95-sd1200-100c-7z) 4MB Firmware from 0xFFC00000 Blinked by syrius (Thanks so much!)
CHDK-SD1200 Git Repo (http://github.com/barryk/CHDK-SD1200) git clone git://github.com/barryk/CHDK-SD1200.git
PS.FI2 (https://198.109.25.184/kb/CHDK/20091010a/PS.FI2) CHDK build

Reference Cameras: (To compare firmware)   SD780IS (http://chdk.wikia.com/wiki/SD780IS)       SD990IS (http://chdk.wikia.com/wiki/SD990IS)


Well thanks to the work of both hardware investigation and firmware dumping done by syrius in the Firmware Dumping Thread (http://chdk.setepontos.com/index.php/topic,3547.msg39712.html#msg39712) and HarpoMa in the SD780 (http://chdk.setepontos.com/index.php/topic,3995.msg37547.html#msg37547) thread, I have an initial booting CHDK firmware for the SD1200IS.

Source in my git repo CHDK-SD1200 Git Repo (http://github.com/barryk/CHDK-SD1200). Binary here though it's not very impress. If you try to take a photo it will shut off. But before you take a photo you can watch a nice led show... https://198.109.25.184/kb/CHDK/20091005a/PS.FI2 (https://198.109.25.184/kb/CHDK/20091005a/PS.FI2)


Current Status:
2009/10/10
GUI Works
Keyboard Works (Play is ALT key, hold down for Play functionality)
RAW works (I developed with dcraw)

2009/10/05
100c (http://drop.io/chdkdumps2/asset/ixus95-sd1200-100c-7z)  Firmware blink-dumped.(Check Firmware Version (http://chdk.setepontos.com/index.php/topic,3547.msg33214.html#msg33214))
Boots PS.FI2 files if encoded properly http://chdk.setepontos.com/index.php/topic,3547.msg37877.html#msg37877 (http://chdk.setepontos.com/index.php/topic,3547.msg37877.html#msg37877)
Boots CHDK and runs blinker task 2009/10/05
Task can dump firmware from 0xFFC00000 (Mostly matches blinked firmware, looks like I just have an error log). Cannot dump from 0xFF810000 (No 8MB dump. Smaller flash size on this camera?)

Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 05 / October / 2009, 23:49:06
Task can dump firmware from 0xFFC00000 (Mostly matches blinked firmware, looks like I just have an error log).
It's possible, it appears some newer non a-series cameras are now starting at 0XFFC00000
edit: the dump confirms this:
Code: [Select]
ROM:FFC00058                 LDR     R0, =0xFFC0002B
ROM:FFC0005C                 MCR     p15, 0, R0,c6,c5

Have you tried diskboots with dancingbits 2 and 3 ?

edit:
looks like 2 should work.
Title: Re: SD1200 IS Porting Thread
Post by: KevB on 10 / October / 2009, 01:53:23
Hrm I'm having an odd problem... The end of the first chunk of code of the SD1200 firmware is:
Code: [Select]
FFC0013C loc_FFC0013C                            ; CODE XREF: ROM:FFC00148j
ROM:FFC0013C                 CMP     R1, R3
ROM:FFC00140                 LDRCC   R2, [R0],#4
ROM:FFC00144                 STRCC   R2, [R1],#4
ROM:FFC00148                 BCC     loc_FFC0013C
ROM:FFC0014C                 LDR     R1, =0x12AD3C
ROM:FFC00150                 MOV     R2, #0
ROM:FFC00154
ROM:FFC00154 loc_FFC00154                            ; CODE XREF: ROM:FFC0015Cj
ROM:FFC00154                 CMP     R3, R1
ROM:FFC00158                 STRCC   R2, [R3],#4
ROM:FFC0015C                 BCC     loc_FFC00154
ROM:FFC00160                 B       loc_FFC001A0

From what I've read this suggests that MEMISOSTART should be 0x12AD3C and sure enough the camera boots when it is set to that. I'd been trying to get the gui to work but it always would crash the camera when it got to draw_init or draw_txt_string (if I bypassed draw_init). Even if I replaced the contents of those functions with "return;". (Confirmed as BX LR in main.dump).

So I tried doing a memory dump of 0x12AD3C to the SD card and found 7924 bytes of zeros (7924 is 0x1ef4). (And normal memory following). I tried changing my MEMISOSTART to 0x12AD3C + 0x1ef4) = 0x12CC30, but the camera would not boot this way. So I changed my core/entry.S to add an offset:

Code: [Select]
    .section .entry
    .org 0x1ef4
    MOV R0, #2
    TEQ     R0, #2
    LDR     SP, =0x1900
    MOV     R11, #0
    B   startup

Now the camera boots and draw_init() can be called successfully (I get 4 logos rather than one, but I think that's a different issue).

Thoughts? This doesn't seem like the proper fix...

BTW no luck with dancing bits yet. I wonder if that's related to this memory thing.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 10 / October / 2009, 02:00:56
Hard to say without knowing what all you've done and how far you've gotten.
1) maybe you have a function identified incorrectly, that is clobbering this ?
2) do you have new_sa passed into the canon firmware to inform it of the size reserved for CHDK ?
3) Try checking at various points in the startup process to see where this gets clobbered ?
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 10 / October / 2009, 02:04:37
You need to make a function that blinks a LED, and then put it at various places in the code to see if the execution got there. The find out the last function where it stopped, and investigate.
Title: Re: SD1200 IS Porting Thread
Post by: gajownik on 10 / October / 2009, 06:44:02
Quote
I get 4 logos rather than one, but I think that's a different issue.
I presume that you have wrong values for vid_get_bitmap_buffer_width() or vid_get_bitmap_screen_width() in platform/*/sub/*/lib.c file. I had similar problem and substituting 720 for 360 fixed it for me.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 10 / October / 2009, 21:49:09
Quote
I get 4 logos rather than one, but I think that's a different issue.
I presume that you have wrong values for vid_get_bitmap_buffer_width() or vid_get_bitmap_screen_width() in platform/*/sub/*/lib.c file. I had similar problem and substituting 720 for 360 fixed it for me.
Yes, this is how the sd990 looked at first: http://chdk.setepontos.com/index.php/topic,2972.msg29795.html#msg29795 (http://chdk.setepontos.com/index.php/topic,2972.msg29795.html#msg29795)
Title: Re: SD1200 IS Porting Thread
Post by: KevB on 10 / October / 2009, 23:45:47
Thanks guys.

I followed reyalp's suggestion on checking at various points to figure out where the data got clobbered. Not too surprising actually, the canon_bss_len was wrong, so some extra data was copied, right onto MEMISOSTART and then some.

The video stuff was partially those settings, but once that was resolved the aspect ratio was also off. I found the SX200IS did some hacks to adjust the aspect ratio and incorporated them into the SD1200IS. I also got the keyboard working. Things seem to be in pretty good shape now. Oh and raw shooting works in CRW mode.

Some things that still need work:
badpixel script always says "Try again"
Zebra/Edge Overlay don't seem to be using the right data (probably a wrong vid buffers?)
Screen refresh is kind of weird. Like if I exit a menu but the previous menu was smaller then i still can see the exited menu.
Sometimes menus exit by themselves
No way to exit main menu (?) Is this normal? Or because I'm using my PLAY key as PRINT/ALT?
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 10 / October / 2009, 23:55:23
The video stuff was partially those settings, but once that was resolved the aspect ratio was also off. I found the SX200IS did some hacks to adjust the aspect ratio and incorporated them into the SD1200IS. I also got the keyboard working. Things seem to be in pretty good shape now. Oh and raw shooting works in CRW mode.
Have you verified that the raws have correct image data ? On some cameras, there are multiple buffers. If you only have one right, this could cause the badpixel problem.

Quote
Zebra/Edge Overlay don't seem to be using the right data (probably a wrong vid buffers?)
Could be. Note that the sx200 zebra fix is #ifdef'd for sx200 only right now.
Quote
Screen refresh is kind of weird. Like if I exit a menu but the previous menu was smaller then i still can see the exited menu.
Sometimes menus exit by themselves
Are you sure they exit themselves, or is the canon firmware just erasing them ? The latter is normal.
Quote
No way to exit main menu (?) Is this normal? Or because I'm using my PLAY key as PRINT/ALT?
Pressing menu in alt mode should toggle the CHDK menu.
Title: Re: SD1200 IS Porting Thread
Post by: KevB on 11 / October / 2009, 00:17:21
Have you verified that the raws have correct image data ? On some cameras, there are multiple buffers. If you only have one right, this could cause the badpixel problem.
I've developed multiple images and they correspond with the associated JPEG.

Quote
Are you sure they exit themselves, or is the canon firmware just erasing them ? The latter is normal.
Okay just verified and indeed the menus are still active, just that they are overwritten. Using the down arrow selects the next item and does a redraw.

The main menu issue is similar, pressing menu does indeed toggle the menu, however it stays visible until canon overwrites it.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 11 / October / 2009, 00:28:30
Have you verified that the raws have correct image data ? On some cameras, there are multiple buffers. If you only have one right, this could cause the badpixel problem.
I've developed multiple images and they correspond with the associated JPEG.

Quote
Are you sure they exit themselves, or is the canon firmware just erasing them ? The latter is normal.
Okay just verified and indeed the menus are still active, just that they are overwritten. Using the down arrow selects the next item and does a redraw.

The main menu issue is similar, pressing menu does indeed toggle the menu, however it stays visible until canon overwrites it.

This seems to be an issue on newer cameras http://chdk.setepontos.com/index.php/topic,4333.0.html (http://chdk.setepontos.com/index.php/topic,4333.0.html)
Title: Re: SD1200 IS Porting Thread
Post by: johnboiles on 13 / October / 2009, 15:15:24
Thanks for your efforts everyone.

I'm an embedded software engineer interested in getting this working. I'll download the code and start fooling around. If anyone has any specific task they need to delegate off, I'd be glad to get it done.
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 13 / October / 2009, 16:09:00
Welcome here, johnboiles.

Well, depending your time and reverse engineering experience, it would be helpful to find out if there is a 3rd screen buffer where you need to write to so that the screen is updated properly by CHDK.

From my observations, if the camera GUI updates an icon (such as the handshake warning), the space taken by that icon is refreshed, so the left over menus disappear from that area.
Title: Re: SD1200 IS Porting Thread
Post by: PX3 on 16 / October / 2009, 04:18:03
sorry offtopic: i have no ideas how you guys are porting this camera, but pleeeaaase keep up the great work. I am longing for a port ever since i bought this cam after breaking my ixus70 with chdk.
Title: Re: SD1200 IS Porting Thread
Post by: KevB on 17 / October / 2009, 14:22:51
I meant to post earlier but never got around to it. The screen refresh thing might have just been a mistake in my stubs. I though I had the issue even when the RefreshScreen stub was set to ScreenUnlock's location, but could no longer reproduce. So it's possible I just had the wrong setting in there and didn't realize it, or perhaps there is some other setting which causes ScreenUnlock to not be what we want (Like perhaps if there is another lock on the screen or something?)

So the current status is that the menu seems to be working, but it might be possible that if something happens it will stop refreshing.

I played with DISKBOOT.bin a bit we seem to be triggering a reboot somewhere in taskcreate_Startup_my. I haven't looked into it further yet.
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 17 / October / 2009, 15:57:10
So you mean that now there are no more left overs on the screen from the previous menus?
Title: Re: SD1200 IS Porting Thread
Post by: KevB on 17 / October / 2009, 17:55:34
I haven't seen any left overs since playing with the stubs and eventually changing RefreshScreen to match ScreenUnlock (As I though I had done originally when I was experiencing problems.) So it's possible I'm just mistaken about before and my settings were wrong when I saw the problem, or perhaps there is a certain use-case that causes the screen left overs that I encountered before.
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 17 / October / 2009, 19:59:33
Well, I might have some stubs wrong, but not the screen ones, and they do not cause any problems so far..
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 19 / October / 2009, 22:40:18
Were you able to find stat() with the signature finder? If so, did it work?
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 19 / October / 2009, 23:01:10
FWIW, sd1200 is dryos r31, not r39.
Title: Re: SD1200 IS Porting Thread
Post by: RaduP on 19 / October / 2009, 23:21:44
Oops, misread the list, nevermind my question.
Title: Re: SD1200 IS Porting Thread
Post by: pmac on 25 / November / 2009, 06:40:38
I don't know if any of you guys have been working on this at all, but if the SD 1200 was ported I would really really appreciate it. I would love to be able to do time elapse and RAW images so I can make better HDR panoramas and time-elapses of nature. If you all get it ported let me know and I'll be sure to share my work. I'd even try to pay 10 bucks or so through pay pal to whoever could get it ported before dec 10th if it enabled my camera to do raw pictures and time-elapses. I know that that sounds like a scam, so you'd have to take my word on it (from my end, 10 bucks to take raw pictures / make hdrs and time elapses is worth it).

Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 25 / November / 2009, 07:40:52
I don't know if any of you guys have been working on this at all, but if the SD 1200 was ported I would really really appreciate it
See http://chdk.wikia.com/wiki/FAQ#Q._My_camera_isn.27t_ported_yet._Is_a_port_planned_.3F_When_will_it_be_ready_.3F_How_can_I_help_.3F (http://chdk.wikia.com/wiki/FAQ#Q._My_camera_isn.27t_ported_yet._Is_a_port_planned_.3F_When_will_it_be_ready_.3F_How_can_I_help_.3F)
Quote
I'd even try to pay 10 bucks or so through pay pal to whoever could get it ported before dec 10th if it enabled my camera to do raw pictures and time-elapses. I know that that sounds like a scam, so you'd have to take my word on it (from my end, 10 bucks to take raw pictures / make hdrs and time elapses is worth it).
:lol
$10. Wow. A port is a lot of work. You are somewhere between 100 to 1000 times short of the value of the programming time involved, never mind needing the camera, but see http://chdk.setepontos.com/index.php/topic,2.0.html (http://chdk.setepontos.com/index.php/topic,2.0.html) #4
Title: Re: SD1200 IS Porting Thread
Post by: Sluggysan on 11 / December / 2009, 22:46:03
Good Hello!

I've not seen any development chat lately on this camera. Has anyone been poking at it lately? Have any significant roadblocks been hit? Any progress being made? I'm not exactly holding my breath for even an early alpha, but would like to know if anyone still has any porting interest in this camera.

Thank you!
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 14 / January / 2010, 18:27:55
hi guys let me ask you something does this:
I haven't seen any left overs since playing with the stubs and eventually changing RefreshScreen to match ScreenUnlock (As I though I had done originally when I was experiencing problems.) So it's possible I'm just mistaken about before and my settings were wrong when I saw the problem, or perhaps there is a certain use-case that causes the screen left overs that I encountered before.
means that menus opened before are already closed and not appearing into screen and, if so,  what am i wating to place this on my camera? o yeah my sd got broken. ill try to use some codes from other ports (that i think shouldnt work) and try to port them to 1200is (if i am lucky) just to see what can i get.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 18 / January / 2010, 16:21:54
i got the memory im gonna try it as soon as i can and post what can i get if it works as you posted the code itll be cool, W/E it works or not I will try to improove those codes the best i can
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 23 / January / 2010, 04:12:51
I am still waiting for my camera to be delivered, but despite the wiki which states chdk hasn't been ported yet... from what I understand there is a basic version of CHDK already working for the camera right?

So if I wanted to play with this, I can just copy the file into the card, start camera in playback mode then run firmware update?  

Some threads point to a diskboot.bin file which seems to be used for auto-booting but I guess it isn't necessary to just run it?  I primarily want raw (which I see is working) and USB remote (assume in development)

Edit:  I finally realized all the files in /CHDK were "extra" and the PS.fi2 and diskboot.bin was always the important files.  So its more of, hope I can test it soon and I sure hope it doesn't try to replace the firmware with a 300kb fi2 file! 

Is the diskboot.bin universal?
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 25 / January / 2010, 16:40:01
what? someone got it running by now. that is great to hear, i would love to try it out and now that you say so we may need to try others ps.fi2 files on this camera and see if they workout (I doubt thats possible) and I im looking for the same USB remote function you are but i think that when CHDK is already running it is far easier to work on other stuff. so development and porting is just going to boost on this camera.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 25 / January / 2010, 18:00:15
I don't know yet, I was just reading the stuff and it sounds like there is some basic functionality if we were to use the firmware update method to run it.
My camera should come tomorrow so I am enthusiastically anticipating it!  I was looking over the source code and although nicely documented, its too much for me to try to figure out.  :( It looks like there was an attempt to implement most of the features and with the chdk SD790 coming along nicely, we can hope the functionality and code can be adopted to this camera as well.  

Edit:
So I can get the CHDK to start, I got it to take pictures, save raws, and run the badpixel.lua script resulting file was something like bad_temp.bin so I suspect the script didn't complete so I shall run it again when the battery charges.  The raw file is recognizable so I am happy (yes, pretty much all I wanted was raw).

Tested:
badpixel.lua does not finish running - generates a 16kb bad_temp.bin file in chdk directory > Does not seem to really compare anything.  BadPixel.exe reads it as about 4000 dead pixels.
BadPixel.exe does not recognize the camera - tried different settings based on the source code 3720x2772 12bit black=31 finds almost 10,000 dead pixels which seems far too high, blacks at 127 finds about 8,000 perhaps closer.

I wanted to add, if someone really wanted to do sometime like time lapse for example through LUA it shold work fine.  The script for badpixel.lua does run far enough to capture and save the shots but doesn't do any of the processing.  Thus if you edit it with your own time delay you can do custom time lapse shots with LUA.  Wish USB remote worked, I saw a neat schematic for flash sync. 

Using the badpixel.bin file, I tried to produce DNG files.  The files produce SOMETHING but its far from useful.  
I opened it in Raw Therapee and it appears to have a grainy colorful version of a previous picture, now that I think about it I may have enabled the buffer option which even ruined the standard raw file.

Speaking of which DNG for PS does not recognize the camera which is logical as well. But raws CAN work, just very hard to work with because I prefer the workflow of photoshop.  

It looks like none of the video functions, zoom, quality, etc work.

USB shutter feature does not work, I am somewhat surprised because it looked like it was just a part of the keyboard.  I tried USB remote, USB sync, functions and they did not work.  Initially I thought it did because the camera would shift into preview but sadly no.  

Buffered
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fi995.photobucket.com%2Falbums%2Faf74%2Fawdark1%2FBuffered.jpg&hash=3ffc39329f09ee877f18ed5618028115)

DNG (used 300kb badpixel.bin with 10,000 pixels)
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fi995.photobucket.com%2Falbums%2Faf74%2Fawdark1%2Fdng.jpg&hash=57a8892d8ecaeee0e0b82c23cd4c6ba4)

DNG with 16kb badpixels has less data, thus the LUA script most likely did nothing useful.

Default RAW
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fi995.photobucket.com%2Falbums%2Faf74%2Fawdark1%2FstandardRaw.jpg&hash=8ef517c95b71df936df4cec4890f7910)


In order to use DNG4PS-2
Go to settings > Camera Options
Select any camera and click copy
Name: Canon DIGITAL IXUS 95 IS / Canon PowerShot SD1200 IS
Short Name: Canon PowerShot SD1200 IS
Sensor Size: 3720 x 2772
Jpeg Size: 3648 x 2736
Active Zone x1,y1: 12, 12
Active Zone x2,y2: 3648, 2736
Black-White Levels: 127-4095
Mosaic Type: Red, Green Green, Blue
Bits per Unit: 12 bit

That will produce output... and the DNG is viewable but wont open in photoshop  >:(
I use FastPictureViewer so thumbnails appear and it appears in Vista preview however I cant open in photoshop, additionally it can open in Raw Therapee after I corrected the mosiac type.  Positive progress but I don't know why Adobe Camera RAW doesn't read it. :(

Currently I think the CRW files produced by the camera are correct, however the settings for converting it to a DNG must be wrong.   Internally, it appears to be using the wrong values I saw something like that when I took a class on image and video compression.  The fact that it treats it as a 128x96 image at 14.7mb means its very close.  
The same goes for DNG4PS it can generate usable images recognizable by other programs but there is something slightly off about it making it incompatible with photoshop.
Also note that its extremely easy to corrupt the CRW by taking pictures too quickly.
Title: Re: SD1200 IS Porting Thread
Post by: rymdrattan on 01 / February / 2010, 15:13:56
I just wanted to give my honest appreciation for the porters and developers working on this port! Keep up the good work!  :-*
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 02 / February / 2010, 09:53:47
wow awdark you are far ahead of were I'm standing i was still trying to figure out the codes from the camera dump and other files from chdk, how you did that on your camera is that chdk for SD790 or is that an edition for this camera only where can i download it if it is. I would like to have something else to figure-out side by side with the camera dump.
edit: i feel dummb by asking this.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 02 / February / 2010, 12:52:46
O.O noo! I didn't make or compile anything, I have just been reviewing everything KevB has posted, I have just been trying to figure out what works and what doesn't work in hopes someone in the future will have a bug list or an idea of whats working correctly.

You can download "PS.FI2 CHDK build" at the top of the first post then put it into the root of your SD card, press play>Menu>Firmware Update>"Yes" and CHDK will start.  

Keyboard mapping is press play to enable <alt> then press menu and you should see the CHDK menu.  Func/set is used to navigate into menus and set options, menu goes back.  Shutter runs the script selected.  Then hit the Play button to go back to camera functionality.  You know its in camera when you see a long thin bar across the bottom left.  
The menus don't display properly (like you can see the previous menu on the screen) and the auto focus squares can cause the menu to disappear so I recommend aiming the camera down on your pants or something so it wont cause the screen to randomly refresh like that.

The CHDK folder can be acquired from any build or from the "CHDK-SD1200 Git Repo" linked in the first post.  Its nice to see a menu (buggy but its a menu) histograms and some raw files being produced.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 02 / February / 2010, 20:19:07
oh thats ok i think the problem is because i have some files from other CHDK compiles and that is why it is not loading i just took them out and it is already running as you have posted before. that was a nice tip i figured out thanks to you, if it is not working delete everithing and try over.
edit:
oh men figuring stuff out is so tiring, i've been like 2 hours taking pictures i've seen the zebra problems and other stuff and weird as it is, i am not frustated at all, i like to see all this weird stuff on my camera it makes me feel like I'm actually doing something for it, however that is not the important deal, I've been trying to override shutter speed and i cant make it work (wich i dont think is actually surpressive maybe you all knew it was not going to happen that easy) the thing is a can take pictures while alt key is not active but allmost allways, nothing cool happens i only know that CHDK seems to be draining my batt away (again not a surprise at least for me), by nothing cool happens i mean pictures are taken the same way they are taken in normal mode (no CHDK) i have'nt used any raws since i still dont know how to save them or to open them on my pc (actually i have not even tryed) i'll try to see more cool stuff on my camera tomorrow so ferewell.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 02 / February / 2010, 22:26:13
The calibration of CHDK is off, like the maximum is 4000 but I don't know what the true battery capacity is.  But I think you can set it in the options.

Yeah me too I couldn't get the shutter speed to change, the ND filter doesn't seem to turn on and off, I saw a option for manual focus using zoom controls but that didn't work either :(

If you enable raw, it will save CRW files in your sd card and you can open them in "Raw Therapee" but they are pretty big files like 14mb and you can't exactly use them in photoshop so I don't like that :( I hope DNG gets fixed eventually.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 03 / February / 2010, 13:58:01
i've seen some numbers changing in the top left corner of the screen when using -zoom but it makes no difference so i gess the do nothing by now, it is possible that on badpixel-script or zebra-mode the lightsensors are not located at the right adresses, that maybe why none of them is working and is probbably the same for other stuff that is not working (now that I actually run CHDK I now whats going on and finally understand it). for stuff like raw not oppening in photoshop it must (at least thats what i think) be the way the camera itself is saving the files wich i think is something far more complex to me to try and figure out so I'm not even trying, I'll try to get some help to see what can I change on the overriding coding, but since I just started understanding the CHDK it will take me some time to actually know what will I do.
if something else happens I'll just post again.
edit:
those Numbers on that corner seem to be part of the edge overlay (wich doesent seem to have any difference yet), however i've got a lot of raws and they can't be oppened with terapee i think it wasn't insatalled as it should doesnt matter anyway.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 03 / February / 2010, 16:53:34
Make sure you just have RAW enabled, DNG and buffered write should be disabled.  Also take a shot, wait... and take another if you take them consecutive it will not work right.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 03 / February / 2010, 22:33:23
I was checking other threads and someone said that photoshop wasn't going to open a raw file unless it was opened with the asociated JPEG file, I don't know how does that works but they say that basically to open a raw file you need to open the normal picture (somehow, I don't get that thing yet, I dont use photoshop too much it got blasted when installed netframework2.0) together with the raw, allso the raws dont seem to work yet on raw therappe the seem like a blue-ish blur I'll reset all options and I am sure it will work that way.
Edit:
I played a little with this and just think I have to do lot more research about raws, thay all seem like they have multicolor noise
Title: Re: SD1200 IS Porting Thread
Post by: andrew on 10 / February / 2010, 17:23:05
Does anyone know if manual control of exposure/ISO/focus/etc. works yet?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 10 / February / 2010, 20:41:47
No, those features do not work.

Edit: Time variable mode DOES seem to work, if you go to the LUA scripts you can run it and as far as I can tell I have taken pictures with a very long and very short exposure.  However if you hit up or down for zoom it will crash the camera.

:( USB remote doesn't work.  I found it encouraging how it said "Set or Remote to take picture" so I plugged the USB into my computer and the camera unfortunately went into playback mode.

Oh well, at least I discovered a much better TV mode and raw...somewhat works.

Although I think its impossible, how might one try to approach fixing a specific bug?  For example DNG support, software controlled optical zoom, or making the USB remote functionality work.

Awesome!  LUA is more powerful than I thought!
Universal Tv works fine (don't use zoom)
Basic Time Lapse http://chdk.setepontos.com/index.php/topic,4722.0.html (http://chdk.setepontos.com/index.php/topic,4722.0.html)
Motion Detection http://chdk.setepontos.com/index.php/topic,2649.0.html (http://chdk.setepontos.com/index.php/topic,2649.0.html) (slow even with "shoot_half" added but not sure if I put it in right spot)

Is there a LUA script which just prints the button or event? I tried to modify the "input_1.lua" file and I was able to get it to print random values like left, right, set, etc but what I am hoping to see is something like "USB_PWR" or something when I connect the USB power. USB remote doesn't work but if we can force it to take a picture when it gets power then... that's good enough right?
Never mind, I don't think we have control over the USB yet because I modified the Universal TV script where I changed the "if key == "SET" then" to have "if get_usb_power then" and it just switches the camera into display mode instead.  So its probably not implemented yet.
Title: Re: SD1200 IS Porting Thread
Post by: andrew on 12 / February / 2010, 20:27:20
So LUA works to some extent? Interesting.

Two questions, since you seem to have done a lot of poking around:

1) How does RAW work? I have managed to snap some RAW shots, which leave me with a .JPG and a .CRW, which my computer (Linux) recognizes as a Canon RAW image. I can then use dng4ps2 (the windows version, under WINE) to get a DNG, using directions I think I got from this thread. Photoshop CS4 will not touch the the DNG file however, but F-Spot (Linux photo app, think Picasa) will display it. I think most of my other Linux apps are getting confused and thinking that it's a TIFF image.

Ideally I'd like to be able to have a good DNG, or, failing that, get something that DCRAW will read.

2) I'm very new to things like RAW and manual exposure on digital cameras. I took a photography class in high school and then again in college, and while the highschool class was a traditional 35mm B&W class that I used an SLR for, the college class was digital, but the thing was back then I had an A70 that only died on me a couple of years ago: and I was digicam-less until earlier this year when I got this one as a gift. The A70 allowed for some manual control that the SD1200IS apparently does not. If I want to do things roughly analogous to changing exposure and ISO in the film SLR world, what do I need out of CHDK to do that? I'm thinking like being able to take better night shots. Can I just capture a RAW and worry about it later? Or are there some features of CHDK that might help me, and furthermore, do those features currently work for the SD1200IS?

Sorry, I know this a lot and I sound n00bish, but I hope you can help.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 12 / February / 2010, 21:42:54
I think some apps treat it as a TIFF because DNG4PS2 appears to embed the full sized jpg into it as a "thumbnail" I used a command line raw utility and ended up extracting a 2mb JPG from the DNG so... the DNG produced by DNG2ps2 is a bit.. illogical?

You can actually do quite a bit with the stock firmware.  For example in the P mode, you can go for long exposure mode which will let you take a picture from 1 second up to 15 second.  It appears that CHDK manages to take pictures up to 64 seconds so 1-15sec stock 1/1000-64second with CHDK LUA.  So mount it on a tripod, set the ISO80, consider using a 2second timer then go for night shots.  

You can also change the exposure with the stock firmware.  In P mode, press up and you can change the exposure from -2ev to +2ev which will give you a little control over the exposure.  If you were to use the shutter speed script supplied by CHDK, you will be able to control the shutter speed but without an exposure meter its hard to guess the correct values to use.  This is as close to manual mode as we can get because the camera has a fixed iris (ranging from 2.8-3.9?) so the aperture only changes with the focal length and the only value we can really control is the shutter speed.

The captured RAW files allow you to tweak the images a bit more, you can change the exposure, have better control over the white balance, do highlight recovery, increase blacks or saturation, use fill light.  It can help fine tune an image but it wont do any miracles.  Currently the raw files captured by the camera aren't very good, in fact it appears that every other raw file produced is ruined possibly due to an unflushed buffer.  Ideally, we will one day be able to take pictures and have the camera save the files directly in DNG format where it will be more useful.  Unfortunately right now all we can really do is wait for KevB to return or wait for someone else to take over.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 13 / February / 2010, 20:24:58
If the raw+jpg file helps at all IMG_0760.zip - 15.84MB (http://www.zshare.net/download/72507712d3a4947d/)
I really think DNG4PS will work if we get the right settings because RawTherapee can display the image, F-Spot, and DCraw can recognize the file.  Of course those viewers are designed to look for things in the file, I guess the same way some movie players can play parts of a downloaded video without the headers.


Puahahaha
Sensor Size: 3720 x 2772
JPEG Size: 3648 x 2736 3684 x 2760
Active Zone x1, y1: 6, 12 0, 0
Active Zone x2, y2: 3690, 2736 3720, 2772
Black-White levels: 127 - 4095
Mosaic Type: Red, Green Green, Blue
Bits Per Unit: 12 bit
Active Zones if you paste the JPG onto the DNG you will notice the image shifts, we have 36 x 12 to adjust for this JPG is offset.  I came up with a offset of -12, 6 shift by moving the stacked images. Think we just need to mess with the active zones to make the jpg match with the raw.

Keep your default matrix, I grabbed this randomly from the SD880 profile after I accidentally overwrote my matrix.
Matrix: 0.759444 -0.270106 -0.111462 -0.005098 0.519067 0.041750 0.023861 0.044290 0.212756
Multiplicator: 0.0 0.0 0.0


Be sure to select SD1200 under camera type 3720x 2772 so DNG4PS will know what to use if you don't have the JPG files to go with it.

Edit:
DNG4PS is definitely working, DNG files can be created from just the raw file so I know it isn't a full sized embedded thumbnail.

Edit:
Used the source to build a PS.FI2 file, changed the values in camera_features.h to reflect the values used in DNG4PS.  Now the viewable DNG images created are purple, I believe I tried values for RGGB and GBRG and both produce the purple images.  Must be doing something wrong.  There are still a ton of corrupted raw files and Photoshop does not recognize the files which is very discouraging.  

Did searching and found this http://chdk.setepontos.com/index.php/topic,2187.msg29529.html#msg29529 (http://chdk.setepontos.com/index.php/topic,2187.msg29529.html#msg29529) states sometimes raws are stored in different raw addresses so the raw feature needs more work but might be something to look for.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 14 / February / 2010, 15:45:43
wzp guys, how do you use minimalistic script i've been changing numbers and the time doesn't seem to change h/e thanks for the tip on the scripts, i didn't knew they worked.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 14 / February / 2010, 16:27:59
I copied the text then saved it as a minitl.lua in the folder with the other scripts.

In alt mode, hit the Set button to bring up the script options, navigate to the script of choice, click set, then adjust the options.  Then while still in Alt mode, press the shutter (shutter starts the script) it should start taking pictures.  When you're done press the shutter again to stop the script.

How do we find out if this camera supports the extended shutter times?  From what I read, it sounds like extended shutters (beyond 64 seconds) would need a camera that supports the extended shutter and the CHDK to have a certain flag enabled for those extreme overrides, I currently can't find the topic on it.   

I wonder if its possible to merge KevB's code with the official CHDK SVN server?  Well, I KNOW it can be merged, I know camera.h was changed and the folder for IXUS 95 SD1200 was added.  So its all good just not sure if its OK in terms of use of code etc.  I don't see any reason why it shouldn't be added to the official server, a lot of the functionality is there already and I would say its at least in the alpha or beta stage... guess alpha because functionality was being added.
Title: Re: SD1200 IS Porting Thread
Post by: Floppik on 04 / March / 2010, 07:31:03
Hi! When it will be ready chdk? And whether it is possible to add management of a shutter and breaketing?
Title: Re: SD1200 IS Porting Thread
Post by: khazar011 on 05 / March / 2010, 10:04:58
Hi guys,

I believe that I found the second image buffer and the flag that controls the switch.
I worked with KevB's code and this is what you need to change in \platform\ixus95_sd1200\sub\100c\lib.c


char *hook_raw_image_addr()
{
   return (char*) (*(int*)(0x2890) ? 0x424B358C : 0x40F30D7C);
}

So, the second buffer is at 0x424B358C and flag is 0x2884 + 0xC.

I hope this helps...
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 06 / March / 2010, 02:32:57
Amazing!  I changed it and the RAW files are saving fine now!

I should go see if the badpixel.lua script runs better after that bug was fixed.  :)

Hmm I should mention it looks like the raw>DNG conversion is still a little off, adjusting the white balance doesn't seem to work on all levels instead only parts are responding to it.  So its possible to give someone blue hair through the white balance slider.   :lol  I think its possible the values for the color calibration or settings are just off.  It definitely needs work and all the pictures come out extra grainy

If anyone wants to go searching I did a search for DNG and found
\platform\ixus95_sd1200\sub\100c\stubs_min.S
has two lines that are 0xDEAD and are for "some_f_for_dng" and "second_ext_for_dng" so I guess that might be why DNG support doesn't work.  I used the values for DNG4PS on the camera and I can only get a strangely colored 14mb thumbnail.

Edit:  Do you mind sharing how you found the value?  I tried to look through the files and I assume its a complex process, I looked at the wiki and hoped the disassembly process was complete so values just needed to be transferred into the code.
Title: Re: SD1200 IS Porting Thread
Post by: rmagere on 15 / March / 2010, 03:05:26
All of this sounds very promising and exciting.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 18 / March / 2010, 11:36:20
Hi guys, i've been off for a while now, but here I am asking more stuff to go further on my "investigation".
the problem on my script was not running it, what i intend to do with it is to change the shutter speed or exposure time, but it seems pictures are been taken in 2s max, i wish to take a picture with shutter open for 30s or more, i've changed numbers and variables in the script but nothing seems to change on the picture itself, thanks for your replys.
edit: i forgot to say that the camera seems to stop working (as if the picture was still been taken) but the image proves that there has been no difference, if I move my hand infront of the camera there should appear a blur, it doesnt seems to apear by now.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 18 / March / 2010, 13:24:01
i've been checking a lot of stuff and using different exposure scripts, none of them seem to work but i will try to use them all.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 19 / March / 2010, 01:41:19
Um I don't know what version you are using, if you have tried to build it or what. 

If it helps, this is the version I am using in my camera right now.  I compiled it using KevB's code and added the update khazar011 found to fix the raws.  I messed with the values in an attempt to make DNG support work but otherwise I have not written any of this, just compiled and included scripts I found and used on this site. 
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 19 / March / 2010, 21:59:33
thanks for that, I dont know if the build I'm using is the problem, now that i think of it that is haighly posible I'll try that and see if it works better.
edit: that was a great idea
it is now working and also some other scripts are going better, i should have seen this before thanks for finding it out for me.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 20 / March / 2010, 02:15:21
I downloaded the files from the trunk, pasted in the camera.h and the files from the platform folder.. then went on a spree of changing files with the version from KevB and just kept getting errors.  I guess there is a lot more to it than just the folder and the few files with reference to sd1200 :(

There were a few bugs I was hoping the update would fix, namely the "All raws end up in 100Canon" folder but no luck compiling :( I suppose I can experiment more but at this point I'm not sure what was changed and if its possible to merge all of kevB's work with the official CHDK trunk.  Ok it has to be possible, but it would be hard to figure out where all the work went. Although I must say he put a lot into it already.  I have no idea where all those values come from  :blink:
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 20 / March / 2010, 22:31:11
do you mean that raws are not getting saved in a different folder than that of the pictures?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 20 / March / 2010, 22:58:28
Yeah, I think its a bug in CHDK
I made a new folder 101Canon so the JPG ends up in 101 and the raws are in 100Canon :(
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 21 / March / 2010, 06:40:47
Yeah, I think its a bug in CHDK
I made a new folder 101Canon so the JPG ends up in 101 and the raws are in 100Canon :(
A feature, not a bug ;)
--> http://chdk.wikia.com/wiki/CHDK_User_Manual#RAW_Parameters (http://chdk.wikia.com/wiki/CHDK_User_Manual#RAW_Parameters)
Quote
RAW File in Dir with JPEG Enable [?] / Disable [ ]
Saves RAW files in the same folder as the JPEG files. If disabled then RAW files are always saved in the 100CANON folder.
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fimages3.wikia.nocookie.net%2F__cb20080702211009%2Fchdk%2Fimages%2F8%2F8c%2FAllbest51-425_SD400_RAWMenu.jpg&hash=0e3ce97f09b572331d26f1f9ce2d7c13)

Title: Re: SD1200 IS Porting Thread
Post by: tillo on 21 / March / 2010, 12:37:18
that is why I ask, i've been saving jpeg raws in the same 101 folder but now that I have been using them i think that is not really convinient for me as I am using jpeg they confuse me when about to open.
however I just disactivated raw file in dir with jpeg and it stoped saving raws in the same folder, if you can't do it backwards it would be really weird.
i also want to ask if someone was able to stop the autofocus, i think that if autofocus stops then movement triggered photos wouldn't be so slow, i am also trying to mix the codes from surveilance camera and exposure to make it more customizable, it will take me a while though, if you know anything about autofocus it would help me a lot to know.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 21 / March / 2010, 13:48:21
Haha ohh thank you ^^

I just noticed the "bad pixel removal" too and I will try that later as well, I thought it was part of the DNG support but since it is part of that for CRW I will try it.

@tillo its possible to lock the focus (half press shutter + left on dpad) or set the focus to infinity.  But as far as I know, every focus or zoom type operation causes the camera to freeze.

I think the page I got the motion script from mentioned a line "press ( "shoot_half" )" which is supposed to make it take the picture faster, I tried putting it right before shoot_full but I suppose if you try moving it to an earlier part of the script it might make a difference.  But I am not sure if it even makes a difference.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 21 / March / 2010, 18:31:12
Wow I didn't knew about locking the focus i may try to add the half_shoot + left on a scrip (dont knwo if i can press two keys at the same time on a scrip but will try), that of the half_shoot i also saw it on the script used to catch lightning (MD LightningA) and i have started doing weird stuff on my mixed script, as you said it freezes the camera to focus via script, I have been trying to build a script from near zero using only part of the script to motion detect and then typing directly new custimizable variables using the tv script that you posted here with the build you are using and the farthest I have gotten is before taken the picture (grids and motion detect part seems to be working) camera just freezes, maybe we need to develop a more specific build for this camera or wait untill another experienced coder does to get to do this kind of stuff.
sorry i just checked my camera again and it seems a picture was taken when it froze but i have no idea if exposure was overriden.
edit: h ave you seen that all motion scrips, even when taking photos fast, use a lot of exposure, that is why i want to mix tv and motion, i dont seem to find a way to make the expotion shorter (it would help me in taking a picture of a sakate event or some other sports) i think that happens because the only way to make the script take the photo fast is by pressing the shutter halfway down wich makes the camerra to focus again, even so it seems like slow reaction time also takes pictures with long exposures, so far i havent found a way to change that, not in the scripts or in the camera original functions, as far as I know all that happens because of the focal lenght, wich I dont seem to be able to fix in this camera (without a crash or freeze as we discussed before) so by now I am not sure what to do next.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 22 / March / 2010, 04:05:40
What if you start the script then press alt, do half press + left (focus lock), then do half press + up (exposure lock), then press alt to bring up the script again so you can run it with the two settings enabled?

:( yeah we really do need someone to continue the port for the camera.  Sadly this stuff is way beyond me. I am almost done with a cs degree but the low level hardware interaction with the code which makes it more difficult.  Not to mention I don't know how they get the hex values to control different aspects of the camera from the firmware dump.  If I did, I would try looking for the values such as focus, then compare it to the ones in this port.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 22 / March / 2010, 12:51:27
well i tried locking the focus and it stills not working, which may mean that maybe focus is not what is bringing up those bad pictures, i come again to the conclussion that the exposure is the problem, i have also tried using the lowest exposure setting from the camera P mode but it seems to make no change, I am also having troubles with the scropst because the exposure (tv) script is written in lua and the scrip made for movement shoot is written in uBasic (it is .bas) I am not really skilled with lua nor uBasic but i have worked better with lua so I am now trying to "translate" to lua (I haven't done anything usefull yet).
one of the most important CHDK projects that made me want to try it was an automated laser trigger but we do not have the remote function either so we need to try harder, you wrote you connected the camera on the pc, How many chances are there that the camara reacts different from a remote circuit than from a pc? we may have to try with a circuit and see what happens.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 22 / March / 2010, 13:03:12
I tried connecting to a PC and connecting to a Ipod charger.  Both would put the camera into playback mode.  I think they have to be able to "hijack" the USB sense in order to use it as a remote.  I saw it in another thread where they stated they managed to disable the internal function... I assume we don't have the option to disable it yet because it has not been ported to the code yet.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 22 / March / 2010, 19:06:26
i tried conecting the camera to a usb I had cutoff montas ago and it went to playback mode when it percieved the change of voltage (the pin 1 and 4  where connected to their respective + or- ends of a battery) this means that the camera is originally programed like, if usb_voltage > 3v then send to playback mode or something like that (I wrote 3v only because i am not sure about the voltage of the batteries I used but I think it was 3.5v or something) with that I suppose that CHDK in other cameras changes that programing from playback mode to usb shutter, i gess what we need to do is find out where is that if usb voltage to change it into remote, I have njo idea how to do so but I'll read that kind of stuff from another cameras with the function enabled (I will look into another digic IV thread if possible).
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 29 / March / 2010, 17:48:49
I have been trying to do a lot of changes on scripts and looking for info on the usb shutter but I have found nothing yet, I would like to have some help from a coder but it just seems thera are no big coders with this kind of camera what else can we do?
Is there a way to get a script to take a picture just before going to playback mode?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 01 / April / 2010, 21:06:03
The SD1200 is based on the SD780 http://chdk.wikia.com/wiki/SD780IS (http://chdk.wikia.com/wiki/SD780IS) or sd990
I don't know if this port was based off of HarpoMa's code but that version doesn't work http://chdk.setepontos.com/index.php/topic,3995.msg48103.html#msg48103 (http://chdk.setepontos.com/index.php/topic,3995.msg48103.html#msg48103)

If we can find the one that does work, we can consider copying the code over in hopes it works.  
Title: Re: SD1200 IS Porting Thread
Post by: hennell on 04 / April / 2010, 08:18:10
Thanks to all who have been working/experimenting with this - been fiddling for a few days to see what works and doesn't (so far managed to take some Raw pics (I think :D) just can't work out to open them...) pretty impressed with all the options CHDK adds (even if they don't work yet).

Out of curiosity; am I right in thinking everyone still reading this thread has very limited programing and/or CHDK experience? Does anyone know what has to be done to get more of the features working?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 04 / April / 2010, 12:48:14
You can use DNG4PS http://chdk.setepontos.com/index.php/topic,4324.msg46735.html#msg46735 (http://chdk.setepontos.com/index.php/topic,4324.msg46735.html#msg46735) with those settings to make normal DNG files, although I am still not 100% sure if the values are correct.  Otherwise you can view the raw with Raw Therapee

Yeah that's pretty much where we are at, we are pretty limited in this.  I think we need to have someone who knows some assembly to continue to look over the firmware dump in IDA to get more and correct the values.  From what I understand when you enable something, like the ND filter, it knows to trigger 0xDEAD123 or something and the ND filter will pop in place.  I'm guessing some of the values are wrong because its calculated from an offset from known values. Good example is this http://chdk.setepontos.com/index.php/topic,4324.msg47169.html#msg47169 (http://chdk.setepontos.com/index.php/topic,4324.msg47169.html#msg47169) and its like wow because I have no idea how they figured that out
Title: Re: SD1200 IS Porting Thread
Post by: khazar011 on 07 / April / 2010, 11:58:32
Hi awdark,

I haven't been here in a while, sorry for the late response.
I'll try to explain how I found those values. I'm no expert in assembly code or IDA, I just followed the guidelines that I found here about the firmware dump disassembly procedure.
Second buffer address was relatively easy to find, it was in one of the tables. I switched the existing value with the new one until I found the right address, trial and error method...
Now I had both buffer addresses but I still needed to find the flag address and offset used. To get something meaningful from assembly spaghetti code I had to compare it with already ported camera assembly code. I used the firmware dumps of both SD780 and SDD990 and I figured what was the base address of a flag. It was in one of the tables again but the offset was different from both of these cameras. So I just dumped a chunk of the memory in a file each time I would take a shot and bingo, there was one byte that changed value from 0 to 1 and back every time and the offset was 0xC.
I hope that this makes sense, you need some knowledge of assembler and good knowledge of C to achieve anything here.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 13 / April / 2010, 13:58:03
is there a way to make a script that saves in a txt file all the addreses that get active while the script is running so when we get usb power it saves the name and addres of usb command so we can change it to shutter? I say this because I read something like it in for developers thread at wikia that said something like that but my pc died so i couldnt check anything else here for a whle, do some of you know wat am I talking about?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 14 / April / 2010, 03:58:12
@khazar011 I think I have a understanding of what you did now, very cool but unfortunately beyond me.  

@tillo that is a very interesting thought actually http://chdk.wikia.com/wiki/Adding_Firmware_Features#Finding_RAM_addresses (http://chdk.wikia.com/wiki/Adding_Firmware_Features#Finding_RAM_addresses) something like that right?  I wonder if there would be a way, with a script or something to just show everything accessed as we do a certain function. Like a gameshark, start the search, change a value, compare, change value... and hope you can lock your ammo count.

As far as I understand, that function needs the developer to enter the ram address or function of interest to debug so when they enable the "debug misc values" that specific item of interest will be displayed. I went to that file and it appears KevB did use it for some functions and I unknowingly compiled it with "get_usb_power(1)" and a few other debug functions which I think is address, focus_busy, and zoom_busy but I don't know how to use it for anything useful. :(
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 15 / April / 2010, 18:14:08
well that seems really interesting awdark but I think I've found what I read before (I'm not really sure if it is the same) but this seems like it may be useful here it is:
http://chdk.wikia.com/wiki/Adding_support_for_a_new_camera#platform.2F.3Ccamera.3E.2Fkbd.c (http://chdk.wikia.com/wiki/Adding_support_for_a_new_camera#platform.2F.3Ccamera.3E.2Fkbd.c)
I do not know if it has something to do with what we are looking for but I haven't used that because I don't really know if that is to be added before compiling (that is what i think) and I don't know to compile either (I tried  but failed before) I haven't read the whole thread yet as my pc broke but I will do so when I have a chance soon, as for trying to compile it again I changed back to linux after getting my pc working so I need to download programs again (and yet again I still have to learn about that) peopple please check the link and tell us if you think if that is usefull.
I'll get back to modify scripts and read stuff on the wiki to see if i find something useful.
sorry for the too-long post (I just felt like it)
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 16 / April / 2010, 02:46:41
I tried to do that, I think the gui.c file was modified before so I did mess with the code a little bit.

I will include the PS.fi2 file but this is specifically to let tillo try, it just has some permanent OSD values such as
                               u:get_usb_power
1: psysw_status[0]    1:conf.mem_view_addr_init
2: psysw_status[1]    f:focus busy
3: psysw_status[2]    z:zoom busy

And to make your life easier these are the values for 3 "psysw_status[2]"
408fff none
448fff usb
40afdf right
408f7f up
408fbf down
408fef left
408dff disp
408bff menu
408eff func set

Reflecting the values in kbd.c "static KeyMap keymap[] = {"
408fff - 408f7f = 80 for up

and the line #define USB_MASK (0x40000) should already be correct unless its supposed to be FFFFFFFFFFFC0000.  I tried to add the zeros in front to look like the other values "{ 2, KEY_UP         , 0x00000080 }," but that didn't make a difference.  The values for a locked SD card was defined as "#define SD_READONLY_FLAG (0x20000)" and it does not function either. 
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 23 / April / 2010, 20:12:07
hi people, I'm sorry i didn't post earlier but I still have problems with my pc, it is not well fixed this is kinda provisional, however, I've been playing with this on my camera checking the debug on screen and all that stuff, but I haven't learned anything from it yet, I was also trying to get some info from the usb power trough OSD and debug but found nothing useful, however, I figured out an easy way to sync the camera shutter with another camera without having to actually activate usb remote, I noticed that when my camera was in picture mode and plugged a usb on it it went to playback (we already discussed that before) but also it comes back to picture mode when the usb power comes out (unplug it) so I tried loading a motion detection script run it while usb was plugged and then unplug, it took a picture (sensitivity was really high), it is really slow but it would let someone to sync 2 cameras I think and if we study that (as a provisional fix for the usb remote missing feature) we could set a timer circuit so it sends a signal to a flash after the lag lapse that the camera has when changing back to picture mode, that would be essentially perfect for short exposures pictures in mid-dark places (because exposure can be shortened a lot via scripts and pictures will be darkened) being that useful to capture fast moving objects, all that is just a theory but I don't really know what else can I we do besides of keep reading documentation until we learn some more of this or get help from a more experienced coder.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 24 / April / 2010, 17:24:01
Actually its half way there...
I don't really want to look into it right now, but if the camera is in Alt mode and you plug in/unplug the cable the camera will act like the shutter was pressed and run a script.  Is it supposed to do that or is it only supposed to do that in the non-alt mode?  I'm not sure.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 26 / April / 2010, 20:26:22
do you mean that the script auto started? I haven't seen that on my camera.
I think it may be because the camera by changing into picture mode acts as a half-press on trigger but still that wouldn't start the script so I think that is kinda weird (if I got it the right way) that may become useful too if we manage to learn why it happens or something like that.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 26 / April / 2010, 21:00:57
Ok so I realized the code I changed in kbd.c caused that "bug".  It still doesn't do us any good but when the camera is in Alt mode: I can plug in the usb (goes into viewer mode), unplug (the camera runs the most recent script just like pressing the shutter button in the alt mode.

Line 29 I added this:
#define NEW_SS (0x2000)  // saw in other cameras wanted to try
#define SD_READONLY_FLAG (0x20000)

#define USB_MASK (0x40000)
#define USB_REG 2 //also saw in other cameras

I think the thing that really caused that problem was the Keymap matrix I messed with
{ 2, KEY_SHOOT_FULL , 0x00000003 },  // One camera had the value as 2, default was 1 for both
{ 2, KEY_SHOOT_HALF , 0x00000001 },

So.. unfortunately it doesn't get us anywhere but I think we at least know the value for the USB is known, but we just can't seem to make the camera ignore it.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 26 / April / 2010, 21:57:42
does the usb code appear anywhere else? I think that those codes we have there are only definitions (not only because they say define but also because they have no further instructions) if the usb code is actually somewhere else then the instruction for going into view mode might be there, that line should be replaced with an argument to make it take the picture (probably deleting the line would be enough and the script would do the rest) so we may need to look up for that usb again, i can't still help because I don't even know what is the program I should use in linux (I can't find any download links either) but tell me if you know what can I use to help with this.
PD: people from the forums I'm starting to think that you are loosing the faith on this camera but we'll make it sooner or later so keep posting here.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 27 / April / 2010, 01:16:36
I sorta looked and considered doing a brute force approach to just have a if usb, then shutter just to test for the heck of it.  Or have it output something on screen but I couldn't manage.

I just followed the guide on building CHDK, downloaded gcc for windows, and just compiled using
gmake PLATFORM=ixus95_sd1200 PLATFORMSUB=100C fir

Have you taken a look at the guide for linux? http://chdk.wikia.com/wiki/Compiling_CHDK_under_Linux (http://chdk.wikia.com/wiki/Compiling_CHDK_under_Linux)

I downloaded everything in http://github.com/barryk/CHDK-SD1200 (http://github.com/barryk/CHDK-SD1200) with the "download sources" link at the top right and then compiled it.  I don't think I made any useful changes so the only thing you need to revise is this http://chdk.setepontos.com/index.php/topic,4324.msg47169.html#msg47169 (http://chdk.setepontos.com/index.php/topic,4324.msg47169.html#msg47169) I did change some values in camera_features.h to reflect the values I found, but I think that was just for DNG and it doesn't work still.
I suppose if you were to do it properly, you can connect to the SVN directly and make changes to that one.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 27 / April / 2010, 11:22:56
no, I haven't been on linux guide (how could I've missed that :) ). When you say that you couldn't manage, does that mean it didn't worked or you are not sure where to place that (if so we may be able to put something trough OSD or change alt key to usb power just to give it a try)?
I will try linux guide and try to change values myself too if I can make it work.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 27 / April / 2010, 16:17:54
Ok I installed all what the linux guide said and it didn't worked too much (I'm still a noob in linux and some of the files where changed from the repositories so I had to do some changes on the installing some of them didn't went well) however I installed CHDK compiler GUI (which didn't worked at first) and made up some directories the thing told me where missing et voila! I can finally compile so I know what I am doing in the codes and will be able to try it all on the camera (by now I haven't been able to create the folder for compiled stuff but I bet that's easy) so I will look for that usb somewhere else and see what can I do.
I also read a little more on "adding support for a new camera" and it says that defining USB_REG is necessary, I can't find any definition for that so my next step is looking over to define that (somehow) and see if it makes any visible change.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 27 / April / 2010, 19:08:04
according to "adding support for a new camera" to activate usb remote triggers (and raw files) there are two task changed in capt_seq.c those task are capt_seq_task() and exp_drv_task() I don't understand this tasks completely but I will look for something indicating the change to view mode or something about USB signal.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 01 / May / 2010, 22:32:38
In this much time I can't seem to find anything useful, I may have missed something or be looking in the wrong place so I'm getting back to reading some more documentation and other cameras threads too and see if I can find any info that can become in handy for us.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 12 / May / 2010, 02:40:37
For diskboot startup, I suggest commenting out
Quote
"                BL      sub_FFC11B20\n"
in boot.c taskcreate_Startup_my()
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 12 / May / 2010, 17:45:42
I may try that since I haven't been able to do what I was trying to, anyway anything may be useful.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 12 / May / 2010, 17:52:36
I have a question for anyone who comes here, do you have any idea why when using the flash on chdk (usually scripts) the camera will freeze? i dont know why is my camera freezing anytime i use flash but if someone has any Idea can you let me know?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 13 / May / 2010, 19:58:06
Most likely the value for the flash was not written properly.  I say that because things like manual focus and some of the other features cause the camera to crash and freeze up as well.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 15 / May / 2010, 19:32:50
For diskboot startup, I suggest commenting out
Quote
"                BL      sub_FFC11B20\n"
in boot.c taskcreate_Startup_my()
Ooops, this is the wrong one. That would be for the play/rec power up handling.

For diskboot, it should be sub_FFC18B9C in task_Startup_my() that you want to comment out.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 15 / May / 2010, 20:11:37
I tried commenting that line out and compiled. 
I have a 2gb SD card formatted with fat16.  When I put in the locked card with the diskboot file it just starts normally and displays card locked. 

Since starting normally using the PS.FI2 does not get around the SD write protect I suspect there are other things in the way including the write protect check and bypass
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 15 / May / 2010, 21:01:11
I tried commenting that line out and compiled. 
I have a 2gb SD card formatted with fat16.  When I put in the locked card with the diskboot file it just starts normally and displays card locked. 
I was told that the current version crashes. If you get a card locked instead with only this change, that means it's a step in the right direction. If you simply get "card locked" with any diskboot, it may not be loading at all (BOOTDISK string not in place, not encoded with dancing bits, or other problem)
Quote
Since starting normally using the PS.FI2 does not get around the SD write protect I suspect there are other things in the way including the write protect check and bypass
The write protect override is done in the keyboard task. See SD_READONLY_FLAG
You should be able to find this by comparing the values of physw_status with a locked and unlocked card.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 17 / May / 2010, 15:36:41
As far as I know the diskboot.bin just has not worked so far and we primarily use it with the PS.fi2 boot method.

I didn't verify the SD_ReadOnly_flag but I did double check most of the other values including the USB back in this post http://chdk.setepontos.com/index.php/topic,4324.msg48768.html#msg48768 (http://chdk.setepontos.com/index.php/topic,4324.msg48768.html#msg48768) but this stuff is still confusing to me so I haven't been able to make use of anything I found.

Is there anything we normally search for when it is an issue to do with the USB remote? 
The functions tillo pointed out
capt_seq.c those task are capt_seq_task() and exp_drv_task()  don't exist in the file and I presume its just slightly different since this chdk was based on that sd780 and sd990
Title: Re: SD1200 IS Porting Thread
Post by: fhic on 19 / May / 2010, 18:10:22
As far as I know the diskboot.bin just has not worked so far and we primarily use it with the PS.fi2 boot method.

A simple ``strings PRIMARY.BIN | grep -i boot'' give a lot on thigs, but I can read ``BOOTDISK'',
``DISKBOOT.BIN'', and ``A/boot.req''... but I have'nt succesfully make chdk load automatically
at boot... Maybe not got fat version :( fat32 )

If anyway I already know what do Vers.req,,i'm currious
about what can do ``strings...| grep \\.req'':
  A/uartr.req
  A/boot.req
  A/script.req
... and even ver.req ??

Well, nice work, I'm not sure really understanding what I do (and even why;)
but thanks, it's nice!
Title: Re: SD1200 IS Porting Thread
Post by: jiggling_john on 22 / May / 2010, 04:36:29
So what's the current progress? There doesn't seem to have been anything happening since last october? Are people still working on this...?
Title: Re: SD1200 IS Porting Thread
Post by: gaurav on 22 / May / 2010, 05:23:19
@ jiggling_john--- dude m waiting for chdk from last 1 year for this cam :'(...and check this forum daily ...and ya guys are working on it...hope this will come out soon..
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 22 / May / 2010, 13:04:36
@jiggling_john  not as much as we hope. We don't have a dedicated programmer working on it so its stuck.  However we have gotten a few bug fixes, the raw files are consistently working now and we can convert the RAW files in DNG4PS. We know scripts work and we know we can do long shutters for over a minute with the script, scripts are still buggy but somewhat usable. 

I would like to see this merged with the main trunk rather than it being hosted on another SVN server but I don't think it will be very simple to do. I tried merging the files from the SVN with the files from KevB and I got tons of compiler errors.  I don't know what was changed and I don't think anyone really wants to go through the files to see whats different.
Title: Re: SD1200 IS Porting Thread
Post by: AirForceOne on 23 / May / 2010, 21:21:29
I checked KevB's profile and it appears he has not been active in the forums since last December. I am reading scattered bugs here and there in this thread.

Can someone make three lists:

1) What functions are fully working
2) What functions are half working/contain bugs
           - descibe the bug as well
3) What functions still need to be ported

I'm hoping if we organize everything, someone will eventually come along and finish the port.

Awdark, you are able to fix some of the bugs but unable to merge the code with the main trunk. Is it possible to create a new github repository and put your code there?
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 25 / May / 2010, 14:10:18
OK that is a good idea, we have to have a checklist of what we have, need and are working on.
first what we have:
1. In this camera CHDK is able to use scripts, as long as the scripts have nothing to do with zoom flash or aperture, they work great (I was able to take a picture of a lightning that is completely clear and pretty cool light drawings over 60s and that was more than needed so scripts are perfect under above criteria).
2. CHDK is also able to save raws in the way they should be (as far as I've tried they have no errors and even when they usually corrupt when taking pictures so fast I haven't had any corruption problem)
3. games run as they should, but still they are useless for taking pictures so let's forget about those.
4. CHDK can perform some simple tasks (and basic tasks) like debugging and osd stuff works out fine (osd stuff such as the histogram battery meter and other osd useful features) I haven't tried using any grids but as other things in osd I thing they will work (someone try them so we know).
5. any other thing i missed and/or didn't mentioned because forgot or thought was irrelevant.
now what we don't have (and some of then obviously are needed)
1. maybe the most important or at least the one that we have placed so much effort to get is the usb shutter (remote) we have looked over other threads looking for info, etc. but as we have no experienced coders in this we move pretty slowly.
2. other important feature (if we can call it like that) that we are currently trying to get is the ability of CHDK to autoboot on camera start by locking the card.
3. this is another useful feature we are missing is the overriding of the focus (for me it would be really useful and I bet that for some of you it would be too)
4. we are also missing the capability of zooming directly from CHDK and doing so from the camera without alt mode sometimes lags the camera (sometimes but not always at least in my case) I am not sure what happens when using digital zoom but it lags the camera too (if it happens the camera is lagged a lot more than optical zoom).
5. flash freezes the camera almost completely when using CHDK and I say almost because the camera acts weird and shut itself off after half a minute or so (flashing before shutting down and don't remember but I think the lens keeps extended) no picture is taken after this (but the camera does something so it is not totally frozen is it?)
6. we can't use zebra parameters.
7. we can't use edge overlay either.
8. again I may have missed other things point them out if you think they are important and if you can look for any info on it (but lets try looking one answer at a time so lets start looking for remote or startup boot)
as for what we have worked on now we have been looking and using trial & error on usb remote, boot on startup and while kevb was still active we tried to figure out zebra mode.
Title: Re: SD1200 IS Porting Thread
Post by: AirForceOne on 25 / May / 2010, 20:44:51
Okay below is what we have so far. I just copied and pasted the list of features from the manual and added new features mentioned in this thread. Refer to the number (or refer to a new feature) and let me know of any changes to make as we go along and I will keep updating the list and post the modified one every time. Tillo, what CHDK code did you use? Did you modify any of the original code written by the original poster? Let's keep up the good work. If we keep things organized, we will be able to attack each bug one by one, so let's work together guys!

BUGS:
1) Flash - Freezes camera

FEATURES:
1) Shutter-priority (Tv) exposure - via shutter value override feature
2) Aperture-priority (Av) exposure - via aperture value override feature
3) Shooting in RAW, with RAW Average, RAW Sum, and RAW Develop features,
    save as .DNG (Digital Negative for wider compatibility) - WORKS
4) Live histogram (RGB, blended, luminance and for each RGB channel)- WORKS
5) Zebra mode (a live view of over and under-exposed areas of your picture)
    - Using Zebra parameters - DOES NOT WORK
6) Depth-of-field (DOF)-calculator, Hyperfocal-calculator with instant Hyperfocal and
    Infinity focus-set, and more
7) Battery indicator - WORKS
8 ) RAW and Video space-remaining gauges with custom low-limit alerts
9) USB cable and wireless remote shutter release
    - USB cable - DOES NOT WORK
10) Motion-detection trigger - automatically ?res camera on motion detection. (Able to
      capture lightning strikes.)
11) Customizable high-speed continuous (burst) Shutter-based (Tv), aperture-based (Av) and
      ISO-based exposure bracketing (unlimited shots)
12) Focus bracketing (unlimited shots)
13) Adjustable Video quality and size (compression) adjustable while recording
14) Elimination of 1 GB video-size limit (for many DigicII cameras)
15) Zoom during video function (for cameras without this feature)
16) Shutter, Aperture, and ISO Overrides
17) Ultra-long shutter speeds - up to 64 seconds (much longer for supported cameras)
18) Ultra-fast shutter speeds - up to 1/10,000" and higher
19) High-speed Flash Sync at all speeds up to 1/64,000 of a second
20) Custom user-editable visible Grids for framing, cropping, and alignment
21) File browser
22) Text reader
23) Calendar
24) Games - WORKS
25) Fully customizable CHDK display, info placement, user-colors, fonts in menus, etc.
26) Custom CHDK User Menu (for instant recall of up to 10 favorite functions)
27) Scripts execution - including exposure bracketing, focus bracketing, intervalometer, etc
    - Script execution - WORKS
    - Script zoom - DOES NOT WORK
    - Script aperture - DOES NOT WORK
28) Edge Overlay - DOES NOT WORK
29) Focus Override - DOES NOT WORK
30) CHDK Autoboot - DOES NOT WORK
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 25 / May / 2010, 21:23:54
I didn't make any useful changes besides the one change to make the raws work as noted here
http://chdk.setepontos.com/index.php/topic,4324.msg49482.html#msg49482 (http://chdk.setepontos.com/index.php/topic,4324.msg49482.html#msg49482) I was basically just messing with the code trying to correct things but in the end those things didn't make a difference.

I think tillo is using the version of CHDK I posted here http://chdk.setepontos.com/index.php/topic,4324.msg47618.html#msg47618 (http://chdk.setepontos.com/index.php/topic,4324.msg47618.html#msg47618) which was the compiled version of KevB's code with khazar011's raw fix. 
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 25 / May / 2010, 22:22:10
yes I am awdark and in the list by AirForceOne it says aperture priority, is that a different version? I thought we couldn't achieve aperture overrides as this camera had a fixed aperture, I haven't been able to use CHDK native shutter i think it would be good that he made an edit on the post with doesn't work (I liked the red thing idea), so everything stills organized on his own post and after we get the whole list repost it.
I almost forget about modifying we are still having some problems on compiling what we have found on other threads (at least we have seen no changes after changing the code) so I am still using the backup I had of the version awdark posted before.
Title: Re: SD1200 IS Porting Thread
Post by: AirForceOne on 25 / May / 2010, 23:44:53
Tillo, are you saying that overriding the shutter and aperture is not possible for this model?

I organized the list a little bit better:

BUGS:
1) Flash - Freezes camera

Overrides:
1) Shooting in RAW, with RAW Average, RAW Sum, and RAW Develop features - WORKS
2) Shutter-priority (Tv) exposure - via shutter value override feature
3) Aperture-priority (Av) exposure - via aperture value override feature
4) Shutter, Aperture, and ISO Overrides
    - Aperture override - NOT POSSIBLE FOR THIS MODEL
    - Shutter override - DOES NOT WORK
5) Ultra-long shutter speeds - up to 64 seconds, and much longer on some cameras.
6) Ultra-fast shutter speeds - up to 1/10,000" and higher
7) Customizable high-speed continuous (burst) Shutter-based (Tv), aperture-based (Av) and ISO-based exposure bracketing (unlimited shots)
8 ) Focus bracketing (unlimited shots)
9) High-speed Flash Sync at all speeds up to 1/64,000 second (even faster in some cameras)
10) Focus Override - DOES NOT WORK

Scripting:
1) Scripts execution - including exposure bracketing, focus bracketing, intervalometer and more)
    - Script execution - WORKS
    - Script zoom - DOES NOT WORK
    - Script aperture - DOES NOT WORK
2) Motion-detection trigger - automatically fires camera on motion detection. (Fast enough to capture lightning strikes.)
3) USB cable remote shutter release - DOES NOT WORK

Interface improvements:
1) Custom user-editable visible Grids for framing, cropping, and alignment
2) Fully customizable CHDK display, info placement, user-colors, fonts in menus, etc.
3) Zebra mode (a live view of over and under-exposed areas of your picture)
    - Using zebra parameters - DOES NOT WORK
4) Battery indicator - WORKS
5) Live histogram (RGB, blended, luminance and for each RGB channel) - WORKS
6) RAW and Video space-remaining gauges with custom low-limit alerts
7) Custom CHDK user menu (for instant recall of up to 10 favorite functions)

Extra Video Features:
1) 99 constant bit-rate and 10 constant-quality video compression levels
2) Elimination of 1 Gig video-size limit
3) Zoom during video function (for cameras without this feature)

Apps and extras:
1) Depth-of-field (DOF)-calculator, Hyperfocal-calculator with instant Hyperfocal and Infinity focus-set, and more
2) File browser
3) Text reader
4) Calendar
5) Some fun tools and games - WORKS
6) Edge Overlay - DOES NOT WORK
7) CHDK Autoboot - DOES NOT WORK
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 26 / May / 2010, 16:28:32
Yes AirForceOne but I am not sure that's what I've read and everybody seems to be sure about this, but there's still a small possibility this camera just works in a different way, however it easy to think that it is simply not-possible because the aperture seems to be somehow attached to zooming (when zooming farther aperture is bigger ranging from 2.8 on 1x to 4.9 in 3x optical zoom), I will try to buy an adapter and some lenses for this camera when i have a chance and see the quality of the pictures so I could say if changing aperture manually on an adapted lens is useful or somehow worth the money. I have links to the amazon article if someone is interested on trying (I'm wishing to find more feedback about the adapter and lenses before trying it myself)
if someone has tried them before post what you think of it.
Title: Re: SD1200 IS Porting Thread
Post by: AirForceOne on 27 / May / 2010, 03:01:55
Oh, okay. How about the shutter? Can we override that?
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 27 / May / 2010, 22:43:14
I have been able to override shutter speed trough scripts but the native capability of overriding that setting on CHDK is not working, as scripts work out fine for this I think we may leave that aside by now. I gess that means that in this camera (by now) CHDK can't override anything more than the capability of RAW picturing (at least not natively) as this overrides work under other cameras we would like to work on them too.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 28 / May / 2010, 13:54:08
Yes AirForceOne but I am not sure that's what I've read and everybody seems to be sure about this, but there's still a small possibility this camera just works in a different way, however it easy to think that it is simply not-possible because the aperture seems to be somehow attached to zooming (when zooming farther aperture is bigger ranging from 2.8 on 1x to 4.9 in 3x optical zoom), I will try to buy an adapter and some lenses for this camera when i have a chance and see the quality of the pictures so I could say if changing aperture manually on an adapted lens is useful or somehow worth the money. I have links to the amazon article if someone is interested on trying (I'm wishing to find more feedback about the adapter and lenses before trying it myself)
if someone has tried them before post what you think of it.

Pretty sure the camera simply doesn't have an aperture diaphragm.  On the higher end cameras there are like 5 blades that adjust the aperture but this type doesn't have it and is wide open all the time.  Instead this type of camera has a ND filter which is electronically controlled and will pop in place when needed. It is like a pair of sunglasses which darkens the image to reduce the light to the sensor but will not give you any of the effects you get from closing the aperture (such as increased dof). 

The reason the aperture does change has to do with the way the lens behaves when you zoom.  So the F goes up as you zoom which is why I rarely use the zoom. More light = lower iso!

I don't know about those lens attachments, generally they seem frowned upon in the dSLR world for anything more than fun
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 29 / May / 2010, 00:13:16
I didn't knew about the filter, however about the adapter I was mentioning I think it is cheap 17$ and a pretty big kit for 60$ (3 filters the adapter a tripod a bag and some other stuff) here is a link for the cheapest kit if you want to check out
http://www.amazon.com/Zeikos-Universal-Telephoto-Accessory-PowerShot/dp/B002USQTAK (http://www.amazon.com/Zeikos-Universal-Telephoto-Accessory-PowerShot/dp/B002USQTAK)
the reason it haven't convinced me is because I cant find any feedback of it no owners have posted anything bot it looks really promising even more if I mod an attachment to make sure it becomes isolated from outside light, I'll keep looking for feedback tough.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 03 / June / 2010, 17:03:03
so guys, Have someone find anything about the usb remote we haven't discussed yet? anything may be helpful we just need to know a little more about it.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 08 / June / 2010, 12:34:18
Since I got this camera recently, I am interested in making further progress in this port.

I have successfully compiled the code from this thread under latest chdk trunk (903). It appears to be working on camera, with the same functionality as the last version from this thread. The menu is little "narrow" but I believe it's only a matter of some parameter I missed.

I would like to merge this with the main trunk on https://tools.assembla.com/chdk/, but i don't know how to proceed about that, since I don't have any experience with SVN and online collaboration projects.

I think it would be much easier to debug code if we had it under the main trunk.

Any help is appreciated.

Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 09 / June / 2010, 01:17:04
Hello & welcome, Yossar !

I would like to merge this with the main trunk on https://tools.assembla.com/chdk/, but i don't know how to proceed about that, since I don't have any experience with SVN and online collaboration projects.

Post a diff file based on the latest trunk...also a list/table with running/tested/missing/broken features would be fine...
Title: Re: SD1200 IS Porting Thread
Post by: BikerRay on 09 / June / 2010, 09:54:42
Apologies if off topic, but has anyone used the intervalometer script for long periods on battery. Wondering if, say, a 2-hour, 200 image capture is too much for the battery (no display of course). Tempted to make an AC supply myself as Canon's is almost as expensive as the camera. Info on the requirements for that would be much appreciated.
Keep up the good work!
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 09 / June / 2010, 17:49:21
I am attaching a diff file as requested. I made the file using CHDK/Shell. It seems that newly created files are not in the list, so i'm attaching the in-platform folder separately.

As for the list table with working/broken features, the one posted by AirForceOne seems to be accurate, so I will repost it.
The port is still far from complete, but with the scripts working it can be usable at least.

BUGS:
1) Flash - Freezes camera

Overrides:
1) Shooting in RAW, with RAW Average, RAW Sum, and RAW Develop features - WORKS
2) Shutter-priority (Tv) exposure - via shutter value override feature
3) Aperture-priority (Av) exposure - via aperture value override feature
4) Shutter, Aperture, and ISO Overrides
    - Aperture override - NOT POSSIBLE FOR THIS MODEL
    - Shutter override - DOES NOT WORK
5) Ultra-long shutter speeds - up to 64 seconds, and much longer on some cameras.
6) Ultra-fast shutter speeds - up to 1/10,000" and higher
7) Customizable high-speed continuous (burst) Shutter-based (Tv), aperture-based (Av) and ISO-based exposure bracketing (unlimited shots)
8 ) Focus bracketing (unlimited shots)
9) High-speed Flash Sync at all speeds up to 1/64,000 second (even faster in some cameras)
10) Focus Override - DOES NOT WORK

Scripting:
1) Scripts execution - including exposure bracketing, focus bracketing, intervalometer and more)
    - Script execution - WORKS
    - Script zoom - DOES NOT WORK
    - Script aperture - DOES NOT WORK
2) Motion-detection trigger - automatically fires camera on motion detection. (Fast enough to capture lightning strikes.)
3) USB cable remote shutter release - DOES NOT WORK

Interface improvements:
1) Custom user-editable visible Grids for framing, cropping, and alignment
2) Fully customizable CHDK display, info placement, user-colors, fonts in menus, etc.
3) Zebra mode (a live view of over and under-exposed areas of your picture)
    - Using zebra parameters - DOES NOT WORK
4) Battery indicator - WORKS
5) Live histogram (RGB, blended, luminance and for each RGB channel) - WORKS
6) RAW and Video space-remaining gauges with custom low-limit alerts
7) Custom CHDK user menu (for instant recall of up to 10 favorite functions)

Extra Video Features:
1) 99 constant bit-rate and 10 constant-quality video compression levels
2) Elimination of 1 Gig video-size limit
3) Zoom during video function (for cameras without this feature)

Apps and extras:
1) Depth-of-field (DOF)-calculator, Hyperfocal-calculator with instant Hyperfocal and Infinity focus-set, and more
2) File browser
3) Text reader
4) Calendar
5) Some fun tools and games - WORKS
6) Edge Overlay - DOES NOT WORK
7) CHDK Autoboot - DOES NOT WORK
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 10 / June / 2010, 19:09:33
hi guys, do you know how does the macro shooting works? it gives me DOF i am almost sure it does that by moving the focusing lens which may be totally useless for actual DOF pictures but if it is applicable to non macro shootings we should try that.
I don't really know how macro works in this camera so I don't know if it is applicable I gess its not because it may be only done by focusing (I hope I'm wrong) but if someone knows then let us know.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 15 / June / 2010, 18:01:52
@Yossar
Wow!  I'm amazed you got the thing working with the main trunk!  Have you been able to locate the menu issue?

Wonder if its listed in the trunk yet *goes to check*
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 16 / June / 2010, 06:09:42
I think I solved the menu issue. In lib.c, function vid_get_bitmap_screen_width should return 720. Menu is now displayed over whole screen. It still looks somewhat strange to me, but it could be a font issue.

Anyway, I've been trying to solve the broken flash problem, but without success so far.
Here's what I found:

  - freeze occurs in capt_seq.c in function sub_FFC4A3B8_my. Program never returns from call  "BL      sub_FFCFC540_my"

  - when I replace call to function "sub_FFC4A3B8_my" with call to original function, the freeze does not occur
  - when I replace call to "sub_FFCFC540_my" with call to original function, and remove the call to "capt_seq_hook_raw_here", camera freezes on flash use. This is strange because there should not be any difference between two code segments.

  - upon inspecting the function "sub_FFCFC540_my", I find that the code in it executes fine, so the freeze is probably located in firmware code, after branch to "B       sub_FFCFC5EC"

I think I'm running out of ideas on this. I will try to copy the remaining code to "sub_FFCFC540_my" and see if it locks there, but it's a long shot.
Title: Re: SD1200 IS Porting Thread
Post by: jiggling_john on 19 / June / 2010, 12:12:37
am i right in thinking that this thing is almost working now then?

How do you try out the latest firmware?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 25 / June / 2010, 16:19:32
@jiggling_john far from it, you can do scripts but that is about it. Yossar has made the most progress since the porting started and stopped last year. With any luck the SD1200 may have been added to the trunk already and the porting can continue with conformity with the rest of CHDK

I wonder if the CHDK PTP http://chdk.setepontos.com/index.php/topic,4338.0.html (http://chdk.setepontos.com/index.php/topic,4338.0.html) interface can help?  It probably needs a lot of work to add to a camera but I wonder if it could help you in debugging it.  There are three features that might be useful to you, Memory inspection and manipulation, Remote function calling, Retrieval of properties and parameter data

:P otherwise there are other features that are close but still not working such as the USB remote and it would be nice if the function to turn off the screen in the LUA script (for time lapse power save) would be neat.  But either way im glad you're still working on it
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 28 / June / 2010, 10:11:54
Here's the latest build, if anyone wants to test it.

Note that there is no new functionality (flash still broken, no usb support...).

Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 29 / June / 2010, 18:56:40
Flash bug is fixed, finally. Problem was in incorrect function call in capt_seq.c

Also, noise reduction override should work now, although I don't know where to turn it on.

I'm attaching the latest version for testing. Please report if you notice anything odd.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 29 / June / 2010, 22:53:44
The font on this is small but readable. 

How would one use the flash feature?  I attempted to change the manual setting to adjust power level, but it doesn't seem to change it.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 30 / June / 2010, 02:43:22
The font on this is small but readable. 

How would one use the flash feature?  I attempted to change the manual setting to adjust power level, but it doesn't seem to change it.

We could probably make the font larger by lowering the resolution and changing the aspect ratio, but I would rather leave it like this.

I haven't tried manual flash settings, I'll look into it.

Title: Re: SD1200 IS Porting Thread
Post by: awdark on 30 / June / 2010, 15:35:15
Oh its okay, I was just wondering if fixing the flash added any functionality.  But it looks like the flash functions fine now and that is far better than a bug that causes the camera to freeze up.

Do you think repairing the USB remote function would be a difficult task? 

Either way *thumbs up* it's awesome that we finally have someone who can seriously work on this camera!
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 01 / July / 2010, 02:36:43
Do you think repairing the USB remote function would be a difficult task? 

I really don't know, I haven't even tried that part. I'd like to correct basic functionality first.

Anyway, from what I've seen, it seems that none of the overrides is working. Can you confirm that, or point to some that is working? I am still finding my way about chdk.



Title: Re: SD1200 IS Porting Thread
Post by: awdark on 01 / July / 2010, 03:22:36
As far as I know none of the manual overrides in the menu work.  However the shutter speed can be adjusted through one of the scripts up to 64 seconds.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 01 / July / 2010, 04:43:58
As far as I know none of the manual overrides in the menu work.  However the shutter speed can be adjusted through one of the scripts up to 64 seconds.

I checked the SetPropertyCase function and it seems to be OK, according to the firmware. However, looking at the property values from debug menu, values are not modified. I'll see if the function gets called.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 01 / July / 2010, 14:34:36
There was a wrong address entered for "GetCurrentTargetDistance". Zoom from script now works, as well as changing distance modes.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 01 / July / 2010, 14:59:53
Manual flash override is ok if used within script. I have tried this:

set_prop(121,1)
   
set_prop(141,0) //
press "shoot_half"
repeat
      until get_shooting() == true
press "shoot_full"
release "shoot_full"
release "shoot_half"

,and it works fine. Maybe something is overwriting the property value?
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 03 / July / 2010, 07:02:04
Ok, remote capture seems to be working. You can enable the option via menu, or use the script. The only problem was that the code was commented.

I have not enabled the code to wait for remote release in capt_task, so some strange behavior is possible. I have only tested by plugging the cable into PC. If you notice anything, please report.

If this is confirmed to be working, I'm sending the sources to be integrated in the main trunk.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 03 / July / 2010, 13:12:18
wow you have finally done it, and you make it sound like it was so easy, I didn't even understand what I saw in the codes last time i tried by myself, I thought that CHDK + scripts was really cool but now you say you got flash, thats something I needed, good job man *thumbs up*
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 03 / July / 2010, 18:47:39
The functions for changing focus modes, zooming from script, USB remote appear to be working fine through the script.  USB remote appears to work without a script too but I think I have a setting wrong for the sync.  

Looks awesome so far!  You should upload the script to the trunk, chdk for the SD1200 has more than basic functionality now! :)
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 04 / July / 2010, 05:51:05
The functions for changing focus modes, zooming from script, USB remote appear to be working fine through the script.  USB remote appears to work without a script too but I think I have a setting wrong for the sync. 

Remote trigger on release probably doesn't work properly, as it's missing a function call in capt_seq to wait for release.
Manual focus works (activate by pressing UP in alt mode, change focus using zoom lever, change increment using LEFT/RIGHT).

I don't know why manual flash is not working from the menu. Can anyone report what's the behavior on similar cameras (sd780, sd990)?

Anyway, I'm uploading sources, and diff log to trunk 903. Have fun.
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 04 / July / 2010, 10:46:01
One more update. Code for menu overrides was missing. Flash, Tv and ISO override should work now.

I will post source update after the merge. I am attaching the firmware in case you want to test it.

What remains to be done:
- wait on release for remote trigger
- extra long tv (above 64s)
- optical zoom in video recording
- quality modes override (not sure)
- Edge overlay and zebra

Please add to the list if you notice anything else.
Title: Re: SD1200 IS Porting Thread
Post by: Floppik on 04 / July / 2010, 13:15:06
Great job!!
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 04 / July / 2010, 13:37:19
I can verify flash, TV, ND filter, focus, and ISO seem to be working fine with the manual controls in the menu

Flash - camera in P mode both auto/on mode makes it fire the flash in manual mode.  

ISO mode seems to be working I do get a brighter picture but I don't know the range this camera is capable of.  It does seem to adjust the exposure so it must be overriding something.

Focus was a bit difficult to test but in override mode I can get the results, will see how it works with the other zoom-focus option

Image quality option seems to be working, I can't verify the images look any different (just did a quick test) however in super fine I got a 4.3mb file rather than the normal ~2mb file.


One semi bug I see is zoom in the picture playback mode appears to be a bit buggy.
Hold Playback button (camera goes into picture view mode)
Left and right allow you to cycle though pictures fine, but when you zoom with the zoom to try to see detail, the amber light stays on.  If you play with the zoom a bit zoom in and out a few times it will eventually zoom in correctly.  It is a minor issue and considering all the functionality you are adding its minor so you can put this on low priority.  
Title: Re: SD1200 IS Porting Thread
Post by: gaurav on 05 / July / 2010, 15:13:04
thank alot guys :) bless you all
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 05 / July / 2010, 16:09:08
Anyway, I'm uploading sources, and diff log to trunk 903. Have fun.

Commited the ixus95_sd1200 1.00c port to the trunk, changeset #910 (http://tools.assembla.com/chdk/changeset/910).

Yossar
 - pls. check the SVN
 - pls. post your latest code / additions from reply #129...
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 05 / July / 2010, 21:53:49
hi guys I just copied the update and I think ISO overrides are not working (I'm not sure though) I tried setting a low ISO and in vew mode with details it says ISO is 400 and I don't see any real difference so I selected 80 ISO but it still showed 400 I used 80 because the camera has 80, everything else so far is far grater than I thought I was getting by now (I thought we where going  to wait till next year or something haha) thanks for the update, this is grate.
Title: Re: SD1200 IS Porting Thread
Post by: DuKle on 05 / July / 2010, 23:43:05
I am sorry. But i do not understand how to access to alt menu, in a shooting mode?  in play mode i can access to alt menu. but in shooting mode - can not access :-(
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 06 / July / 2010, 02:23:39
When you hit the play button once it should show <ALT> at the bottom.  Press the menu button and the ALT menu should show up.  If it does not, I recommend deleting the CHDK folder and settings then reload it with the default ones, you might have disabled the Alt menu somewhere in the options.

This sounds really simplistic, but under Visual Settings > Menu RBF Font... I think I set it to Verdan~4.ref and everything got a lot easier for me to read.  The fonts on this release are a bit small for me but its very easy to fix with a simple font adjustment.

I know, I'm easily amused but I set the camera in video mode, pressed up in Alt mode, switched to normal to start the video, went back to alt mode, then started to change the focus in the video! 
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 06 / July / 2010, 07:46:02
hey DuKle did you activated CHDK, you can only turn it on if you do the firmware update in play mode when CHDK is enabled you just half-pres the shutter button and you get to shooting mode. (maybe this was more explanation than what you needed but just in case) then alt mode and everything else just works the same as in play mode.
Title: Re: SD1200 IS Porting Thread
Post by: Vedel on 07 / July / 2010, 07:38:10
Hi guys,

I have been testing CHDK on this camera today, and i've noticed one bug (apart from all the other stuff that is missing)

When i'm configuring the colors of the menu and stuff, the colors to choose from are different in play mode and record mode.
That means, that if i'm choosing for example the color blue in play mode, when i go into record mode, some other color has taken it's place, and the color has changed. I'm attaching examples taken with my webcam, one picture in play mode and one in record mode. As you can see, the square is at the same place, but the color is different.

Anyways, THANK YOU for all your hard work on this camera, i really think its cool that some of u guys are spending time on this, and i wish i could help you.
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 07 / July / 2010, 09:16:32
Hello & welcome, Vedel !

When i'm configuring the colors of the menu and stuff, the colors to choose from are different in play mode and record mode.
It's not really a bug, it's a kind of "feature": the original Canon firmware use different color palettes in playback & record mode on most (IMO all) cameras...
Title: Re: SD1200 IS Porting Thread
Post by: Vedel on 07 / July / 2010, 11:44:48
Okay, thanks for the respond!
Title: Re: SD1200 IS Porting Thread
Post by: Meidor on 08 / July / 2010, 19:07:59
Hello all,

First of all thanks for porting your wonderfull software to this camera.
I have one problem though, I've tried the PS.IF2 files on this forum on my camera (a canon ixus 95 IS, this is the same as the 1200 right?) but it doesn't work. After this I've build the file my self but it still doesn't work, i think it has to do with the fact that my camera runs on GM1.00B but I'm not sure though. Any thoughts cause I would really like to test this on my camera.

Here is (some) of the output of my vers.req.

Canon DIGITAL IXUS 95 IS
P-ID:31C4 PAL D

Firmware Ver GM1.00B
E18
Dec 8 2008
Adj ver006.008

If it is indeed the firmware where can I find an update to GM1.00C cause I can't find firmware updates on the canon website.


Meidor
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 08 / July / 2010, 22:40:06
hi guys this is tillo again reporting some of the stuff I've seen now.
what we thought was only be a difficult on reading the screen is actually bugging me off, the thing with the resolution seems to be having a conflict with grids (they appear only in one side of the screen) and edge overlay seems to be getting doubled (what appears in the whole screen appears twice) and the bottom half of the screen stays in blank (well I mean its all red like if it was a plain black zone).
when I took long exposure photos for light painting or stuff like that, there was somewhat purplish stain in the top left corner, it still apears when in the script, but the photos are full clean when using the chdk override however it seems to spend a lot of time saving the pic but it still works great.
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 09 / July / 2010, 01:22:02
the thing with the resolution
Did someone try to solve this with the ASPECT values in camera.h ?

Quote
when I took long exposure photos for light painting or stuff like that, there was somewhat purplish stain in the top left corner...
Amp glow; on long exposures, the darkframe subtraction setting may help somewhat...
- http://chdk.setepontos.com/index.php/topic,94.0.html (http://chdk.setepontos.com/index.php/topic,94.0.html)
- http://chdk.setepontos.com/index.php/topic,3409.0.html (http://chdk.setepontos.com/index.php/topic,3409.0.html)
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 09 / July / 2010, 03:55:01
Hi,

I'm uploading the capt_seq.c file with overrides fixed. Other files are unaffected. I couldn't get the proper diff file, sorry about that.

About the resolution:
Grid specifies max res of 360x240, which is clearly different from camera res.
I tought using the real resolution would be better, but after seeing grid and other features, I'll try to play with aspect ratio.

Firmware Ver GM1.00B
From what I've heard, Canon almost never offers firmware updates. If you have a firmware different from 100c, it will not work for you. The only way is to make a new port.

Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 10 / July / 2010, 05:25:23
I'm uploading the capt_seq.c file with overrides fixed
Added to the trunk, changeset #912 (http://tools.assembla.com/chdk/changeset/912/).

Yossar - is the port ready for the Autobuild Server ?
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 10 / July / 2010, 08:42:29
Yossar - is the port ready for the Autobuild Server ?

It has a lot of functionality implemented, and it seems stable. There are some issues to be fixed, and the autoboot is still not working.

I don't know if you have some policy or rules to determine when the port is ready. If no, I'd say it's ready for autobuild.

For the next release, I plan to fix the aspect ratio and autoboot, if possible.
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 11 / July / 2010, 09:50:34
Works fine on my ixus 95 is! Thanks!

Cant find text reader and calendar in misc menu. Is it a bug or feature?
Title: Re: SD1200 IS Porting Thread
Post by: Yossar on 12 / July / 2010, 12:52:27
Works fine on my ixus 95 is! Thanks!

Cant find text reader and calendar in misc menu. Is it a bug or feature?
I compiled without those features (and games) since I haven't needed them for testing. If you can't wait for autobuild, you can try compiling the sources with chdk shell.
I'll probably post another build in a few days, I'll include it then.
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 12 / July / 2010, 14:13:14
I looked at the compiler (chdk shell) and didnt find there ixus 95 camera and  i am a novice and you are proffi. So, I will waiting a new build with reader. Thank you!
Title: Re: SD1200 IS Porting Thread
Post by: DuKle on 13 / July / 2010, 00:45:42
Sank's for helping! i have new bug. or "feature" :-) i activate override shutter speed value, but it is not work. photo was make with default shutter speed. why? sorry for my english - i am russian.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 13 / July / 2010, 03:07:53
Did you make sure
Override shutter speed was set to something like 1/500
and the Value factor was set to 1?

Then switch out of alt mode, and take a picture normally

It works for me and I even did some long exposure 64 second pictures for fun =]
Title: Not a newbie but a novice question
Post by: PX3 on 13 / July / 2010, 15:06:44
Hi to all!
Thank you all for your great work porting the 1200SD. I love the camera, but I was desperately missing CHDK for it.
However, I tried to install CHDK and did not suceed. I copied all files to the root of my SD Card, hit the "play" button, and chose "Firm upgrade to 1.1..." from the menu. Then my camera hangs, it won't start, no matter what button I press. The only thing that works then is to remove the battery and restort- without the firmware upgrade.

I kindly ask you to pleeeeaase post one zip file with everything inside I need to be just copied on the SD card. If any further steps are necessary please explain me.

Thank you a lot in advance!!!!
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 13 / July / 2010, 18:14:31
Can you check the version of firmware you have on your camera? A guide to that can be found here http://chdk.wikia.com/wiki/SD1200IS#Firmware_info (http://chdk.wikia.com/wiki/SD1200IS#Firmware_info)
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 14 / July / 2010, 01:50:26
hello all, thanks so much for ur efforts in developing chdk for ixus95is/sd1200is. iam having this camera and facing the same difficulty as PX3(above). firmware is 1.00c.
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 14 / July / 2010, 02:20:14
To successfull start of chdk I followed next procedures:

I used PS from http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457. (http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457.)
SD card was 1 Gb (fat16) and empty (no folders and picture files)

I pressed play and set up new firmware. The camera rebooted and logo of chdk started. Then I pressed play button and saw Alt-menu.
Firmaware 100c
 
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 14 / July / 2010, 05:07:32
thnx dmitry! this method is working... 8) :)
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 14 / July / 2010, 09:49:12
A small manual for compiling chdk for ixus95 (sd1200) from sources.

You need to download chdk shell from http://drop.io/gcc_for_chdkshell (http://drop.io/gcc_for_chdkshell) (on 14.07.2010 it is  CHDK-Shell-v270-full-sfx.exe). Unzip it to d:\chdk (for example). Then download the latest build of chdk (v272). Unzip it to chdk folder with overwrite all files.

Start the CHDK-Shell-v272.exe from d:\chdk. Check the "Allow Internet (checks SVN at startup)" at "SVN source option" in main window and the programm will download a new trunk. If you have a proxy internet connection - you'll need a manual trunk download.

Reboot the programm. But you will not see a ixus95_sd1200 model in camera's list at the left part. Close programm. Open Makefile in you downloaded trunk folder and find all strings with "SD1200". The are commented with #. You'll need to uncomment them (about 5-7 strings). Then open programm and you will see SD1200 model. Check it (100c) and open "Compile Options". Check necessary options like text reader. Then press "Compile selected" and wait some time. When it finish go to your trunk folder\bin and you'll see 2 zip-files. Unzip full version. There will be CHDK folder and DISKBOOT.BIN. We need to encode DISKBOOT.BIN to FS.FI2.

Download the fi2encode.zip from http://chdk.setepontos.com/index.php/topic,2995.msg28164.html#msg28164. (http://chdk.setepontos.com/index.php/topic,2995.msg28164.html#msg28164.) Unzip it. Copy your DISKBOOT.BIN to programm's folder (overwrite). Then you need to change HDR string in my.map to

; header
HDR 0x31C4 0x02230000 0x01000000 0x00000000 0x00000001

Then click on pack.bat and a PS.FI2 will appear.

PS. When I make fat16 1Gb card bootable from CHDK menu - the DISKBOOT file do not starting with locked card. Only manual starting with PS.FI2
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 15 / July / 2010, 00:52:56
PS. When I make fat16 1Gb card bootable from CHDK menu - the DISKBOOT file do not starting with locked card. Only manual starting with PS.FI2
Autostart (with diskboot.bin & locked card) is only possible with FAT12 or FAT16 formatted partitions, this is a limit of the Canon firmware loading mechanism.
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 15 / July / 2010, 01:46:30
raw image looks weird, also not overriding iso 400
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 15 / July / 2010, 08:56:52
CHDK may be somewhat handy for SD1200, but it's really-really pity that there is no real aperture (iris) in the camera. DOF is unresolvable issue on my sister's SD1200 (why,WHY did buy her this cam:((), so it kills the full joy of ability for long exposure & RAW it'd have with CHDK. I'm not counting scripts here, you know what I mean ;( My "old reliable" A720IS is much better. :)
Title: Re: SD1200 IS Porting Thread
Post by: PX3 on 16 / July / 2010, 11:42:32
Thank you all for your responses!

Unfortunately the camera doesn't boot after selecting "firmware upgrade". I exactly followed dmitrys guide, but as before, the screen remains black and I have to take out the battery for some seconds until I can reboot again. 2gb SD card, FAT16 formatted, only the CHDK folder and the PS file on it.

I got the firmware from my camera with the CameraVersion tool, it says 100B

Any ideas what I'm doing wrong?
Thank you!
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 16 / July / 2010, 12:03:03
This chdk was compiled for 100c firmware - so you cannot run it in your device.

P.S. I found interesting link: http://web.canon.jp/imaging/IXUS/IXUS_Firmware.html (http://web.canon.jp/imaging/IXUS/IXUS_Firmware.html)
Its name "DIGITAL IXUS Firmware Update. Installation Instructions (for IXUS Firmware Version 1.0.0.1)"
At the bottom of the page there is a camera's serial number input field. I entered mine ixus 95 100c SN but nothing happend. Please, be very cautious.
Title: Re: SD1200 IS Porting Thread
Post by: PX3 on 16 / July / 2010, 15:28:35
Thanks Dmitry for your answer again! I really appreciate your quick replies.

I really do not want to spoil this topic with useless questions. I hope someone's experiences the same problems as me.

I  think your link refers to another, old Ixus model. Do you know any other way of first upgrading my firmware to 100c?
Or would it be very difficult to compile CHDK for the 100b version?
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 16 / July / 2010, 15:40:43
Do you know any other way of first upgrading my firmware to 100c?
Or would it be very difficult to compile CHDK for the 100b version?
I think firmware update will be possible at canon repair-support centers or via mail to canon support-site.
Compilation of chdk for 100b (i think) will be more difficult and longer process.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 16 / July / 2010, 16:46:26
Do you know any other way of first upgrading my firmware to 100c?
Or would it be very difficult to compile CHDK for the 100b version?
I think firmware update will be possible at canon repair-support centers or via mail to canon support-site.
I'm not sure they will upgrade your firmware without a specific problem. Asking them to upgrade it so you can run CHDK might not be a good idea.
Quote
Compilation of chdk for 100b (i think) will be more difficult and longer process.
Depends. If you are a programmer and understand CHDK, you can probably do it in less time than shipping to canon and back: http://chdk.wikia.com/wiki/Adding_support_of_a_new_firmware_version (http://chdk.wikia.com/wiki/Adding_support_of_a_new_firmware_version)
Title: Re: SD1200 IS Porting Thread
Post by: Beno on 17 / July / 2010, 08:53:14
Hey,

Tried several time to compile the firmware myself. Like in the post of Dmitry described (just for Linux with the python gui; used fi2encdec together with wine). Well, managed to create ps.fi2 (148KiB), loaded it together with the extracted "ixus95_sd1200-100c-0.9.9-full.zip" archive on the root of the SD card (freshly formated with my camera; 2Gb). As soon as I try to load the firmware, I get the "update file error!!!". But: I got 1.00c firmware too on my camera :-(
Could someone post the ps.fi2 from the recent trunk?

Thanks to all the people investing their time in this great work!

cheers.
Title: Re: SD1200 IS Porting Thread
Post by: Dmitry on 17 / July / 2010, 08:59:23
(freshly formated with my camera; 2Gb).
Did you try Yossar's firmware? Did it started on your formated card?
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 20 / July / 2010, 03:07:17
slow 64s shutter working nicely but having problems with RAW and Ev bracketing, seen as dark images only. anyone getting it right.
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 03 / August / 2010, 06:31:14
Now then, who already has anything _worth_ to show using wonderful CHDK on this crappy little camera, any creative use?
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 03 / August / 2010, 07:41:15
It is not crappy, it is lovely.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 03 / August / 2010, 18:24:13
Seriously, I have zebra working on my Ixus 95 when focus zoom is OFF, save as RAW works OK with CHDK RAW, but DNG RAW files have a shiny purple tint to them. CHDK histogram seems OK. On the negative side, the OSD font is far too small

[Edit] build 922, using CHDK-Shell, all compile options OFF.
Zebra also works with focus zoom ON.
Grids are shifted to the left of the LCD instead of being centred.
Tv override works.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 03 / August / 2010, 18:57:51
This sounds really simplistic, but under Visual Settings > Menu RBF Font... I think I set it to Verdan~4.ref and everything got a lot easier for me to read.  The fonts on this release are a bit small for me but its very easy to fix with a simple font adjustment.

Have you tried changing the fonts?
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 04 / August / 2010, 05:11:57
Yes, I changed the menu font, but I want to change the OSD (system) font.
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 04 / August / 2010, 05:20:50
It is not crappy, it is lovely.

Compared to e.g. A720 it completely sux. I personally intensively tried using both.

CHDK may be somewhat handy for SD1200, but it's really-really pity that there is no real aperture (iris) in the camera. DOF is unresolvable issue on my sister's SD1200 (why,WHY did buy her this cam:((), so it kills the full joy of ability for long exposure & RAW it'd have with CHDK. I'm not counting scripts here, you know what I mean ;( My "old reliable" A720IS is much better. :)
Title: Re: SD1200 IS Porting Thread
Post by: whim on 04 / August / 2010, 05:33:57
@hwntw

The system font is built from scratch in source code, find the code in the /lib/font directory;
the font characters are defined in "font_8x16_uni.h"

HTH,

wim
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 04 / August / 2010, 06:26:25
How many codes would you have to write and where?


What does your question mean, I cannot understand it ?

Do yourself a favour, buy a Panasonic FZ38 or similar, like I have.

Thanks, 13k lines of code, I asked and I got it!
Title: Re: SD1200 IS Porting Thread
Post by: fluteaphone on 06 / August / 2010, 01:57:20
I am having trouble finding the "Firm Update" option in the menus. It should be right bellow the "Transition" option right?

My camera's version is 1.00c. (I was able to get the vers.req to work) I've tried most of the different versions of ps.fi2 posted on this forum and in the CHDK shell, but I haven't been about to do a "firm update" with any of them.

I have also tried reformatting the card (several times) does it have to be in a particular format for firmware update method to work? (FAT16, FAT32...)

Is their a limit to how big the card can be? (I'm using a 2Gb card)
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 06 / August / 2010, 02:51:52
I am having trouble finding the "Firm Update" option in the menus. It should be right bellow the "Transition" option right?
Yes; it's only there when you've started the camera in PLAYBACK mode (with the [>] button)...

Just start the camera in PLAYBACK mode !
The "Firmware update" menu item is visible when the camera is started in playback mode (lens retracted) & there's a file "PS.FI2" stored in the card's root...
Title: Re: SD1200 IS Porting Thread
Post by: Microfunguy on 06 / August / 2010, 06:24:16
@ ixus95 porters

In \core\kbd.c, the zoom table for ixus95 is seven entries in length.

According to your platform\ixus95\main.c, the ixus95 only has five zoom positions.


David
Title: Re: SD1200 IS Porting Thread
Post by: MikeMc147 on 09 / August / 2010, 07:12:29
Hi All,

As per Dimitry's instructions I've been trying to complile CHDK for the IXUS95 (100c) but as a non programmer I'm having some difficulty.

Is it possible for someone to post or email me a compiled version that I can use ?

Many Thanks
Mike.
Title: Re: SD1200 IS Porting Thread
Post by: MikeMc147 on 09 / August / 2010, 18:16:25
Got it now, working ok via manual f/w update as oposed to autostart.

Cheers
Mike.
Title: Re: SD1200 IS Porting Thread
Post by: Soike on 13 / August / 2010, 13:59:27
Where can the most recent version be downloaded?
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 13 / August / 2010, 15:20:49
I believe the newest version is posted here http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457 (http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457)

Last time I checked, this camera wasn't on the autobuild server yet and is considered to be still pending.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 14 / August / 2010, 17:41:18
Hello,
Will the Ixus95 SD1200 autoboot using DISKBOOT.BIN?
Title: Re: SD1200 IS Porting Thread
Post by: Microfunguy on 14 / August / 2010, 17:51:43
No.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 14 / August / 2010, 18:28:50
Evening All,
Aha, then we need the "encryption strings" and the http://chdk.setepontos.com/index.php/topic,2995.0.html (http://chdk.setepontos.com/index.php/topic,2995.0.html)

Title: Re: SD1200 IS Porting Thread
Post by: abhay on 20 / August / 2010, 02:11:20
iam quite happy with the ixus95IS camera and the extra functionality that chdk offers.

able to get shutter speeds 1/500s w/o flash and with flash 1/1500s max in a room during night with cfl lamp of 8w on.

raw is so so though not very happy with quality, also it takes too much time saving on card, iam sure someone will come up with a fix for this, it is one feature that is definitely needed to work properly.

thank you all for ur efforts on the amazing chdk :)
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 20 / August / 2010, 05:35:34
raw is so so though not very happy with quality, also it takes too much time saving on card, ufraw may be used to open

I've already warned you all:
CHDK may be somewhat handy for SD1200, but it's really-really pity that there is no real aperture (iris) in the camera. DOF is unresolvable issue on my sister's SD1200 (why,WHY did buy her this cam:((), so it kills the full joy of ability for long exposure & RAW it'd have with CHDK. I'm not counting scripts here, you know what I mean ;( My "old reliable" A720IS is much better. :)
Now then, who already has anything _worth_ to show using wonderful CHDK on this crappy little camera, any creative use?

My recommendation is get rid of the camera ASAP. Go get something which better suits creative use, even some outdated A series powershot (like A570 IS) is much much more better. I came to know that SD series completely sux unless you're ready to spend $300 or more on a compact cam.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 20 / August / 2010, 09:53:09
Now then, look on the bright side.
It is a lovely little cam  that does what it says on the tin.
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 20 / August / 2010, 14:07:24
reg chdk well its not yet fully ready, give it some time till all the issues are resolved.
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 21 / August / 2010, 02:49:23
@abhay,

Unfortunately, I believe CHDK cannot and will not resolve issues caused by __physical__ limitations of the cam, such as absense of aperture, too much awful megapixels per little sensor size.
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 21 / August / 2010, 05:28:22
<OT>
The IXUS series is specialised for size & handiness, therefore Canon had to made some compromises, like using a small ND filter instead of a iris diaphragm. It's the same on many other cheap or small-sized "Point & Shoot" cameras on the market, not only Canon. The IXUS series cameras are great cams for their "special" operation purpose - they are not intended to replace larger, bulkier cameras...
</OT>
Since this is the SD1200 IS Porting Thread, i suggest to post only things related to this here, otherwise this thread will become an ugly chat....  ;)
Title: Re: SD1200 IS Porting Thread
Post by: freeradicalx on 22 / August / 2010, 15:16:37
Hi there, I just wanted to express my extreme appreciation to the fellows who made the CHDK SD1200 port possible, I've read through this entire thread and with all the info you guys have posted I was finally able to get CHDK up and running on my SD1200! All the options are overwhelming and I can't wait to go up on my rooftop and start toying around with them. A huge thanks to KevB, awdark, tillo, AirForceOne and Yossar especially for hammering away at this project for the past year, you guys rock.

Just a heads up, you might wanna somehow update the links in KevB's initial post on page 1 of this thread, some of them are out of date and his old link to the FI2 file doesn't even work anymore- this may confuse people who get directed here from the wiki and don't know that the more current files are linked to later on in the thread. At least until this camera gets added to the autobuilds.
Title: Re: SD1200 IS Porting Thread
Post by: loodberg on 23 / August / 2010, 03:27:07
Hi Everyone

I am running a project in which I am using this camera and chdk.  I require it to be able to autoboot. Is there any chance that the autoboot could be possible in future?

Thank you very much for all your work so far.  You guys are absolute geniuses!

Lood
Title: Re: SD1200 IS Porting Thread
Post by: trex101 on 04 / September / 2010, 17:21:21
Agreed - many thanks to you guys for working on porting the SD1200IS camera. I'm working on a project with several of these cameras which requires the ability to trigger them sequentially. Many others are waiting and hoping to see a port for this camera soon. Good luck!
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 16 / September / 2010, 02:59:36
how can i use the RAW .CRW files generated by canon ixus95/sd1200is to be read properly by photoshop cs3? is there a way to make them open in photoshop.  i needed to merge them and generate hdr in ps.

just for info, the crw files from the chdk in my ixus95is camera are read properly by the latest alpha version of rawtherapee but incorrectly many times by ufraw(weird green color).

any help would be most appreciated.

(query also posted in 'CHDK and RAW' thread here http://chdk.setepontos.com/index.php/topic,1532.30.html (http://chdk.setepontos.com/index.php/topic,1532.30.html))
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 18 / September / 2010, 01:16:18
You can try DNG4PS with these settings http://chdk.setepontos.com/index.php/topic,4324.msg46735.html#msg46735 (http://chdk.setepontos.com/index.php/topic,4324.msg46735.html#msg46735)

There might still be something slightly off about it because the results don't look very good IMO but it will at least open in photoshop
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 23 / September / 2010, 02:49:53
all right, just the in-camera raw to dng conversion is working fine for this chdk(ixus95is) which can be opened in ps
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 25 / September / 2010, 17:46:24
I've made a test build which may resolve zebra and OSD issues on this camera. This assumes it is a the same display layout as sd990 and d10. I think this is likely but I don't have the camera.

edit: mistake in previous build, test2

builds removed, see later posts

Should do the following:
OSD should be larger
Zebra should work (memory permitting)
Histogram should have proper aspect
standard CHDK grids should work (colors may vary)
Games should have correct aspect too, but they are disabled in this build to save memory for zebra.

Note, you should probably remove/rename your existing CCHDK.CFG, or OSD items may have remembered positions from the old screen layout.

edit:
I should probably link the right build  :-[

edit #2
mistake in first test build, I've uploaded a new one. This also has some changes that might fix diskboot start.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 26 / September / 2010, 19:07:15
I've checked in the screen layout stuff based on hwntws report in PM.

Still looking for report on diskboot.

There is some serious WTF in boot.c all of this port, but it will be difficult to sort out without having the camera.

edit:
looks like the main problem was NEED_ENCODED_DISKBOOT not set at all :blink:, explains the card locked message with diskboot present.

I've set the correct diskboot encoding for this camera, and checked in the other changes.
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-diskboot-test-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-diskboot-test-1-zip)

I've added a new build that uses low memory zebra like sx20. This will be uglier, but might work:
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-zebratest-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-zebratest-1-zip)
Title: Re: SD1200 IS Porting Thread
Post by: Microfunguy on 28 / September / 2010, 05:28:08
@reyalp

Please note the following  :-

In \ixus95_sd1200\main.c,
static const int fl_tbl[] = {6200,7230,8295,9681,11614,14303,18600};

In \core\kbd.c,
#if defined(CAMERA_a450)|| ........ || defined(CAMERA_ixus95_sd1200) ||

In \ixus95_sd1200\lib.c,

void ubasic_set_led(int led, int state, int bright)
{
   int leds[] = {0x134,0x138,0x134,0x130,0x134,0x3030,0x3030};  //  green=4 | (yellow) | (not used) | orange | (not used) | af beam | timer
   volatile long *p=(void*)0xc0220000 + leds[(led-4)%sizeof(leds)];
   if (state)
      p[0]=0x46;
   else
      p[0]=0x44;
}

I only asked the IXUS95 owner to test the AF led.

Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 28 / September / 2010, 08:31:53
I've checked in the screen layout stuff based on hwntws report in PM.

Still looking for report on diskboot.

There is some serious WTF in boot.c all of this port, but it will be difficult to sort out without having the camera.

edit:
looks like the main problem was NEED_ENCODED_DISKBOOT not set at all :blink:, explains the card locked message with diskboot present.

I've set the correct diskboot encoding for this camera, and checked in the other changes.
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-diskboot-test-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-diskboot-test-1-zip)

I've added a new build that uses low memory zebra like sx20. This will be uglier, but might work:
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-zebratest-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-zebratest-1-zip)


Hello,
Having sacrificed one of my fat32/2KB memory cards in the interests of science, I can confirm that the diskboot.bin startup method now works.
Zebra seems little changed from previous builds, with the toggling of the display thing on successive presses of half shutter still the case with zebra= solid and zebra stripes (just like blinking). Again, zebra blink modes are working best, although the zebra display changes size with successive blinks- the same problem as with solid and stripes modes.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 28 / September / 2010, 08:32:49
Dileu/deleted

Hwntw
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 28 / September / 2010, 12:11:12
@Microfunguy
Thanks.

@hwntw
thanks for confirming diskboot works.
I still have no idea what you are trying to describe with the zebra.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 28 / September / 2010, 12:36:23
@Reyalp
Now you know how it is for me :'(
Title: Re: SD1200 IS Porting Thread
Post by: Microfunguy on 28 / September / 2010, 12:53:18
I am almost embarassed to ask, but quite frankly I do not understand  this process of encoding with keys.
I have set encoding to '2' for the IXUS95 but it does not work (card locked).
Do I need keys for all the cameras that have encoded diskboots ?

Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 28 / September / 2010, 17:00:33
I am almost embarassed to ask, but quite frankly I do not understand  this process of encoding with keys.
I have set encoding to '2' for the IXUS95 but it does not work (card locked).
Do I need keys for all the cameras that have encoded diskboots ?
You don't need any keys to make diskboots, just a version of dancingbits which supports the desired encoding version. The latest in the chdk tree supports all known variants. Keys are needed for FI2. (quite why one is OK in the CHDK tree and the other is not, I don't know... possibly historical accident)

Card locked generally means the diskboot is not encoded at all. The camera ignores unencoded diskboots, but it will quite happily load one encoded with the wrong encoding, and crash very shortly thereafter.

So I would guess either you copied the wrong diskboot (something I have definitely never ever done 8)), or your build process didn't actually do the dancing bits.
Title: Re: SD1200 IS Porting Thread
Post by: Microfunguy on 28 / September / 2010, 18:07:08
Hmmmm   ... well, I have plenty of Nacho cheese flavour, that should not be the problem.

I will check again that dancingbits is run at the end of compilation.
Title: Re: SD1200 IS Porting Thread
Post by: para on 06 / October / 2010, 11:34:28
I can also confirm diskboot working now. With zebra, the green AF indicator boxes prevent zebra from being drawn below them (zebra stops maybe 20 rows above them), and the draw over modes are not functional.

DNG output still looks funny, the green channel seems to be completely missing
CRW screenshot (http://www.rootzilla.org/~para/pics/ixus/crw.jpg)
DNG screenshot (http://www.rootzilla.org/~para/pics/ixus/dng.jpg)

Everything else seems to be working pretty well now. If anyone wants me to test something specific just tell me  :)
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 06 / October / 2010, 21:51:04
yes still an issue with the chdk developed DNG, it works gr8 using dng4ps2 for conversion to DNG from RAW files
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 06 / October / 2010, 22:30:08
I can also confirm diskboot working now. With zebra, the green AF indicator boxes prevent zebra from being drawn below them (zebra stops maybe 20 rows above them), and the draw over modes are not functional.
Low memory mode means zebra won't restore anything.
Quote
DNG output still looks funny, the green channel seems to be completely missing
CRW screenshot (http://www.rootzilla.org/~para/pics/ixus/crw.jpg)
DNG screenshot (http://www.rootzilla.org/~para/pics/ixus/dng.jpg)

Everything else seems to be working pretty well now. If anyone wants me to test something specific just tell me  :)
Maybe the bayer pattern is wrong. Here's a build with "Red  Green  Green  Blue" instead of  "Green  Blue  Red  Green"
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip)

Note that the color matrix appears to copied from sd990, so it the calibration will probably be a bit off.
Title: Re: SD1200 IS Porting Thread
Post by: para on 08 / October / 2010, 09:48:32
Maybe the bayer pattern is wrong. Here's a build with "Red  Green  Green  Blue" instead of  "Green  Blue  Red  Green"
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip)

Note that the color matrix appears to copied from sd990, so it the calibration will probably be a bit off.
Thanks, that's much better  8)

After fiddling around a bit with dng4ps2 and the Adobe dng validator, I came up with these additional changes:

Code: [Select]
#define  CAM_COLORMATRIX1                             \
    1484685, 1000000, -530958, 1000000, -208054, 1000000, \
    143142, 1000000, 793552, 1000000, 83907, 1000000, \
    146290, 1000000, -44679, 1000000, 430414, 1000000

#define  CAM_ACTIVE_AREA_X1 8
#define  CAM_ACTIVE_AREA_Y1 12
#define  CAM_ACTIVE_AREA_X2 3692
#define  CAM_ACTIVE_AREA_Y2 2772

The colors are still a bit off compared to the corresponding jpeg, but at least somewhat usable.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 08 / October / 2010, 12:45:21
I can also confirm diskboot working now. With zebra, the green AF indicator boxes prevent zebra from being drawn below them (zebra stops maybe 20 rows above them), and the draw over modes are not functional.


Low memory mode means zebra won't restore anything.
Quote
DNG output still looks funny, the green channel seems to be completely missing
CRW screenshot (http://www.rootzilla.org/~para/pics/ixus/crw.jpg)
DNG screenshot (http://www.rootzilla.org/~para/pics/ixus/dng.jpg)

Everything else seems to be working pretty well now. If anyone wants me to test something specific just tell me  :)
Maybe the bayer pattern is wrong. Here's a build with "Red  Green  Green  Blue" instead of  "Green  Blue  Red  Green"
http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip (http://drop.io/reyalp_chdk/asset/ixus95-sd1200-100c-0-9-9-dngtest-1-zip)

Note that the color matrix appears to copied from sd990, so it the calibration will probably be a bit off.

Hello,
Nice build, zoom steps are good plus zebra seems much improved- just the ticket.
Beta to Autobuild?
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 09 / October / 2010, 02:08:51
Thanks, that's much better  8)

After fiddling around a bit with dng4ps2 and the Adobe dng validator, I came up with these additional changes:
I've checked both of these in.
Title: Re: SD1200 IS Porting Thread
Post by: Fox_2 on 09 / October / 2010, 03:30:51
Not sure if this is an issue, but bracketing doesn't work if you set the camera in custom timer mode (worked with this - http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457 (http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457) build). Of course, it's not really a problem, since we have scripts, but sometimes it would be just a bit easier to do this with custom timer.

Also, "native" video zoom doesn't work, although works ok with scripts.

Otherwise great work, thanks to everyone who's helping with builds :)
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 09 / October / 2010, 04:28:14
i've been using bracketing in this but in burst mode which works great, scripts work too...not sure of self timer in bracketing...
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 09 / October / 2010, 09:24:55
Not sure if this is an issue, but bracketing doesn't work if you set the camera in custom timer mode (worked with this - http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457 (http://chdk.setepontos.com/index.php/topic,4324.msg52457.html#msg52457) build). Of course, it's not really a problem, since we have scripts, but sometimes it would be just a bit easier to do this with custom timer.

Also, "native" video zoom doesn't work, although works ok with scripts.

Otherwise great work, thanks to everyone who's helping with builds :)
I can confirm this- and doing the equivalent in SDM will run the bracketing sequence properly.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 10 / October / 2010, 18:18:50
Replying to post this post http://chdk.setepontos.com/index.php/topic,4348.960.html (http://chdk.setepontos.com/index.php/topic,4348.960.html) in the sx20 thread, since it really doesn't belong there.
The CHDK folder can be in either partition.
CHDK will only use the folder on the same partition the rest of the camera sees. In a bootable dual partition setup, this means your CHDK folder must be on the large partition. Only diskboot.bin on the small partition is used.
Quote
I used SDMInste to set up my 16Gb so that both partitions are ~8G, so that if I set the switch on the card to 'Lock', I load chdk, and if I unlock it, it doesn't, and there's still enough space on the primary partition for the camera to store images in it when not running chdk.
Are you saying that CHDK successfully autoboots from a FAT32 partition if you have the lock engaged ? If this is true, then you don't need to partition at all. If it isn't true, there's something wrong with your description.

The normal way to have the camera see the large partition without CHDK is to swap them so the large one is first. You can normally swap back by manually loading CHDK, but AFAIK that is not available on sx20 (someone might want to try the my canon basic manual loading method...)
Hello,
I would like to try this as my Ixus 95 does not support using two partitions and the SDM intstaller method, among others, does not work, sadly.
I have already posted that my Ixus 95 will reboot using your Canon Basic method. What I now need help with is how to use it in order to mimic the two partition boot method- one very small fat1n and one large fat32 partition for autoboot plus max use of space.
The ixus95 does not have multipartition support implemented yet. Since diskboot now works, there's no reason to expect that multipartition won't work on this camera when someone gets around to implementing it.

The canon basic method doesn't let you autoboot. It is potentially an alternative to the "firm update" method, but "firm update" already works on ixus95 so it wouldn't be an improvement.
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 12 / October / 2010, 03:49:59
@fox_2,

this link will help in bracketing with custom timer http://chdk.wikia.com/wiki/UBASIC/Scripts:_Make_ANY_Single-Shot_Intervalometer_into_an_HDR-Bracketing_Script (http://chdk.wikia.com/wiki/UBASIC/Scripts:_Make_ANY_Single-Shot_Intervalometer_into_an_HDR-Bracketing_Script)
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 14 / November / 2010, 17:50:04
I've checked in a change that may improve zebra on this camera.

I tried D10 with the same settings as sd1200 used to have, and it cut off zebra on the lower portion of the screen.
Title: Re: SD1200 IS Porting Thread
Post by: para on 23 / November / 2010, 15:50:48
I get this compiler error now:

Code: [Select]
../lib/armutil/libarmutil.a(reboot.o): In function `reboot':
reboot.c:(.text+0x64): undefined reference to `_reboot_fw_update'
collect2: ld returned 1 exit status

I looked into the file, tried to understand whats happening there and consequently gave up on it  :-[
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 23 / November / 2010, 17:15:02
Oops, I didn't update the checked in version of stubs_entry.S for this camera when I added ptp support, because this camera isn't in the batch builds.

I've updated it. You could also build with PRIMARY.BIN in place to generate it yourself.
Title: Re: SD1200 IS Porting Thread
Post by: para on 24 / November / 2010, 11:47:26
thx

Your guess was right, zebra is "fullscreen" now. Even drawover works, although it makes the cam respond slow as hell, so it's best to leave it off when using zebra. Poor little Ixus  :D
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 25 / November / 2010, 19:31:51
Oops, I didn't update the checked in version of stubs_entry.S for this camera when I added ptp support, because this camera isn't in the batch builds.

I've updated it. You could also build with PRIMARY.BIN in place to generate it yourself.

Does the PTP support have anything interesting added?  I recall there was an extended set of PTP tools developers could use for debugging and all that.
Title: Re: SD1200 IS Porting Thread
Post by: sikahr on 17 / December / 2010, 02:47:55
Hi,

   sorry for offtopic,

   please someone who owns sd1200 test how much memory is free after chdk loading on SD1200 in play mode with empty memory card ( black screen - no pictures),

   thanks in advance, this is needed for SX130 chdk development

PS
To find free memory:
Press ALT and then press MENU, navigate to the 'Miscellaneous stuff' menu and select 'Show memory info".
Title: Re: SD1200 IS Porting Thread
Post by: gaurav on 17 / December / 2010, 12:48:09
hey guys can u provide the latest chdk build for this cam...as on last pages m not able to open the links for downloading (my be broken links) i.e http://chdk.setepontos.com/index.php?topic=4324.105.... (http://chdk.setepontos.com/index.php?topic=4324.105....)
pls post any new link
thanx
gaurav
Title: Re: SD1200 IS Porting Thread
Post by: whim on 17 / December / 2010, 13:10:02
@gaurav

Here you go: fresh checkout from trunk 1004. Note I don't have the cam, so not tested !

HTH,

wim
Title: Re: SD1200 IS Porting Thread
Post by: gaurav on 24 / December / 2010, 17:18:20
thanx alot whim and similarly m facing the prob here....
link is not working
http://chdk.setepontos.com/index.php?topic=964.0 (http://chdk.setepontos.com/index.php?topic=964.0)
not able to download cardtricks.exe
Title: Re: SD1200 IS Porting Thread
Post by: whim on 24 / December / 2010, 17:52:05
@gaurav

Fixed - forgot that after a recent forum update, links in quotes 'magically' get an extra http:// prepended ...
Copied the links out of the quote, so should now work. Thanks for reporting.

Happy Holidays,

wim
Title: Re: SD1200 IS Porting Thread
Post by: gaurav on 27 / December / 2010, 10:19:41
@whim
hey you gave me link for chdk build earlier in .7z format
but when i used to install it by card tricks after pressing chdk->card button it demand for .zip file
i tried to convert the above file into zip(from .7z to .zip) but it becomes unusable
any another method or link
sorry m noob in all this things..:P
hope u help me
and happy holidays u too dude
gaurav
Title: Re: SD1200 IS Porting Thread
Post by: para on 27 / December / 2010, 11:42:25
   please someone who owns sd1200 test how much memory is free after chdk loading on SD1200 in play mode with empty memory card ( black screen - no pictures),

CHDK Ver: CHDK 0.9.9-984
Free Memory: 640136 bytes
CHDK Size: 277492 bytes

Title: Re: SD1200 IS Porting Thread
Post by: whim on 27 / December / 2010, 17:26:25
@gaurav
Quote
i tried to convert the above file into zip(from .7z to .zip) but it becomes unusable

to unpack a 7-zip archive you need the open source 7-zip (http://www.7-zip.org/download.html) program
(it will also work with most other archive types) The .7z archive format is a bit more efficient.

However, in the spirit of Xmas, see zip attached (build 1005)

wim
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 27 / December / 2010, 19:46:43
@gaurav
Quote
i tried to convert the above file into zip(from .7z to .zip) but it becomes unusable

to unpack a 7-zip archive you need the open source 7-zip (http://www.7-zip.org/download.html) program
(it will also work with most other archive types) The .7z archive format is a bit more efficient.

However, in the spirit of Xmas, see zip attached (build 1005)

wim
@Whim Why don't you simply state that the build is available from the CHDKDE website?
Title: Re: SD1200 IS Porting Thread
Post by: whim on 27 / December / 2010, 20:32:25
@hwntw

Oops, sorry ... sloppy research  :lol

wim
Title: Re: SD1200 IS Porting Thread
Post by: sikahr on 29 / December / 2010, 02:31:08
Many thanks Para
Title: Re: SD1200 IS Porting Thread
Post by: shah on 30 / December / 2010, 22:58:57
Thank you so much for all the work. I am a big fan of CHDK from using it on my previous unit Canon A590IS.

Now I have a SD1200IS with original firmware version 1.00c. I have downloaded the latest CHDK build for model ixus950 from the build server, copied on a freshly formated and made bootable SDHC card using CardTricks but can't seem to run CHDK for some reason - whether with locked or unlocked SDHC card. Play->Menu->Update firmware is option not visible at all.

Then, after reading through this thread I changed the PS.FIR filename to PS.FI2 which enabled Play->Menu->Update firmware menu option but as soon as I select that option I get "Firmware file error" message. This error comes regardless with full CHDK directory structure, PS.FI2 and DISKBOOT.BIN file and PS.FI2 file alone on teh SDHC card.

What am I missing? Any help will be greatly appreciated.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 30 / December / 2010, 23:17:39
Thank you so much for all the work. I am a big fan of CHDK from using it on my previous unit Canon A590IS.

Now I have a SD1200IS with original firmware version 1.00c. I have downloaded the latest CHDK build for model ixus950 from the build server, copied on a freshly formated and made bootable SDHC card using CardTricks but can't seem to run CHDK for some reason - whether with locked or unlocked SDHC card. Play->Menu->Update firmware is option not visible at all.
SD1200 is not ixus950, it's ixus95. It's not currently in the main autobuild, but you should be able to find some builds in this thread.
Title: Re: SD1200 IS Porting Thread
Post by: shah on 31 / December / 2010, 00:01:50
SD1200 is not ixus950, it's ixus95. It's not currently in the main autobuild, but you should be able to find some builds in this thread.

Thank you so much, reyalp! I messed up the model numbers and didn't notice the extra 0 in there. CHDK is now booting!

Now I am working on getting RAW files converted to Photoshop readable DNG files using DNG2PS2 application.
Title: Re: SD1200 IS Porting Thread
Post by: fhchome on 24 / January / 2011, 21:23:27
Greetings, I want to use a SD1200 for a elementry school science project.   After I purchased a SD1200 I found out the version is 1.00B and not usable with the current build.

Can anyone tell me if anyone is working on a version for version 1.00B?

In addition, has anyone had any luck upgrading the versions of the cameras?

Thank you for the great work...
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 25 / January / 2011, 00:20:22
ixus95/sd1200is 1.00 c autobuild(beta) is now available for download on the chdk site page http://mighty-hoernsche.de/ (http://mighty-hoernsche.de/)
Title: Re: SD1200 IS Porting Thread
Post by: JohnB on 26 / January / 2011, 20:18:43
I loaded the sd1200is beta onto my camera and noticed a few quirks.  Is this the appropriate place to report/discuss potential bugs?
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 26 / January / 2011, 22:37:31
I loaded the sd1200is beta onto my camera and noticed a few quirks.  Is this the appropriate place to report/discuss potential bugs?
Yes.
Title: Re: SD1200 IS Porting Thread
Post by: Floppik on 28 / January / 2011, 12:38:51
it possible to shoot longer than 64 sec? For example ixus 80 can take a 2048 sec exposure.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 28 / January / 2011, 16:15:42
it possible to shoot longer than 64 sec? For example ixus 80 can take a 2048 sec exposure.
No, the code required to support this feature has not been added to ixus95
Title: Re: SD1200 IS Porting Thread
Post by: Floppik on 29 / January / 2011, 02:36:03
it possible to shoot longer than 64 sec? For example ixus 80 can take a 2048 sec exposure.
No, the code required to support this feature has not been added to ixus95

A cod has not added to chdk or has not added to ixus 95 firmware? just one person added a long exposure for a630 by analogy with the a530 and a590. As i know a630 also not supported a long exposure...
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 29 / January / 2011, 02:41:32
A cod has not added to chdk or has not added to ixus 95 firmware?
Not added to CHDK.
Title: Re: SD1200 IS Porting Thread
Post by: awdark on 29 / January / 2011, 15:56:05
I don't know if anyone has mentioned but the DNG functionality works in the camera now.  Really impressed and surprised because I didn't see that as one of the things that were fixed but it does work. 

The image is a bit different looking, more noise and grain but I think in camera JPG processing handles it a bit different from the way I normally "cook" the raws.
Title: Re: SD1200 IS Porting Thread
Post by: Floppik on 30 / January / 2011, 13:11:23
A cod has not added to chdk or has not added to ixus 95 firmware?
Not added to CHDK.
How to add? Maybe i try to do this?
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 30 / January / 2011, 14:48:55
How to add? Maybe i try to do this?
Look at any of the cameras that do support extra long exposure (CAM_EXT_TV_RANGE set in camera.h) and implement the equivalent. The exp_drv_task code must come from your cameras firmware dump, not one of the existing ports.

This thread http://chdk.setepontos.com/index.php?topic=3461.0 (http://chdk.setepontos.com/index.php?topic=3461.0) about the original invention of the feature should be helpful.
Title: Re: SD1200 IS Porting Thread
Post by: Zeke on 04 / February / 2011, 08:37:42
Is bracketing in continuous mode working?

When I enable "TV Bracketing" and shoot in manual mode using the camera's continuous mode, it doesn't change the exposure for each photo.
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 17 / March / 2011, 06:28:45
@zeke...yes it works, do u want the step by step instructions?
Title: Re: SD1200 IS Porting Thread
Post by: Brenno on 19 / March / 2011, 07:22:34
Please, does anyone know how to change colors of the games? They are a mess actually, almost unusable.
Thank you.
Title: Re: SD1200 IS Porting Thread
Post by: tillo on 27 / March / 2011, 23:31:19
whats up guys this is tillo back again, I've been checking on all of the new stuff you got and I see some big changes like sokoban finally working (really?), usb trigger taking pictures (in my camera going loop when not using a script), resolution is great so grids are clean, scripts still as flawless as allways, no optical zoom at video (I don't remember well but I think we had that covered already) nice dof using combinezm all else stills the same (I think) tell me what you think of video zoom, am I imaginating things or did I really had it?
Title: Re: SD1200 IS Porting Thread
Post by: Zeke on 17 / April / 2011, 09:15:02
@abhay
Yes please, I would be very grateful.
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 17 / April / 2011, 11:28:20
pretty simple @zeke, 1) in extra photo operations in main menu, set the disable overrides value to off 2)select the include autoiso & bracketimg 3)u may set an override shutter speed value to say 1/4 sec and its value factor to 1      4)override iso value value factor to off         5)bracketing in continuous mode tv bracketing value to lets say 1Ev at the moment and bracketing type to +/-.

bring the cam to shoot mode again and ensure that it is in continuos shoot mode, then keep the shutter pressed for as many shots as u want, say 3,5,7 etc, it will shoot with variable exposures for each shot by varying the shutter speeds like 1/4(initial),0.5,1/8,1,1/15,2,1/30 secs etc
Title: Re: SD1200 IS Porting Thread
Post by: Zeke on 18 / April / 2011, 10:39:00
Thank you very much, but is there an option or script which shoots continuous photos with only one pressing of the shutter button?
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 18 / April / 2011, 12:22:10
Try the custom timer option. Specify the delay until the first exposure and the number of exposures. I find that this works using SDM, but not CHDK (for HDR using bracketing)
Title: Re: SD1200 IS Porting Thread
Post by: abhay on 19 / April / 2011, 03:30:57
@zeke thanks, yes you can do with script also, try the HDR bracketing script
Title: Re: SD1200 IS Porting Thread
Post by: AMSlider on 04 / May / 2011, 17:41:35
Try the custom timer option. Specify the delay until the first exposure and the number of exposures. I find that this works using SDM, but not CHDK (for HDR using bracketing)

I agree that HDR bracketing in SDM seems to work with the custom canon/native timer, but the normal CHDK ( http://mighty-hoernsche.de/bins/ixus95_sd1200-100c-0.9.9-1173-full_BETA.zip (http://mighty-hoernsche.de/bins/ixus95_sd1200-100c-0.9.9-1173-full_BETA.zip) ) doesn't.  Without it, it's kinda pointless since I have the shakes :'(

I've tried nearly every script I could find and none of the delays work or the actual bracketing didn't work.

Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 05 / May / 2011, 07:12:03
Hello All,
One-press bracketing for the Ixus 95 SD1200 does not work (it does in SDM) and I cannot get zoom during video to function. It is enabled and there is a stub for it. The stub is the same in CHDKDE and SDM, does anyone have it working?
I also find that Remote does not work well in CHDK, but does in SDM 1.85, on the Ixus 95

Best,

Colin
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 17 / May / 2011, 04:03:43
Hello All,
One-press bracketing for the Ixus 95 SD1200 does not work (it does in SDM) and I cannot get zoom during video to function. It is enabled and there is a stub for it. The stub is the same in CHDKDE and SDM, does anyone have it working?
I also find that Remote does not work well in CHDK, but does in SDM 1.85, on the Ixus 95



@Microfunguy- Ixus 95 SD1200.
You must know the reasons why bracketing and remote work on SDM? If you let me know which parts of your code to use, I can copy your code for these features into CHDK?

Best,
Colin
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 17 / May / 2011, 05:49:36
I heard that this camera has 12 bit raw. Does it positively affect DNG quality much(given higher pixel density), compared to older cameras' 10bit raw?
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 17 / May / 2011, 06:39:32
I heard that this camera has 12 bit raw. Does it positively affect DNG quality much(given higher pixel density), compared to older cameras' 10bit raw?
I do not know about that, but here is a shot from my Ixus 95, originally in RAW http://www.flickr.com/photos/31637627@N08/4603083887/#in/photostream (http://www.flickr.com/photos/31637627@N08/5513471214/#in/photostream)

Best,

Colin

Link corrected
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 17 / May / 2011, 07:08:21
I heard that this camera has 12 bit raw. Does it positively affect DNG quality much(given higher pixel density), compared to older cameras' 10bit raw?
I do not know about that, but here is a shot from my Ixus 95, originally in RAW http://www.flickr.com/photos/31637627@N08/4603083887/#in/photostream (http://www.flickr.com/photos/31637627@N08/4603083887/#in/photostream)

Best,

Colin
I think you've give a wrong link...flickr says: This photo was taken on May 13, 2010 using a Canon PowerShot G9.
Please provide original raw file from SD1200, if possible
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 17 / May / 2011, 07:16:36
Redacted

Best,

Colin
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 18 / May / 2011, 01:16:56
Whoops,
I cannot do the original RAW, but this one is a three shot HDR done in RAW, from my Ixus 95 http://www.flickr.com/photos/31637627@N08/5513471214/#in/photostream (http://www.flickr.com/photos/31637627@N08/5513471214/#in/photostream)

Best,

Colin
No offence, Colin, but your HDR is not something that illustrate 12 bit advantage.
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 18 / May / 2011, 01:42:27
I heard that this camera has 12 bit raw. Does it positively affect DNG quality much(given higher pixel density), compared to older cameras' 10bit raw?
See http://chdk.setepontos.com/index.php?topic=2468.msg30570#msg30570 (http://chdk.setepontos.com/index.php?topic=2468.msg30570#msg30570)
Title: Re: SD1200 IS Porting Thread
Post by: drschwartz on 18 / May / 2011, 02:33:36
I heard that this camera has 12 bit raw. Does it positively affect DNG quality much(given higher pixel density), compared to older cameras' 10bit raw?
See http://chdk.setepontos.com/index.php?topic=2468.msg30570#msg30570 (http://chdk.setepontos.com/index.php?topic=2468.msg30570#msg30570)
So it means 12 bit ADC makes no sense in terms of SD1200 raw quality. Thanks.
Title: Re: SD1200 IS Porting Thread
Post by: mmblah on 19 / May / 2011, 13:23:51
Apologies if this has been addressed somewhere upthread and I missed it:

I just installed CHDK on this model per the "make bootable" instructions (noob on CHDK, not noob on SW/firmware in general).

Operation of the ON/OFF button is as-expected with the SD card unlocked: lens extends, camera is ready to take pictures, all good. When the card is LOCKed and I turn the camera on with the ON/OFF button (NOT the Playback button), I get the CHDK splash overlay but the camera comes up in Playback mode.

I don't know how to switch to picture-taking mode, or if this is a known bug. Is this atypical for this port at this point in time? Is there a workaround?
Title: Re: SD1200 IS Porting Thread
Post by: whim on 19 / May / 2011, 13:51:43
Hi mmblah, welcome to the forum.

This is 'normal' CHDK behaviour, there's 2 ways to cope with it:

1) just let it boot to Play mode, then do a shutter half-press to switch to Rec mode - or -

2) press and hold the on/off button until you see the CHDK logo (should be 1 - 1.5 sec)

hope that helps,

wim

Title: Re: SD1200 IS Porting Thread
Post by: mmblah on 19 / May / 2011, 20:10:53
Thanks for the prompt, courteous and helpful reply! --mm

[Edit] PS: Just for the record, for me, holding the ON/OFF button down doesn't seem to work at present with the release I D/L'd, but operating ON/OFF quickly and then half-pressing the "take picture" button a little bit later does.
Title: Re: SD1200 IS Porting Thread
Post by: georgK on 29 / May / 2011, 04:22:16
Hi,

unfortunately I'm stuck with the 1.00B firmware, therefor I'd like to compile the 1.00C CDHK version for 1.00B models. Can someone please comment in a few lines what would be necessary to get this running?

Thanks!
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 29 / May / 2011, 05:26:17
Hello & welcome, georgK !

unfortunately I'm stuck with the 1.00B firmware, therefor I'd like to compile the 1.00C CDHK version for 1.00B models. Can someone please comment in a few lines what would be necessary to get this running?
Dump your camera's firmware,
prepare the CHDK development environment (see http://chdk.wikia.com/wiki/Chdk-shell (http://chdk.wikia.com/wiki/Chdk-shell) ),
...then start with
http://chdk.wikia.com/wiki/CHDK-PT_:_A_tool_for_porting_CHDK_to_different_firmware_versions_of_the_same_camera (http://chdk.wikia.com/wiki/CHDK-PT_:_A_tool_for_porting_CHDK_to_different_firmware_versions_of_the_same_camera)
:D
Title: Re: SD1200 IS Porting Thread
Post by: georgK on 29 / May / 2011, 12:13:00
Thanks a lot for the links,

I've dumped the firmware, tomorrow I will have a go on the next steps.  :)
Title: Re: SD1200 IS Porting Thread
Post by: georgK on 31 / May / 2011, 17:03:30
So, I prepared the developement environment (took some time cause I'm not using windows but linux) and run cdhk-pt like its advertised on the wiki. I made it to the point where it says you should convert the adresses using a adress file for the reference port. Where do I get this? I have the firmware dump for 100c so I suppose I can extract the adresses from that but how?
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 31 / May / 2011, 19:23:21
So, I prepared the developement environment (took some time cause I'm not using windows but linux) and run cdhk-pt like its advertised on the wiki. I made it to the point where it says you should convert the adresses using a adress file for the reference port. Where do I get this? I have the firmware dump for 100c so I suppose I can extract the adresses from that but how?
Probably better to ask about that over in the CHDK-PT thread ? For example,  did you look at this :

http://chdk.setepontos.com/index.php?topic=6367.msg67430#msg67430 (http://chdk.setepontos.com/index.php?topic=6367.msg67430#msg67430)

Are you running CHDK-PT under linux ?  (e.g.  Wine or something ?)

Title: Re: SD1200 IS Porting Thread
Post by: georgK on 01 / June / 2011, 04:45:29
OK, I will have a look there...

Yeah, I'm running chdk-pt under Ubuntu 11.04 with Wine, runs without problems!
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 01 / June / 2011, 08:43:22
OK, I will have a look there...

Yeah, I'm running chdk-pt under Ubuntu 11.04 with Wine, runs without problems!
Be aware that I recently discovered a bug where CHDK-PT dissassembles an LDRD instrucion as STRD.  Should be easy to fix when I get a quiet minute but its always worth looking at the code produced against your reference port.

Also,  did CHDK-SHell install in Ubuntu without problems ?

Title: Ixus 95_SD1200 IS Porting: custom timer bracketing
Post by: hwntw on 04 / July / 2011, 06:20:20
Hello,
I have previously mentioned that my Ixus 95 bracketing with custom timer feature does not work. I understand from the forums that this is the case with other cameras.
http://chdk.setepontos.com/index.php?topic=650.msg69488#msg69488 (http://chdk.setepontos.com/index.php?topic=650.msg69488#msg69488)  shows how this can be fixed for other cameras than the Ixus 95.
Do forum users agree that adding more cameras to the list shown in the post above, will provide the fix for bracketing/custom timer shooting, where needed?

Best,

Colin
Title: Re: SD1200 IS Porting Thread [ ping reyalp ]
Post by: waterwingz on 04 / July / 2011, 11:51:54
Do forum users agree that adding more cameras to the list shown in the post above, will provide the fix for bracketing/custom timer shooting, where needed?
The SD1200 is not currently included in the list of cameras that get this fix but probably should be.

@reyalp : I can't submit patches this week - can you just add it directly ?


Fixed : SD1200 not SD1300
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 04 / July / 2011, 12:30:54
Do forum users agree that adding more cameras to the list shown in the post above, will provide the fix for bracketing/custom timer shooting, where needed?
The SD1300 1200 is not currently included in the list of cameras that get this fix but probably should be.

@reyalp : I can't submit patches this week - can you just add it directly ?

Yes, I tested it and it works

Colin
Title: Re: SD1200 IS Porting Thread
Post by: reyalp on 04 / July / 2011, 18:59:41
Do forum users agree that adding more cameras to the list shown in the post above, will provide the fix for bracketing/custom timer shooting, where needed?
The SD1300 1200 is not currently included in the list of cameras that get this fix but probably should be.

@reyalp : I can't submit patches this week - can you just add it directly ?

Yes, I tested it and it works

Colin
Done, changeset 1224 (http://tools.assembla.com/chdk/changeset/1224)
Title: Re: SD1200 IS Porting Thread
Post by: drworm on 25 / December / 2011, 01:19:49
I recently found the chdk and have been enjoying all the amazing work that has been done by the group.  thanks!!! 

I have noticed some strange behavior on the SD1200 IS (GM 1.00C) when running the beta CHDK version that I wanted to mention and see if anyone had solutions for.  the main issue is that the menus for scripting and font changing only work once.  After that they do not display properly and are not useable.  To be able to change scripts I have to reset all settings in chdk. Anyhow, I have a workaround and I am really enjoying all the new features. thanks again,

Dave
Title: Re: SD1200 IS Porting Thread
Post by: kaon on 16 / February / 2012, 10:13:37
Hi all,
 I have an IXUS 95 IS, and using the ver.req file, I see version 1.00C.

I then unzip this package ( ixus95_sd1200-100c-1.0.0-1659-full_BETA.zip ) into my card, then I get to the "firm update" by powering on using the play button. Then when I hit OK to update from 1.0.0.0 to 1.1.0.0, I get a red CHDK logo for half a second, then it goes back to "no image".

And I think the firmware update failed, and there is no effect on the camera. If I repeat going to "firm update" I see the same offer to go from 1.0.0.0 to 1.1.0.0

I do not get anywhere from a locked card.

Do I have to make some changes to the CHDK files for this camera?

And this camera doesn't have a "Direct Print" button, so I've seen mention of using quick press / long press of certain buttons... but I'm not sure..
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 16 / February / 2012, 10:34:01
Then when I hit OK to update from 1.0.0.0 to 1.1.0.0, I get a red CHDK logo for half a second, then it goes back to "no image".
The appearance of the logo means that you have successfully loaded CHDK.


Quote
I do not get anywhere from a locked card.
Did you follow the steps to make the card bootable first ?


Quote
Do I have to make some changes to the CHDK files for this camera?
No.

Quote
And this camera doesn't have a "Direct Print" button, so I've seen mention of using quick press / long press of certain buttons... but I'm not sure..
I checked the code.  It says that the "Play" button is the <ALT> button.
Title: Re: SD1200 IS Porting Thread
Post by: kaon on 16 / February / 2012, 11:52:46
I do not get anywhere from a locked card.
Did you follow the steps to make the card bootable first ?
OMG, THANK YOU!
I did not do that step with CardTricks.
Weird that I could not find a way to get to the CardTricks GUI from this package: CardTricks-144-SFX.exe
So I just tried running bootable.exe.org (after appending ".exe") with my drive letter, and then chose W then it worked! Yes short press PLAY button worked. THANK YOU.

EDIT:
I loaded INTERVAL.BAS and did some tests, with interval set to 3s, it seems that if you interrupt and restart the intervalometer using the shutter release button, the intervalometer goes crazy, speeding up its snaps and then finally stopping. Is this a known issue? Specific to this camera? I guess I could learn to always shut down the camera before re-starting fresh to restart intervalometer function.
Title: Re: SD1200 IS Porting Thread
Post by: kapuze on 23 / March / 2012, 11:37:30
I'm trying to get CHDK work on my IXUS95IS/SD1200IS 100b. For that it would be great to have a dump of the version 100c, for which there is a working port of CHDK. But unfortunately the offered links are dead (megaupload is blown up recently and drop.io has been cancelled by facebook 2 years ago!).

So can anybody obtain a firmware dump for SD1200IS 100c (the basic dumper script http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Dumper (http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Dumper) worked well on my cam).

Martin
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 23 / March / 2012, 11:48:55
Its available from http://www.box.com/chdk (http://www.box.com/chdk) in the P&S Firmware folder

If you are going to port to a different firmware version,  you might want to look at :

http://chdk.wikia.com/wiki/CHDK-PT_:_A_tool_for_porting_different_firmware_versions_on_the_same_camera (http://chdk.wikia.com/wiki/CHDK-PT_:_A_tool_for_porting_different_firmware_versions_on_the_same_camera)
Title: Re: SD1200 IS Porting Thread
Post by: kapuze on 04 / April / 2012, 12:21:28
Hi,

can anybody tell me how to start the chdk from my ixus95 with the firmware update? There is no update firmware option in the menu. How do i make it appear?

Martin
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 04 / April / 2012, 14:01:28
can anybody tell me how to start the chdk from my ixus95 with the firmware update? There is no update firmware option in the menu. How do i make it appear?
http://chdk.wikia.com/wiki/Prepare_your_SD_card (http://chdk.wikia.com/wiki/Prepare_your_SD_card)
Title: Re: SD1200 IS Porting Thread
Post by: Opal Lin on 19 / June / 2012, 20:16:53
Somehow, MF mode causes the camera (sd1200) to crash and lock up. I have to pull out the battery and reinsert to make it start up again... is this a bug, or is my camera MESSED UP???
Title: Re: SD1200 IS Porting Thread
Post by: zeb on 22 / August / 2012, 06:44:17
unfortunately I'm stuck with the 1.00B firmware, therefor I'd like to compile the 1.00C CDHK version for 1.00B models. Can someone please comment in a few lines what would be necessary to get this running?

Did you manage to port CHDK to the SD1200IS with 1.00B firmware?  I've just acquired one with 1.00B so will attempt it if you haven't.

Many thanks,
Title: Re: SD1200 IS Porting Thread
Post by: jmac698 on 23 / November / 2012, 00:40:13
That P&S folder is also gone.  Can anyone put up a copy of 1.00c somewhere?
Thanks.
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 23 / November / 2012, 00:46:07
That P&S folder is also gone.  Can anyone put up a copy of 1.00c somewhere?
The box.com account got overloaded with too many downloads this month.  Should be back next month.

However, as this is your first post,  I'm wondering why you want a firmware dump ?  If you are looking for CHDK for your camera,  you probably want to read this :

http://chdk.wikia.com/wiki/Prepare_your_SD_card (http://chdk.wikia.com/wiki/Prepare_your_SD_card)

followed by this

http://chdk.wikia.com/wiki/Downloads (http://chdk.wikia.com/wiki/Downloads)

Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 23 / November / 2012, 01:38:31
Edit: - anyone have the A570 1.01a firmware dump? The box repository is offline.
Not really, i've moved the "big" folders outside the public available share folder.

Some time ago, Box.net added the "Download folder" button for public shares also for free accounts; ATM there's no way to disable this...

Now users often use this button and download the whole CHDK folder or complete sub-folders like the "P&S fw dumps" folder.
Therefore the traffic limit of 10GB per month was reached after a few days...
Title: Re: SD1200 IS Porting Thread
Post by: luddek on 11 / January / 2013, 08:36:43
Hello everyone
So I managed to get it running on 1.00b by just changing three lines in boot.c from the 1.00c version.
Thank you chdk-pt.

I haven't tested it much, but I'm having a problem. Sometimes it doesn't want to boot, but it will boot if I delete the .cfg file. (Fixed by using stable source instead of unstable)

The firmware was dumped nice and easily by preparing a sd card and using the dumper. The firmware CHDK was then loaded using the lock-card method.

Anyway I'm going to post the boot.c, firmware dump and a test build somewhere. Any suggestions of where? I'm kind of lost. :)
Edit: For 60 days it's going to be here http://dropcanvas.com/40np3 (http://dropcanvas.com/40np3)

Edit 2: It doesn't build with OPT_GEN_SIGS checked. And it doesn't appear to have the boot problem with the stable branch instead. Anyway I'm attaching that build also and maybe someone can try it out.

Edit 3: Changing attachment to the stable build instead


In case my uploads get lost, here is the diff in boot.c between 1.00c and 1.00b
Code: [Select]
71c71
<     int *canon_data_src  = (int *)0xFFECD3E4;       //From end of first function
---
>     int *canon_data_src  = (int *)0xFFECD364;       //From end of first function
133c133
< "    LDR     R0, =0xFFECD3E4\n"
---
> "    LDR     R0, =0xFFECD364\n"
164a165
>
213c214
< "                 BL      sub_FFE6083C\n"
---
> "                 BL      sub_FFE607BC\n"
Title: Re: SD1200 IS Porting Thread
Post by: zeb on 11 / January / 2013, 16:01:31
Hi luddek,

That's excellent news.  When I tried porting (albeit quite a while ago), I didn't manage to find the differences that you did, everything to me looked exactly like 1.00c!

Can you tell me what method you used to boot CHDK?  As there isn't a ps.fi2 or ps.fir file, it looks like EOScard is my only option but as I don't use Windows, I'll have to hunt around for a Windows machine to hijack...

Many thanks in advance.
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 11 / January / 2013, 16:57:45
Can you tell me what method you used to boot CHDK?  As there isn't a ps.fi2 or ps.fir file, it looks like EOScard is my only option but as I don't use Windows, I'll have to hunt around for a Windows machine to hijack...
All kinds of good information about that here :  http://chdk.wikia.com/wiki/Prepare_your_SD_card (http://chdk.wikia.com/wiki/Prepare_your_SD_card)

If you want something simple,  just use the new STICK utility - there is an info box and link at the top of that page.  Works on Windows,  Linux or Apple.
Title: Re: SD1200 IS Porting Thread
Post by: zeb on 12 / January / 2013, 10:14:50
All kinds of good information about that here :  http://chdk.wikia.com/wiki/Prepare_your_SD_card (http://chdk.wikia.com/wiki/Prepare_your_SD_card)

If you want something simple,  just use the new STICK utility - there is an info box and link at the top of that page.  Works on Windows,  Linux or Apple.
Many thanks for that pointer - I'd looked at it but hadn't scrolled down far enough!  I'm not sure whether I could actually use STICK as this isn't an official build so wouldn't be downloadable but I've got it successfully booting and running the intervalometer script by using hexedit.

Initial indications are that it works as expected.  I'll give it a go and report back with any problems I notice.

Many thanks.
Title: Re: SD1200 IS Porting Thread
Post by: fe50 on 13 / January / 2013, 06:59:57
Added the
  • IXUS 95 / SD1200 1.00B
full 4MB dump (dumped with cBasic udumper) by luddek from  this forum post (http://chdk.setepontos.com/index.php?topic=4324.msg95589#msg95589) to the  CHDK P&S FW dumps (http://tinyurl.com/chdkfiles) repository.
Title: Re: SD1200 IS Porting Thread
Post by: luddek on 14 / January / 2013, 07:51:48
Thank you fe50
Zeb: You probably figured it out by now but I used the method where you boot and lock the card. I used cardtricks in a windows xp vmware emulation to load it. (I was able to use all the needed tools, chdk-pt and chdk-shell, in vmware so i can recommend it.)

I poked around and added support for extra long exposure(for 1.00b). Works with 120 seconds, haven't tested it very much, but seems to work with 10minutes as well.

It is only experimental, since I don't know what I'm doing, but i will add the source for it here if someone is interested. Note: If you build it you also need to uncomment this line in platform_camera.h
Code: [Select]
#define CAM_EXT_TV_RANGE            1 The long exposure can probably quite easily be added to 1.00c as well.

Also adding the test build to this post.
Title: Re: SD1200 IS Porting Thread
Post by: msl on 23 / February / 2013, 04:06:39
The FAT32 part in boot.c was commented out. Then it makes no sense to define 'multipart' in platform_camera.h.

Can anyone confirm that the multipartition function works (FW 1.00c)?

msl
Title: Re: SD1200 IS Porting Thread
Post by: greggyh on 02 / September / 2013, 19:45:20
Thank you luddek.

I had previously made an unsuccessful attempt at the 100b firmware port.  I missed boot(), I was unsure how to find the address, and I'm not sure I'd have made to leap to changing the local variable.

I made the same changes to boot.c on a recent trunk version (3058) and it nominally works, although I haven't done much more than enable DNG recording and the live histogram.

How would one go getting the 100b firmware changes checked in?
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 02 / September / 2013, 19:49:42
How would one go getting the 100b firmware changes checked in?
Typically you create a patch file and submit it here : 
Adding new cameras, applying patches into trunk (with source code prepared) (http://chdk.setepontos.com/index.php?topic=650.0)

Feel free to submit what you have so far.  However, to be included in the autobuild its preferred that the port be complete and have some reasonable level of testing.
Title: Re: SD1200 IS Porting Thread
Post by: koshy on 28 / October / 2014, 13:13:58
APB values and Palette screenshots as requested by nafraf:

Rec: 0
Play: 1

Play mode Canon Menu Tabs: 7,7,11
Rec mode Canon Menu Tabs: 5, 11

Note that the Palettes on camera and in CHDKPTP don't match. (So I'm posting photos showing both)
Title: Re: SD1200 IS Porting Thread
Post by: nafraf on 28 / October / 2014, 19:11:18
Thanks. Please test this patch.
Title: Re: SD1200 IS Porting Thread
Post by: koshy on 30 / October / 2014, 19:29:40
Custom palette seems present in Play and Rec mode. Menu colors after reset are the same as for A1100 where I made the according screenshots so I didn't here. CHDKPTP palette still does not match the one on camera.
Title: Re: SD1200 IS Porting Thread
Post by: nafraf on 30 / October / 2014, 22:52:04
There was a bug in void *vid_get_bitmap_active_palette(). Please test this patch.
Title: Re: SD1200 IS Porting Thread
Post by: koshy on 31 / October / 2014, 07:22:32
There was a bug in void *vid_get_bitmap_active_palette(). Please test this patch.
This patch does it. Menu colors after reset are what they should be. Custom palette is present both in play and Rec mode. CHDKPTP Palette matches Palette on camera. Well done. Thanks.
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 17 / September / 2017, 12:49:50
The FAT32 part in boot.c was commented out. Then it makes no sense to define 'multipart' in platform_camera.h. Can anyone confirm that the multipartition function works (FW 1.00c)?
Someone updated the wiki today for the SD1200 to point out that large microSD cards will work formatted FAT32 with firmware update booting.  But the wiki still says that multipartition support is not available for this camera. 

The code to provide multipartition support is in the source, so either the wiki is wrong (and it is available) or it does not work.

If somebody with the camera volunteers to test, we can fix this.
Title: Re: SD1200 IS Porting Thread
Post by: hwntw on 23 / September / 2017, 06:44:45
The FAT32 part in boot.c was commented out. Then it makes no sense to define 'multipart' in platform_camera.h. Can anyone confirm that the multipartition function works (FW 1.00c)?
Someone updated the wiki today for the SD1200 to point out that large microSD cards will work formatted FAT32 with firmware update booting.  But the wiki still says that multipartition support is not available for this camera. 

The code to provide multipartition support is in the source, so either the wiki is wrong (and it is available) or it does not work.

If somebody with the camera volunteers to test, we can fix this.
I tried to get two partitions working, I think I succeeded, but frankly it is all a bit confusing. What I did find was that the CHDK menu item ... /SDcard/make 2 partitions results in one (the boot) partition being too small to hold a a full CHDK distribution and I got an error msg Modules cannot load.
Manually creating the partions got around that problem.
I have an 8Gb sdcard, two partitions- one is 1.5Mb the other is 7.5Gb which CHIMP created for me automagically. I did all the file copy stuff and then booted using firmware update method. I noticed that partition Two was active. I made both partitions bootable and partition One active inside the CHDK menus. I then locked the card and autobooted successfully. With partition One active, the free disk space shows 7.5Gb.
I repeated the exercise with a 16Gb card and it went much as before, 14.9Gb free space, partition 1 showing as active on the OSD
Title: Re: SD1200 IS Porting Thread
Post by: waterwingz on 23 / September / 2017, 11:57:08
What I did find was that the CHDK menu item ... /SDcard/make 2 partitions results in one (the boot) partition being too small to hold a a full CHDK distribution and I got an error msg Modules cannot load.
When correctly formatted, the small (or boot partition) needs to be jusy big enough for the DISKBOOT.BIN file. You only need that one file installed there.  STICK and CHIMP will set thinga up that way for you.   Your manual approach might need alll the files until you get things setup correctly though.

Note that the second (or large partition) should have all the files installed.

Regardless of how you got the card configured, it sounds like the CHDK part works properly.  I'll update the wikia to remove the warning about it not working.

Thanks for reporting back on this.