-
Notifications
You must be signed in to change notification settings - Fork 1
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 #57 from Alignof/develop
Ver 1.1.0
- Loading branch information
Showing
43 changed files
with
1,625 additions
and
292 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
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 |
---|---|---|
|
@@ -21,3 +21,4 @@ Cargo.lock | |
.gdb_history | ||
vmlinux | ||
vmlinux_debug | ||
rootfs.* |
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
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
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Build guest image | ||
|
||
## device tree | ||
``` | ||
```sh | ||
$ ./build_dtb.sh create | ||
$ vim guest.dts # edit dts | ||
$ ./build_dtb.sh build | ||
# guest.dtb is created to repository root. | ||
``` | ||
|
||
## Linux (with debug info) | ||
``` | ||
```sh | ||
$ git clone https://github.com/torvalds/linux -b v6.9 | ||
|
||
$ cd /path/to/this/repository | ||
|
@@ -22,3 +22,23 @@ $ DEBUG_KERNEL [=y], DEBUG_INFO [=y], EFI [=n], RELOCATABLE [=n] | |
$ make ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu- -j$(nproc) | ||
$ mv vmlinux /path/to/linux/vmlinx_debug | ||
``` | ||
|
||
## Linux (For Zicfiss) | ||
See [https://lwn.net/Articles/992578/](https://lwn.net/Articles/992578/). | ||
```sh | ||
# Toolchain | ||
$ git clone [email protected]:sifive/riscv-gnu-toolchain.git -b cfi-dev | ||
$ riscv-gnu-toolchain/configure --prefix=<path-to-where-to-build> --with-arch=rv64gc_zicfilp_zicfiss --enable-linux --disable-gdb --with-extra-multilib-test="rv64gc_zicfilp_zicfiss-lp64d:-static" | ||
$ make -j$(nproc) | ||
|
||
# Opensbi | ||
$ git clone [email protected]:deepak0414/opensbi.git -b v6_cfi_spec_split_opensbi | ||
$ make CROSS_COMPILE=<your riscv toolchain> -j$(nproc) PLATFORM=generic | ||
|
||
# Linux | ||
$ git clone https://github.com/torvalds/linux -b v6.12-rc1 | ||
$ wget https://patchwork.kernel.org/series/896898/mbox/ --output-document riscv-control-flow-integrity-for-usermode.patch | ||
$ git am riscv-control-flow-integrity-for-usermode.patch | ||
$ make ARCH=riscv CROSS_COMPILE=<path-to-cfi-riscv-gnu-toolchain>/build/bin/riscv64-unknown-linux-gnu- -j$(nproc) defconfig | ||
$ make ARCH=riscv CROSS_COMPILE=<path-to-cfi-riscv-gnu-toolchain>/build/bin/riscv64-unknown-linux-gnu- -j$(nproc) | ||
``` |
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
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
Oops, something went wrong.