<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hello </div><div><br class="webkit-block-placeholder"></div><div>here are some more details how my system (Debian) is set-up:</div><div><br class="webkit-block-placeholder"></div><br><div><div>Am 01.03.2008 um 21:23 schrieb Peter Mueller:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello, <div><br class="webkit-block-placeholder"></div><div>I've developed a simple test program based on netdemo for pc386. It basically inits the stack and cyclicly prints out network statistics data. When running the app in qemu and sending a broadcast ping from Linux to the network I can see that the counters show network traffic.</div><div><br class="webkit-block-placeholder"></div><div>But the ping sent from Linux times out and seems not to receive a reply from the app inside qemu.</div><div><br class="webkit-block-placeholder"></div><div>Does someone has an idea what the problem could be? Has someone an example on how to setup the network interface for qemu under Linux?</div><div><br class="webkit-block-placeholder"></div><div><br></div></blockquote><br></div><div>Commandline of qemu: qemu -M isapc -curses -net nic,model=ne2k_isa -net tap,script=/etc/qemu</div><div>-ifup -m 8 -fda ~/floppy.img</div><div><br class="webkit-block-placeholder"></div><div>The ifup script: </div><div>#!/bin/sh</div><div>sudo -p "Password for $0:" /sbin/ifconfig $1 192.168.7.1</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>and my network config in the rtems app:</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>static struct rtems_bsdnet_ifconfig loopdriver_config = {</div><div> "lo0", /* name */</div><div> rtems_bsdnet_loopattach, /* attach function */</div><div> NULL, /* link to next interface */</div><div> "127.0.0.1", /* IP address */</div><div> "255.0.0.0", /* IP net mask */</div><div> NULL, /* Driver supplies hardware address */</div><div> 0 /* Use default driver parameters */</div><div>};</div><div><br class="webkit-block-placeholder"></div><div>static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 };</div><div><br class="webkit-block-placeholder"></div><div>/*</div><div> * Default network interface</div><div> */</div><div><div>static struct rtems_bsdnet_ifconfig netdriver_config = {</div><div> BSP_NE2000_NETWORK_DRIVER_NAME, /* name */</div><div> BSP_NE2000_NETWORK_DRIVER_ATTACH, /* attach function */</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div> &loopdriver_config, /* link to next interface */</div><div> "192.168.7.44", /* IP address */</div><div> "255.255.255.0", /* IP net mask */</div><div><br class="webkit-block-placeholder"></div><div> ethernet_address, /* Ethernet hardware address */</div><div><br class="webkit-block-placeholder"></div><div> 0, /* Use default driver parameters */</div><div> 0, /* mtu */</div><div> 0, /* rbuf_count */</div><div> 0, /* xbuf_count */</div><div> 0, /* port */</div><div> 9 /* irq */</div><div>};</div><div><br class="webkit-block-placeholder"></div><div><div>/*</div><div> * Network configuration</div><div> */</div><div>struct rtems_bsdnet_config rtems_bsdnet_config = {</div><div> &netdriver_config,</div><div><br class="webkit-block-placeholder"></div><div> NULL,</div><div><br class="webkit-block-placeholder"></div><div> 0, /* Default network task priority */</div><div> 0, /* Default mbuf capacity */</div><div> 0, /* Default mbuf cluster capacity */</div><div><br class="webkit-block-placeholder"></div><div> "rtems", /* Host name */</div><div> "", </div><div>/* Domain name */</div><div> "192.168.7.1", /* Gateway */</div><div> "192.168.7.1", /* Log host */</div><div> {"192.168.7.1" }, /* Name server(s) */</div><div> {"" }, /* NTP server(s) */</div><div><br class="webkit-block-placeholder"></div><div>};</div></div></div></div><div><br class="webkit-block-placeholder"></div><div>Hope this helps better to find the problem.</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div>Peter</div><div><br class="webkit-block-placeholder"></div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Peter Mueller</div><div><a href="mailto:peter.o.mueller@gmx.de">peter.o.mueller@gmx.de</a></div><br class="Apple-interchange-newline"></span> </div><br></body></html>