#!/bin/sh

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

cat info-x05x9dxffx00x43x00.bin misc-x89x05x00x00x00xdcx05.bin config-x96x0?.bin > commander.johnvanostrand.bin.header

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