swh:1:snp:102b88a84830a6000187157d40b28a5b77e43cda
Raw File
Tip revision: 2a742f8057aae0d1729109ba554f0ada328a0565 authored by hudson@andromeda.local on 01 August 2010, 18:22:33 UTC
Build firmware images with no Canon content
Tip revision: 2a742f8
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