-
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.
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
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,45 @@ | ||
# Introduction | ||
|
||
This builds Linux with rv64ilp32 for trying on K230 devices. | ||
|
||
# Preparations | ||
|
||
Please prepare toolchain, source tree and host packages 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 root path: | ||
|
||
``` | ||
$ export RV64ILP32_TOOLCHAIN_HOME=<toolchain-install-root> | ||
$ ls -F $RV64ILP32_TOOLCHAIN_HOME | ||
riscv/ | ||
``` | ||
|
||
Please note that a `riscv64-unknown-linux-gnu-` toolchain is needed to build the uboot submodule. | ||
|
||
## Source tree preparation | ||
|
||
Before building, please run the following commands to fetch the submodule sources: | ||
|
||
``` | ||
$ git submodule update --init --recursive | ||
``` | ||
|
||
## Host packages | ||
|
||
You may need the following host packages on Ubuntu: | ||
|
||
``` | ||
$ sudo apt install libssl-dev | ||
``` | ||
|
||
# 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. | ||
|
||
|
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 |
---|---|---|
|
@@ -142,7 +142,6 @@ function fault() { | |
} | ||
|
||
function main() { | ||
echo $# | ||
if [[ $# < 1 ]]; then | ||
fault | ||
fi | ||
|