blob: 3a077d4adbd31afa85d86e8ed5852a3d7ddead80 [file] [log] [blame]
xf.lie31de8b2023-12-26 23:38:58 -08001#!/bin/bash
2
3CURR_DIR=`pwd`
4TOP_DIR=$CURR_DIR/../../../..
5
6rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/zloader_tmp.bin
7rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/zloader_tmp.bin
8rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/loader2_tmp.bin
9rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/loader2_tmp.bin
10rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_on/bootrom.bin
11rm $TOP_DIR/boot/prj/zx297520v3/bootrom2/dl_off/bootrom.bin
12
13
14cp -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
15cp -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
16cp -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
17cp -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
19rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/zloader_tmp.bin
20rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader_tmp.bin
21rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_off/zloader_tmp.bin
22rm $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader_tmp.bin
23
24
25dd 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
26dd 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
27dd 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
28dd 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
29dd 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
30dd 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
31dd 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
32dd 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
35cat $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
36cat $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
37cat $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
39cat $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
40cat $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
41cat $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