[U-Boot] [PATCH] cmd: ubi: Add additional message upon UBI attach error
Heiko Schocher
hs at denx.de
Thu Jul 12 09:14:30 UTC 2018
Hello Stefan,
Am 26.06.2018 um 08:12 schrieb Stefan Roese:
> When trying to attach an UBI MTD partition via "ubi part", it may happen
> that the MTD partition defined in U-Boot (via mtdparts) is not big
> enough than the one, where the UBI device has been created on. This
> may lead to errors, which are not really descriptive to debug and
> solve this issue, like:
>
> ubi0 error: vtbl_check: too large reserved_pebs 1982, good PEBs 1020
> ubi0 error: vtbl_check: volume table check failed: record 0, error 9
>
> or:
>
> ubi0 error: init_volumes: not enough PEBs, required 1738, available 1020
> ubi0 error: ubi_wl_init: no enough physical eraseblocks (-718, need 1)
> ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -12
>
> Lets add an additional message upon attach failure, to aid the U-Boot
> user to solve this problem.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Heiko Schocher <hs at denx.de>
> ---
> cmd/ubi.c | 1 +
> 1 file changed, 1 insertion(+)
applied to u-boot-ubi.git master
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list