diff options
author | Xiang Wang <wxjstz@126.com> | 2018-11-21 15:25:33 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-22 14:48:43 +0000 |
commit | 7db270c25c8effa491e9f40c4cbaf2fb11fac259 (patch) | |
tree | cd402744e00dc02595b5a6bed5f5e4eac49f4633 /util/riscv | |
parent | 5df5ade696e2674c8e3fd62f69fff6ff65899d2a (diff) |
riscv: fix bug of sifive-gpt.py
The GPT version must be "00 00 01 00" and the little endian should be
represented as 0x10000.
Please refer to: https://en.wikipedia.org/wiki/GUID_Partition_Table
Change-Id: Ib025197fc96f32823e687a89de0cee51c952b031
Signed-off-by: Xiang Wang <wxjstz@126.com>
Reviewed-on: https://review.coreboot.org/c/29767
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/riscv')
-rwxr-xr-x | util/riscv/sifive-gpt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/riscv/sifive-gpt.py b/util/riscv/sifive-gpt.py index 7f522d9379..f1e4fa85be 100755 --- a/util/riscv/sifive-gpt.py +++ b/util/riscv/sifive-gpt.py @@ -88,7 +88,7 @@ class GPTHeader: def pack_with_crc(self, crc): header_size = 92 header = struct.pack('<8sIIIIQQQQ16sQIII', - b'EFI PART', 0x100, header_size, crc, 0, + b'EFI PART', 0x10000, header_size, crc, 0, self.current_lba, self.backup_lba, self.first_usable_lba, self.last_usable_lba, self.uniq.get_bytes(), self.part_entries_lba, self.part_entries_number, |