]> git.baikalelectronics.ru Git - uboot.git/commit
ubifs: allow loading to above 4GiB
authorBen Dooks <ben.dooks@sifive.com>
Tue, 6 Jun 2023 08:23:28 +0000 (09:23 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 6 Jun 2023 08:37:25 +0000 (10:37 +0200)
commit5955a9e9521db2849f8d14d3992e714a056ed8da
treefcc975cdb0063a87e9e0c53b83857e829286ca60
parent41c64618c57fee0b68c980de87a556a36e599ab6
ubifs: allow loading to above 4GiB

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@sifive.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
cmd/ubifs.c
fs/ubifs/ubifs.c
include/ubifs_uboot.h