#!/bin/sh

output="ap86-key-new-zone-factory-burn-firmware.bin"
tr "\000" "\377" < /dev/zero | dd of=$output ibs=1k count=16384  2>/dev/null
dd if=ap86-uboot-v1.0.bin of=$output  conv=notrunc seek=0 bs=1k 2>/dev/null
dd if=uboot-env-ap86-key.bin of=$output  conv=notrunc seek=256 bs=1k 2>/dev/null
dd if=ap86-key-factory.bin of=$output  conv=notrunc seek=320 bs=1k 2>/dev/null
dd if=9531-art-wifi-ok.bin of=$output  conv=notrunc seek=16320 bs=1k 2>/dev/null
