[PATCHv2] ubifs: allow loading to above 4GiB
Heiko Schocher
hs at denx.de
Tue Jun 6 14:06:17 CEST 2023
Hello Ben,
On 06.06.23 10:23, Ben Dooks wrote:
> The ubifsload command is truncating any address above 4GiB as it casts
> this address to an u32, instead of using an unsigned long which most of
> the other load commands do. Change this to an unsigned long to allow
> loading into high memory for boards which use these areas.
>
> Fixes the following error:
>
> => ubifsload 0x2100000000 /boot/Image.lzma
> Loading file '/boot/Image.lzma' to addr 0x00000000...
> Unhandled exception: Store/AMO access fault
>
> Signed-off-by: Ben Dooks <ben.dooks at sifive.com>
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
> ---
> v2:
> - fixed debug print
> ---
> cmd/ubifs.c | 4 ++--
> fs/ubifs/ubifs.c | 4 ++--
> include/ubifs_uboot.h | 2 +-
> 3 files changed, 5 insertions(+), 5 deletions(-)
Applied to u-boot-ubi.git master
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
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