[U-Boot] [PATCH] cmd: set filesize variable in ubi read

Holger Dengler
2017-09-12T07:45:34Z

Hi Heiko,

sorry, my fault. I missed, that the function has been renamed. I'll resend the patch.

On 09/12/2017 09:35 AM, Heiko Schocher wrote:
> Hello Holger,
>
> Am 31.08.2017 um 09:25 schrieb Heiko Schocher:
>> Hello Holger,
>>
>> Am 30.08.2017 um 18:38 schrieb Holger Dengler:
>>> 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>
>>> ---
>>>   cmd/ubi.c | 5 +++++
>>>   1 file changed, 5 insertions(+)
>>
>> Thanks!
>>
>> Reviewed-by: Heiko Schocher <hs@denx.de>
>>
>> As new release is near, I pickup this patch when the next merge window
>> opens.
>
> Just tried a travis build, and it breaks a lot of boards, see
>
> https://travis-ci.org/hsdenx/u-boot-ubi/builds/274457374
>
> Do you have time to look into?
>
> bye,
> Heiko

--
Gruß,
Holger Dengler
--
phone: +49 7556 25 999 14; fax: +49 7556 25 999 99

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170912/f0d272ef/attachment.sig>