diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2019-08-30 07:47:52 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2019-08-30 07:52:41 +0200 |
commit | 307a2fa777cd8a431d508cb949bfee5ddd28a33c (patch) | |
tree | afdf2797662a12bc4a18669b7e0d3bdc6d04b0e6 /lt-qcom-bootloader/dragonboard410c | |
parent | 40b2fed32687f049e34badf721492ab298e07231 (diff) |
lt-qcom-bootloader: include empty/zero boot image in the rescue package
When we reset the board with the rescue package, we also need to erase
the boot partition to make sure that there is no left out boot image
from the past. So let's create a small zero file that we will write to
boot partition, 1MB will be enough to clear the boot image header and
invalidate the boot data.
Change-Id: I50dd7c120b1d74cda407fc6394ea2084480b5185
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-bootloader/dragonboard410c')
-rw-r--r-- | lt-qcom-bootloader/dragonboard410c/builders.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lt-qcom-bootloader/dragonboard410c/builders.sh b/lt-qcom-bootloader/dragonboard410c/builders.sh index 74b705eb51..2a9bc9fa7d 100644 --- a/lt-qcom-bootloader/dragonboard410c/builders.sh +++ b/lt-qcom-bootloader/dragonboard410c/builders.sh @@ -53,6 +53,9 @@ git clone --depth 1 https://git.linaro.org/landing-teams/working/qualcomm/partio (mkdir ptool/linux && cd ptool/linux && python2 ${WORKSPACE}/ptool/ptool.py -x ${WORKSPACE}/dragonboard410c/linux/partition.xml) (mkdir ptool/aosp && cd ptool/aosp && python2 ${WORKSPACE}/ptool/ptool.py -x ${WORKSPACE}/dragonboard410c/aosp/partition.xml) +# Empty/zero boot image file to clear boot partition +dd if=/dev/zero of=boot-erase.img bs=1024 count=1024 + # bootloader_emmc_linux cp -a LICENSE \ dragonboard410c/linux/flashall \ @@ -63,6 +66,7 @@ cp -a LICENSE \ ptool/linux/{rawprogram,patch}?.xml \ ptool/linux/gpt_{main,backup,both}?.bin \ ptool/linux/zeros_*.bin \ + boot-erase.img \ out/${BOOTLOADER_EMMC_LINUX} # bootloader_emmc_aosp @@ -74,6 +78,7 @@ cp -a LICENSE \ ptool/aosp/{rawprogram,patch}?.xml \ ptool/aosp/gpt_{main,backup,both}?.bin \ ptool/aosp/zeros_*.bin \ + boot-erase.img \ out/${BOOTLOADER_EMMC_AOSP} # bootloader_sd_linux |