blob: 3a077d4adbd31afa85d86e8ed5852a3d7ddead80 [file] [log] [blame]
#!/bin/bash
CURR_DIR=`pwd`
TOP_DIR=$CURR_DIR/../../../..
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader.bin
rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2_tmp.bin bs=24576 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2_tmp.bin bs=24576 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin bs=8192 conv=sync
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader.bin