Skip to content

Commit

Permalink
add initial README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yf13 committed Mar 1, 2024
1 parent ae07e67 commit 4604921
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
45 changes: 45 additions & 0 deletions README.md
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.


1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ function fault() {
}

function main() {
echo $#
if [[ $# < 1 ]]; then
fault
fi
Expand Down

0 comments on commit 4604921

Please sign in to comment.