Source

Magic Lantern /

Filename Size Date modified Message
112 B
837 B
5.6 KB
1.4 KB
4.1 KB
3.4 KB
1.1 MB
612 B
3.4 KB
2.2 KB
10.6 KB
3.0 KB
3.4 KB
1.7 KB
1.2 KB
547 B
1.0 KB
5.2 KB
11.6 KB
7.3 KB
5.1 KB
186 B
221 B
974 B
2.5 KB
4.0 KB
5.3 KB
4.4 KB
4.3 KB
1.3 KB
907 B
460 B
881 B
44.7 KB
872 B
2.0 KB
1.8 KB
1.2 KB
197 B
4.8 KB
8.5 KB
2.1 KB
287 B
3.9 KB
2.7 KB
          ***************************************************
          *                                                 *
          * THIS IS DANGEROUS AND MIGHT DAMAGE YOUR CAMERA. *
          *  NO WARRANTIES.  NO GUARANTEES.  DO NOT TAUNT.  *
          *                                                 *
          ***************************************************

If you are not comfortable with this, stop reading and delete the
software before you are tempted to try running it on your camera.
It works on my camera, with my version of arm-linux-gcc, and with
my version of perl to build the firmware file, but that is no
guarantee that it will work for you.

Please see the LICENSE file for additional terms that cover
distribution of this software.

To repeat this important point:

          ***************************************************
          *                                                 *
          * THIS IS DANGEROUS AND MIGHT DAMAGE YOUR CAMERA. *
          *   IF IT BREAKS, YOU GET TO KEEP BOTH PIECES.    *
          *                                                 *
          ***************************************************

IMPORTANT NOTES

* If you encounter a "locked up" camera, quickly remove the battery.
  Otherwise the ARM might be in a tight-loop and get very hot, very quickly.
  Your battery will run down and your LCD might show some discoloration.

* When in doubt, remove the battery and reboot.

* And, remember that this software can damage or destroy your camera.


TODO LIST:

* Palette for bitmap vram (done)
* Figure out how to create a custom menu
	* hijack factory or photostudio menu?
* Find routine to trigger shutter
* Linker script to fix off by 0x120 error in reboot.c
* Linker script to create data segment in hacked code
* Reduce amount of DryOS copied (64 KB is more than necessary)
* Re-arrange to have 64 KB of DryOS below 5d-hack.bin
* Audio device is shut off after movie; keep it enabled
* Better interaction with powersave and LCD disabled modes
* Configurable fixed audio gain
* Configurable crop marks
* Use inclinometer to measure angle
* Record meta data about video into separate file


BOOT PROCESS OVERVIEW

* Camera DryOS copies .fir file into RAM at 0x800000 and jumps into it.
* The first instruction does a long jump to 0x80000c to clear some headers
* The CPSR is updated to put the ARM into supervisor mode (it already is)
* An initial stack is setup at 0x1900
* Branch to cstart() in reboot.c
* set up the memory regions for the camera version of DryOS
* enable all caches and rw regions
* select reboot vectors in low memory
* copies the 5d-hack.bin blob to above the DryOS BSS
	* This is the RESTARTSTART location
	* End of BSS is found in _entry() where it loops to zero it
	* Note off by 0x120 error due to .fir header.
* flushes caches
* Jumps into 5d-hack.bin copy_and_restart() code at RESTARTSTART (0x48000)
	* copy_and_restart() must be first routine in 5d-hack.c
* copy_and_restart() copies the first 64 KB of ROM to 0x50000
* It then patches a few instructions to fixup some branch instructions
  and to return to its control before control is transfered to the
  cstart() routine in the firmware.  It also updates the end of the BSS
  so that both itself and the copied portion of DryOS will be saved
* It installs a task dispatch hook in the function pointer at 0x1934.
  This will be called when ever a new task is run, allowing our code
  to disable Canon tasks or re-purpose them with our own implementations.


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.