Swapnil Haria has uploaded this change for review. (
https://gem5-review.googlesource.com/5584
Change subject: Adding useful scripts
......................................................................
Adding useful scripts
Change-Id: I474f08ade8559d3ecaff4f7ab19b15c4b7072af3
---
M .gitignore
A configs/boot/test.rcS
A mount_img.sh
A run_qemu.sh
A test.sh
5 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 0b1b017..bef47bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
configs/boot/test-large.rcS
-configs/boot/test.rcS
fs-files/
kvm.patch
ubuntu.img
diff --git a/configs/boot/test.rcS b/configs/boot/test.rcS
new file mode 100644
index 0000000..5b75afb
--- /dev/null
+++ b/configs/boot/test.rcS
@@ -0,0 +1,5 @@
+#!/bin/sh
+/sbin/m5 sw99param
+echo "Hello World"
+sync
+/sbin/m5 exit
diff --git a/mount_img.sh b/mount_img.sh
new file mode 100644
index 0000000..b05cb67
--- /dev/null
+++ b/mount_img.sh
@@ -0,0 +1 @@
+sudo mount -o loop,offset=1048576 ubuntu.img mount/
diff --git a/run_qemu.sh b/run_qemu.sh
new file mode 100644
index 0000000..670d6ce
--- /dev/null
+++ b/run_qemu.sh
@@ -0,0 +1,3 @@
+qemu-system-x86_64 -hda ubuntu-test.img -m 1024 -enable-kvm
+#username: swapnilh
+#passwd: t..o
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..a3de808
--- /dev/null
+++ b/test.sh
@@ -0,0 +1 @@
+./build/X86/gem5.opt --debug-flags=PseudoInst configs/system/run-cpu-fs.py
--script=configs/boot/test.rcS
--
To view, visit https://gem5-review.googlesource.com/5584
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I474f08ade8559d3ecaff4f7ab19b15c4b7072af3
Gerrit-Change-Number: 5584
Gerrit-PatchSet: 1
Gerrit-Owner: Swapnil Haria <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev