riscv-software-src / opensbi

RISC-V Open Source Supervisor Binary Interface
Other
1.03k stars 511 forks source link

firmware base is not the value of FW_TEXT_START( but 0x80000000) #357

Closed AllenZF closed 2 months ago

AllenZF commented 5 months ago

commit d962db280725b03a0340e05a07e4c85c93f35bc5 In WSL: opensbi$ make all LLVM=1 PLATFORM=generic PLATFORM_RISCV_XLEN=64 FW_TEXT_START=0 opensbi$ make LLVM=1 run PLATFORM=generic image then, opensbi$ make LLVM=1 clean opensbi$ make all LLVM=1 PLATFORM=generic PLATFORM_RISCV_XLEN=64 FW_TEXT_START=0x1000 opensbi$ make LLVM=1 run PLATFORM=generic image There is nothing to be printed.

tswaehn commented 3 months ago

if you want to start at 0x80000000 then you should use qemu-system-riscv32

if you really stick to qemu-sytem-riscv64 then this should be 0x80200000