https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 5e164a63a53ac66522e2ca02d01678b0d67d07bd authored by Trammell Hudson on 24 March 2011, 13:29:27 UTC
Allow enable-liveview to be toggled on and off
Tip revision: 5e164a6
make-bootable
#!/bin/sh
#
# Partition table must have EOS_DEVELOP at offset 0x47
# and BOOTDISK at offset 0x5C.
#
# File to be loaded is AUTOEXEC.BIN
#
dev="$1"
if [ -z "$dev" ]; then
	dev=/dev/disk1s1
fi

echo EOS_DEVELOP | dd of="$dev" bs=1 seek=0x47 count=11
echo BOOTDISK | dd of="$dev" bs=1 seek=0x5C count=8

sync; sync; sync
back to top