blob: b961cd1a1812c3f699e427d6c4f481600054ad26 [file] [log] [blame]
#!/bin/bash
CURR_DIR=`pwd`
TOP_DIR=$CURR_DIR/../../../..
rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/zloader_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom/loader2_tmp.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/bootrom.bin
rm $TOP_DIR/boot/prj/zx297520v3/bootrom/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/bootrom/dl_on/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/zloader.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/zloader_tmp.bin bs=8192 conv=sync
dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom/loader2.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom/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/bootrom/dl_on/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/bootrom/loader2_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/bootrom.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom/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/bootrom/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/bootrom/dl_off/zloader_tmp.bin $TOP_DIR/boot/prj/zx297520v3/bootrom/loader2_tmp.bin > $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/bootrom.bin
cat $TOP_DIR/boot/prj/zx297520v3/bootrom/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/bootrom/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