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

! upgrade riscv demo rust-toolchain's version to nightly #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,29 @@ VirtIO guest drivers in Rust. For **no_std** environment.
### [x86_64](./examples/x86_64)

```bash
# Fist Compile
rustup target add x86_64-unknown-none

cd examples/x86_64
make qemu
```

### [aarch64](./examples/aarch64)

```bash
# Fist Compile
rustup target add aarch64-unknown-none

cd examples/aarch64
make qemu
```

### [RISCV](./examples/riscv)

```bash
# First Compile
rustup target add riscv64imac-unknown-none-elf

cd examples/riscv
make qemu
```
Expand Down
2 changes: 1 addition & 1 deletion examples/riscv/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2022-11-03
nightly
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance we can get this onto a stable toolchain?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stable branch will report an error because linked_list_allocator unsupported stable.

Compiling linked_list_allocator v0.9.1
error[E0554]: `#![feature]` may not be used on the stable release channel
1 | #![cfg_attr(feature = "const_mut_refs", feature(const_mut_refs))]

Check if the dependency count is older for packages that rely on opensbi-rt

Another interesting thing is that this library doesn't seem to be officially planned for maintenance anymore?

https://os.phil-opp.com/kernel-heap/

cargo tree

├── opensbi-rt v0.1.0 (https://github.com/rcore-os/opensbi-rt.git?rev=abdfeb72#abdfeb72)
│   ├── **linked_list_allocator v0.9.1**
│   │   └── spinning_top v0.2.5
│   │       └── lock_api v0.4.11
│   │           └── scopeguard v1.2.0
│   │           [build-dependencies]
│   │           └── autocfg v1.1.0
│   ├── log v0.4.20
│   └── spin v0.9.8
│       └── lock_api v0.4.11 (*)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could look into using buddy_system_allocator, as in the aarch64 example. However, that doesn't need to block merging this PR, I'm happy to merge once the presubmit checks and fixed.

Loading