Skip to content
  • Ben Dooks's avatar
    ubifs: allow loading to above 4GiB · b46cec41
    Ben Dooks authored and Heiko Schocher's avatar Heiko Schocher committed
    
    
    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: default avatarBen Dooks <ben.dooks@sifive.com>
    Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
    b46cec41