Qemu pc386 Network Double Check

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 31 10:31:01 UTC 2012


Hi Joel,

the pc386 networking (PCI card) works with the current Git master and Qemu 1.0. 
  I use the following network configuration:

extern int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *, int);

static struct rtems_bsdnet_ifconfig qemu_ifconfig = {
         .name = "fxp1",
         .attach = rtems_fxp_attach,
         .ip_address = "10.0.2.1",
         .ip_netmask = "255.255.255.0",
         .irno = 9
};

struct rtems_bsdnet_config rtems_bsdnet_config = {
         .ifconfig = &qemu_ifconfig,
         .bootp = NULL,
         .network_task_priority = 80,
         .mbuf_bytecount = 0,
         .mbuf_cluster_bytecount = 0,
         .hostname = NULL,
         .domainname = NULL,
         .gateway = "10.0.2.100",
         .log_host = "10.0.2.100",
         .name_server = { "10.0.2.100", NULL, NULL },
         .ntp_server = { "10.0.2.100", NULL, NULL },
         .sb_efficiency = 0,
         .udp_tx_buf_size = 0,
         .udp_rx_buf_size = 0,
         .tcp_tx_buf_size = 0,
         .tcp_rx_buf_size = 0
};

The command line is like this:

qemu-system-i386 -m 128 -boot a -fda instance-1/fda.img -hda fat:instance-1 
-net nic,model=i82551,macaddr=52:54:00:12:34:56 -net tap,ifname=qtap1 &
qemu-system-i386 -m 128 -boot a -fda instance-2/fda.img -hda fat:instance-2 
-net nic,model=i82551,macaddr=52:54:00:12:34:57 -net tap,ifname=qtap2 &

On 01/26/2012 06:45 PM, Joel Sherrill wrote:
> Hi,
>
> I don't know if I have a host OS setup issue or not. I haven't
> tried pc386 networking in a while on qemu. I have switched
> to CentOS 6 on my development computer and don't know
> if I don't have something right or if there is a generic
> breakage.
>
> Could someone please confirm that they can successfully
> run a pc386 networked app on qemu 1.0 or the qemu head?
>
> Thanks.
>


-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list