Make sim - does not work. not booting on spike


(Dinesh) #1

Running on Ubuntu 16.04.5.

On VirtualBox 5.2.18? Not on hardware. Does that make a difference?

make sim

will compile fine
but will get stuck during boot at/after

[ 0.176795] NET: Registered protocol family 17
[ 0.177780] bootconsole [early0] uses init memory and must be disabled even before the real one is ready
[ 0.178880] bootconsole [early0] disabled

latest source has this problem on my configuration Ubuntu 16.04.5 LTS amd64 4GB RAM.

complete log is at

Thanks.
Regards,
Dinesh


(Jim Wilson) #2

The default serial driver is the one that works best on the HiFive Unleashed hardware, and it unfortunately does not work on spike. You need a patch to enable the old one. Yet another item we should add to the new README file.

diff --git a/conf/linux_defconfig b/conf/linux_defconfig
index cd87340..87b480f 100644
--- a/conf/linux_defconfig
+++ b/conf/linux_defconfig
@@ -53,7 +53,7 @@ CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_SERIAL_SIFIVE=y
 CONFIG_SERIAL_SIFIVE_CONSOLE=y
-# CONFIG_HVC_RISCV_SBI is not set
+CONFIG_HVC_RISCV_SBI=y
 CONFIG_VIRTIO_CONSOLE=y
 # CONFIG_HW_RANDOM is not setwhich
 CONFIG_I2C=y

(Dinesh) #3

Thanks Jim. I will try this and get back to you.

I am assuming you meant Freedom Unleashed Hardware. I am looking at the Freedom U540 board and its SDK.

Regards,
Dinesh


(Dinesh) #4

Works fine. Thanks Jim.

Dinesh


(Jim Wilson) #5

I added changes to the freedom-u-sdk to add this spike serial console info, and also the build dependencies for qemu and spike.


(Dinesh) #6

Thank you Jim