# Make sim - does not work. not booting on spike

**URL:** https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871
**Category:** Freedom U500
**Created:** [December 14, 2018, 5:46am UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871 "2018-12-14T05:46:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dthirumurthy](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dthirumurthy](https://forums.sifive.com/u/dthirumurthy)
#### Post date: [December 14, 2018, 5:46am UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/1 "2018-12-14T05:46:02Z")

</div>

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

> <https://github.com/hakrdinesh/e/blob/master/s1.out>

Thanks.  
Regards,  
Dinesh

---

<div class="post-metadata">

### Author: ![jimw](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jimw](https://forums.sifive.com/u/jimw)
#### Post date: [December 14, 2018, 6:31am UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/2 "2018-12-14T06:31:19Z")

</div>

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.

```auto
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

```

---

<div class="post-metadata">

### Author: ![dthirumurthy](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dthirumurthy](https://forums.sifive.com/u/dthirumurthy)
#### Post date: [December 14, 2018, 7:46am UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/3 "2018-12-14T07:46:24Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dthirumurthy](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dthirumurthy](https://forums.sifive.com/u/dthirumurthy)
#### Post date: [December 14, 2018, 5:19pm UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/4 "2018-12-14T17:19:05Z")

</div>

Works fine. Thanks Jim.

Dinesh

---

<div class="post-metadata">

### Author: ![jimw](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jimw](https://forums.sifive.com/u/jimw)
#### Post date: [December 14, 2018, 8:35pm UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/5 "2018-12-14T20:35:12Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dthirumurthy](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dthirumurthy](https://forums.sifive.com/u/dthirumurthy)
#### Post date: [December 14, 2018, 10:55pm UTC](https://forums.sifive.com/t/make-sim-does-not-work-not-booting-on-spike/1871/6 "2018-12-14T22:55:00Z")

</div>

Thank you Jim
