Skip to content

Commit 61edab0

Browse files
committed
flash: add qdl scripts
1 parent 230bfc7 commit 61edab0

File tree

3 files changed

+183
-0
lines changed

3 files changed

+183
-0
lines changed

precompiled/flash/patch0.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" ?>
2+
<patches>
3+
<!--NOTE: This is an ** Autogenerated file **-->
4+
<!--NOTE: Patching is in little endian format, i.e. 0xAABBCCDD will look like DD CC BB AA in the file or on disk-->
5+
<!--NOTE: This file is used by Trace32 - So make sure to add decimals, i.e. 0x10-10=0, *but* 0x10-10.=6.-->
6+
<patch start_sector="19" byte_offset="40" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update last partition 69 'userdata' with actual size in Primary Header."/>
7+
<patch start_sector="19" byte_offset="40" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update last partition 69 'userdata' with actual size in Primary Header."/>
8+
<patch start_sector="17" byte_offset="40" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update last partition 69 'userdata' with actual size in Backup Header."/>
9+
<patch start_sector="NUM_DISK_SECTORS-16." byte_offset="40" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update last partition 69 'userdata' with actual size in Backup Header."/>
10+
<patch start_sector="1" byte_offset="48" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with LastUseableLBA."/>
11+
<patch start_sector="1" byte_offset="48" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with LastUseableLBA."/>
12+
<patch start_sector="32" byte_offset="48" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with LastUseableLBA."/>
13+
<patch start_sector="NUM_DISK_SECTORS-1." byte_offset="48" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-34." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with LastUseableLBA."/>
14+
<patch start_sector="1" byte_offset="32" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-1." filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with BackupGPT Header Location."/>
15+
<patch start_sector="1" byte_offset="32" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-1." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with BackupGPT Header Location."/>
16+
<patch start_sector="32" byte_offset="24" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-1." filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CurrentLBA."/>
17+
<patch start_sector="NUM_DISK_SECTORS-1." byte_offset="24" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-1." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CurrentLBA."/>
18+
<patch start_sector="32" byte_offset="72" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-33." filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with Partition Array Location."/>
19+
<patch start_sector="NUM_DISK_SECTORS-1" byte_offset="72" physical_partition_number="0" size_in_bytes="8" value="NUM_DISK_SECTORS-33." filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with Partition Array Location."/>
20+
<patch start_sector="1" byte_offset="88" physical_partition_number="0" size_in_bytes="4" value="CRC32(2,9216)" filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with CRC of Partition Array."/>
21+
<patch start_sector="1" byte_offset="88" physical_partition_number="0" size_in_bytes="4" value="CRC32(2,9216)" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with CRC of Partition Array."/>
22+
<patch start_sector="32" byte_offset="88" physical_partition_number="0" size_in_bytes="4" value="CRC32(0,9216)" filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CRC of Partition Array."/>
23+
<patch start_sector="NUM_DISK_SECTORS-1." byte_offset="88" physical_partition_number="0" size_in_bytes="4" value="CRC32(NUM_DISK_SECTORS-33.,9216)" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CRC of Partition Array."/>
24+
<patch start_sector="1" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="0" filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Zero Out Header CRC in Primary Header."/>
25+
<patch start_sector="1" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="CRC32(1,92)" filename="gpt_main0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with CRC of Primary Header."/>
26+
<patch start_sector="1" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="0" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Zero Out Header CRC in Primary Header."/>
27+
<patch start_sector="1" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="CRC32(1,92)" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Primary Header with CRC of Primary Header."/>
28+
<patch start_sector="32" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="0" filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Zero Out Header CRC in Backup Header."/>
29+
<patch start_sector="32" byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="CRC32(32,92)" filename="gpt_backup0.bin" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CRC of Backup Header."/>
30+
<patch start_sector="NUM_DISK_SECTORS-1." byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="0" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Zero Out Header CRC in Backup Header."/>
31+
<patch start_sector="NUM_DISK_SECTORS-1." byte_offset="16" physical_partition_number="0" size_in_bytes="4" value="CRC32(NUM_DISK_SECTORS-1.,92)" filename="DISK" SECTOR_SIZE_IN_BYTES="512" what="Update Backup Header with CRC of Backup Header."/>
32+
</patches>

0 commit comments

Comments
 (0)