USE THE PATCHED FIRMWARE AT YOUR OWN RISK!
Oculus does not support custom firmware on your device. If it breaks, you will have to fix it yourself.
I do not own a DK2 and have not tested the firmware files that this program produces.
I have checked firmware files produced by this tool in a disassembler and they look good.
Command line arguments for DK2_LS_FW:
DK2_LS_FW <Lens separation value in micrometers> <Path to firmware file>
Command line arguments for DK2_LS_FW2_12:
DK2_LS_FW2_12 [Lens separation value in micrometers]
If you don't specify the lens separation on the command line, the program will ask for it. The program must be in the same directory as DK2Firmware_2_12.ovrf.