Error: illegal operands `li t1,(CFG_SYS_INIT_RAM_ADDR+CFG_SYS_INIT_RAM_SIZE-400)'
Trying to build u-boot linux4microchip+fpga-2023.09, rather than 2023.02 under Ubuntu 22.04.3. and obtained the errors:
......
arch/riscv/cpu/start.S: Assembler messages:
arch/riscv/cpu/start.S:98: Error: illegal operands `li t1,(CFG_SYS_INIT_RAM_ADDR+CFG_SYS_INIT_RAM_SIZE-400)'
CC arch/riscv/lib/interrupts.o
CC arch/riscv/lib/reset.o
In file included from include/config.h:3,
from include/common.h:16,
from arch/riscv/cpu/cpu.c:6:
include/configs/microchip_mpfs_icicle.h:15: warning: "CONFIG_SYS_BOOTM_LEN" redefined
15 | #define CONFIG_SYS_BOOTM_LEN SZ_64M
|
In file included from ././include/linux/kconfig.h:4,
from <command-line>:
include/generated/autoconf.h:142: note: this is the location of the previous definition
142 | #define CONFIG_SYS_BOOTM_LEN 0x800000
|
CC arch/riscv/lib/fdt_fixup.o
AS arch/riscv/lib/setjmp.o
make[1]: *** [scripts/Makefile.build:292: arch/riscv/cpu/start.o] Error 1
make[1]: *** Waiting for unfinished jobs....
AS arch/riscv/lib/memset.o
AS arch/riscv/lib/memmove.o
AS arch/riscv/lib/memcpy.o
AS arch/riscv/lib/crt0_riscv_efi.o
CC boot/bootm.o
CC arch/riscv/lib/reloc_riscv_efi.o
CC boot/bootm_os.o
......
This error caused the following error message:
...
make: *** [Makefile:1853: arch/riscv/cpu] Error 2
AR drivers/cache/built-in.o
make: *** Waiting for unfinished jobs....
...
And finally failed to generate the expected u-boot.bin.
Can you please help? Do we need an extra configuration mpfs_beaglev_fire_defconfig under u-boot/configs/, with the customized definition of CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR??
Edited by Pei Jia