Is UBI volume update broken?

Anatolij Gustschin agust at denx.de
Fri Jun 24 09:09:58 PDT 2016


Hi Ezequiel,

On Fri, 24 Jun 2016 12:36:05 -0300
Ezequiel Garcia ezequiel at vanguardiasur.com.ar wrote:

>Anatolij.
>
>On 24 June 2016 at 10:33, Anatolij Gustschin <agust at denx.de> wrote:
>[..]
>>
>> # ubiupdatevol /dev/ubi0_0 data.ubi
>> # echo $?
>> 0
>>
>
>It seems you are you writing a UBI *volume*, with an image
>prepared for a UBI *device*.

yes, now I see it. Thanks for the pointer.

[...]
>If you wrote down your exact steps, then it's clear this
>is wrong:
>
>ubiformat /dev/mtd4 -f data.ubi
>ubiupdatevol /dev/ubi0_0 data.ubi

I extracted the commands from some old script and this script was
obviously wrong.

>You probably want "ubiupdatevol /dev/ubi0_0 data.img".

Exactly! And that works as expected.

Thanks,

Anatolij



More information about the linux-mtd mailing list