Comments (7)
I had to comment out
[target.'cfg(target_os = "hermit")'.dependencies.hermit-sys]
version = "0.1.*"
#default-features = false
features = ["smoltcp"]
And now it seems to run without falling into exception....
Is it meaningful ? @stlankes
If it is ok I can update the documentation beyond what I did there #119.
What is going on?
[0][INFO] Network driver successfully initalized virtqueues.
[0][INFO] Device specific initalization for Virtio network defice 1041 finished
[0][INFO] Network device with id 1041, has been initalized by driver!
[0][INFO] Virtio-net link is up after initalization.
[0][INFO] Virtio network driver initalized with Virtio network device.
[0][INFO] Install virtio interrupt handler at line 11
[INFO] Spawn network thread with id 2
[INFO] MAC address 52-54-00-12-34-56
[INFO] Configure network interface with address 10.0.5.100/24
[INFO] Configure gateway with address 10.0.5.1
[INFO] MTU: 1500 bytes
Hello World!
[0][INFO] Number of interrupts
[0][INFO] [0][7]: 3
[0][INFO] Shutting down system
from hermit-rs.
Sorry, some times I don't get email about new issues.
Do you solve this issue? I can write a small tutorial to describe the setup.
from hermit-rs.
It could be very useful having a tutorial, If I can help lmk
Anyway No, the issue is not resolved as of now. FUrthermore, Now with latest version and same build I Have another error, this:
[0][INFO] Feature set wanted by network driver are in conformance with specification.
[0][ERROR] Device features set, does not satisfy minimal features needed. Aborting!
[0][ERROR] Virtio networkd driver could not be initialized with device: 1041
[INFO] Spawn network thread with id 2
[WARN] Ethernet interface not available
thread 'main' panicked at 'calledResult::unwrap()
on anErr
value: Error { kind: Other, message: "accept failed" }', src/main.rs:12:29
[0][INFO] Number of interrupts
[0][INFO] [0][7]: 3
[0][INFO] Shutting down system
for the code:
#[cfg(target_os = "hermit")]
extern crate hermit_sys;use std::net::TcpListener;
fn main() {
let listener = TcpListener::bind("0.0.0.0:7878").unwrap();for stream in listener.incoming() { let stream = stream.unwrap(); println!("Connection established!"); }
}
from hermit-rs.
Sorry, I oversaw it. We revise the network interface. But a tutorial is still missing. I will do it. Do you test our httpd example?
from hermit-rs.
Yes, it doesn't work for me:
thread '<unnamed>' panicked at 'called
Result::unwrap()on an
Err value: "Network is not initialized!"', /home/<MYUSERDIR>/.cargo/registry/src/github.com-1ecc6299db9ec823/hermit-sys-0.1.23/src/net/mod.rs:177:14
from hermit-rs.
You are using Qemu and initialized a Tap device?
from hermit-rs.
yes
from hermit-rs.
Related Issues (20)
- hello_world demo, missing symbols HOT 3
- Request for info: running hermit-based applications on top of Xen HOT 3
- Move cmath to hermit-builtins HOT 1
- rusty-demo fails to build on windows HOT 7
- failed to run rusty-hermit on QEMU qemu-system-aarch64 HOT 1
- Where do we mention that RustyHermit supports `aarch64`?
- Hermit doesn't work on aarch64: rusty-loader can't find DTB for aarch64 HOT 1
- Include `tcp` in the default features of `hermit-sys`
- hermit-abi 0.3.2 git tag and yanking explanation HOT 4
- Add platform support document to Rust docs HOT 1
- Enable generate-link-to-definition
- Support automatic rebuilds for path dependencies of kernel HOT 1
- Can't build with khronos-egl as dependency HOT 3
- Become a Tier 2 Rust target
- Newer kernel submodule required for RISC-V support HOT 4
- Compilation with Hermit dependency as part of a workspace fails HOT 1
- Networking config file HOT 4
- Benchmarking HOT 8
- Hermit randomness API
- Unable to read directory entries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermit-rs.