feat(fwu): firmware corrupt GPT MBR test
Adding a test case for corrupted GPT mbr.
The FWU should be panic and the update process
cannot be done
Signed-off-by: Xialin Liu <xialin.liu@arm.com>
Change-Id: I3597f5e668e4c9797b5e428f469394c2935dc0cf
diff --git a/fvp_utils.sh b/fvp_utils.sh
index 71e71eb..fe76023 100644
--- a/fvp_utils.sh
+++ b/fvp_utils.sh
@@ -596,8 +596,12 @@
seek=$(gdisk -l $bin | grep " FWU-Metadata$" | awk '{print $2}')
count=1
;;
+ "mbr")
+ seek=0
+ count=1
+ ;;
*)
- echo "Invalid $corrupt_data. Use 'header', 'partition-entries'"
+ echo "Invalid $corrupt_data. Use 'header', 'partition-entries', 'fwu-metadata' or 'mbr'."
return 1
;;
esac