]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Fix dumping DATA registers for v0 images
authorPali Rohár <pali@kernel.org>
Sun, 13 Feb 2022 00:04:33 +0000 (01:04 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
commitf06fb05f80788b53f535decfd84c6e7dda16eb3e
treefff0eb0ee28bf157b72ac40ca1a77f29445926d7
parent566a33a9320b2c71ce8bfb77970d07ed768318c9
tools: kwbimage: Fix dumping DATA registers for v0 images

End of DATA register section is indicated by zero value in both raddr and
rdata.

So do not stop dumping registers with non-zero address and zero value.
And also print end of DATA registers section.

Fixes: 7a800b3de2da ("tools: kwbimage: Dump kwbimage config file on '-p -1' option")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reported-by: Tony Dinh <mibodhi@gmail.com>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c