diff options
author | Holger Dengler <dengler@linutronix.de> | 2017-08-30 18:38:52 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-06-06 13:11:24 +0200 |
commit | d507d86f8fbd51611fff18eb487d836243c0e7c5 (patch) | |
tree | 845d6a345a3d8446db5a7c1309159aee37e7d203 /.mailmap | |
parent | 9b02ad9e5d6ec207d26b25488c07b2fa13572730 (diff) |
cmd: set filesize variable in ubi read
After a successful read of a UBI volume, the variable filesize is set
to the number of read bytes. To boot linux with a raw initramfs/initrd,
you must specify the exact size of the initramfs/initrd image in boot
command. If the initramfs/inird is read from UBI volume, $filesize is
required to access the number of read bytes.
Example:
ubi read ${loadaddr} kernelvol
ubi read ${fdtaddr} dtbvol
ubi read ${initrd_addr} initrdvol
bootz ${loadaddr} ${initrd_addr}:${filesize} ${fdt_addr}
Signed-off-by: Holger Dengler <dengler@linutronix.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
(cherry picked from commit 985fa93e61706a78fad130b006aefa1c098145de)
[backported to 2016.11]
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions