rCore 及相关实验、复现、笔记,自用
-
记录一些运行过程中的问题及解决
-
原仓库
-
报错:
-
最终修改了报错中的 virtio-drivers 源码, 应该不是个好办法
error[E0658]: use of unstable library feature 'renamed_spin_loop' --> /home/yy/.cargo/git/checkouts/virtio-drivers-4fdfaa862bcdc399/6c5c8e2/src/gpu.rs:4:5 | 4 | use core::hint::spin_loop; | ^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information = help: add `#![feature(renamed_spin_loop)]` to the crate attributes to enable error[E0658]: use of unstable library feature 'renamed_spin_loop' --> /home/yy/.cargo/git/checkouts/virtio-drivers-4fdfaa862bcdc399/6c5c8e2/src/gpu.rs:158:13 | 158 | spin_loop(); | ^^^^^^^^^ | = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information = help: add `#![feature(renamed_spin_loop)]` to the crate attributes to enable error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0658`. error: could not compile `virtio-drivers`. To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed make: *** [Makefile:24: kernel] Error 101
-
-
提示:
Compiling os v0.1.0 (/home/yy/os_labs/os_kernel_lab/os) Finished dev [unoptimized + debuginfo] target(s) in 21.98s qemu-system-riscv64: -drive file=../user/build/disk.img,format=qcow2,id=sfs: Could not open '../user/build/disk.img': No such file or directory make: *** [Makefile:40: qemu] Error 1
- 需要先在
/user
目录下执行make build
生成对应的镜像
- 需要先在
对标 rCore-Tutorial-v3 的 C 版本代码。
主要参考 xv6-riscv。
运行方式:
- 在root(
sudo -s指令
)用户下按照文档配置环境 - 于 user 目录 make, 得到用户文件(user/target/*.bin)
- 于 kernel 目录 make run,运行 os