-
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 #33 from dayeol/dev-qemu-networking
Enable QEMU networking using user net device
- Loading branch information
Showing
4 changed files
with
106 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
git submodule update --init --recursive | ||
|
||
mkdir riscv | ||
export RISCV=$(pwd)/riscv | ||
export PATH=$PATH:$RISCV/bin | ||
cd riscv-gnu-toolchain | ||
./configure --prefix=$RISCV | ||
make && make linux | ||
cd .. | ||
|
||
cd busybear-linux | ||
make | ||
cd .. | ||
|
||
./scripts/apply-patch.sh | ||
cd riscv-qemu | ||
./configure --target-list=riscv64-softmmu,riscv32-softmmu | ||
make | ||
cd .. | ||
|
||
cd riscv-linux | ||
cp ../busybear-linux/conf/linux.config .config | ||
make ARCH=riscv olddefconfig | ||
make ARCH=riscv vmlinux | ||
cd .. | ||
|
||
cd riscv-pk | ||
mkdir build | ||
cd build | ||
../configure \ | ||
--enable-logo \ | ||
--host=riscv64-unknown-elf \ | ||
--with-payload=../../riscv-linux/vmlinux \ | ||
--enable-sm | ||
make | ||
cd ../.. | ||
|
||
cd bootrom | ||
make | ||
cd .. | ||
|
||
cd linux-keystone-driver | ||
make | ||
make copy | ||
cd .. | ||
|
||
cd sdk | ||
make | ||
make copy-tests | ||
cd .. | ||
|
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,52 @@ | ||
git clone https://github.com/keystone-enclave/firesim-riscv-tools-prebuilt.git --depth=1 | ||
|
||
export RISCV=$(pwd)/riscv | ||
export PATH=$PATH:$RISCV/bin | ||
|
||
cd firesim-riscv-tools-prebuilt | ||
./installrelease.sh | ||
mv distrib ../riscv | ||
cd .. | ||
rm -rf firesim-riscv-tools-prebuilt | ||
|
||
cd busybear-linux | ||
make | ||
cd .. | ||
|
||
./scripts/apply-patch.sh | ||
cd riscv-qemu | ||
./configure --target-list=riscv64-softmmu,riscv32-softmmu | ||
make | ||
cd .. | ||
|
||
cd riscv-linux | ||
cp ../busybear-linux/conf/linux.config .config | ||
make ARCH=riscv olddefconfig | ||
make ARCH=riscv vmlinux | ||
cd .. | ||
|
||
cd riscv-pk | ||
mkdir build | ||
cd build | ||
../configure \ | ||
--enable-logo \ | ||
--host=riscv64-unknown-elf \ | ||
--with-payload=../../riscv-linux/vmlinux \ | ||
--enable-sm | ||
make | ||
cd ../.. | ||
|
||
cd bootrom | ||
make | ||
cd .. | ||
|
||
cd linux-keystone-driver | ||
make | ||
make copy | ||
cd .. | ||
|
||
cd sdk | ||
make | ||
make copy-tests | ||
cd .. | ||
|
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