Skip to content

M-Film: film simulation for Canon EOS cameras with Magic Lantern. 72 film stocks (Portra, Velvia, Tri-X, CineStill…), a film-camera interface and an in-camera darkroom that develops your RAWs. 5D Mark III, 6D, 600D, 650D, 700D, EOS M and more.

5D Mark II: a lean build, so it starts (with the in-camera darkroom)

Claude40437a1e8de9
diff --git a/README.md b/README.md
index e50bc98..b826198 100644
--- a/README.md
+++ b/README.md
@@ -164,7 +164,7 @@ still wrong. If you have one marked *needs a tester*, you can help: [TESTING.md]
| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 Too big for its boot memory: being fixed | | |
| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 Builds, needs a tester | | `M-Film-camera-500D.111.zip` |
| Canon EOS 50D | 1.0.9 | 🧪 Builds, needs a tester | | `M-Film-camera-50D.109.zip` |
-| Canon EOS 5D Mark II | 2.1.2 | ⚠️ Tried, known problem | Most hang at power on: the build is too big at start-up ([#18](../../issues/18)). A smaller build and a fix for pink prints come in the next update. | `M-Film-camera-5D2.212.zip` |
+| Canon EOS 5D Mark II | 2.1.2 | ⚠️ Tried, known problem | Most hang at power on: the build is too big at start-up ([#18](../../issues/18)). The next update has a smaller one (some Magic Lantern features left out, the darkroom kept) and fixes the pink prints. | `M-Film-camera-5D2.212.zip` |
**Not yet:** 7D (Magic Lantern's current source doesn't build it) · 200D, 750D, 77D, 80D, 7D Mark II, 5D Mark IV, 5DS R, 6D Mark II, 850D, M50, R, RP, R5, R6, SX70 HS, SX740 HS (Magic Lantern itself is still experimental on these).
<!-- cameras:end -->
diff --git a/README.th.md b/README.th.md
index ca3ed36..c722b26 100644
--- a/README.th.md
+++ b/README.th.md
@@ -164,7 +164,7 @@ M-Film ทำบน EOS M และใช้ได้จริงบนรุ่
| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |
| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 build ได้แล้ว รอคนทดสอบ | | `M-Film-camera-500D.111.zip` |
| Canon EOS 50D | 1.0.9 | 🧪 build ได้แล้ว รอคนทดสอบ | | `M-Film-camera-50D.109.zip` |
-| Canon EOS 5D Mark II | 2.1.2 | ⚠️ ลองแล้ว ยังมีปัญหา | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต ([#18](../../issues/18)) อัปเดตหน้าจะมี build ที่เล็กลงและแก้รูปสีชมพู | `M-Film-camera-5D2.212.zip` |
+| Canon EOS 5D Mark II | 2.1.2 | ⚠️ ลองแล้ว ยังมีปัญหา | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต ([#18](../../issues/18)) อัปเดตหน้าจะมี build ที่เล็กลง (ตัดบางฟีเจอร์ของ Magic Lantern ออก แต่ห้องมืดยังอยู่) และแก้รูปสีชมพู | `M-Film-camera-5D2.212.zip` |
**ยังไม่รองรับ:** 7D (source ปัจจุบันของ Magic Lantern build รุ่นนี้ไม่ได้) · 200D, 750D, 77D, 80D, 7D Mark II, 5D Mark IV, 5DS R, 6D Mark II, 850D, M50, R, RP, R5, R6, SX70 HS, SX740 HS (Magic Lantern เองยังเป็นรุ่นทดลองบนกล้องเหล่านี้)
<!-- cameras:end -->
diff --git a/ml-dev/MEMORY.md b/ml-dev/MEMORY.md
index 8fa7f78..8d0dc25 100644
--- a/ml-dev/MEMORY.md
+++ b/ml-dev/MEMORY.md
@@ -32,7 +32,7 @@ stops at power on and blinks the card light **3 long, 3 short, a pause**, foreve
| 60D | sized to fit | unknown | 740,096 | | ✅ a tester's 60D starts (#3) |
| 500D | sized to fit | unknown | 734,208 | | try it |
| 50D | sized to fit | unknown | 716,032 | | try it |
-| 5D Mark II | sized to fit | unknown | 749,824 | | try it |
+| 5D Mark II | sized to fit | unknown: 705,792 starts (#18), 749,824 hangs | 756,992 (hangs); lean 706,048 | | 🧪 released lean (features left out, darkroom kept) |
| 6D | fixed, raised by the fork | 868,096 (848K) | 740,864 | | ✅ starts (#3, #8) |
| 100D | fixed | 605,952 (592K) | 741,888 | 684,288 | 🔧 too big, even without the darkroom |
| 70D | fixed | 605,952 (592K) | 690,432 | 632,832 | 🔧 too big, even without the darkroom |
@@ -57,6 +57,11 @@ the 700D in #19). The 650D tester built it `--no-darkroom` (689,664 bytes at boo
interface. So both are `nodark` in cameras.txt: CI builds and releases them without the darkroom, under the
usual zip name. Their rolls are developed with Darkrooms.
+The 5D Mark II hangs at power on, or when the shutter is pressed, with the full build (#18, #20, #27, #32).
+Enzo-Reveillon left 19 Magic Lantern features M-Film doesn't use out of it (zebras, focus peaking, waveform,
+FPS override and the like; `LEAN_FEATURES` in fork/apply_fork.py) and his 5D Mark II starts at 705,792 bytes
+with the in-camera darkroom. The fork does the same for it (`LEAN`): 706,048 bytes at boot with today's code.
+
## What would fix the fixed ones
The same as the 6D: give Magic Lantern a bigger slice of the pool at boot, and check that Canon keeps enough.
diff --git a/ml-dev/cameras.txt b/ml-dev/cameras.txt
index 69b02c5..be8eb52 100644
--- a/ml-dev/cameras.txt
+++ b/ml-dev/cameras.txt
@@ -28,7 +28,7 @@ EOSM.202 working 727072 Canon EOS M
1100D.105 memory 524032 Canon EOS 1100D / Rebel T3 / Kiss X50
500D.111 testing - Canon EOS 500D / Rebel T1i / Kiss X3
50D.109 testing - Canon EOS 50D
-5D2.212 issues - Canon EOS 5D Mark II | Most hang at power on: the build is too big at start-up (#18). A smaller build and a fix for pink prints come in the next update. | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต (#18) อัปเดตหน้าจะมี build ที่เล็กลงและแก้รูปสีชมพู
+5D2.212 issues - Canon EOS 5D Mark II | Most hang at power on: the build is too big at start-up (#18). The next update has a smaller one (some Magic Lantern features left out, the darkroom kept) and fixes the pink prints. | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต (#18) อัปเดตหน้าจะมี build ที่เล็กลง (ตัดบางฟีเจอร์ของ Magic Lantern ออก แต่ห้องมืดยังอยู่) และแก้รูปสีชมพู
7D.203 no - Canon EOS 7D (Magic Lantern's current source doesn't build it)
200D.101 no - Canon EOS 200D / Rebel SL2
750D.110 no - Canon EOS 750D / Rebel T6i
diff --git a/ml-dev/fork/apply_fork.py b/ml-dev/fork/apply_fork.py
index e12d265..a3d9f74 100644
--- a/ml-dev/fork/apply_fork.py
+++ b/ml-dev/fork/apply_fork.py
@@ -99,6 +99,12 @@ edit("src/boot-d45-am.c",
" #elif defined(CONFIG_100D) || defined(CONFIG_70D)\n",
"film-mode fork: R0 0x44C000 -> 0x520000")
+LEAN = {"5D2.212"}
+LEAN_FEATURES = ["ZEBRA", "ZEBRA_FAST", "FOCUS_PEAK", "GHOST_IMAGE", "SPOTMETER", "FALSE_COLOR", "WAVEFORM",
+ "RAW_SPOTMETER", "RAW_ZEBRAS", "HDR_VIDEO", "FPS_OVERRIDE", "FPS_RAMPING", "MOVIE_LOGGING",
+ "GRADUAL_EXPOSURE", "TRAP_FOCUS", "FOLLOW_FOCUS", "RACK_FOCUS", "AUDIO_METERS", "HDR_BRACKETING"]
+
+
def platform(name):
"""FEATURE_FILMROLL, our objects, and no lua, for one camera."""
# build it in
@@ -108,6 +114,15 @@ def platform(name):
print(f" platform/{name}/features.h: patched")
else:
print(f" platform/{name}/features.h: already applied")
+ # Cameras whose build is too big at boot: Magic Lantern features M-Film doesn't use, left out
+ # (Enzo-Reveillon's list on his 5D Mark II, #18). VECTORSCOPE, MAGIC_ZOOM, RAW_HISTOGRAM and
+ # INTERVALOMETER stay: ML doesn't build without them.
+ if name in LEAN:
+ p = root / f"platform/{name}/features.h"
+ if "film-mode fork: lean" not in p.read_text():
+ undef = "".join(f"#undef FEATURE_{f}\n" for f in LEAN_FEATURES)
+ p.write_text(p.read_text().rstrip("\n") + "\n\n/* film-mode fork: lean, to fit at boot */\n" + undef)
+ print(f" platform/{name}/features.h: lean")
# our objects. Rewritten every time (older versions of this fork
# listed only filmroll.o), so the list always matches the sources.
# (no fos_font: the fonts go on the card as ML/DATA/FOSFONT.BIN, see fos_gfx.h)