rcore-os / rCore

Rust version of THU uCore OS. Linux compatible.
MIT License
3.48k stars 376 forks source link

Issue with networking #47

Closed jabedude closed 4 years ago

jabedude commented 4 years ago

Hello, when I try to enable a e1000 PCI device I receive this error:

make run ARCH=x86_64 NET=on LOG=info
Building x86_64 kernel
warning: use of deprecated item 'sync::condvar::Condvar::_wait': this may leads to lost wakeup problem. please use `wait` instead.
   --> src/sync/mutex.rs:290:14
    |
290 |         self._wait();
    |              ^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

    Finished release [optimized] target(s) in 0.06s
make[1]: Entering directory '/home/josh/Projects/rCore/rboot'
cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release
    Finished release [optimized] target(s) in 0.03s
make[1]: Leaving directory '/home/josh/Projects/rCore/rboot'
vvfat target/x86_64/release/esp chs 1024,16,63
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: -device e1000e,netdev=net0: failed to find romfile "efi-e1000e.rom"
Makefile:248: recipe for target 'justrun' failed
make: *** [justrun] Error 1

Thank you in advance! This project is very cool!

jiegec commented 4 years ago

Which distribution are you using? This probably means you're using an old version of QEMU.

jabedude commented 4 years ago

@jiegec thanks for the help. I am running Ubuntu 18.04. Here is the qemu version:

qemu-system-x86_64 --version QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.23) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

jiegec commented 4 years ago

That's too old. You can compile a new one from source code.

jabedude commented 4 years ago

Thanks again. I'll download QEMU 5 and go from there.