Skip to content

Commit

Permalink
在.md上面添加配置的详细步骤 (#10)
Browse files Browse the repository at this point in the history
* 自己复现的错误补充
  • Loading branch information
nusakom authored Aug 23, 2024
1 parent 233a139 commit b388c70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@ A simple operating system implemented in rust. The purpose is to explore how to

## Run

1. install qemu 7.0.0
1. install qemu 7.0.0(qume版本最低要求7.0.0)
2. install rust nightly
3. install riscv64-linux-musl [toolchain](https://musl.cc/)
3. install riscv64-linux-musl [toolchain](https://musl.cc/)<br>
以上内容可以参考[简明 ArceOS Tutorial Book](https://rcore-os.cn/arceos-tutorial-book/ch01-02.html)

```
make help
```

```
# 一键运行qemu,注意在编译busybox时选择静态链接Settings->Build static binary (no shared libs)
# 忘记设置静态链接可以使用make clean重新配置
make run
# run test
> cd tests
Expand All @@ -59,8 +61,9 @@ make run

```
make run GUI=y
# 在编译和运行的时候指定参数y
cd tests
slint or guitest or todo or printdemo or memorygame or ...
slint or sysinfo or todo or printdemo or memorygame
```

### [Run VisionFive2](./docs/doc/boot.md)
Expand Down
4 changes: 3 additions & 1 deletion docs/doc/musl.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cargo build --release -Z build-std=core,std,panic_abort
在编写程序时,我们可以使用`#![no_main]` 关闭默认的`main` 函数。这可以减少一些不必要的系统调用,因为rust的默认实现会做一些保护措施,一上来就会调用奇怪的系统调用。


make run 无法进去静态编译请检查网络

## 提示找不到运行时库的问题

Expand All @@ -38,7 +39,8 @@ https://stackoverflow.com/questions/74424444/how-to-build-a-rust-program-for-ris
https://www.reddit.com/r/rust/comments/17nxdc3/help_trying_to_build_for_riscv64gcunknownlinuxmusl/

https://github.com/rust-lang/rust/issues/120655 给出了解决方案

(在自己的riscv工具链命令下创建一个符号链接,指向libgcc.)
ln -s your path/libgcc.a /your path/libunwind.a


## 缺少浮点数相关的函数的问题
Expand Down

0 comments on commit b388c70

Please sign in to comment.