Porting the ixus70_sd1000 ver 102a to CHDK - General Discussion and Assistance - CHDK Forum
supplierdeeply

Porting the ixus70_sd1000 ver 102a to CHDK

  • 82 Replies
  • 26089 Views
*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Porting the ixus70_sd1000 ver 102a to CHDK
« on: 12 / January / 2008, 10:09:06 »
Advertisements
Hello

Starting porting the ixus70_sd1000 ver 102a here are some files to download that i found out. Not sure of everything is correct. I have til now no idea for the file lib.c. I hope some of the developers can help me find out the right values.

http://www.zshare.net/download/6441657901074f/

btw i also start porting the ixus850_sd800 100e. I will upload files next week.

greetings quietschi

*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #1 on: 12 / January / 2008, 17:15:14 »
Hi

new lib.c

#include "platform.h"
#include "keyboard.h"

void *hook_raw_fptr()
{
    return (void*)0x0;
}

void *hook_raw_ret_addr()
{
    return (void*)0x0;
}

char *hook_raw_image_addr()
{
    return (char*)0x10E706A0; //(0x10E70000 + 0x6A0) (find on ".crw")
}

long hook_raw_size()
{
    return 0x8CAE10; //7mpx (0x8C0000 + 0xAE00 + 0x10)(find on ".crw")
}

void *vid_get_viewport_live_fb()
{
    return (void*)0x0;
}

void *vid_get_bitmap_fb()
{
    return (void*)0x10361000; //(0x10360000 + 0x1000) (find on "BmpDDev.c")
}

void *vid_get_viewport_fb()
{
    return (void*)(0x1065BA50); //(find on "VRAM Address  : %p")
}

void *vid_get_viewport_fb_d()
{
    return (void*)(*(int*)0x4D398); //(find on "WBTblAdj.c")
}

long vid_get_bitmap_width()
{
    return 360;
}

long vid_get_bitmap_height()
{
    return 240;
}

long vid_get_viewport_height()
{
    return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
}


greetings quietschi

*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #2 on: 17 / January / 2008, 12:07:21 »
Hi

Some success. I can compile the firmware and the camera start with blinking blue led splash screen and chdk running.
I can navigate through the menu, change values like osd raw parameter etc.

Everything works as far as i can see.

Here is the Problem.
1. I cannot start the games.
2. When I try to make a picture the camera shuts down and no picture were save on sd card.
3. When I try to make apicture in raw the blue led lights for a few seconds then the camera shuts down. The crw image is saved in \DCIM\000CANON\  as CRW_0001.CRW. After restart when I make a new picture in raw its again saved as CRW_0001.CRW - the first picture is lost.

Here are the files i use for compiling.

http://www.zshare.net/download/66075977e2b947/

Here is the primary.bin

http://www.zshare.net/download/63129850141872/

Maybe someone knows whats wrong

greetings quietschi



*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #3 on: 17 / January / 2008, 14:10:46 »
Try other value for  PARAM_FILE_COUNTER in shooting.c (probably 0x37).
And you can reduce functions in capt_seq.c to its original versions (for example, instead of  sub_FFAFECD8_my call simply sub_FFAFECD8). Maybe, copy-paste error?
« Last Edit: 17 / January / 2008, 14:21:22 by ewavr »


*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #4 on: 17 / January / 2008, 14:27:29 »
Hi

The Camera still shut down after i take a picture. But now the raw image is saved in \DCIM\100CANON\ with the correct file name CRW_0220.CRW, CRW_0221.CRW ...

Taking jpeg still don't work. No image saved and shutdown.

I also have to say that there is no playback on the lcd after shooting. any other idea

thanks quietschi


*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #5 on: 17 / January / 2008, 15:00:39 »
Hi

i changed first

"BL      sub_FFAFECD8_my\n"  to  "BL      sub_FFAFECD8\n"

image playback works, files were saved as jpeg, but no raw file saving, also after changing both

"BL      sub_FFB01EB0_my\n"  to  "BL      sub_FFB01EB0\n"
and
"BL      sub_FFAFECD8_my\n"  to  "BL      sub_FFAFECD8\n"

So i check my capt_seq.c

thanks quietschi



*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #6 on: 17 / January / 2008, 18:28:51 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #7 on: 17 / January / 2008, 18:47:11 »
« Last Edit: 17 / January / 2008, 19:06:56 by ewavr »


Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #8 on: 19 / January / 2008, 02:12:14 »
Any update on the development?

*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Porting the ixus70_sd1000 ver 102a to CHDK
« Reply #9 on: 20 / January / 2008, 02:39:34 »
Hi

The file numbers are ok now. thanks ewavr

About the record/play mode detection
in misc values.

in shooting mode
1:10FF0245
2:DB20DA08
3:    EFFD
3:    EFFD

in movie mode
1:10FC0245
2:DB20DA08
3:    FFFD
3:    FFFD

in play mode
1:101F0240
2:DB20DA08
3:    BFFD
3:    BFFD

the values are not constant, they change several times in a second like 3:    BFFD - 3:    BFFE

I'm not sure wich values to use

quietschi

 

Related Topics