-
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.
This patch adds initial README.md on usage. Signed-off-by: Yanfeng Liu <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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,34 @@ | ||
# Introduction | ||
|
||
This builds Linux with rv64ilp32 for trying on K230 devices. | ||
|
||
# Preparations | ||
|
||
Please prepare toolchain and source tree before building. | ||
|
||
## Toolchain preparation | ||
|
||
Please get the [rv64ilp32 toolchain](https://github.com/ruyisdk/riscv-gnu-toolchain-rv64ilp32) and install on build host. | ||
|
||
Please setup environment variable `RV64ILP32_TOOLCHAIN_HOME` as the toolchain installation path: | ||
|
||
``` | ||
$ export RV64ILP32_TOOLCHAIN_HOME=/opt/rv64ilp32 | ||
$ ls -F $RV64ILP32_TOOLCHAIN_HOME | ||
riscv/ | ||
``` | ||
## Source tree preparation | ||
|
||
Before building, please run the following commands to fetch the submodule sources: | ||
|
||
``` | ||
$ git submodule update --init --recursive | ||
``` | ||
|
||
# Build | ||
|
||
Run `build.sh` in top folder to see how to build different targets. | ||
|
||
The final image will be available in `output/` folder, which can be used on K230devices. | ||
|
||
|