500d development - page 43 - DSLR Hack development - CHDK Forum

500d development

  • 2487 Replies
  • 901243 Views
*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #420 on: 28 / February / 2011, 17:16:19 »
Advertisements
Quote
can anyone provide any more info on using the console / what can be done with it?

Besides the browseable HTML analysis and sort of decompiling, I use it often to solve call parameters / register values at various points in the firmware.

Some examples:

Code: [Select]
print deco.decompile(0xFF010424)
bkt.back_solve(0xFF01FFF4, ["ARM.R0", "ARM.R1"])

See the wiki for details, and try the code snippets.
http://magiclantern.wikia.com/wiki/GPL_Tools/ARM_console
http://magiclantern.wikia.com/wiki/GPL_Tools/ARM_console/API
http://magiclantern.wikia.com/wiki/GPL_Tools/match.py

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #421 on: 01 / March / 2011, 14:52:52 »
something pretty scary - i just realized (after talking with Alex) that this whole time I've been running ML on v1.0.9


(mfw i realized this)

i'm surprised/happy it didn't brick. so anyway before I update to 1.1.0, having a 1.0.9 camera, is it worth obtaining a dump of the 1.0.9 firmware before I just throw the latest update on?
if so, is there a dumper for the 500d?
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

*

Offline zanak

  • *
  • 11
Re: 500d development
« Reply #422 on: 01 / March / 2011, 15:05:29 »
sorry for asking that but how i install that ? exist an easy guide or something like that?

Re: 500d development
« Reply #423 on: 01 / March / 2011, 15:13:54 »
sorry for asking that but how i install that ? exist an easy guide or something like that?

Yes there is, its on the 500D ML Page on Wikia, http://magiclantern.wikia.com/wiki/500D


*

alins

Re: 500d development
« Reply #424 on: 01 / March / 2011, 16:08:57 »
Iif so, is there a dumper for the 500d?

There's a dumper in the codebase which doesn't compile. I'm guessing if you can compile it, maybe you can use it to dump the firmware. I have nu clue how you trigger it

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #425 on: 01 / March / 2011, 16:16:36 »
Iif so, is there a dumper for the 500d?

There's a dumper in the codebase which doesn't compile. I'm guessing if you can compile it, maybe you can use it to dump the firmware. I have nu clue how you trigger it
I ran chuchin's FIR posted at the beginning of this thread again (i'm still on 1.0.9), the bootflag part should be the same between firmware versions correct? I mean.. I've been running ML fine despite being on the wrong firmware version lol.

It spit out a 9.4mb bin file though (i must have ignored and deleted it the first time I did this, didn't know anything back then), so I think that's a dump of the 500d 1.0.9 firmware, not sure if it will be of any use but I've got it anyway.
If i upgrade to 1.1.0 and run chuchin's fir again it should spit out a full dump of the 1.1.0 firmware, correct? I know everyone probably already has a copy of this bin but I'm just trying to build up a collection of bins on my computer, just to have them.
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

*

alins

Re: 500d development
« Reply #426 on: 01 / March / 2011, 16:41:59 »
It spit out a 9.4mb bin file though (i must have ignored and deleted it the first time I did this, didn't know anything back then), so I think that's a dump of the 500d 1.0.9 firmware, not sure if it will be of any use but I've got it anyway.

i believe you are correct. i remember seeing that file the first time i run the FIR file and i did the exact same thing as you (delete it) for the same reason (didn't knew better at the time)

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #427 on: 01 / March / 2011, 17:12:13 »
It spit out a 9.4mb bin file though (i must have ignored and deleted it the first time I did this, didn't know anything back then), so I think that's a dump of the 500d 1.0.9 firmware, not sure if it will be of any use but I've got it anyway.

i believe you are correct. i remember seeing that file the first time i run the FIR file and i did the exact same thing as you (delete it) for the same reason (didn't knew better at the time)

refer to my previous post: I've been running 1.0.9 with ML and it's somehow worked, and I didn't notice I was on the wrong version. So when I ran that FIR earlier, that means I now have a dump of the 1.0.9 firmware. Before I upgrade to 1.1.0, I want to make sure that there's nothing else useful I can do still being on 1.0.9 (I've got a bin now of the 1.0.9 firmware, I'm not sure if that can be used for anything or not).
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr


*

alins

Re: 500d development
« Reply #428 on: 01 / March / 2011, 17:51:38 »
well, i'm not sure either what else you can do in 1.0.9 besides dumping the firmware.

In my opinion as long and the main function addresses and properties didn't change between 1.0.9 and 1.1.0 ML should work on both, which i believe explains why it worked in your case. The potential danger here is if some address that in used in ML written for let's say 1.1.0 is actually something else in 1.0.9 ( something that can cause some serious damage to your camera).

bottom line: you where lucky...

going back to 1.0.9: one thing you can do is use patchdiff2 (http://code.google.com/p/patchdiff2/) to diff the 1.0.9 and 1.1.0. i'm not sure what kind of data you will find and how useful it is. i'm pointing out one potential use of having different firmware versions

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #429 on: 01 / March / 2011, 20:27:04 »
well I ran patchdiff2 and it spit out:

Identical functions:        6778
Matched functions:        0
Unmatched functions 1: 173
Unmatched functions 2: 173

so only 173 functions differ between the 2 firmware versions?
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

 

Related Topics