From 76ed23010dfd4f568471443b55083ac44f4a33f5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 19 Oct 2022 04:44:04 +0800 Subject: [PATCH] erase staged gateware as part of --factory-reset --- tools/updater/precursorupdater/precursorupdater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/updater/precursorupdater/precursorupdater.py b/tools/updater/precursorupdater/precursorupdater.py index 1f0494618..8770f156c 100755 --- a/tools/updater/precursorupdater/precursorupdater.py +++ b/tools/updater/precursorupdater/precursorupdater.py @@ -217,7 +217,8 @@ def main(): ['prog', "Uploading kernel", locs['LOC_KERNEL'][0], kernel], ['prog', "Uploading EC", locs['LOC_EC'][0], ec_fw], ['prog', "Uploading wf200", locs['LOC_WF200'][0], wf200], - ['prog', "Overwriting gateware", locs['LOC_SOC'][0], soc_csr], + ['prog', "Overwriting boot gateware", locs['LOC_SOC'][0], soc_csr], + ['erase', "Erasing any staged gateware", locs['LOC_STAGING'][0], 0x28_0000], ] if args.paranoid: # erase the entire area -- about 10-15 minutes