This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

TAP device not created on running "ping_test"


Hi all,

So after my ordeal with the Hello world app...I've jumped onto to a
more audacious task! :)
...to get some basic networking working with the virt TAP device.

This is what I did:

$ mkdir net
$ cd net
$ ecosconfig new linux
$ ecosconfig add fileio net freebsd_net eth_drivers
$ ecosconfig tree

(alter the usual suspects i.e command prefix, GCC switch fno-statck-... etc)
$ make

(fix libgcc_eh.a thingy)
$ make tests

I've configured static IP for eth0 on ecos
Self IP=10.0.0.2
netmask=255.255.255.0
gw=10.0.0.1
server=10.0.0.10

I used the tdf file given here:
http://dsl.ee.unsw.edu.au/dsl-cdrom/unsw/projects/ecos/ecos/packages/devs/eth/synth/ecosynth/current/host/ethernet.tdf

This file creates a TAP device tap3 with MAC=00:FE:42:63:84:A5

I've also built the rawether app (this has the suid bit set):
$ ls -l /usr/local/libexec/ecos/devs/eth/synth/ecosynth/v3_0/rawether
-rwsr-xr-x 1 root root 19339 2009-07-23 16:04
/usr/local/libexec/ecos/devs/eth/synth/ecosynth/v3_0/rawether

My system also has the tun device:
$ ls -l /dev/net/tun
crw-rw-rw- 1 root root 10, 200 2009-07-17 09:57 /dev/net/tun

Now when I run the ping_test app, I see both the "ecossynth" and
"rawether" process's running, but no
tap device is created! Shouldn't the rawether proc open the tun device
which will result in the tap3
device being created?

The ping test does not succeed though but thats because there's no
other interface on the 10 network.

Test run o/p attached.

Thanks,
-mandeep

Attachment: ping_test_out.txt
Description: Text document

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]