Closed corleonechensiyu closed 2 years ago
build u-boot like this
make CROSS_COMPILE=riscv64-linux- sipeed_maix_smode_defconfig && make CROSS_COMPILE=riscv64-linux- -j4
and build opensbi
export CROSS_COMPILE=riscv64-linux- && make PLATFORM=kendryte/k210 FW_PAYLOAD=y FW_PAYLOAD_OFFSET=0x20000 FW_PAYLOAD_PATH=/home/csy/k210/u-boot/u-boot-dtb.bin
then get this error
/home/csy/k210/riscv64--glibc--bleeding-edge-2020.02-1/bin/../lib/gcc/riscv64-buildroot-linux-gnu/9.3.0/../../../../riscv64-buildroot-linux-gnu/bin/ld.bfd: section .payload VMA [0000000080020000,0000000080084637] overlaps section .bss VMA [0000000080015000,0000000080035397]collect2: error: ld return 1 make: *** [Makefile:439:/home/csy/k210/opensbi/build/platform/kendryte/k210/firmware/fw_payload.elf] error 1
the FW_PAYLOAD_OFFSET should set 0x200000 not 0x20000
/home/csy/k210/riscv64--glibc--bleeding-edge-2020.02-1/bin/../lib/gcc/riscv64-buildroot-linux-gnu/9.3.0/../../../../riscv64-buildroot-linux-gnu/bin/ld.bfd: section .payload VMA [0000000080020000,0000000080084637] overlaps section .bss VMA [0000000080015000,0000000080035397] collect2: error: ld return 1