https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 83b3bf80c67e53aebf477c2d2fcf37cb39e0a41a authored by danne on 30 November 2016, 09:21:13 UTC
update
Tip revision: 83b3bf8
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