Skip to content
David Metz edited this page Sep 17, 2020 · 3 revisions

ssh davidcme@lobo.idi.ntnu.no cd ~ mkdir git cd git

fails:

git version seems a bit old... - doesn't work via https

force git to use git:// instaed of https://

git config --global url."git://github".insteadOf https://github

git clone https://github.com/EECS-NTNU/chipyard.git cd chipyard/ git checkout origin/LSC-dev ./scripts/init-submodules-no-riscv-tools.sh

git seems to be a bit old (version 1.7.1 - 10 years...)

#gcc update sudo yum install centos-release-scl sudo yum install devtoolset-8

new shell

scl enable devtoolset-8 -- bash

in current shell

source scl_source enable devtoolset-8

#lobo crash

forgot sudo in command

/opt/convey/bin/wxcontrol wxpfwc0 -r Physical device /dev/wxpfwc0 reset Configuration starting for /dev/wxcp0 Unable to open device /dev/wxfw0 Permission denied^CPhysical /dev/wxpfwc0 configured as logical /dev/wxcp-1

retried with sudo

bash-4.1$ sudo /opt/convey/bin/wxcontrol wxpfwc0 -r [sudo] password for davidcme: Device /dev/wxpfwc0 current state:Disabled, cannot disable/reset bash-4.1$ sudo /opt/convey/bin/wxcontrol wxpfwc0 -r Device /dev/wxpfwc0 current state:Disabled, cannot disable/reset bash-4.1$ sudo /opt/convey/bin/wx wxcontrol wxgraphics wxinfo wxps
bash-4.1$ sudo /opt/convey/bin/wxinfo Logical Physical State Arch Mem Size Owner Signature wxcp1 wxpfwa0 Enabled WX_2000 32G/32G 0.0.0.0.0 wxcp2 wxpfwb0 Enabled WX_2000 32G/32G 0.0.0.0.0 wxpfwc0 Disabled WX_2000 0/0 0.0.0.0.0 wxcp3 wxpfwd0 Enabled WX_2000 32G/32G 0.0.0.0.0 bash-4.1$ sudo /opt/convey/bin/wxcontrol -help Ignoring options other than help wxcontrol device [OPTION] --help -h
--enable -e
--disable -d
--reset -r
--ClearAll -C
--clearstats -c val --Errorclear -E
--sigclear -s
--sigload -l val --hixupdate
--cpldupdate
--firmwareupdate
--hixnew
--cpldnew

Valid values for -c val are: dm datamover mm memory cae CAE dis dispatch sys system

Valid values for device (logical): [0-63] wxcp[0-63] or /dev/wxcp[0-63] Used for -E -s and -l (physical): [a-p][0-3] wxpfw[a-p][0-3] or /dev/wxpfw[a-p][0-3] Used for -d -e -r -C -c --hixupdate and --cpldupdate

Valid value for -l val is the name or number of the personality being loaded "aebase" or "44444.1.1.4.0"

See man 1 wxcontrol for more detailed information

tried to enable

bash-4.1$ sudo /opt/convey/bin/wxcontrol wxpfwc0 -e Connection to lobo.idi.ntnu.no closed.

git update

sudo yum install centos-release-scl-rh sudo yum install sclo-git25

to activate:

in current shell

source scl_source enable sclo-git25

install firesim

source scl_source enable devtoolset-8 source scl_source enable sclo-git25 source scl_source enable rh-python36

sudo yum groupinstall -y "Development tools" sudo yum install epel-release sudo yum install dtc sudo yum install python27

#bison sudo yum install rpm-build curl -O http://vault.centos.org/7.0.1406/os/Source/SPackages/bison-2.7-4.el7.src.rpm rpmbuild --rebuild ./bison-2.7-4.el7.src.rpm sudo yum install ./rpmbuild/RPMS/x86_64/bison-2.7-4.el6.x86_64.rpm rm -rf rpmbuild

qemu needs newer glib => skip?

#realpath cd /usr/local/src/ wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/realpath-1.17-1.el6.rf.x86_64.rpm rpm -Uvh realpath-1.17-1.el6.rf.x86_64.rpm

update glibc to 2.17 (need aligned_alloc)

https://gist.github.com/harv/f86690fcad94f655906ee9e37c85b174

#update jdk (needed for sbt) #sudo yum install java-1.8.0-openjdk

still too old!

curl -O https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz tar zxvf openjdk-11+28_linux-x64_bin.tar.gz sudo mv jdk-11/ /usr/lib/jvm/ /usr/lib/jvm/jdk-11/bin/java -version sudo sh -c 'for bin in /usr/lib/jvm/jdk-11/bin/; do update-alternatives --install /usr/bin/$(basename $bin) $(basename $bin) $bin 100; done' sudo sh -c 'for bin in /usr/lib/jvm/jdk-11/bin/; do update-alternatives --set $(basename $bin) $bin; done' sudo update-alternatives --config java java --version

make dromajo compile by adding -D__STDC_FORMAT_MACROS to CXXFLAGS in /home/davidcme/git/firesim/target-design/chipyard/tools/dromajo/dromajo-src/src/Makefile