Skip to content

Commit 3bc56ac

Browse files
authored
Merge pull request #1258 from ucb-bar/fix-open-files-limit-and-fsim
fix open files issue and bump firesim with various fixes
2 parents 33f5040 + 640d159 commit 3bc56ac

File tree

8 files changed

+75
-3
lines changed

8 files changed

+75
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ tags
1818
.bsp/
1919
.conda-env/
2020
.#*
21+
first-clone-setup-fast-log

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
This changelog follows the format defined here: https://keepachangelog.com/en/1.0.0/
44

5+
## [1.8.1] - 2022-10-18
6+
7+
Various fixes and improvements, bump FireSim to 1.15.1.
8+
9+
### Added
10+
* Bump chipyard to integrate mempress #1253
11+
12+
### Changed
13+
* Default VCS simulators should generate FSDB #1252
14+
* Bump to FireSim 1.15.1 for various improvements #1258
15+
16+
### Fixed
17+
* Revert to using sbt-launch.jar to run SBT #1251
18+
* Fix open files issue automatically on systems with a sufficiently large hard limit, to work around buildroot bug. #1258
19+
* Fixed PATH issues in generated env.sh #1258
20+
* Fixed scripts/repo-clean.sh to restore clean repo state again #1258
21+
522
## [1.8.0] - 2022-09-30
623

724
Adds support for NoC-based interconnects with Constellation (https://constellation.readthedocs.io/en/latest/). Switch to Conda for dependency/environment management. Bump Rocket Chip and other hardware libraries. Bump to FireSim 1.15.0.

build-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ $RDIR/scripts/gen-tags.sh
9696
cat << EOT >> env.sh
9797
# line auto-generated by $0
9898
conda activate $RDIR/.conda-env
99+
source $RDIR/scripts/fix-open-files.sh
99100
EOT

scripts/first-clone-setup-fast.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
{
6+
7+
export MAKEFLAGS=-j16
8+
9+
STARTDIR=$(git rev-parse --show-toplevel)
10+
11+
./build-setup.sh riscv-tools -f
12+
13+
source $STARTDIR/.conda-env/etc/profile.d/conda.sh
14+
15+
source env.sh
16+
17+
./scripts/firesim-setup.sh
18+
cd sims/firesim
19+
source sourceme-f1-manager.sh --skip-ssh-setup
20+
21+
cd sim
22+
unset MAKEFLAGS
23+
make verilator
24+
export MAKEFLAGS=-j16
25+
26+
cd $STARTDIR/software/firemarshal
27+
./init-submodules.sh
28+
marshal -v build br-base.json
29+
30+
cd $STARTDIR
31+
./scripts/repo-clean.sh
32+
33+
} 2>&1 | tee first-clone-setup-fast-log

scripts/fix-open-files.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# first, check if the system allows sufficient limits (the hard limit)
3+
HARD_LIMIT=$(ulimit -Hn)
4+
REQUIRED_LIMIT=16384
5+
6+
if [ "$HARD_LIMIT" -lt "$REQUIRED_LIMIT" ]; then
7+
echo "WARNING: Your system does not support an open files limit (the output of 'ulimit -Sn' and 'ulimit -Hn') of at least $REQUIRED_LIMIT, which is required to workaround a bug in buildroot. You will not be able to build a Linux distro with FireMarshal until this is addressed."
8+
fi
9+
10+
# in any case, set the soft limit to the same value as the hard limit
11+
ulimit -Sn $(ulimit -Hn)
12+

scripts/init-submodules-no-riscv-tools-nolog.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fi
149149

150150
cat << EOT >> env.sh
151151
# line auto-generated by init-submodules-no-riscv-tools.sh
152-
__DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]:-${(%):-%x}}")")"
152+
__DIR="$RDIR"
153153
PATH=\$__DIR/bin:\$PATH
154154
PATH=\$__DIR/software/firemarshal:\$PATH
155155
EOT

scripts/repo-clean.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rm -rf $RDIR/toolchains/esp-tools/riscv-tests/build.log
1616
pushd $RDIR/generators/constellation
1717
if [ -d espresso ]
1818
then
19-
git submodule deinit espresso
19+
git submodule deinit -f espresso
2020
fi
2121
popd
2222
)
@@ -25,3 +25,11 @@ rm -rf $RDIR/toolchains/esp-tools/riscv-tests/build.log
2525
git config --local status.showUntrackedFiles no
2626
popd
2727
)
28+
(
29+
pushd $RDIR/generators/cva6/src/main/resources/vsrc
30+
if [ -d cva6 ]
31+
then
32+
git submodule deinit -f cva6
33+
fi
34+
popd
35+
)

sims/firesim

Submodule firesim updated 47 files

0 commit comments

Comments
 (0)