Any developers interested in working on CHDK firmware for DSLRs ? - page 15 - DSLR Hack development - CHDK Forum

Any developers interested in working on CHDK firmware for DSLRs ?

  • 202 Replies
  • 100044 Views
*

Offline mx3

  • ****
  • 372
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #140 on: 05 / May / 2008, 02:44:51 »
Advertisements
30D/400D

I think somebody misunderstood me.
I think it is me :-)

I'm runing code (writen in asm now) on my 400D without problems.
that is great.

The problem is for me to write a code that will do something usefull :-)

i hope you arent goint to port linux or wince to your camera :-)
I think your code must be able to restart existing OS at least.
so your first (hello world) asm must be something like that:
B ffff0000
or
B ff810000

if your have camera restart with "B ff810000" sucessfuly you have all the chances to start porting of chdk
if it do not restart well you have to analise flasher to see what it executes to restart camera after flashing....
maybe something must be executed before "b ff810000"

I'm not an expert in disassembly - mayby it's easy to make a memory dumper?
lets see.
flasher contains full OS to be able to work with camera and it's devices (LCD, CF card, etc).
your code starts when OS is not initialized.
so you can't use OS specific functions to work with file system.
you can see discussion on this subject here universal dumper - one more idea

I see two views to this:
 - it was hard to make udumper . it was done for P&S cameras with SD cards(it uses low level functions to operate with SD card) and it is unknown how to make it for CF cards.
 - why to make dumper when we already have partial (vital for us ) part of ROM

actualy it could be useful to have ROM dump.
maybe FFFFXXXX adresses contain some code similar to P&S cameras wich can run some file from CF card.


some body can tell me how to write a file to CF card?
all work have been done on P&S cameras
P&S cameras do not support CF cards so I think nobody can tell you how to work with cf cards.
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

*

Offline Seklth

  • **
  • 54
  • 400D
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #141 on: 05 / May / 2008, 05:28:27 »
30D/400D

Quote from: mx3
if your have camera restart with "B ff810000" sucessfuly you have all the chances to start porting of chdk
if it do not restart well you have to analise flasher to see what it executes to restart camera after flashing....
maybe something must be executed before "b ff810000"
Ok, need test.
Flasher and firmware have functions ShutdownAndRestartBefore and ShutdownAndRestartAfter.

Quote from: mx3
flasher contains full OS to be able to work with camera and it's devices (LCD, CF card, etc).
your code starts when OS is not initialized.
so you can't use OS specific functions to work with file system.
In flasher code didn't create tasks for working with CF-card. Also i not see some names of debug logfile in flasher code.

Quote from: mx3
I see two views to this:
 - it was hard to make udumper . it was done for P&S cameras with SD cards(it uses low level functions to operate with SD card) and it is unknown how to make it for CF cards.
Maybe over low level access. If paste CF into camera (power - off), and close cover - led "access to CF" blinking.
Also MainFW have function EnableBootDisk.
« Last Edit: 05 / May / 2008, 15:32:25 by Seklth »

Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #142 on: 05 / May / 2008, 07:29:52 »
0019dc80h, maybe this is the real beginning of codes of 40D, here some bytes in 105 & 108 are the same.

*

Offline mx3

  • ****
  • 372
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #143 on: 05 / May / 2008, 07:35:58 »
0019dc80h, maybe this is the real beginning of codes of 40D, here some bytes in 105 & 108 are the same.

it is offset of data header section
see attached file 40d_v10.rar  Any developers interested in working on CHDK firmware for DSLRs ?

also see attached file eos_tools_v11.rar (Any developers interested in working on CHDK firmware for DSLRs ?)
« Last Edit: 05 / May / 2008, 07:37:48 by mx3 »
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler


Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #144 on: 05 / May / 2008, 08:03:31 »
I tried to restart the system. It didn't work. In fact I had to remove the 3V battery to restart my camera properly this time (earlier code could be restarted by removing only the main battery. wierd.

the eos firmware is running in sleep when you turn it off. It reacts on the switch (wake), on the button in the CF card cover (propably mounting the CF card), and cover on the battery pack. Am I right ?

note: my 400D don't want to load firmware without a *full* battery - it's a pain :\
« Last Edit: 05 / May / 2008, 08:05:37 by owerlord »

*

Offline Seklth

  • **
  • 54
  • 400D
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #145 on: 05 / May / 2008, 10:37:50 »
the eos firmware is running in sleep when you turn it off. It reacts on the switch (wake), on the button in the CF card cover (propably mounting the CF card), and cover on the battery pack. Am I right ?

I'm think, it is for recovery by bootable card - maybe work with corrupt main firmware.
Need see in EnableBootDisk)
« Last Edit: 05 / May / 2008, 15:36:15 by Seklth »

*

Offline Seklth

  • **
  • 54
  • 400D
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #146 on: 05 / May / 2008, 16:02:09 »
400d do more action (blinking "CF" and create DCIM\10xCANON) if card bootable (FAT16 and "BOOTDISK" at 0x40 in mbr).

Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #147 on: 05 / May / 2008, 17:04:11 »
I'm interested in changing/adding some things around in the way my 400D (XTi) works and found this thread.

I am interested in helping with the port. I have worked with CF and porting source code professionally, but never had to start from raw binaries.

What is the current status of the port?

Is there a "Getting Started" or similar wiki to help get me rolling with the code?

Thanks in advance.


*

Offline Seklth

  • **
  • 54
  • 400D
Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #148 on: 06 / May / 2008, 01:38:28 »
>What is the current status of the port?
how run some useful code =)) and how dump RAM and ROM)

*

ASalina

Re: Any developers interested in working on CHDK firmware for DSLRs ?
« Reply #149 on: 06 / May / 2008, 11:20:39 »

I am interested in helping with the port. I have worked with CF and porting source code professionally, but never had to start from raw binaries.

What is the current status of the port?

You might want to have a look at owerlord's posts. He's working on the 400D and seems to have made some progress in determining that the camera will execute code stored on the CF card. mx3 is looking into a memory dumper that the camera can execute to get a full image of the running camera's memory for better analysis.

I try to help where I can but mostly I just try to stay out of people's way. :-)

Quote from: device_drvr
Is there a "Getting Started" or similar wiki to help get me rolling with the code?

The CHDK Wiki has a general overview of the project, which has until recently been centered around point-and-shoot cameras. Check the "For Developer's" section.

CHDK - CHDK Wiki

 

Related Topics