0xffffaf20 write_bootflags_to_card(1, 0) => should be called directly
from reboot.c, before doing anything else.
I've just ran a first test FIR like this:
1) formatted a card, but did not made it bootable
2) copied the FIR and autoexec.bin
3) started camera, original firmware booted (without ML)
4) upgraded firmware
5) rebooted => ML started :)
If anyone would like to test my first FIR (unpolished, it goes to an
infinite loop blinking a LED, but worked from the first try), please
let me know. Especially FAT16 or EXFAT users.
Here's how I found it: http://pastebin.com/JwEw3CDW
Warning: attached reboot.c is specific to 550D. For 600D, I need a
memory dump which can be done with current dropbox version, from
"Don't click me".
SztupY
However, a while ago Indy discovered there's no update counter on the
7D. 5D2 users are already using this method (AJ has "Write ML BootRec"
in menu) and had no problems so far. CHDK, as far as I know, has no
warnings on this.
I wrote the warning about the update counter because I wanted to avoid
surprises (many users were skipping the "make bootable" step and were
asking why they don't get any new features; the FIR for 550D contains
an old ML version from 2010)
I can write a script which goes to Canon menu, selects "Firmware
update", and runs it all day long (i.e. a few hundreds of times). What
I need to know is a way to restart the camera from DryOs context (I
did this many times by crashing the camera, but I don't know a clean
way; a topic on this is here:
http://chdk.setepontos.com/index.php?topic=5648.0 )
This won't prove there's no upgrade counter, since integer numbers go
up to 2^32, and will take over 1000 years with this method. So, a
second method would be to dump the ROM/NVRAM area (entire Fxxxxxxx
segment?) before and after running the upgrade, and compare the
contents.
Quote from Knuth: "Beware of bugs in the above code; I have only
proved it correct, not tried it."
Other ideas?
> --
> 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
If you copy only the fir files (without autoexec), camera will refuse
to enable the bootflag.
If this is the first install (no bootflags on the camera, neither on
the card), unzip everything, upgrade firmware, wait for "OK" (a green
screen) and reboot. Done.
You can also remove the bootflag from the camera: run "update
firmware" and follow the instructions (it will ask you to hold shutter
pressed halfway for a few seconds).
This is just for testing. This archive does not contain user guide and
cropmarks (you can copy them from an older zip, if you like).
With this autoexec.bin you can do the dump on 600D (Debug -> Dump ROM)
and send me BOOT0.BIN.
Known bug: display flickers a lot. For 60D, flickering will stop if
you switch to bulb mode. Any ideas on how to stop Canon draw its
graphics without overriding tasks? (I'd like to keep it simple).
On Tue, Aug 2, 2011 at 1:08 PM, scrax <scr...@gmail.com> wrote:
> 404 error from dropbox: ...bleeding-edge/600d/autoexec.bin
>
Format a card, put ML files on it (autoexec.bin and FIR) and update
firmware; at next reboot it should start with ML.
On Tue, Aug 2, 2011 at 3:52 PM, scrax <scr...@gmail.com> wrote:
> Here it is, made from 600D with 1.0.1
>
When you format the card, ML can figure out this is going to happen,
and copy its files to RAM. When format is complete, ML can copy them
back, but for the bootflag, you need to do "firmware upgrade" again,
since the function can only be called from a "reboot" context (not
from plain DryOS). Or, if we find a way around this... it would save a
few clicks.
The main problem is the RAM, but during format, image buffers are
unused, so I could try to reuse them. The big autoexec.bin, FIR files
and RLE cropmarks will need less than 1 MB. User guide is slightly
larger (7 MB).
Did the FIR work?
That's why you will see it after you format a card from the camera.
I'll take a look at the suggestions. Meanwhile, I'm trying to write a
simplified install guide here:
http://magiclantern.wikia.com/wiki/Unified/Install
... which will be also available as PDF inside the zip file.
Suggestions are welcome.
http://magiclantern.wikia.com/wiki/Unified/Install
Please feel free to translate it and add your own language. If you
like, you can translate the user guide too.
Check the 400plus wiki for an example: http://code.google.com/p/400plus/w/list
Scrax: if you would like to add an Italian translation, ask Dremelv21;
he already started to translate the user guide, but he didn't upload
it yet.
On Wed, Aug 3, 2011 at 10:15 PM, scrax <scr...@gmail.com> wrote:
> I noticed that with this method card on mac is still labeled EOS_DIGITAL not
> EOS_DEVELOP but card works the same.
>
Some extra changes:
- a dark theme for the BMP user guide (hopefully easier on the eyes)
- compiled the install guide as PDF (only the English version)
- 600D: check the 3x shortcut again (there should be a delay when you zoom out).
- kelvin and audio shortcuts were swapped (to be checked on 600D)
Do the following test:
1) Remove the bootflag (run the firmware upgrade)
2) Format your card from the camera
3) Reinstall ML (i.e. copy the files and run firmware upgrade again)
I've noticed the same problem at another 600D user, with an 8 GB card.
Ash: yes, that autoexec.bin is more recent, I'll post another zip soon
(when I'll figure out what's wrong with the installer).
Does it work better with the * button, or with DOF preview? These
buttons send the same codes
On Tue, Aug 9, 2011 at 12:37 PM, scrax <scr...@gmail.com> wrote:
> here it is: http://youtu.be/iDuzbyGNyWI
(I don't want to rewrite the GUI task in the installer).
I've also been playing with PROP_ICU_UILOCK, and locked all other
buttons (except mode dial and power switch). The values of this
property are bits which disable certain groups of buttons.
Flicker is still present.
I've also discovered a bug reported on 60D a while ago, where the
attempt of disabling the bootflag resulted in camera refusing to boot
unless a card with a firmware update was supplied. This happens when
you try to toggle the bootflag in movie mode (it results in ERR80, and
probably other bootflags are toggled as well). This FIR will not
toggle the bootflag in movie mode, and it won't let you enter
LiveView, so I hope there won't be any problems like this.
This zip also contains the small bugfixes mentioned by Ash McKenzie above.
On Tue, Aug 9, 2011 at 9:36 PM, scrax <scr...@gmail.com> wrote:
> your last two attachements are only for 550d and 60d or the autoexec is 600d
> also?
>
I notice the movie mode remap now swaps the two modes, not just remaps the chosen (eg A-DEP) to movie mode.
So not when I choose movie mode I get a photo mode.
Not really an issue, but it does mean I can't just give my camera to someone and ask them to start filming. Without first explaining why that mode doesn't behave correctly.
Another thing I question is the PicSty->DISP preset
Now I understand some people like to use Neutral to setup exposure and then switch to Cinestyle when they record.
But the current implementation allows swapping Picture Styles while recording with a single accidental button press.
Similarly it makes it too easy to accidentally begin recording with the wrong Style selected.
It's also impractical to use Display Profiles for any other purpose (e.g. turning focus peaking on/off) while recording under this scheme, as you'll cycle through a different Picture Style in the process.
All of these things potentially ruining a shot.
So my suggestion would be an option to have a ML automatically change the Picture Style when it starts recording?
(i.e. a separate config entry for preview and record Picture Style(s))
Even if it means the first 1/2 second after pressing record experiences a change in picture style.
This gives the option to set exposure etc with one picture style, and recording with another while maintaining the availability of Display Profiles for turning other stuff on and off.
Morgan.
> For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en<magiclantern-2011Aug09.550D.109.60D.110.600D.101.alex.zip>
At least I wasn't able to cause ERR70 any more :)
> I notice the movie mode remap now swaps the two modes, not just remaps the chosen (eg A-DEP) to movie mode.
> So not when I choose movie mode I get a photo mode.
> Not really an issue, but it does mean I can't just give my camera to someone and ask them to start filming. Without first explaining why that mode doesn't behave correctly.
That's how it behaved from the beginning, but I'll try to change it
(it's much simpler to implement remapping in one way).
> So my suggestion would be an option to have a ML automatically change the Picture Style when it starts recording?
> (i.e. a separate config entry for preview and record Picture Style(s))
> Even if it means the first 1/2 second after pressing record experiences a change in picture style.
So far, there are 3 options requested to be changed during recording
(and maybe more will come):
- change picture style
- turn zebra off (already in Movie menu)
- turn powersaving off
Would it make sense to add an option like Custom settings during REC:
zebra/picstyle/powersaving ? Or do you have other suggestion?
Actually, I think a simpler option might just be to allow a subset of the display profiles available during recording.
Force Disp-0 to always be available during recording and (optionally I guess) auto switch to that when you start recording.
Probably to keep things simple only allow sequential DISP's (starting from 0) to be selected for record mode.
For example..
In Debug
DISP profiles = 4
Rec DISPs = 0-2
Auto select DISP 0 on record = true
In this example DISP 0-3 would be available during preview, and DISP 0 - 2 would be available during recording, and DISP 0 would be auto selected on pressing record.
Pressing set on the "rec DISPs" would cycle 0, 0-1, 0-2, ... 0-[n-1]. Does that make sense?
You could then bundle your power saving and other stuff into the DISP too as needed.
Morgan.
Anyway... here's an alternate implementation for custom picture style
during record. You select it from Expo menu (REC PicStyle) and ML
takes care of the rest. Seems to be much more easier to setup and use
in this way, and it keeps the DISP profiles "clean" (i.e. only with
settings from LiveV menu).
For those concerned about a possible firmware upgrade counter, I just
did a little test:
1) I've ran "firmware update" with ML FIR 5 times on 550D, and after
each times, I've dumped the entire F8000000-FFFFFFFF area (where is
the NVRAM, ROM, bootloader and probably other persistent storages, see
http://magiclantern.wikia.com/wiki/Memory_map ).
2) Looked for an address containing a possible upgrade counter with a
python script (i.e. an address with either increasing only or
decreasing only values in these 5 dumps). I've considered all the
memory locations first as uint32, then uint8.
Note: this area changes even between two normal reboots of the camera,
without me altering any setting.
Result: no counter found.
I've also ran FW upgrade on my cameras more than 100 times. Of course
that's not a guarantee :)
If anyone would like to repeat the experiment, or suggest a different
procedure, please let me know.