Author Topic: Latest & greatest 7D-build on a Mac  (Read 54873 times)

bkummel

  • New to the forum
  • *
  • Posts: 12
Latest & greatest 7D-build on a Mac
« on: August 18, 2013, 04:16:10 PM »
Hi all,

I've just installed the latest and greatest 7D-build on my camera, using my MacBook. As I found the installation instructions for Mac users a little hard to find, I thought I'd share my experiences with you. I hope other Mac-using 7D-owners will appreciate my summary. Here we go...

Installing ML on a 7D using a Mac

1. Preparation
a. Download a ready-made Mac-installation kit from here: https://www.dropbox.com/s/prhvvukktwn3wfz/7D.zip (Thanks, DenJS!)
b. Unzip the file if it isn't already unzipped. You should now have a folder called 7D, containing the following files:

- booton.fir – patched firmware which will enable boot flag in your camera
- bootoff.fir – patched firmware which will disable boot flag
- 7D000203.FIR – original firmware 2.0.3
- MacBoot.class – java application wich help you make your CF card bootable
- run.command – shell script to run java app properly.
- To root CF card – a folder containing the ML-build.


2. Enable the bootflag in your camera:
a. Take an empty CF-card, put in in a card-reader connected to your Mac and copy the booton.fir-file to it.
b. Put the CF-card in your camera and turn the camera on.
c. Open the menu, go to the 3rd yellow tab with the wrench-icon and choose the last option: "Firmware version 2.0.3"
d. Choose "Update firmware" and wait a few seconds. The firmware-update-program will start and after a few seconds you'll return to a black screen.
e. Now turn off you camera and eject the CF-card.
f. Remove the booton.fir-file from the CF-card.
g. Re-install the 2.0.3-firmware: follow the same steps as before, now with the 7D000203.FIR-file.

3. Create a bootable MagicLantern-card:
a. Put the CF-card in the card-reader.
b. Start the MacBoot-program, by double-clicking on the run.command. Enter you password if asked.
c. In the MacBoot program, select the size of the CF-card which you inserted and press Reresh.
d. Select Make DSLR-bootable and press Prepare Card.
e. Now copy all files from the folder To root CF card to the root of the CF-card.
f. Insert the CF-card in your camera and power it on.
g. You should hear a beep, indicating that MagicLantern has booted. You're ready to go! Press the trashcan-button on your 7D to enter the ML-menu.

Not booting?
Please make sure you have copied the files from the To root CF card-folder. If you have a bootable card, but not the files in the root folder, the camera will "hang" until you remove the battery.

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #1 on: August 18, 2013, 04:30:37 PM »
Using Dual ISO on a 7D - postprocessing on a Mac

To post-process a dual ISO image on a Mac, you'll need the cr2hdr tool. It can be downloaded here: https://www.dropbox.com/s/4uvrwzmy740a90b/tools.zip. It can be called from the Terminal, as follows:

cr2hdr IMG_0001.CR2

Note that cr2hdr uses ExifTool to copy Exif-data, so make sure you have that one installed.

This will give you a IMG_0001.DNG-file. I was not able to import the DNG-file into Apple Aperture. So I searched for a work-around, which I found, using ImageMagick. You have to install both ImageMagick and ufraw to use this work-around. Once both are installed, you can use the following command to convert the DNG to TIFF:

convert IMG_0001.DNG IMG_0001.TIFF

Good luck!

Mr_Orange

  • New to the forum
  • *
  • Posts: 3
Re: Latest & greatest 7D-build on a Mac
« Reply #2 on: August 18, 2013, 09:53:54 PM »
GREAT Tutorial!
Thnx Alot!

I had problem with making card bootable than I realized I need to run "RUN" to allow program to write to root.

Danne

  • Hero Member
  • *****
  • Posts: 3611
Re: Latest & greatest 7D-build on a Mac
« Reply #3 on: August 19, 2013, 12:20:16 AM »
Using Dual ISO on a 7D - postprocessing on a Mac

To post-process a dual ISO image on a Mac, you'll need the cr2hdr tool. It can be downloaded here: https://www.dropbox.com/s/4uvrwzmy740a90b/tools.zip. It can be called from the Terminal, as follows:

cr2hdr IMG_0001.CR2

Note that cr2hdr uses ExifTool to copy Exif-data, so make sure you have that one installed.

This will give you a IMG_0001.DNG-file. I was not able to import the DNG-file into Apple Aperture. So I searched for a work-around, which I found, using ImageMagick. You have to install both ImageMagick and ufraw to use this work-around. Once both are installed, you can use the following command to convert the DNG to TIFF:

convert IMG_0001.DNG IMG_0001.TIFF

Good luck!

How do you exactly manage to convert the file through terminal?? I tried your description but no luck??

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #4 on: August 19, 2013, 07:38:58 AM »
Hi all,

It seems my Dual ISO postproc instructions were not too clear. So here's a new attempt, a little bit more verbose...

Software Installation
1. Download the cr2hdr tool from here: https://www.dropbox.com/s/4uvrwzmy740a90b/tools.zip.
2. Unzip the file. You now have a directory tools inside your Downloads folder.
3. Open the Terminal.app program. (You can find it in the /Applications/Utilities/-folder.)
4. Type cd to change directory to your home-directory.
5. Type mkdir bin to create a directory called bin, in case you don't have it already.
6. Copy the files from the tools-directory to it. This can also be done in the Terminal: cp ~/Downloads/tools/* . (Don't forget the last period.)

You'll also need to have the following programs installed. Please follow the installation instructions on their respective websites:
- ExifTool
- ImageMagick
- ufraw

Conversion process
1. Copy the file you want to process to your Desktop. Let's suppose the file is called IMG_0002.CR2 for this example.
2. Open the Terminal.app program. (You can find it in the /Applications/Utilities/-folder.)
3. Type cd ~/Desktop to change directory to your Desktop-folder
4. Type ~/bin/cr2hdr IMG_0002.CR2 to convert the image to an HDR DNG-file.
5. Type convert IMG_0002.DNG IMG_0002.TIFF to convert the image to TIFF. (In case you are able to open the DNG-file in your favourite editor / photo manager, you can skip this step.)

I hope it is a bit more clear now. Good luck!

LOGAN570

  • Just arrived
  • *
  • Posts: 2
Re: Latest & greatest 7D-build on a Mac
« Reply #5 on: August 19, 2013, 10:25:42 AM »
Hello

...CR2HDR (Mac OSX) with GUI !... download here : http://www.mediafire.com/?j3zcymgo5azqgks

Thanks to A.D. :)

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #6 on: August 19, 2013, 11:56:33 AM »
Hi LOGAN570,

It doesn't work for me, here's the log:
Code: [Select]
BK_11395 File Supported
sh: dcraw: command not found Error: BK_11395.CR2 Input file : BK_11395.CR2
THE END

Am I doing something wrong?

LOGAN570

  • Just arrived
  • *
  • Posts: 2
Re: Latest & greatest 7D-build on a Mac
« Reply #7 on: August 19, 2013, 12:25:33 PM »
Hello  bkummel

ooops...
Try to install this package first.
http://www.mediafire.com/download/im00mehx3wqt682/OSX_cr2hdr_package.zip

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #8 on: August 19, 2013, 12:48:36 PM »
Ok, it works. However, I still need to convert it to a TIFF with ImageMagick, because Aperture does not recognize the DNG.

DenJS

  • New to the forum
  • *
  • Posts: 7
Re: Latest & greatest 7D-build on a Mac
« Reply #9 on: August 19, 2013, 03:33:08 PM »
I'm not sure if that is a good idea to save tiffs to Aperture. You then save not raw (CR2 or DNG) but already processed file (TIFF) even if it is 16-bit which increase size of file. So I'm not a raw/tiff/gif guru but if you need to convert DNG to TIFF you may use included dcraw with -T key and -6 for 16-bit file. Something like this: dcraw -T -6 _MG_5057.DNG

Danne

  • Hero Member
  • *****
  • Posts: 3611
Re: Latest & greatest 7D-build on a Mac
« Reply #10 on: August 19, 2013, 04:10:43 PM »
LOGAN570
You are my hero.
Huge thank you for the app!

ChrisContiPhoto

  • New to the forum
  • *
  • Posts: 14
Re: Latest & greatest 7D-build on a Mac
« Reply #11 on: August 19, 2013, 08:13:03 PM »
Question about the whole boot flag / bootable card issue:

Is it possible to run the ML 7D code (with the raw module) WITHOUT booting from the card, in other words loading ML manually each time the camera boots?

AFAIK there still isn't the ability to disable the boot flag on the 5DIII once you've enabled it, so I wouldn't want to... and I'm trying to emulate the ML 5DIII workflow as closely as possible on my 7D before I start messing with my 5DIII.

Any help from anybody more familiar with the ML code than I am is appreciated!

Pileot

  • Freshman
  • **
  • Posts: 85
Re: Latest & greatest 7D-build on a Mac
« Reply #12 on: August 19, 2013, 08:27:05 PM »
If you install the 7D alpha 2 (and not the 2.3) you will not have bootflags set (which is safer because if there is a problem and ML autoboots that can be difficult to fix)

http://www.magiclantern.fm/forum/index.php?topic=3974

ChrisContiPhoto

  • New to the forum
  • *
  • Posts: 14
Re: Latest & greatest 7D-build on a Mac
« Reply #13 on: August 19, 2013, 08:57:11 PM »
If you install the 7D alpha 2 (and not the 2.3) you will not have bootflags set (which is safer because if there is a problem and ML autoboots that can be difficult to fix)
http://www.magiclantern.fm/forum/index.php?topic=3974

Many thanks Pileot!

Yeah, that's exactly my concern: I'd much rather ML be "opt-in" on my camera, so it can be easily removed if necessary, than "opt-out" and have to go through some hoops to remove it if something breaks.

I haven't had a chance to read all 52 pages of that thread yet so I apologize if this is addressed in there somewhere, but it sounds like the original alpha 2 did not include raw shooting (or the raw module). I know ML is in the process of getting modulized, can a raw module be loaded into the 7D alpha 2? If so, what file would that be?

Many thanks for the help!

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #14 on: August 20, 2013, 07:43:26 AM »
Hi ChrisContiPhoto,

Yeah, the information about the 7D-port is a bit "fragmented" and unclear at times. This thread is an attempt to fix that. If you want RAW video and Dual ISO, you'll need the 2.3-version from the zip-file that is linked in the start of this thread. And that one works with autoboot. AFAIK, there is no way to fix that, but I'm not a ML-guru, so I may be wrong about that. What I know is:
- There is a bootoff.fir file included in that zip-file. It should be possible to reset the bootflag of your 7D with that, thus disabling autoboot for the camera. (I haven't tried this myself.)
- You can work with different CF-cards: if you don't make a card bootable, your camera will work with Canon-firmware if you're using that card. So If you'd like to switch between ML and Canon-only, I'd suggest working with different CF-cards. Then all you have to do to enable or disable ML is putting another CF-card in your camera.

Hope this helps...

DenJS

  • New to the forum
  • *
  • Posts: 7
Re: Latest & greatest 7D-build on a Mac
« Reply #15 on: August 20, 2013, 09:12:58 AM »
- There is a bootoff.fir file included in that zip-file. It should be possible to reset the bootflag of your 7D with that, thus disabling autoboot for the camera. (I haven't tried this myself.)

I tried. It works perfect.

arrinkiiii

  • Hero Member
  • *****
  • Posts: 1096
  • ML ADDICTED 7D
Re: Latest & greatest 7D-build on a Mac
« Reply #16 on: August 20, 2013, 01:35:22 PM »
@bkummel

Thanks for this tutorial  :)

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #17 on: August 20, 2013, 02:56:09 PM »
I'm not sure if that is a good idea to save tiffs to Aperture. You then save not raw (CR2 or DNG) but already processed file (TIFF) even if it is 16-bit which increase size of file.
You're totally right of course. The thing is: Aperture cannot read the DNG-file. (I also tried GIMP, but that wasn't able to open it either.) So: I know using TIFF is suboptimal, but it's still better than no image at all! ;)

Tai-Stik

  • Just arrived
  • *
  • Posts: 1
Re: Latest & greatest 7D-build on a Mac
« Reply #18 on: August 21, 2013, 01:44:06 AM »
Thank you for this tutorial.  I am curious if there's any risk when inserting a CF card with ML 7D firmware installed on a 5D3, or vice versa.  Thanks again.

tjunkkila

  • New to the forum
  • *
  • Posts: 16
Re: Latest & greatest 7D-build on a Mac
« Reply #19 on: August 22, 2013, 09:10:42 AM »
Even tho i got my ML working nice and smooth through OSX this is a great tutorial. Hope it helps all young MacKubricks out there :)
Thanks bkummel!

jsoucy

  • New to the forum
  • *
  • Posts: 8
Re: Latest & greatest 7D-build on a Mac
« Reply #20 on: August 24, 2013, 11:24:34 PM »
before i do it I want to know if there a way to uninstall it if i don't want it or if I sell my 7D

dsManning

  • Member
  • ***
  • Posts: 102
Re: Latest & greatest 7D-build on a Mac
« Reply #21 on: August 27, 2013, 02:20:49 AM »
Thank you so much for the cr2hdr Mac app.  Fresh Hackintosh here and didn't want to install the whole process to build, and the bash script was helpful as a 1 by 1 conversion, but this is amazing.  So much time saved!

bkummel

  • New to the forum
  • *
  • Posts: 12
Re: Latest & greatest 7D-build on a Mac
« Reply #22 on: August 27, 2013, 11:49:34 AM »
before i do it I want to know if there a way to uninstall it if i don't want it or if I sell my 7D
Hi jsoucy,

Yes, you can uninstall. As mentioned earlier, you can use bootoff.fir to disable the bootflag. Then format your CF-card and no trace is left of ML. Good luck!

vjandrei

  • Just arrived
  • *
  • Posts: 2
Re: Latest & greatest 7D-build on a Mac
« Reply #23 on: August 31, 2013, 09:07:19 AM »
Hi all, and thanks for the guide.
I did all by the book, but after the installation I get freezing screen when I record raw.
Here is video demostration
What I have forget or do I have some setup off?
Thanks

MACKY64

  • New to the forum
  • *
  • Posts: 5
Re: Latest & greatest 7D-build on a Mac
« Reply #24 on: August 31, 2013, 10:56:52 AM »
Hi all, and thanks for the guide.
I did all by the book, but after the installation I get freezing screen when I record raw.
Here is video demostration
What I have forget or do I have some setup off?
Thanks



@vjandrei
The build which you use is old.
This image is a ML menu of a latest build.

I use the britom's build.
http://www.magiclantern.fm/forum/index.php?topic=7503.msg71824#msg71824