550D/T2i port of Magic Lantern

286 views
Skip to first unread message

Trammell Hudson

unread,
Jul 31, 2010, 11:05:01 PM7/31/10
to ml-d...@googlegroups.com
I am very proud to announce that we have started support for the
Canon 550D / T2i in a branch of the Magic Lantern tree. Thanks to
the assistance of arm.indy and an anonymous contributor, we were
able to sign an initial Magic Lantern firmware image and port the
existing code to work with the version 1.0.8 firmware in the 550D.

http://vimeo.com/13793063

The first version will have audio meters, lens data and maybe manual
audio gain plus monitoring on the A/V jack. I haven't found the
video ram device yet (vram_get_number() returns -1 on all devices),
so zebra stripes and histograms won't work for a little while.

There might also not be a menuing system initially since there are
no "spare" buttons on the 550D in movie mode and we still do not
have a way to integrate with Canon's menus.

The initial testing version will be available to those brave enough
to test it and with a spare SD card that they can dedicate to the
project. It will come in two pieces: an installation firmware file
that will set the autoboot flag and write the boot block to the SD
card, and an AUTOEXEC.BIN that the camera will load automatically
when that card is in the camera. Unlike the 5D Mark II, it will
only be possible to build unsigned AUTOEXEC.BIN files for the
firmware image.

Please send me an email if you want to participate in the alpha tests.

--
Trammell

Ba...@aol.com

unread,
Jul 31, 2010, 11:12:13 PM7/31/10
to ml-d...@googlegroups.com
Hi Tram...
 
I have a t2i too now,  so I will be able to test if you would like.
 
 
Chris Barcellos
 
--
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

Dan Chung

unread,
Jul 31, 2010, 11:19:35 PM7/31/10
to ml-d...@googlegroups.com
Tram,

Happy to test on my 550d

Dan

Sent from my iPhone

Kevin Dooley

unread,
Jul 31, 2010, 11:31:55 PM7/31/10
to ml-d...@googlegroups.com, ml-d...@googlegroups.com
I also have a T2i and would be willing to test.

Sent from my iPhone

Pascal Germroth

unread,
Aug 1, 2010, 7:02:33 AM8/1/10
to ml-d...@googlegroups.com
Hallo,

> I am very proud to announce that we have started support for the
> Canon 550D / T2i in a branch of the Magic Lantern tree.

Does this mean that there is any hope for a backport to 500D?

With people upgrading to 550D they should be available cheaper now, and
if ML were available, that would make a great beginner's device...

Or are there any radical hardware changes on the 550D?


--
pascal

arm.indy

unread,
Aug 1, 2010, 12:00:57 PM8/1/10
to Magic Lantern firmware development


On Aug 1, 5:05 am, Trammell Hudson <hud...@osresearch.net> wrote:
> There might also not be a menuing system initially since there are
> no "spare" buttons on the 550D in movie mode and we still do not
> have a way to integrate with Canon's menus.
the SET button seems available.

The "crop movie 640x480" mode seems new compared to the 7d and 5dm2,
it offers a x7 multiplication factor (certainly by recording only the
center of the sensor) : another idea discussed on the ML, that appears
in a Canon firmware...

Arm.Indy

Antony Newman

unread,
Aug 1, 2010, 2:22:24 PM8/1/10
to ml-d...@googlegroups.com
Great work Gents!

mohan

unread,
Aug 1, 2010, 1:20:05 PM8/1/10
to Magic Lantern firmware development
Thats really a great news for us independent film makers.. :)

Thanks for committing..

mohan manu

unread,
Aug 1, 2010, 1:00:56 PM8/1/10
to ml-d...@googlegroups.com
Hi hudson,

I have an 550d and very willing to test the firmware with my camera. Please add me in your alpha testers list for 550d.

Regards,

(Mohan)

Trammell Hudson

unread,
Aug 1, 2010, 2:44:30 PM8/1/10
to ml-d...@googlegroups.com
On Sat, Jul 31, 2010 at 11:05:01PM -0400, Trammell Hudson wrote:
> [...] Please send me an email if you want to participate in the
> alpha tests.

There was an overwhelming amount of interest in testing this, so I
have posted the current build and written some installation
instructions on the wiki:

http://magiclantern.wikia.com/wiki/550D

The usual caveats apply even more in this case than the 5D code.
Unlike the 5D, this does write to the camera's NVRAM to set the
DISKBOOT flag.

Good luck!

--
Trammell

arm.indy

unread,
Aug 1, 2010, 5:11:54 PM8/1/10
to Magic Lantern firmware development
On Aug 1, 5:05 am, Trammell Hudson <hud...@osresearch.net> wrote:
> The initial testing version will be available to those brave enough
> to test it

Lens data (distance with my 17-55, and focal) are OK, like audiometers
in rec mode.
but f/ number, speed and ISO value (in red) seem not updated.
f/ always to 5.6, speed always to 1/60 and ISO to "0x00" in RED.

Autoboot alone (without upgrade each time) does not work. I have
"Done" in bug letters as expected, just before booting the
autoexec.bin.

Trammel, thanks for this great work in such a short time!

Arm.Indy

Trammell Hudson

unread,
Aug 1, 2010, 5:17:03 PM8/1/10
to ml-d...@googlegroups.com
Did you mark the card as bootable with cardtricks or dd? Autoboot won't work without a bootable card.

Or I might have commented out the call("EnableBootDisk") in bootflags.c when I was stubbing out the sd->readblock() calls. I'll check when I get home.

Sent from my iPhone

Ba...@aol.com

unread,
Aug 1, 2010, 5:22:21 PM8/1/10
to ml-d...@googlegroups.com
First problem I am running into is marking the disk bootable.   I reformatted disk in camera, loaded it with the new version of ML,   then went to Card Tricks,   and mark bootable is greyed out.   So I am now reformatting from Card Tricks and will add the files back to the card,  and see if mark bootable comes up as accessible.
 
Formatting now..
 
Chris Barcellos

Trammell Hudson

unread,
Aug 1, 2010, 7:27:43 PM8/1/10
to ml-d...@googlegroups.com
On Sun, Aug 01, 2010 at 02:11:54PM -0700, arm.indy wrote:
> Lens data (distance with my 17-55, and focal) are OK, like audiometers
> in rec mode.
> but f/ number, speed and ISO value (in red) seem not updated.
> f/ always to 5.6, speed always to 1/60 and ISO to "0x00" in RED.

I've confirmed this behaviour. It appears that the properties for
the exposure settings are only updated in manual exposure mode.
There must be a different property for the auto-program modes.

> Autoboot alone (without upgrade each time) does not work. I have
> "Done" in bug letters as expected, just before booting the
> autoexec.bin.

Rather than using call-by-name, I switched to a direct function call
to bootdisk_enable() and toggled it off on my camera to confirm that
it would be correctly set. I've uploaded -rc1 to bitbucket with the
fix.

Do be sure that your SD card is correctly marked for autoboot; I use
dd (or bvi) to do it:

echo EOS_DEVELOP | dd of="$dev" bs=1 seek=71 count=11
echo BOOTDISK | dd of="$dev" bs=1 seek=92 count=8

> Trammel, thanks for this great work in such a short time!

It wouldn't have happened with out your (and other parties')
assistance!

--
Trammell

Ba...@aol.com

unread,
Aug 1, 2010, 8:31:53 PM8/1/10
to ml-d...@googlegroups.com
No luck for me in getting card marked as bootable in Card Tricks.   Anyone else having any luck ?
 
Chris
 

pel

unread,
Aug 1, 2010, 9:11:29 PM8/1/10
to ml-d...@googlegroups.com

I've made a little tool to write and remove the labels.

It works with FAT32 cards.

You can download from here: http://pel.hu/down/bootCF.exe

 

Regards,

 

pel

Chris Barcellos

unread,
Aug 1, 2010, 10:03:26 PM8/1/10
to ml-d...@googlegroups.com
Very cool.  I shall give it a go.

Sent from my iPhone

Ba...@aol.com

unread,
Aug 1, 2010, 11:26:13 PM8/1/10
to ml-d...@googlegroups.com
pel:
 
On Vista and W7 machines get a message when I try to run it:
 
The program can't start because CC3280MT.DLL is missing from your computer.  Try reinstalling the program to fix this problem.
 
chris

tester13

unread,
Aug 2, 2010, 4:22:24 AM8/2/10
to Magic Lantern firmware development
I am very pleased to know that ML has so good progress.

But my question is how AES keys could be obtained.
All I can imagine as of today is direct Canon leak.

Miha Hercog

unread,
Aug 2, 2010, 6:39:53 AM8/2/10
to Magic Lantern firmware development
I have a problem with 32gb card. I know there is no easy autoboot but
it seams that I can't run ML without autorun either. On 2gb it works
perfect (without autoboot which is not working or I don't know how to
manage it to work)

Miha Hercog

unread,
Aug 2, 2010, 8:27:12 AM8/2/10
to Magic Lantern firmware development
BTW,

you are the greatest Mr. Tramell!!!!

Ba...@aol.com

unread,
Aug 2, 2010, 4:23:34 PM8/2/10
to ml-d...@googlegroups.com
1.  First, to make a bootable disk using Card Tricks,  the card must be a 4 gig or less.   It will also have to be formatted in Fat 16,  according to Card Tricks.  
 
2.  After making a 4 gig card bootable,   I was able to get my first recordings with Magic Lantern  running.    I haven't done much with it for testing purposes, but I am now up.   The initial settings on the card are creating a hiss,  so I will be seeing if I can dial down digital gain as we do with the 5D.

Ba...@aol.com

unread,
Aug 2, 2010, 5:17:01 PM8/2/10
to ml-d...@googlegroups.com
Additional Testing:
 
In the current configuration,  Meters are up and running,  but it does not look like there is a call to turn off auto gain,   so by setting the analog and digital gain to parameters we used in the 5D,  there appears to be no affect.     I recall the config file we used for the 5D may have had a call to put audio into manual,  but I will have to check it when I experiment further tonight. 
 
Chris

Ba...@aol.com

unread,
Aug 2, 2010, 7:35:34 PM8/2/10
to ml-d...@googlegroups.com
I attempted to add a couple of lines to the config file from the 5D config file to see if we could turn off alc.   I added the following:
 
audio.alc-enable = 0
audio.mic-in = 1
 
Gain control after loading was still automatic,  and mic in status was still controlled by plug in jack status.
 
So while we have a meter at this point, we do not appear to  have actual control of levels yet.   
 
Can anyone else confirm ?
 
Chris Barcelloa

Trammell Hudson

unread,
Aug 2, 2010, 7:40:37 PM8/2/10
to ml-d...@googlegroups.com
On Mon, Aug 02, 2010 at 07:35:34PM -0400, Ba...@aol.com wrote:
> So while we have a meter at this point, we do not appear to have actual
> control of levels yet.
>
> Can anyone else confirm ?

I believe that is correct. The structures in sounddev_task()
appears to have changed, so we are never getting the wakeup
to do the reconfigure.

That is also why the headphone out isn't working yet.

I'm not sure why the hotplug is broken, however; we should be
overriding the hotplug_task(), but it still shuts down the LCD when
I plug in the A/V cable. That will be a project for this weekend.

--
Trammell

Ba...@aol.com

unread,
Aug 2, 2010, 10:04:34 PM8/2/10
to ml-d...@googlegroups.com
For low tech goofs like me,   have to figure a way to get 8 gig or more card set up to autoboot.   With Card Tricks only could format and autoboot a 4 gig card at max,  in Fat 16 only.    When I started to do the Fat 16 format  in Card Tricks, it recommended that I use a 2 gig card .
 
cjb
 
 
 

arm.indy

unread,
Aug 3, 2010, 4:08:07 PM8/3/10
to Magic Lantern firmware development
Hi,

Antony noticed July 7th to me, that the Hotplugs structs have changed
in 5dm2 2.0.4,
http://magiclantern.wikia.com/wiki/2.0.4_HotPlug_Structs
compared to ML code.

Correct me if I'm wrong, Antony !


As I said in a previous email, ML now perfectly boot (with version tag
and date displayed) without updating, thanks to "EOS_DEVELOP" at the
right offset in the bootsector, from a FAT16 or FAT32 card.

Arm.indy

Antony Newman

unread,
Aug 3, 2010, 6:32:11 PM8/3/10
to ml-d...@googlegroups.com

Hi Arm.Indy.

I believe that structures have grown in size in 2.0.4

HotPlugs: http://magiclantern.wikia.com/wiki/2.0.4_HotPlug_Structs
LiveView struct:   http://magiclantern.wikia.com/wiki/2.0.4_LiveViewMgr_struct_%3D_0x29D8_bytes
MovieRecorder:  http://magiclantern.wikia.com/wiki/2.0.4_MovieRecorder_structs  

I haven't done enough analysis to fill these in yet. 

I may revisit the 'hotPlug' wiki page before the weekend - it was my first ever page, and an ugly one at that.

Regards,
Antony

phil

unread,
Aug 6, 2010, 5:09:39 PM8/6/10
to Magic Lantern firmware development
I just switched of the AGC in the 550D!

As Tram already said, the only problem is that the audio configuration
task is not properly started.
So to see if it works, I simply put the command which writes the audio-
ic's ALC register into the user thread which draws the level meters,
which obviously gets started.

works fine!

phil

On Aug 4, 12:32 am, Antony Newman <antony.new...@gmail.com> wrote:
> Hi Arm.Indy.
>
> I believe that structures have grown in size in 2.0.4
>
> HotPlugs:http://magiclantern.wikia.com/wiki/2.0.4_HotPlug_Structs
> LiveView struct:http://magiclantern.wikia.com/wiki/2.0.4_LiveViewMgr_struct_%3D_0x29D...

arm.indy

unread,
Aug 7, 2010, 7:05:02 AM8/7/10
to Magic Lantern firmware development
Great Phil!

Arm.Indy

Antony Newman

unread,
Aug 7, 2010, 8:10:51 AM8/7/10
to ml-d...@googlegroups.com
I've updated:  http://magiclantern.wikia.com/wiki/2.0.4_HotPlug_Structs
so that it's easier to compare the 2.0.4 hotplug struct with the ML hotplug struct.

+) The 2.0.4 size is larger
+) The ML structure variables are still in the same place as in the larger 2.0.4 struct
+) I guess this would only cause an issue if ML performs a Malloc, or the hotplug structure is being copied.

Antony.


Trammell Hudson

unread,
Aug 8, 2010, 3:56:18 PM8/8/10
to ml-d...@googlegroups.com
On Sat, Aug 07, 2010 at 01:10:51PM +0100, Antony Newman wrote:
> I've updated: http://magiclantern.wikia.com/wiki/2.0.4_HotPlug_Structs
> so that it's easier to compare the 2.0.4 hotplug struct with the ML hotplug
> struct.

I've "fixed" the hotplug problem on the 550D by replacing the
hotplug task with an empty function. It returns immediately,
disabling any hot plug functionality.

I'm not sure if we need to understand the structure; to enable
or disable the USB port, or to switch output monitors we can call
the interrupt routines directly and allow them to update the struct.

--
Trammell

Ba...@aol.com

unread,
Aug 8, 2010, 8:48:58 PM8/8/10
to ml-d...@googlegroups.com
I've tested the Magic Lantern autoexec.bin  set up,  and initially I still was getting auto gain control.
 
I remember we had some lines in the 5D config file that set the alc at 0,  so I put that line in the Config for the T2i magic lantern.    That got me into being able to set different levels on that digital and analog gain.
 
I used a Juiced Link CX231 XLR adapter,  fed by a Rode NTG 2 mic.   I used phantom power on the mic, fed by the CX231.   Ultimately,  I turned the CX231 to the middle level on the preamp gain,  and set the analog and digital gains to 0.   I was successful at getting lowered gain,  but have some concern about getting a lower noise on the camera still.   Environment was noisy around me,  and my  lowest recorded level without me speaking was only -42.  I am attaching an mp3 version of the  file for anyone who wants to analyze.
 
T2i firstgaincontroltest.mp3

Patrick

unread,
Aug 9, 2010, 3:30:01 AM8/9/10
to Magic Lantern firmware development
Is there any chance that an upcoming firmware will enable the 550D /
T2i's maximum ISO of 12,600 in movie mode?

On Jul 31, 11:05 pm, Trammell Hudson <hud...@osresearch.net> wrote:
> I am very proud to announce that we have started support for the
> Canon 550D / T2i in a branch of the Magic Lantern tree.  Thanks to
> the assistance of arm.indy and an anonymous contributor, we were
> able to sign an initial Magic Lantern firmware image and port the
> existing code to work with the version 1.0.8 firmware in the 550D.
>
>        http://vimeo.com/13793063
>
> The first version will have audio meters, lens data and maybe manual
> audio gain plus monitoring on the A/V jack.  I haven't found the
> video ram device yet (vram_get_number() returns -1 on all devices),
> so zebra stripes and histograms won't work for a little while.
>
> There might also not be a menuing system initially since there are
> no "spare" buttons on the 550D in movie mode and we still do not
> have a way to integrate with Canon's menus.
>
> The initial testing version will be available to those brave enough
> to test it and with a spare SD card that they can dedicate to the
> project.  It will come in two pieces: an installation firmware file
> that will set the autoboot flag and write the boot block to the SD
> card, and an AUTOEXEC.BIN that the camera will load automatically
> when that card is in the camera.  Unlike the 5D Mark II, it will
> only be possible to build unsigned AUTOEXEC.BIN files for the
> firmware image.
>
> Please send me an email if you want to participate in the alpha tests.
>
> --
> Trammell

Deke Kincaid

unread,
Aug 9, 2010, 2:21:57 PM8/9/10
to ml-d...@googlegroups.com
Just like the 5d/7d, the really high gain numbers are done in post on
the camera instead the AD conversion on the chip. So very little
difference between doing it in camera or doing it in fcp, premiere or
AE.

-deke

phil

unread,
Aug 10, 2010, 4:19:12 AM8/10/10
to Magic Lantern firmware development
I'd find it rather interesting to get low ISO working. Like ISO 50, if
the sensor chip supports it.
Would be great for bright lenses with f/1.8 f/1.4 etc to push noise
even lower.

I had a look at the code, Currently the ISO value can be set via the
'request' function of the property manager. But the manager will block
any ISO value not in the list and default to "Auto ISO". Can we bypass
the property manager and try to set it directly?

aqu...@gmail.com

unread,
Aug 10, 2010, 5:50:16 AM8/10/10
to ml-d...@googlegroups.com
Low ISO isn't all that great... you need some noise to prevent banding
from occurring. A lower ISO (compared to native) results in less
dynamic range, especially when the pixels are as small as they are on
the 550D.

robert

unread,
Aug 13, 2010, 1:10:47 PM8/13/10
to Magic Lantern firmware development
Get cc3280mt.dll from here: http://www.4shared.com/get/iUI1iIlG/cc3280mt.html
(just found it using Google)
Put it in the same folder as bootCF.exe
open cmd and cd to that folder
usage: bootcf.exe <drive:>

Ba...@aol.com

unread,
Aug 13, 2010, 1:25:07 PM8/13/10
to ml-d...@googlegroups.com
Okay... thank you !!
 

robert

unread,
Aug 13, 2010, 2:02:12 PM8/13/10
to Magic Lantern firmware development
To conclude:

How to make big, more than 4GB SD Cards bootable for Magic Lantern
(win):
- get this app: http://pel.hu/down/bootCF.exe
- get this dll: http://www.4shared.com/get/iUI1iIlG/cc3280mt.html
- put them both in a folder on your drive
- open command prompt (cmd), change to the above folder
- usage: bootcf.exe <drive:>
- when prompted "(W)rite labels", press W key
- to check, run again bootcf.exe <drive:>
- you should see: "Labels found at 0x47: EOS_DEVELOP, 0x5c: BOOTDISK
(R)emove labels"
- just pres Ctrl+C to exit

After this, follow instructions to install Magic Lantern on your card.

robert

unread,
Aug 14, 2010, 4:07:42 AM8/14/10
to Magic Lantern firmware development
I think the following buttons could be used in video mode for ML:
- SET
- Trash/Delete

Although SET is programmable in custom functions, Trash/Delete seems
to be completely free in video/preview mode. That could perhaps be
used to bring up a custom menu, isn't it?

On aug. 1, 18:00, "arm.indy" <arm.indi...@gmail.com> wrote:
> On Aug 1, 5:05 am, Trammell Hudson <hud...@osresearch.net> wrote:> There might also not be a menuing system initially since there are
> > no "spare" buttons on the 550D in movie mode and we still do not
> > have a way to integrate with Canon's menus.
>
> the SET button seems available.
>
>
> Arm.Indy

robert

unread,
Aug 14, 2010, 4:35:12 AM8/14/10
to Magic Lantern firmware development
Forgot to mention, that after pressing the W key, you need to press
Enter too.
The application similarly allows to remove the bootable flag from the
card, by pressing the R key.
I tested with a Transcend 4GB card, and a SanDisk Extreme II 16GB
card, both run MagicLantern fine on my EOS 550D.
Reply all
Reply to author
Forward
0 new messages