#!/bin/bash

echo "Erasing DTB Sectors..."
./flash_erase /dev/mtd0 0x180000 8
echo "Writing DTB ..."
dd if=./board.dtb of=/dev/mtd0 bs=64K seek=24 
echo "Erasing Kernel Sectors..."
./flash_erase /dev/mtd0 0x200000 0
echo "Writing Kernel.."
dd if=./zImage of=/dev/mtd0 bs=64K seek=32 
echo "So, there you have it"
