Hi Jason,
I've tried the new version of uboot, kernel, and the tcpborphserver.
The two 10GbE interfaces can be bring up at the same time successfully by
using
the KATCP command now.
But the python scripts in tutorial 2 still can not work correctly.
I noticed that the fpga.tap_start() functions are commented in the script of
tut2 but not in 10GbE demo.
...
# fpga.tap_start(rx_core_name,mac_base+dest_ip,dest_ip,fabric_port)
...
# fpga.tap_start(tx_core_name,mac_base+source_ip,source_ip,fabric_port)
Do we need to use this function to configure the 10GbE interface?
Thank you very much for your help.
Thanks and Regards,
Wei-Chung
----- Original Message -----
From: "Jason Manley" <jasonman...@gmail.com>
To: "Wei-Chung Hsieh" <wchs...@asiaa.sinica.edu.tw>
Cc: <casper@lists.berkeley.edu>
Sent: Thursday, October 29, 2009 2:32 PM
Subject: Re: [casper] ROACH 10GbE configuration problem
It could also be that you don't have tap device support in your kernel,
or that you don't have a /dev/net/tun devicefile in your filesystem. I
just discovered that the existing filesystem does not include this
devicefile, so have uploaded a new one here:
http://casper.berkeley.edu/svn/trunk/roach/sw/binaries/filesystem/filesystem_etch_2009_10_28_tgtap.bz
Jason
On 28 Oct 2009, at 03:22, Wei-Chung Hsieh wrote:
Hi Jason,
Thank you very much for your information.
I will try again.
Thanks and Regards,
Wei-Chung
----- Original Message ----- From: "Jason Manley" <jasonman...@gmail.com
>
To: "Wei-Chung Hsieh" <wchs...@asiaa.sinica.edu.tw>
Cc: <casper@lists.berkeley.edu>
Sent: Tuesday, October 27, 2009 8:07 PM
Subject: Re: [casper] ROACH 10GbE configuration problem
Hi Wei-Chung
Yes, the shipping versions of tcpborphserver do not allow multiple
versions of tgtap at the same time and are the cause of the errors you
describe (as outlined on the wiki page).
I recommend you install a new version from here:
http://casper.berkeley.edu/svn/trunk/roach/sw/binaries/tcpborphserver/tcpborphserver2
Then use the updated python script from the workshop tutorial, tut2:
http://casper.berkeley.edu/svn/trunk/ref_designs_tutorials/workshop_2009/roach_tut2_10GbE/
Note that there is a bug in the shipping versions of the ROACH's
kernel too, and I highly recommend you replace that with
http://casper.berkeley.edu/svn/trunk/roach/sw/binaries/linux/uImage-20091006-mmcfix
and also update your uboot to
http://casper.berkeley.edu/svn/trunk/roach/sw/binaries/uboot/20090811-uboot-nohack.bin
Note that the new uboot (mmcenv) has a problem with debug messages.
Don't use that one, use the "nohack" version.
Jason
On 27 Oct 2009, at 12:56, Wei-Chung Hsieh wrote:
Dear All,
I am new to ROACH platform and currently I'm trying to bring up the
ROACH 10GbE interface as the new ROACH 10GbE tutorial do.
http://casper.berkeley.edu/wiki/ROACH_10GbE_tutorial
But the python scripts does not seem to bring up the 10GbE interfaces
successfully. I also noticed that Jason had mentioned the two 10Gbe
interfaces can not work at the same time.
http://www.mail-archive.com/casper@lists.berkeley.edu/msg00760.html
So I tried to bring up one of the interface by using the KATCP command
and got the following error message:
?tap-start gbe0 00:01:02:03:04:05 10.0.0.20 60000
#log warn 1256639552073 tcpborphserver process\_id\_469\_exited
\_abnormally
!tap-start ok
It seems the interface can not be setup successfully.
So again I tried to use the tgtap way as below link
http://www.mail-archive.com/casper@lists.berkeley.edu/msg00712.html
But I got below message:
r...@myroach:/proc/368/hw/ioreg# tgtap -a 10.0.0.20 -m
00:01:02:03:04:05
-p 60000 -b /proc/368/hw/ioreg/gbe0
tgtap: tap interface name: tgtap0
tgtap: borph file: /proc/368/hw/ioreg/gbe0
tgtap: borph file interface
tgtap: ip address 10.0.0.20
tgtap: mac address 00:01:02:03:04:05
tgtap: unable to set up tap device tgtap0: No such device
Below is part of my process table and ioreg directory:
....
root 346 0.0 0.1 6700 1160 ? Ss 10:40
0:00 /usr/sbin/sshd
root 356 0.0 0.0 784 236 ? S 10:40 0:00
tcpborphserver
root 363 0.0 0.1 3772 1184 ttyS0 Ss 10:40
0:00 /bin/login --
root 364 0.0 0.1 3496 1724 ttyS0 S+ 10:40 0:00 - bash
root 368 0.0 0.0 1632 304 ? S 10:43 0:00
r_10gbe_demo_20
root 369 5.0 0.2 10000 2668 ? Ss 10:43 0:00 sshd:
r...@pts/
root 373 0.6 0.1 3508 1748 pts/0 Ss 10:43 0:00 - bash
root 376 0.0 0.0 2780 1000 pts/0 R+ 10:44 0:00 ps -
aux
r...@myroach:/proc/368/hw/ioreg# ls
cnt_rst gbe3_linkup snap_gbe0_rx_addr snap_gbe3_rx_bram_lsb
dest_ip gbe3_rx snap_gbe0_rx_bram_lsb snap_gbe3_rx_bram_msb
dest_port gbe3_rx_frame_cnt snap_gbe0_rx_bram_msb
snap_gbe3_rx_bram_oob
gbe0 gbe3_rx_frame_err snap_gbe0_rx_bram_oob
snap_gbe3_rx_ctrl
gbe0_linkup gbe3_tx snap_gbe0_rx_ctrl sys_board_id
gbe0_rx gbe3_tx_full snap_gbe0_tx_addr sys_clkcounter
gbe0_tx gbe3_tx_over snap_gbe0_tx_bram_lsb sys_clkfreq
gbe0_tx_cnt gbe_core_rst snap_gbe0_tx_bram_msb sys_rev
gbe0_tx_full pkt_sim_payload_len snap_gbe0_tx_bram_oob sys_rev_rcs
gbe0_tx_over pkt_sim_period snap_gbe0_tx_ctrl sys_scratchpad
gbe3 pkt_sim_run snap_gbe3_rx_addr
Does anyone know is there anything I may miss?
Thanks very much for your help.
Thanks and Regards,
Wei-Chung