SD1200 IS Porting Thread - page 21 - DryOS Development - CHDK Forum

SD1200 IS Porting Thread

  • 312 Replies
  • 161708 Views
*

Offline reyalp

  • ******
  • 14125
Re: SD1200 IS Porting Thread
« Reply #200 on: 26 / September / 2010, 19:07:15 »
Advertisements
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

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
« Last Edit: 27 / September / 2010, 12:34:43 by reyalp »
Don't forget what the H stands for.

Re: SD1200 IS Porting Thread
« Reply #201 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.


*

Offline hwntw

  • ***
  • 162
Re: SD1200 IS Porting Thread
« Reply #202 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

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


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.
« Last Edit: 28 / September / 2010, 09:00:46 by hwntw »
Ixus 95 IS Ixus 30 izoom Powershot S80 S100 S200


Windows 10

*

Offline hwntw

  • ***
  • 162
Re: SD1200 IS Porting Thread
« Reply #203 on: 28 / September / 2010, 08:32:49 »
Dileu/deleted

Hwntw
« Last Edit: 28 / September / 2010, 10:19:00 by hwntw »
Ixus 95 IS Ixus 30 izoom Powershot S80 S100 S200


Windows 10

*

Offline reyalp

  • ******
  • 14125
Re: SD1200 IS Porting Thread
« Reply #204 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.
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 162
Re: SD1200 IS Porting Thread
« Reply #205 on: 28 / September / 2010, 12:36:23 »
@Reyalp
Now you know how it is for me :'(
Ixus 95 IS Ixus 30 izoom Powershot S80 S100 S200


Windows 10

Re: SD1200 IS Porting Thread
« Reply #206 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 ?


*

Offline reyalp

  • ******
  • 14125
Re: SD1200 IS Porting Thread
« Reply #207 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.
Don't forget what the H stands for.

Re: SD1200 IS Porting Thread
« Reply #208 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.

Re: SD1200 IS Porting Thread
« Reply #209 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
DNG screenshot

Everything else seems to be working pretty well now. If anyone wants me to test something specific just tell me  :)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal