Network Demos on QEMU

Joel Sherrill joel.sherrill at
Sun May 10 23:21:27 UTC 2015

On May 10, 2015 6:17:19 PM CDT, Sujay Raj <sujayraaj at> wrote:
>netdemo of 'network-demos' doesn't run as expected. I set up tap
>successfully, and am trying to run netdemo using the
>rtems-testing/qemu-support scripts.
>1. The echoServer starts, as visible in the terminal :
>Create socket.
>Bind socket.
>But neither telnet or ping work.
>2. running transmitTcp with 't' shows :Can't connect socket: Host is
>3. running transmitUdp with 'u' leads to a fatal error and ends the
>simulation :
>Create socket.
>Bind socket.
>Opt:0    Optlen:4
>Opt:32    Optlen:4
>Can't broadcast: Host is unreachable
>fatal error, exiting
>Note: My tap device is has been set up correctly and is working. I
>tried it on ttyLinux running in QEMU, through tap, and I was able to
>ssh into it. All I had to do was to manually give the IP address to
>eth0 as
>So, it works for other systems, not for rtems.
>The diff of my networkconfig.h file with the default
>networkconfig-qemu.h has minimal change:
>< extern int rtems_3c509_driver_attach (struct rtems_bsdnet_ifconfig
>*);//, int);
>> extern int rtems_3c509_driver_attach (struct rtems_bsdnet_ifconfig *,
>which I had to change to compile everything.

File a ticket with your patch, configuration and how you got the error.

I have never gotten the 3c905 driver to work with qemu. I either use Intel or Realtek. An Intel driver is in the main tree. A newer Intel driver and Realtek drivers are in the rtems-libbsd repo. 

>Any help would be greatly appreciated.
>Thanks and regards.
>devel mailing list
>devel at


More information about the devel mailing list