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.
C analog-photographycamera-firmwarecanoncanon-5d-mark-ivcanon-5dmark2canon-6dcanon-eoscr2darkroomeos-mfilm-emulationfilm-lookfilm-photographyfilm-simulationfujifilm-recipeskodak-portralutmagic-lanternphotographyraw
6D: reserve 848K at boot for Magic Lantern (#3)
hengz53f30b53bc89
diff --git a/ml-dev/cameras.txt b/ml-dev/cameras.txtindex 929a586..1902e6c 100644--- a/ml-dev/cameras.txt+++ b/ml-dev/cameras.txt@@ -5,11 +5,12 @@# planned not started yet, but should be possible# no not for now: Magic Lantern itself is experimental there (DIGIC 6 and later)# boot-limit: the largest autoexec.bin (bytes at boot) known to start on it, - if not known yet+# (6D: what the fork reserves for ML at boot, see the 6D edit in fork/apply_fork.py)EOSM.202 working 727072 Canon EOS M100D.101 testing - Canon EOS 100D / Rebel SL1 / Kiss X7650D.104 testing - Canon EOS 650D / Rebel T4i / Kiss X6i700D.115 testing - Canon EOS 700D / Rebel T5i / Kiss X7i-6D.116 testing - Canon EOS 6D+6D.116 testing 868096 Canon EOS 6D70D.112 testing - Canon EOS 70D5D3.113 testing - Canon EOS 5D Mark III (firmware 1.1.3)5D3.123 testing - Canon EOS 5D Mark III (firmware 1.2.3)diff --git a/ml-dev/fork/apply_fork.py b/ml-dev/fork/apply_fork.pyindex 7dd119f..dc47e5a 100644--- a/ml-dev/fork/apply_fork.py+++ b/ml-dev/fork/apply_fork.py@@ -83,6 +83,22 @@ if "lua dropped by film-mode fork" not in p.read_text():p.write_text(p.read_text().replace("ML_MODULES = \\\n", "# lua dropped by film-mode fork (newlib header clash with gcc 14)\nML_MODULES = \\\n", 1))+# 6D only: a bigger share of Canon's AllocateMemory pool for autoexec.bin.+# ML takes 0x44C000-0x4E0000 (592K) of the pool's 9152K (0x44C000-0xD3C000,+# checked in the 1.1.6 ROM); the fork needs ~722K at boot, and with more+# boot.h refuses to start (card LED: 3 long, 3 short, forever).+# 0x520000 gives 848K. A 6D running ML with 592K had 2192K of the pool+# free (1503K while recording RAW), so ~1.9M stays free for Canon.+# 100D and 70D keep 0x4E0000.+edit("src/boot-d45-am.c",+ " #if defined(CONFIG_6D) || defined(CONFIG_100D) || defined(CONFIG_70D)\n",+ " #if defined(CONFIG_6D)\n"+ " /* film-mode fork: R0 0x44C000 -> 0x520000 => reserve 848K for ML (MOV R0, #0x520000) */\n"+ " addr_AllocMem_end[1] = 0xE3A00852;\n"+ " ml_reserved_mem = 0x520000 - RESTARTSTART;\n"+ " #elif defined(CONFIG_100D) || defined(CONFIG_70D)\n",+ "film-mode fork: R0 0x44C000 -> 0x520000")+def platform(name):"""FEATURE_FILMROLL, our objects, and no lua, for one camera."""# build it in