-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from dkohlbre/dev-fix-hifive-qemu
Fixed hifive qemu build to be possible, new run script for it
- Loading branch information
Showing
12 changed files
with
96 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Launch QEMU test | ||
screen -L -dmS qemu ./scripts/run-hifive-qemu.sh | ||
sleep 10 | ||
./scripts/test-hifive-qemu.sh | ||
|
||
diff output.log tests/test-hifive-qemu.expected.log | ||
if [ $? -eq 0 ] | ||
then | ||
echo "[PASS] output.log matches with the expected output" | ||
exit 0 | ||
else | ||
echo "[FAIL] output.log does not match with the expected output" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
./riscv-qemu/riscv64-softmmu/qemu-system-riscv64 \ | ||
-D debug.log \ | ||
-m 4G \ | ||
-bios bootrom/bootrom.elf \ | ||
-nographic \ | ||
-machine virt \ | ||
-kernel hifive-work/riscv-pk/bbl \ | ||
-netdev user,id=net0,net=192.168.100.1/24,dhcpstart=192.168.100.128,hostfwd=tcp::5555-:22 \ | ||
-device virtio-net-device,netdev=net0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env bash | ||
./riscv-qemu/riscv64-softmmu/qemu-system-riscv64 -D debug.log -nographic -m 4G -machine virt\ | ||
-bios bootrom/bootrom.elf \ | ||
-kernel riscv-pk/build/bbl -append "root=/dev/vda ro console=ttyS0" \ | ||
-drive file=busybear-linux/busybear.bin,format=raw,id=hd0 \ | ||
-device virtio-blk-device,drive=hd0 \ | ||
-netdev user,id=net0,net=192.168.100.1/24,dhcpstart=192.168.100.128,hostfwd=tcp::5555-:22 \ | ||
-device virtio-net-device,netdev=net0 | ||
./riscv-qemu/riscv64-softmmu/qemu-system-riscv64 \ | ||
-D debug.log \ | ||
-m 4G \ | ||
-bios bootrom/bootrom.elf \ | ||
-nographic \ | ||
-machine virt\ | ||
-kernel riscv-pk/build/bbl -append "root=/dev/vda ro console=ttyS0" \ | ||
-drive file=busybear-linux/busybear.bin,format=raw,id=hd0 \ | ||
-device virtio-blk-device,drive=hd0 \ | ||
-netdev user,id=net0,net=192.168.100.1/24,dhcpstart=192.168.100.128,hostfwd=tcp::5555-:22 \ | ||
-device virtio-net-device,netdev=net0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/expect | ||
|
||
set timeout 60 | ||
spawn ssh -o "UserKnownHostsFile /dev/null" root@localhost -p 5555 | ||
expect "yes/no" { | ||
send "yes\r" | ||
expect "*?assword" { send "sifive\r" } | ||
} "*?assword" { send "sifive\r" } | ||
|
||
log_file -noappend output.log | ||
|
||
expect "# " { send "insmod keystone-driver.ko\r" } | ||
expect "# " { send "./test\r" } | ||
expect "# " { send "poweroff\r" } | ||
expect eof |
Submodule sdk
updated
5 files
+17 −14 | Makefile | |
+8 −8 | lib/Makefile | |
+1 −1 | runtime | |
+2 −2 | samples/Makefile | |
+2 −2 | tests/Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters