My projects - DSLR Hack development - CHDK Forum

My projects

  • 25 Replies
  • 18352 Views
My projects
« on: 06 / June / 2008, 07:52:27 »
Advertisements
Seklth asked me to publish my projects.

I'm working in C, with a init in asm.
I have a small .idc to generate linking map from IDA. Just write to "request.list" declarations of functions and varibles - and it will pull out the positions from IDA.

The makefile makes .fir and AUTOEXEC.BIN.

I attach the workspace. The project is the romStart->..->Startup path. with commented out the debug redirection and the log-level change.

It's a mess. I know.

Re: My projects
« Reply #1 on: 06 / June / 2008, 09:04:22 »
He He ... after a clean - the thing don't work.
I'll check why and post.

NEW:
 I have no time now. I'll check it later - and post.
« Last Edit: 06 / June / 2008, 17:42:12 by owerlord »

Re: My projects
« Reply #2 on: 07 / June / 2008, 15:13:17 »
Hi,

I like te your work but can you provide an example of the "request.list" file for us sp we know what to provide as input?

An by the way, are the defenitons in the file "request.auto.h" from a 40D or other camera?

thanks

Re: My projects
« Reply #3 on: 08 / June / 2008, 13:52:45 »
Ok. now it's working - but it's ... lame.

The orginal idc exported function and variable addreses as symbols to linker - I don't know why it stoped working when I made the clean version for you. But the fact is - it stoped. So now I made a new version witch export the adreses as variables in the request.auto.o. The good thing is : it works.

The code is in the attachment.

! NO WARRANTY !

Code is for 400D. The format for request.list is :
[type] name [(args types)] [;]
Like a C definition only you don't nead ; and the type is int when not specyfied. One definition per line.


Re: My projects
« Reply #4 on: 08 / June / 2008, 13:55:32 »
BTW: I attach my actual function list.

*

Offline Seklth

  • **
  • 54
  • 400D
Re: My projects
« Reply #5 on: 22 / June / 2008, 15:04:29 »
Startup over autoexec.bin - it is good way. But if card bootable and not have autoexec.bin - camera not startup.
And autoexec.bin runned after close\open card cover, or close\open battery cover. But if power set as Off - camera run out code, what start firmware and set to off. It good))

autoexec.bin loaded to 0x800000.

This project - it is copy of code mainfirmware - from loc_FF810054  to task_Startup.
We can hook in this code, what need) And possibility copy code after task_Startup and hook other functions, if need.

My trouble - i can't  out debug info by led, and not know, how write file. Owerlord, maybe you help me with it? :)
« Last Edit: 23 / June / 2008, 05:06:06 by Seklth »

Re: My projects
« Reply #6 on: 23 / June / 2008, 14:00:42 »
1. task_Startup is no-return. So you can't run code after it - only before the last procedure (the console) runned by Startup.

2. I haven't write a file succesfully yet. I don't know why ! I tried much.

3. Actually I don't have time for this project - I'm leaving in less then 2 weekend for vacations (2 months in Norway and Pireneyes) - so I'll propably get back to it in september - and propably in the mean time - you folks be done with the thing then :-)

*

ASalina

Re: My projects
« Reply #7 on: 24 / June / 2008, 11:47:08 »
Enjoy your vacation and thanks again for the help, owerlord.


*

Offline Seklth

  • **
  • 54
  • 400D
Re: My projects
« Reply #8 on: 26 / June / 2008, 04:48:46 »

Create task, wait 5 sec, and dump ram! :-)
http://seklth.ru/chdk/autoexec.bin.dump.rar
 
And my idb file (without loaded ram)
http://seklth.ru/chdk/400D_E4KR3111_FF810000_20080626.rar

*

Offline Seklth

  • **
  • 54
  • 400D
Re: My projects
« Reply #9 on: 26 / June / 2008, 04:49:17 »

Create task, wait 5 sec, and dump ram! :-)
http://seklth.ru/chdk/autoexec.bin.dump.rar
 
And my idb file (without loaded ram)
http://seklth.ru/chdk/400D_E4KR3111_FF810000_20080626.rar

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal