From 74adab1114f5adca260855b13bce67bcc52232aa Mon Sep 17 00:00:00 2001 From: TENGY_Z <110544069+nusakom@users.noreply.github.com> Date: Thu, 15 Aug 2024 04:10:17 -0400 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=B7=B1=E5=A4=8D=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=A1=A5=E5=85=85=20(#9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- docs/doc/musl.md | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 995d9d3e..d10f128c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ 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/) @@ -49,6 +49,7 @@ make help ``` # 一键运行qemu,注意在编译busybox时选择静态链接Settings->Build static binary (no shared libs) +# 忘记设置静态链接可以使用make clean重新配置 make run # run test > cd tests @@ -59,8 +60,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) diff --git a/docs/doc/musl.md b/docs/doc/musl.md index c41af978..8c08a0e4 100644 --- a/docs/doc/musl.md +++ b/docs/doc/musl.md @@ -38,7 +38,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 ## 缺少浮点数相关的函数的问题