From: "Gabriel L. Somlo" <gsomlo@gmail.com>
To: qemu-devel@nongnu.org
Cc: mgamble@mgamble.ca
Subject: Re: [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by
Date: Thu, 5 Jun 2014 22:44:39 -0400 [thread overview]
Message-ID: <20140606024438.GB5772@crash.ini.cmu.edu> (raw)
In-Reply-To: <20140605222643.4583.85001.malonedeb@soybean.canonical.com>
Matthew Gamble <mgamble@mgamble.ca> wrote:
> I'm trying to get a VXWorks image running inside a qemu guest. I have
> the machine running, however, the vxworks image only has support for the
> 82544EI device so I had to change the device ID in e1000.c to get the
> device even recognized so I'm not sure if this is a bug or an issue for
> the development list.
>
> After changing e1000.c, the device is now seen by the guest OS, however, it never gets a link. I've attached the e1000 debug logs in the hopes that someone can help me understand where to start looking into why this guest won't get a link.
>
> I tested the updated e1000 driver with a debian live CD and the card
> works under it, so it doesn't appear that the issue is with the driver
> string change but rather something in the e1000 driver itself.
>
> Here is the command I'm using to start QEMU:
>
> /opt/qemu/bin/qemu-system-i386 -cpu coreduo -hda /root/vxworks_test -m
> 2048 -netdev tap,ifname=tap0,id=net0 -netdev tap,ifname=tap1,id=net1
> -device e1000,netdev=net0,mac=00:00:e8:01:02:03 -device
> e1000,netdev=net1,mac=00:00:e8:01:02:04 -boot c -curses -no-kvm -D
> /tmp/qemu.log 2>/tmp/e1000.log
Can you try this:
Add "-monitor stdio" to your qemu command line, and give an id to at
least one of your e1000 devices, like so:
"-device e1000,netdev=net0,mac=00:00:e8:01:02:03,id=eth0"
Then after the guest is finished booting (with no link on the e1000
interfaces), from the qemu monitor prompt issue these two commands:
set_link eth0 off
set_link eth0 on
I'd be curious to find out if this causes the guest to see a link
become available...
Thanks,
--Gabriel
next prev parent reply other threads:[~2014-06-06 2:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 22:26 [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by VXWorks based guest Matthew Gamble
2014-06-06 2:44 ` Gabriel L. Somlo [this message]
2014-06-06 2:55 ` [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by Matthew Gamble
2014-06-06 3:09 ` Gabriel L. Somlo
2014-06-06 16:49 ` [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by VXWorks based guest Paul Janzen
2017-09-07 19:36 ` [Qemu-devel] [Bug 1326986] " Thomas Huth
2017-11-07 4:17 ` Launchpad Bug Tracker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140606024438.GB5772@crash.ini.cmu.edu \
--to=gsomlo@gmail.com \
--cc=mgamble@mgamble.ca \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).