On Tue, Apr 09, 2019 at 12:42:46PM +0200, David Abdurachmanov wrote:
> After updating Fedora/RISCV kernel to 5.1-rc3+ the size increased above
> the current threshold. Looking into HiKey, Dragonboards, etc. seems that
> SZ_64M is a popular option.
> 
> This sucessfully boots Fedora/RISCV with 5.1-rc3+ kernel on QEMU 4.0 (master)
> with OpenSBI -> U-Boot (S-mode) [extlinux] -> Kernel setup.
> 
> Signed-off-by: David Abdurachmanov <david.abdurachma...@gmail.com>
> ---
>  include/configs/qemu-riscv.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
> index 2588c5a0b2..22a5cd7365 100644
> --- a/include/configs/qemu-riscv.h
> +++ b/include/configs/qemu-riscv.h
> @@ -15,7 +15,7 @@
>  
>  #define CONFIG_SYS_MALLOC_LEN                SZ_8M
>  
> -#define CONFIG_SYS_BOOTM_LEN         SZ_16M
> +#define CONFIG_SYS_BOOTM_LEN         SZ_64M
>  
>  #define CONFIG_STANDALONE_LOAD_ADDR  0x80200000
>  
> @@ -41,11 +41,11 @@
>  #define CONFIG_EXTRA_ENV_SETTINGS \
>       "fdt_high=0xffffffffffffffff\0" \
>       "initrd_high=0xffffffffffffffff\0" \
> -     "kernel_addr_r=0x81000000\0" \
> -     "fdt_addr_r=0x82000000\0" \
> -     "scriptaddr=0x82100000\0" \
> -     "pxefile_addr_r=0x82200000\0" \
> -     "ramdisk_addr_r=0x82300000\0" \
> +     "kernel_addr_r=0x84000000\0" \
> +     "fdt_addr_r=0x88000000\0" \
> +     "scriptaddr=0x88100000\0" \
> +     "pxefile_addr_r=0x88200000\0" \
> +     "ramdisk_addr_r=0x88300000\0" \

As a follow-up, I really dislike fdt_high/initrd_high being set such
that we disable relocation, that just leads to down the line
"kernel/initrd grew, was overwritten".  We should be using bootm_size to
define the area in memory that everything can reside in, so that U-Boot
can be smart about relocations.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to