blob: 9d9a575a0c3f7a4739e4fb77a980d742e10510f5 [file] [log] [blame]
Tom Rini31ab6a12022-06-13 22:57:32 -04001/* SPDX-License-Identifier: GPL-2.0+ */
2
3/* Does what recovery does */
4#define REFLASH(file, partnum) \
5part start mmc 0 partnum start && \
6part size mmc 0 partnum size && \
7tftp $loadaddr file && \
8mmc write $loadaddr $start $size &&
9
10reflash=
11mmc dev 0 &&
12usb start &&
13dhcp &&
14tftp $loadaddr dragonboard/rescue/gpt_both0.bin &&
15mmc write $loadaddr 0 43 &&
16mmc rescan &&
17REFLASH(dragonboard/rescue/NON-HLOS.bin, 1)
18REFLASH(dragonboard/rescue/sbl1.mbn, 2)
19REFLASH(dragonboard/rescue/rpm.mbn, 3)
20REFLASH(dragonboard/rescue/tz.mbn, 4)
21REFLASH(dragonboard/rescue/hyp.mbn, 5)
22REFLASH(dragonboard/rescue/sec.dat, 6)
23REFLASH(dragonboard/rescue/emmc_appsboot.mbn, 7)
24REFLASH(dragonboard/u-boot.img, 8)
25usb stop &&
26echo Reflash completed
27
28loadaddr=0x81000000
29initrd_high=0xffffffffffffffff
30linux_image=Image
31kernel_addr_r=0x81000000
32fdtfile=qcom/apq8016-sbc.dtb
33fdt_addr_r=0x83000000
34ramdisk_addr_r=0x84000000
35scriptaddr=0x90000000
36pxefile_addr_r=0x90100000