xf.li | e31de8b | 2023-12-26 23:38:58 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | CURR_DIR=`pwd` |
| 4 | TOP_DIR=$CURR_DIR/../../../.. |
| 5 | |
| 6 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader_tmp.bin |
| 7 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader_tmp.bin |
| 8 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2_tmp.bin |
| 9 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2_tmp.bin |
| 10 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin |
| 11 | rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin |
| 12 | |
| 13 | |
| 14 | 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 |
| 15 | 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 |
| 16 | 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 |
| 17 | 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 |
| 18 | |
| 19 | rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin |
| 20 | rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin |
| 21 | rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin |
| 22 | rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin |
| 23 | |
| 24 | |
| 25 | 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 |
| 26 | 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 |
| 27 | 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 |
| 28 | 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 |
| 29 | 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 |
| 30 | 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 |
| 31 | 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 |
| 32 | 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 |
| 33 | |
| 34 | |
| 35 | 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 |
| 36 | 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 |
| 37 | 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 |
| 38 | |
| 39 | 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 |
| 40 | 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 |
| 41 | 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 |
| 42 | |