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