]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc: blkmap: Fix typo in command example
authorKen Kurematsu <k.kurematsu@nskint.co.jp>
Thu, 26 Sep 2024 09:26:05 +0000 (09:26 +0000)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 18 Oct 2024 14:17:28 +0000 (16:17 +0200)
Fixed a variable that was incorrect during the calculation of fileblks.

Signed-off-by: Ken Kurematsu <k.kurematsu@nskint.co.jp>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
doc/usage/blkmap.rst

index 7337ea507a198282c0fe196c3a11c3bc6a0588e5..75f736c259fcc6979c23bb556de4b99c445b669c 100644 (file)
@@ -54,7 +54,7 @@ downloaded file, in blocks:
 ::
 
    setexpr fileblks ${filesize} + 0x1ff
-   setexpr fileblks ${filesize} / 0x200
+   setexpr fileblks ${fileblks} / 0x200
 
 Then we can add a mapping to the start of our device, backed by the
 memory at `${loadaddr}`: