Skip to content
Snippets Groups Projects
Commit 985fa93e authored by Holger Dengler's avatar Holger Dengler Committed by Heiko Schocher
Browse files

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: default avatarHolger Dengler <dengler@linutronix.de>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent c98ac348
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment