* [Qemu-devel] QNX 6.3 and a PCI network card
@ 2005-11-18 19:48 Shaun Jackman
2005-11-18 20:17 ` M. Warner Losh
0 siblings, 1 reply; 6+ messages in thread
From: Shaun Jackman @ 2005-11-18 19:48 UTC (permalink / raw)
To: QEMU
I've discovered that QNX 6.3 [1] does not detect the simulated PCI
NE2000 network card. I found a post [2] on the OpenQNX forum
corroborating the same.
The poster suggests that the issues is with the simulated PCI system,
as the the network card works when simulating an ISA system with qemu
-isa.
Any suggestions?
A 30-day evaluation of QNX can be downloaded for free [3] after registering.
Please cc me in your reply. Cheers,
Shaun
[1] http://www.qnx.com
[2] http://www.openqnx.com/PNphpBB2-viewtopic-t2497-.html
[3] http://www.qnx.com/download/index.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] QNX 6.3 and a PCI network card
2005-11-18 19:48 [Qemu-devel] QNX 6.3 and a PCI network card Shaun Jackman
@ 2005-11-18 20:17 ` M. Warner Losh
2005-11-18 20:25 ` Shaun Jackman
0 siblings, 1 reply; 6+ messages in thread
From: M. Warner Losh @ 2005-11-18 20:17 UTC (permalink / raw)
To: sjackman, qemu-devel
In message: <7f45d9390511181148p415af2d9n@mail.gmail.com>
Shaun Jackman <sjackman@gmail.com> writes:
: I've discovered that QNX 6.3 [1] does not detect the simulated PCI
: NE2000 network card. I found a post [2] on the OpenQNX forum
: corroborating the same.
:
: The poster suggests that the issues is with the simulated PCI system,
: as the the network card works when simulating an ISA system with qemu
: -isa.
:
: Any suggestions?
:
: A 30-day evaluation of QNX can be downloaded for free [3] after registering.
:
: Shaun
:
: [1] http://www.qnx.com
: [2] http://www.openqnx.com/PNphpBB2-viewtopic-t2497-.html
: [3] http://www.qnx.com/download/index.html
I've run into issues with qemu's emulation of the RTL8129 that is
claimed with changes I made to the FreeBSD ed driver. While I've
fixed the ed driver to be more tolerent of the old emulation, I've
fixed these issues in qemu with some patches that were posted here a
while ago. Basically, it adds support for the id registers as well as
the status registers that a RTL8129 driver might expect to be there
(my patches always reports 10/baseT full duplex).
These patches are in the FreeBSD ports collection right now. I can
dig them up if there's a need. I hope they get applied to qemu soon.
Warner
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] QNX 6.3 and a PCI network card
2005-11-18 20:17 ` M. Warner Losh
@ 2005-11-18 20:25 ` Shaun Jackman
2005-11-19 17:09 ` M. Warner Losh
0 siblings, 1 reply; 6+ messages in thread
From: Shaun Jackman @ 2005-11-18 20:25 UTC (permalink / raw)
To: M. Warner Losh; +Cc: qemu-devel
2005/11/18, M. Warner Losh <imp@bsdimp.com>:
> I've run into issues with qemu's emulation of the RTL8129 that is
> claimed with changes I made to the FreeBSD ed driver. While I've
> fixed the ed driver to be more tolerent of the old emulation, I've
> fixed these issues in qemu with some patches that were posted here a
> while ago. Basically, it adds support for the id registers as well as
> the status registers that a RTL8129 driver might expect to be there
> (my patches always reports 10/baseT full duplex).
>
> These patches are in the FreeBSD ports collection right now. I can
> dig them up if there's a need. I hope they get applied to qemu soon.
>
> Warner
I'd very much appreciate your sending me the patch. If it solves my
issue with QNX, I'll see if I can get it incorporated into the Debian
package.
Cheers,
Shaun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] QNX 6.3 and a PCI network card
2005-11-18 20:25 ` Shaun Jackman
@ 2005-11-19 17:09 ` M. Warner Losh
2005-11-22 16:26 ` Shaun Jackman
0 siblings, 1 reply; 6+ messages in thread
From: M. Warner Losh @ 2005-11-19 17:09 UTC (permalink / raw)
To: sjackman; +Cc: qemu-devel
In message: <7f45d9390511181225t404ae527q@mail.gmail.com>
Shaun Jackman <sjackman@gmail.com> writes:
: 2005/11/18, M. Warner Losh <imp@bsdimp.com>:
: > I've run into issues with qemu's emulation of the RTL8129 that is
: > claimed with changes I made to the FreeBSD ed driver. While I've
: > fixed the ed driver to be more tolerent of the old emulation, I've
: > fixed these issues in qemu with some patches that were posted here a
: > while ago. Basically, it adds support for the id registers as well as
: > the status registers that a RTL8129 driver might expect to be there
: > (my patches always reports 10/baseT full duplex).
: >
: > These patches are in the FreeBSD ports collection right now. I can
: > dig them up if there's a need. I hope they get applied to qemu soon.
: >
: > Warner
:
: I'd very much appreciate your sending me the patch. If it solves my
: issue with QNX, I'll see if I can get it incorporated into the Debian
: package.
Since it is short, here is the patch that I have in the FreeBSD ports
tree for this issue. It works sufficiently for FreeBSD's RTL
subdriver of ed to be happy.
Warner
--- qemu/hw/ne2000.c~ Thu Oct 13 16:33:39 2005
+++ qemu/hw/ne2000.c Thu Oct 13 16:33:47 2005
@@ -47,7 +47,9 @@
#define EN0_CRDAHI 0x09 /* high byte, current remote dma address RD */
#define EN0_RSARHI 0x09 /* Remote start address reg 1 */
#define EN0_RCNTLO 0x0a /* Remote byte count reg WR */
+#define EN0_RTL8029ID0 0x0a /* Realtek ID byte #1 RD */
#define EN0_RCNTHI 0x0b /* Remote byte count reg WR */
+#define EN0_RTL8029ID1 0x0b /* Realtek ID byte #2 RD */
#define EN0_RSR 0x0c /* rx status reg RD */
#define EN0_RXCR 0x0c /* RX configuration reg WR */
#define EN0_TXCR 0x0d /* TX configuration reg WR */
@@ -64,6 +66,11 @@
#define EN2_STARTPG 0x21 /* Starting page of ring bfr RD */
#define EN2_STOPPG 0x22 /* Ending page +1 of ring bfr RD */
+#define EN3_CONFIG0 0x33
+#define EN3_CONFIG1 0x34
+#define EN3_CONFIG2 0x35
+#define EN3_CONFIG3 0x36
+
/* Register accessed at EN_CMD, the 8390 base addr. */
#define E8390_STOP 0x01 /* Stop and reset the chip */
#define E8390_START 0x02 /* Start the chip, clear reset */
@@ -385,6 +392,21 @@
case EN2_STOPPG:
ret = s->stop >> 8;
break;
+ case EN0_RTL8029ID0:
+ ret = 0x50;
+ break;
+ case EN0_RTL8029ID1:
+ ret = 0x43;
+ break;
+ case EN3_CONFIG0:
+ ret = 0; /* 10baseT media */
+ break;
+ case EN3_CONFIG2:
+ ret = 0x40; /* 10baseT active */
+ break;
+ case EN3_CONFIG3:
+ ret = 0x40; /* Full duplex */
+ break;
default:
ret = 0x00;
break;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] QNX 6.3 and a PCI network card
2005-11-19 17:09 ` M. Warner Losh
@ 2005-11-22 16:26 ` Shaun Jackman
2005-11-22 17:43 ` M. Warner Losh
0 siblings, 1 reply; 6+ messages in thread
From: Shaun Jackman @ 2005-11-22 16:26 UTC (permalink / raw)
To: M. Warner Losh; +Cc: qemu-devel
2005/11/19, M. Warner Losh <imp@bsdimp.com>:
> Since it is short, here is the patch that I have in the FreeBSD ports
> tree for this issue. It works sufficiently for FreeBSD's RTL
> subdriver of ed to be happy.
Thanks for the patch, Warner. Unfortunately, the PCI network card is
still not detected for me by QNX 6.3, but it does work using the
`-isa' option! The root of the issue might be a problem with the
simulated PCI BIOS and not the simulated network card (stabbing in the
dark, here). I'm running the QEMU package distributed by Debian, which
I understand provides their own BIOS image. Perhaps I'll try running
QNX using the standard BIOS image distributed by QEMU.
Cheers,
Shaun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] QNX 6.3 and a PCI network card
2005-11-22 16:26 ` Shaun Jackman
@ 2005-11-22 17:43 ` M. Warner Losh
0 siblings, 0 replies; 6+ messages in thread
From: M. Warner Losh @ 2005-11-22 17:43 UTC (permalink / raw)
To: sjackman; +Cc: qemu-devel
In message: <7f45d9390511220826x3f6456bh@mail.gmail.com>
Shaun Jackman <sjackman@gmail.com> writes:
: 2005/11/19, M. Warner Losh <imp@bsdimp.com>:
: > Since it is short, here is the patch that I have in the FreeBSD ports
: > tree for this issue. It works sufficiently for FreeBSD's RTL
: > subdriver of ed to be happy.
:
: Thanks for the patch, Warner. Unfortunately, the PCI network card is
: still not detected for me by QNX 6.3, but it does work using the
: `-isa' option! The root of the issue might be a problem with the
: simulated PCI BIOS and not the simulated network card (stabbing in the
: dark, here). I'm running the QEMU package distributed by Debian, which
: I understand provides their own BIOS image. Perhaps I'll try running
: QNX using the standard BIOS image distributed by QEMU.
FreeBSD doesn't use the PCI BIOS enumeration, but rather gets its idea
of which PCI cards/chips are there from direct examination of the PCI
space. So you may be onto something there...
Warner
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-22 17:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 19:48 [Qemu-devel] QNX 6.3 and a PCI network card Shaun Jackman
2005-11-18 20:17 ` M. Warner Losh
2005-11-18 20:25 ` Shaun Jackman
2005-11-19 17:09 ` M. Warner Losh
2005-11-22 16:26 ` Shaun Jackman
2005-11-22 17:43 ` M. Warner Losh
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).