Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第零章:实验环境说明 · GitBook #62

Open
chyyuu opened this issue Dec 14, 2019 · 7 comments
Open

第零章:实验环境说明 · GitBook #62

chyyuu opened this issue Dec 14, 2019 · 7 comments

Comments

@chyyuu
Copy link
Member

chyyuu commented Dec 14, 2019

https://rcore-os.github.io/rCore_tutorial_doc/chapter0/introduction.html

@wyfcyx
Copy link
Collaborator

wyfcyx commented Feb 18, 2020

自行配置 Linux(虚拟机)/MacOS/wsl 实验环境的同学,请参考

安装 Rust-nightly

安装 Qemu

@vtta
Copy link

vtta commented Feb 25, 2020

macOS 下配置命令

rustup toolchain install nightly
rustup target add riscv64imac-unknown-none-elf
rustup component add llvm-tools-preview
cargo install cargo-binutils
brew install dtc qemu

@gongbo2018
Copy link

gongbo2018 commented May 26, 2020

运行 make run 报下面的错误,不知道 opensbi-riscv64-virt-fw_jump.bin 这个文件是哪里来的

    Finished dev [unoptimized + debuginfo] target(s) in 0.71s
rust-objcopy --binary-architecture=riscv64 target/riscv64imac-unknown-none-elf/debug/os --strip-all -O binary target/riscv64imac-unknown-none-elf/debug/kernel.bin
qemu-system-riscv64 \
	-machine virt \
	-nographic \
	-bios default \
	-device loader,file=target/riscv64imac-unknown-none-elf/debug/kernel.bin,addr=0x80200000
qemu-system-riscv64: Unable to load the RISC-V firmware "opensbi-riscv64-virt-fw_jump.bin"
make[1]: *** [Makefile:33:qemu] 错误 1
make[1]: 离开目录“/home/wgb/osSpace/rCore_tutorial/os”
make: *** [Makefile:8:run] 错误 2

@sushadangchu
Copy link

运行时报错,和gongbo2018情况一样,不知道是缺少什么环境了,网上也没有搜索到

@wyfcyx
Copy link
Collaborator

wyfcyx commented Sep 9, 2020

@sushadangchu
运行时报错,和gongbo2018情况一样,不知道是缺少什么环境了,网上也没有搜索到

按照 这里 所讲的升级一下 Qemu 版本试一下?

@sushadangchu
Copy link

sushadangchu commented Sep 9, 2020 via email

@sushadangchu
Copy link

重新配置了一下环境,可以运行了,但是走到最后一步的时候出错了,不知道什么原因。

switch satp from 0x800000000008025a to 0x80000000000811ca
++++ setup memory!    ++++
++++ setup interrupt! ++++
available programs in rust/ are:
  .
  ..
  hello_world
  notebook
  user_shell
  model
  write
++++ setup fs!        ++++
++++ setup process!   ++++
++++ setup timer!     ++++
Exception(StorePageFault) va = 0xffffffffffffff68 instruction = 0x1ad82
panicked at 'page fault!', src/interrupt.rs:76:5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants