Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
advanced_computer_architecture
vagrant
Commits
2cc8fc1f
Commit
2cc8fc1f
authored
Mar 31, 2016
by
Christoph Gerum
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of atreus.informatik.uni-tuebingen.de:advanced_computer_architecture/vagrant
parents
612cb2c7
776831cc
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
79 additions
and
18 deletions
+79
-18
.vagrant/machines/default/virtualbox/action_provision
.vagrant/machines/default/virtualbox/action_provision
+1
-0
.vagrant/machines/default/virtualbox/action_set_name
.vagrant/machines/default/virtualbox/action_set_name
+1
-0
.vagrant/machines/default/virtualbox/id
.vagrant/machines/default/virtualbox/id
+1
-0
.vagrant/machines/default/virtualbox/index_uuid
.vagrant/machines/default/virtualbox/index_uuid
+1
-0
.vagrant/machines/default/virtualbox/private_key
.vagrant/machines/default/virtualbox/private_key
+27
-0
.vagrant/machines/default/virtualbox/synced_folders
.vagrant/machines/default/virtualbox/synced_folders
+1
-0
README.md
README.md
+6
-1
bootstrap.sh
bootstrap.sh
+3
-1
init_local_config.sh
init_local_config.sh
+8
-4
userconfig.sh
userconfig.sh
+30
-12
No files found.
.vagrant/machines/default/virtualbox/action_provision
0 → 100644
View file @
2cc8fc1f
1.5:2118eeba-c3ea-4107-b353-f603b0ccb998
\ No newline at end of file
.vagrant/machines/default/virtualbox/action_set_name
0 → 100644
View file @
2cc8fc1f
1453652530
\ No newline at end of file
.vagrant/machines/default/virtualbox/id
0 → 100644
View file @
2cc8fc1f
2118eeba-c3ea-4107-b353-f603b0ccb998
\ No newline at end of file
.vagrant/machines/default/virtualbox/index_uuid
0 → 100644
View file @
2cc8fc1f
8556f7653d114ce991351e253f49aa17
\ No newline at end of file
.vagrant/machines/default/virtualbox/private_key
0 → 100644
View file @
2cc8fc1f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tibs0A8pESp/0ketEzVDC47Zj7OKiInRUydC+fjAoGAVGl66UK9wNJ6qdCJ+tKH
aqApJyDgf1nb5upvpSZJSkmmcjrlh6iDysBcOKRvA1Bh7JH1D5H5RquUFWdy+E94
o1TRHUK7Nh63ygqtA2ij2EJQl4ZOuc+izVxvwDAocnNgQVN2HNqopkjBedMUfEEt
ialVorasLngAwaCIGUZj5PECgYBUOSyFgzurJO0tzr0fOr8Rhn7jmHzoQDHBe0Li
fLiYVzPNjLJiEmp9j+R3sIyMZCUctRQ1UBTP+L6Db3mKrVnicHvkA0PnnymCaqwC
HIKWfaYtrpcUGTyBQanx+vkoWBx6jOYGTD5lzLN9OUcRlfwFuYPjG4jpKajcDTyj
cvQAnQKBgQCH8qlKy33BlMX9PWoGGU42q36FKNChhvEzhrcGHdO8A2AZXe2S655h
g6fWp8LaZahdcCt7G7tEihYYCEq88sGS8RjPEb2pReXQ3e52WpfRpJICL7EK1ep+
MvoXJw5UcV6NOKjLRRwX5UbMg/FbEI1dv8aqx3H4tf5JHgZoR9vMVw==
-----END RSA PRIVATE KEY-----
.vagrant/machines/default/virtualbox/synced_folders
0 → 100644
View file @
2cc8fc1f
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/michael/Dokumente/uni/tutorium/praktikum/vagrant","disabled":false,"__vagrantfile":true}}}
\ No newline at end of file
README.md
View file @
2cc8fc1f
...
...
@@ -16,4 +16,9 @@
vagrant up
vagrant ssh
\ No newline at end of file
## TODO:
-
[x] exercises repository klonen
-
[x] m5term kompilieren, umgebungsvariable setzen
-
[x] beim Einrichten git installieren
-
[x] full system files runterladen, entpacken, M5_PATH setzen
-
[x] arm-cross-compiler installieren
bootstrap.sh
View file @
2cc8fc1f
...
...
@@ -17,8 +17,10 @@ apt-get install protobuf-compiler -y
apt-get
install
gcc-arm-linux-gnueabihf
-y
apt-get
install
ipython
-y
apt-get
install
python-pandas python-matplotlib
-y
apt-get
install
libncurses5 libncurses5-dev libelf-dev
-y
apt-get
install
git
-y
echo
${
PWD
}
sudo
-u
vagrant /vagrant/userconfig.sh
\n
echo
"Setting local configuration"
echo
"Setting local configuration"
init_local_config.sh
View file @
2cc8fc1f
...
...
@@ -4,7 +4,11 @@ mkdir -p local_config
mkdir
-p
local_config/ssh
ssh-keygen
-f
local_config/ssh/id_rsa
-N
""
echo
"#!/bin/bash"
>
local_config/local_booststrap.sh
echo
" "
>>
local_config/local_booststrap.sh
echo
'echo "Setting local configuration"'
>>
local_config/local_bootstrap.sh
chmod
ugo+x bootstrap.sh
\ No newline at end of file
cat
<<
EOF
> local_config/local_bootstrap.sh
#!/bin/bash
echo "Setting local configuration"
EOF
chmod
ugo+x bootstrap.sh
chmod
ugo+x local_config/local_bootstrap.sh
userconfig.sh
View file @
2cc8fc1f
#!/bin/bash
vagranthome
=
${
PWD
}
ca_dir
=
"
${
vagranthomw
}
/advanced_computer_architecture"
cd
$HOME
ca_dir
=
"
${
HOME
}
/advanced_computer_architecture"
mkdir
-p
advanced_computer_architecture
cd
if
[
!
-d
gem5
]
;
then
hg clone http://repo.gem5.org/gem5
fi
cd
gem5
hg pull
#scons build/ARM/gem5.debug
scons build/ARM/gem5.opt
#scons build/X86/gem5.debug
#scons build/X86/gem5.opt
hg update
#scons build/ARM/gem5.debug --jobs 2
scons build/ARM/gem5.opt
--jobs
2
#scons build/X86/gem5.debug --jobs 2
#scons build/X86/gem5.opt --jobs 2
cd
util/term/
make
echo
'alias m5term="/home/vagrant/gem5/util/term/m5term"'
>>
/home/vagrant/.bashrc
cd
$ca_dir
sudo
wget http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz
mkdir
-p
system
cd
system
wget http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz
tar
xvJf aarch-system-2014-10.tar.xz
cd
$vagranthome
cp
-r
/vagrant/local_config/ssh ~/.ssh
/vagrant/local_config/local_bootstrap.sh
\ No newline at end of file
if
[
$?
==
0
]
;
then
rm
aarch-system-2014-10.tar.xz
fi
cd
$HOME
echo
'export M5_PATH="/home/vagrant/advanced_computer_architecture/system"'
>>
.bashrc
cp
-r
/vagrant/local_config/ssh/
*
~/.ssh
mkdir
-p
$ca_dir
cd
$ca_dir
git clone git@atreus.informatik.uni-tuebingen.de:advanced_computer_architecture/exercises.git
/vagrant/local_config/local_bootstrap.sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment