Hi

I had some success earlier getting EtherTap to work with Alpha.
However, when I try to run it on ARM by connecting an ARM Ethernet
device to an EtherTap device, I get a segfault. For completeness,
using EtherLink on ARM seems to work ok (using the --dual option)

 Here is what I did roughly :

1. I modified the body of makeDualRoot to do the following . The last
two lines connect the NIC to EtherTap.

    self = Root(full_system = full_system)
    self.testsys = testSystem
    ######## ANIRUDH: EtherTap stuff ###################
    self.testsys.ethertap=EtherTap()
    self.testsys.ethertap.interface=Parent.testsys.realview.ethernet.interface

2. I then run socat on another terminal using :

    sudo socat INTERFACE:tap-1 TCP:localhost:3456

3. I open up m5term and login into the PCI-enabed ARM kernel and then type :
    ifconfig eth0 10.0.0.1 up
    ping -c1 10.0.0.2

I now get a segfault. I added several debug statements , but I can't
really diagnose the issue. Running it within gdb, shows a huge stack
trace, with these 5 function calls repeating :

#6528 0x000000000148ff13 in EtherInt::recvDone (this=0x3308100,
packet=DWARF-2 expression error: DW_OP_reg operations must be used
either alone or in conjuction with DW_OP_piece.
) at build/ARM/dev/etherint.hh:65
#6529 EtherTap::recvPacket (this=0x3308100, packet=DWARF-2 expression
error: DW_OP_reg operations must be used either alone or in conjuction
with DW_OP_piece.
) at build/ARM/dev/ethertap.cc:194
#6530 0x0000000001493be5 in EtherTapInt::recvPacket (this=0x1e,
pkt=<value optimized out>) at build/ARM/dev/ethertap.hh:131
#6531 0x00000000014cafab in EtherInt::sendPacket (this=0x325afe0) at
build/ARM/dev/etherint.hh:69
#6532 IGbE::txWire (this=0x325afe0) at build/ARM/dev/i8254xGBe.cc:2386
#6533 0x00000000014ccbe8 in IGbE::ethTxDone (this=0x325afe0) at
build/ARM/dev/i8254xGBe.cc:2445
#6534 0x000000000148ff13 in EtherInt::recvDone (this=0x3308100,
packet=DWARF-2 expression error: DW_OP_reg operations must be used
either alone or in conjuction with DW_OP_piece.
) at build/ARM/dev/etherint.hh:65

I have no idea what is going on here and any help would be really appreciated.

Anirudh
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to