blob: b961cd1a1812c3f699e427d6c4f481600054ad26 [file] [log] [blame]
xf.liaa4d92f2023-09-13 00:18:58 -07001#!/bin/bash
2
3CURR_DIR=`pwd`
4TOP_DIR=$CURR_DIR/../../../..
5
6rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/zloader_tmp.bin
7rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/zloader_tmp.bin
8rm $TOP_DIR/boot/prj/zx297520v3/bootrom/loader2_tmp.bin
9rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_on/bootrom.bin
10rm $TOP_DIR/boot/prj/zx297520v3/bootrom/dl_off/bootrom.bin
11
12
13cp -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
14cp -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
15cp -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
16cp -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
17
18rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin
19rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin
20rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin
21rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin
22
23
24dd 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
25dd 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
26dd if=$TOP_DIR/boot/prj/zx297520v3/bootrom/loader2.bin of=$TOP_DIR/boot/prj/zx297520v3/bootrom/loader2_tmp.bin bs=24576 conv=sync
27dd 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
28dd 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
29dd 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
30dd 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
31
32
33cat $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
34cat $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
35cat $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
36
37cat $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
38cat $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
39cat $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
40