Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch_itb.py: fix hash value compare
Got error when handling my FIT file: ```txt Extracted: Image 1 (fdt-1) Description: ARM64 OpenWrt cmcc_rax3000m-nand-ubootmod device tree blob Created: Fri Aug 9 14:40:29 2024 Type: Flat Device Tree Compression: uncompressed Data Size: 22515 Bytes = 21.99 KiB = 0.02 MiB Architecture: AArch64 Hash algo: crc32 Hash value: a8ce7e2e Hash algo: sha1 Hash value: 41d92ad20c528dfc32c78d4d68be20d8939c2220 Failed to find sha1 in itb its ``` The value of orig_sha1 variable in code is: ```txt orig_sha1: <0x41d92ad2 0x0c528dfc 0x32c78d4d 0x68be20d8 0x939c2220> ``` while the sha1 value in build/orig_itb.its is ```txt hash-2 { value = <0x41d92ad2 0xc528dfc 0x32c78d4d 0x68be20d8 0x939c2220>; algo = "sha1"; }; ``` Signed-off-by: Kun Lai <me@imlk.top>
- Loading branch information