arm-trusted-firmware/tools
Antonio Borneo 06e69f7c94 feat(fiptool): handle FIP in a disk partition
When FIP is programmed in a disk partition, fiptool cannot be used
directly; this forces the user to temporarily copy the partition
to a file, apply fiptool and copy back the file. This is caused by
fstat() that returns zero file size on a block special file, thus
making fiptool commands info, update, unpack and remove to exit.

For either Linux host or Linux target, recover the partition size
with ioctl() and use it as FIP file size. E.g.:
	fiptool info /dev/disk/by-partlabel/fip-a
	fiptool info /dev/mtdblock4

While there, rework two identical error log messages to provide
more details about the failure and update the date in copyright.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Change-Id: I7cab60e577422d94c24ba7e39458f58bcebc2336
2023-01-23 11:45:53 +01:00
..
amlogic meson: Rename platform directory to amlogic 2019-09-05 10:39:25 +01:00
cert_create feat(cert-create): update for ECDSA brainpoolP256r/t1 support 2022-11-14 11:25:01 +01:00
conventional-changelog-tf-a docs(changelog): changelog for v2.8 release 2022-11-16 14:10:49 -06:00
encrypt_fw refactor(security): add OpenSSL 1.x compatibility 2022-11-11 13:33:42 -05:00
fiptool feat(fiptool): handle FIP in a disk partition 2023-01-23 11:45:53 +01:00
marvell/doimage tools: doimage: change the binary image alignment to 16 2020-07-10 10:54:44 +00:00
memory feat(debug): update print_memory_map.py 2022-04-07 13:46:31 +02:00
nxp fix(nxp-tools): fix create_pbl print log 2022-03-27 23:24:24 +08:00
renesas feat(plat/rcar3): change the memory map for OP-TEE 2021-09-12 01:13:48 +02:00
sptool fix(sptool): operators "is/is not" in sp_mk_gen.py 2022-10-07 10:06:08 +01:00
stm32image feat(st): update stm32image tool for header v2 2022-03-21 10:53:55 +01:00