diff options
author | Holger Dengler <dengler@linutronix.de> | 2017-08-30 18:38:52 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2017-09-12 10:08:05 +0200 |
commit | 985fa93e61706a78fad130b006aefa1c098145de (patch) | |
tree | f8f2d4c1714c7fc3790ad84610e80196c9915030 /cmd/pxe.c | |
parent | c98ac3487e413c71e5d36322ef3324b21c6f60f9 (diff) | |
download | u-boot-985fa93e61706a78fad130b006aefa1c098145de.tar.gz |
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>
Diffstat (limited to 'cmd/pxe.c')
0 files changed, 0 insertions, 0 deletions