#!/bin/sh

MEMSIZE=$((0x94000))
RB_LOGBOOK=0
RB_SAMPLE=$((0x94000))

cat id.bin misc.bin config?.bin > emc20.johnvanostrand.bin.header

dd if=/dev/zero bs=$MEMSIZE count=1 | tr '\000' '\377' > emc20.johnvanostrand.bin
dd if=logbook.bin of=emc20.johnvanostrand.bin conv=notrunc bs=1 seek=$RB_LOGBOOK
dd if=sample.bin  of=emc20.johnvanostrand.bin conv=notrunc bs=1 seek=$RB_SAMPLE

