Skip to content
Commit 6ea31cce authored by Hamish Guthrie's avatar Hamish Guthrie Committed by Heiko Schocher
Browse files

ubispl: add support for loading volumes by name



The motivation is to use the UBI atomic volume rename functionality to
allow double copy software updates on UBI. To that end the SPL is
configured to always load the same volume name (e.g. "u-boot"),
whereas a software updater always installs into the secondary volume
"u-boot_r". After successful installation, these two volume names are
switched.

This extension is protected by #ifdefs as it will somewhat slow down
loading of volumes by id. This is because the code needs to disable
the optimization of ignoring all volume ids which are not
to-be-loaded, since these can only be resolved after attaching.

This adds two vtbl related functions from Linux, which are taken from
the same kernel version as the current main U-Boot UBI code (Linux 4.2
64291f7db5bd8).

Signed-off-by: default avatarHamish Guthrie <hamish.guthrie@kistler.com>
Signed-off-by: default avatarMarkus Klotzbuecher <markus.klotzbuecher@kistler.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Kyungmin Park <kmpark@infradead.org>
parent 4bae76d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment