[dev] Guessing structures from memory addresses

38 views
Skip to first unread message

Alex

unread,
Jul 6, 2011, 7:00:49 AM7/6/11
to Magic Lantern firmware development
Here's a short tutorial which shows how to identify the structure
where a given memory address belongs to.
http://magiclantern.wikia.com/wiki/Struct_Guessing

This is helpful in finding the code which references addresses found
with mem-spy
http://magiclantern.wikia.com/wiki/Memory_Addresses

As an example, I've explained how to apply this in finding
FOCUS_CONFIRMATION (used for Trap Focus) on 60D, 600D and 50D,
starting from the address discovered with mem-spy on 550D.

The tutorial is a bit rough, and improvements are welcome. It is
inspired a bit from Arm.Indy's latest work in getting VRAM addresses
from code. I have tried to do the same thing for HD buffers, without
success yet.

Vincent Olivier

unread,
Jul 6, 2011, 11:02:53 AM7/6/11
to ml-d...@googlegroups.com
Hi Alex,

Using the alpha codebase and building it for 600D, don't see anything in the logs (when pressing [Q]) with the Debug/"Spy…" option on. What am I supposed to look for? Is it supposed to have the [MAGIC] prefix?

And then, I look this up in the ARM console?

And then, try to fin out the structures?

Are there specific structures/addresses you KNOW need to be ported for 600D?

Vincent

> --
> http://magiclantern.wikia.com/
>
> To post to this group, send email to ml-d...@googlegroups.com
> To unsubscribe from this group, send email to ml-devel+u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en

Andrew Coutts

unread,
Jul 16, 2011, 9:59:51 AM7/16/11
to Magic Lantern firmware development
I think it's more for understanding how the camera works :)

I'm not sure if it's done yet on the 600D, but I had to fix the
mvr_config struct for the 500d and it was quite "fun" :P
Reply all
Reply to author
Forward
0 new messages