On 18:20 Fri 22 Jun, Jim Wilson wrote:
> If you are starting from scratch, you might want to try looking at a
> known working repo. The github sifive/freedom-u-sdk repo can build
> linux+buildroot and boot it on either spike or qemu. qemu is the more
> useful choice, as it supports devices and spike does not. spike is
> the reference implementation for the architecture though so it is
> useful for that reason. There is a small problem with the spike
> support, you need to enable CONFIG_HVC_RISCV_SBI in
> conf/linux_defconfig. The default serial console driver is the one
> that works best on the HiFive Unleashed board, and this one
> unfortunately does not work on spike, so you need to enable the old
> one to get linux booting on spike. You can use this freedom-u-sdk
> repo as a guide for how to create your own linux+builtroot distro.
Hi,
I'm trying this out, but I'd like to get this built for without any
floating-point, i.e. with ISA=rv64imac. Is there a simple way to get
this to work? Currently, it fails with:
checking for clock_t... yes
checking for F_SETLKW... yes
checking if mkdir takes one argument... no
--with-abi=lp64d is not supported for ISA rv64imac
Makefile:4149: recipe for target 'configure-gcc' failed
make[2]: *** [configure-gcc] Error 1
make[2]: Leaving directory '/src/hw/riscv/freedom-u-sdk/work/riscv-gnu-toolchain/build-gcc-linux-stage1'
Makefile:204: recipe for target 'stamps/build-gcc-linux-stage1' failed
make[1]: *** [stamps/build-gcc-linux-stage1] Error 2
make[1]: Leaving directory '/src/hw/riscv/freedom-u-sdk/work/riscv-gnu-toolchain'
Makefile:73: recipe for target '/src/hw/riscv/freedom-u-sdk/toolchain/bin/riscv64-unknown-linux-gnu-gcc' failed
make: *** [/src/hw/riscv/freedom-u-sdk/toolchain/bin/riscv64-unknown-linux-gnu-gcc] Error 2
Is there an alternate --with-abi setting I could try?
--prashanth