From owner-freebsd-net@FreeBSD.ORG Tue Jun 1 18:32:40 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF2EB106566B for ; Tue, 1 Jun 2010 18:32:40 +0000 (UTC) (envelope-from perevalov84@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id A83578FC20 for ; Tue, 1 Jun 2010 18:32:40 +0000 (UTC) Received: by pxi7 with SMTP id 7so2680899pxi.13 for ; Tue, 01 Jun 2010 11:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=J5EKZIDbAsQa4+gO61hagb0e+J0+NkHr6sPYVxyTGds=; b=E957UGg3za88cQv71PCHN6BosqwYDLK2z8Tl0RxXMgYsF8sYOsj0XpLp0YAgMoxknB OXmxsrv26GAMGC/XqJ2mB7mKffXzELGrla96NmeLDFnBIqpN8pIOabloL7tYiPUQ5y5i uPh72XS0zE1g7bBVbY5SqoWWtg8JW7wCc5N24= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=FYKUXhU8kKD2UgXy4afFp4T8biac0H+07b2DtU7gzDQMQWsCrHG8/KxmhCG4t24SGj +qDnsagqzxldm9zr+57uPDKhPVGZCK+o8t/53vnByCFhmkjtkeZi+tRZuZc4v3MEQIK4 R/XUc9sbmDWsNk+fNhHz5rrI3eVNZarbRewwo= Received: by 10.114.187.30 with SMTP id k30mr5341818waf.187.1275417145616; Tue, 01 Jun 2010 11:32:25 -0700 (PDT) Received: from [192.168.2.2] ([95.58.61.195]) by mx.google.com with ESMTPS id b6sm61488719wam.9.2010.06.01.11.32.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 11:32:23 -0700 (PDT) Message-ID: <4C0551F1.2010609@gmail.com> Date: Tue, 01 Jun 2010 23:31:13 +0500 From: Perevalov Sergey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100506 Thunderbird/3.0.4 MIME-Version: 1.0 To: pyunyh@gmail.com References: <4BE44E2D.6060907@gmail.com> <20100507210516.GI14801@michelle.cdnetworks.com> <4C01760E.2080403@gmail.com> <20100531223204.GE1577@michelle.cdnetworks.com> In-Reply-To: <20100531223204.GE1577@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: [axe][ue0] Device send packets but any host in network can not receive any packet from it. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 18:32:41 -0000 Hi! I tried it with crossover cable but results was the same bad. Then set debug flag hw.usb.axe.debug: to 15, and started ping -f from ue0. And in /var/log/messages I found these strings: Jun 1 22:28:34 laptop kernel: axe_bulk_read_callback:842: bulk read error, USB_ERR_CANCELLED Jun 1 22:28:35 laptop kernel: axe_bulk_write_callback:870: transfer complete Jun 1 22:29:12 laptop kernel: axe_bulk_write_callback:941: transfer error, USB_ERR_TIMEOUT Jun 1 22:29:51 laptop last message repeated 4 times Jun 1 22:31:40 laptop last message repeated 11 times Then i googled it and found this http://www.mail-archive.com/freebsd-usb@freebsd.org/msg04388.html the problem is described definitely like mine. I read all thread and found the patch usb2_ethernet.patch2, but I havn't found sys/dev/usb2/ethernet/usb2_ethernet.c file for patch. how can I try to apply this patch to my system? http://www.mail-archive.com/freebsd-usb@freebsd.org/msg04403.html Thank you very mach for your help! // // On 01.06.2010 03:32, Pyun YongHyeon wrote: > On Sun, May 30, 2010 at 01:16:14AM +0500, Perevalov Sergey wrote: > >> Pyun YongHyeon, I am really sorry, I have found you message in my spam >> folder:-( >> And immediately I did by your instructions. >> I connected 2 Freebsd 8.0 hosts by one cable, and started tcpdump >> -evvvvvvi rl0/ue0. >> >> So, 192.168.2.15 is receiver (rl0) log: http://pastebin.com/pZ5udweh >> >> 192.168.2.16 is sender (ue0) log: http://pastebin.com/BEDwUWBe >> >> > It seems both ends does not see any frames at all. I thought axe(4) > sent wrong ethernet address to the other end but tcpdump output you > posted makes me wonder cabling issue. I'm not sure whether > rgephy(4) used in axe(4) can handle automatic MDI/MDIX crossover > but rlphy(4) surely lacks the capability. Can you retest it with > crossover cable instead of straight UTP cable? > Also your tcpdump seems to indicate both hosts are trying to send > packets. This makes it hard to know which part of NIC is not > working. Send ICMP echo request on one host(e.g. ping(8)) and > capture traffic on both sender and receiver side and post the > result again. > > >> Thank you for your help! >> >> >> >> On 08.05.2010 02:05, Pyun YongHyeon wrote: >> >>> On Fri, May 07, 2010 at 10:30:21PM +0500, Perevalov Sergey wrote: >>> >>> >>>> Hi guys. I am beginner in FreeBSD. And I got problem with my Gigabit >>>> usb to ethernet adapter with AX88178 chipset. It works in windows very >>>> well but doesn't work in FreeBSD 8.0. tcpdump shows log with received >>>> and sent packets, but any host in network doesn't receive them from it. >>>> I checked it with 2 FreeBSD hosts connected directly by cable. Can you, >>>> guys, advice to me something to fix or to find reason of this issue? >>>> I started thread on freebsd forums( >>>> http://forums.freebsd.org/showthread.php?t=13649 ) and also reported >>>> about problem ( http://www.freebsd.org/cgi/query-pr.cgi?pr=146153 ). >>>> >>>> >>>> >>> It seems the PR shows tcpdump output on sender side(axe(4) >>> host 192.168.2.22). Would you capture the traffic on receiver side >>> (host 192.168.2.7) and post the result? Note, please use direct >>> cable to connect both systems and use option -e to capture traffic >>> on host 192.168.2.7. For instance, use >>> #ifconfig -envvvvvvi nic0 >>> on receiver side. >>> >>> Also check whether the receiver agrees on the resolved speed/duplex >>> of established link. For your case, host 192.168.2.7 should show >>> 100baseTX, full-duplex. >>> >>> >>> >>>> Here some information: >>>> >>>> dmesg: >>>> ugen4.2: at usbus4 >>>> axe0: on usbus4 >>>> axe0: PHYADDR 0xe0:0x02 >>>> miibus0: on axe0 >>>> rgephy0: PHY 2 on miibus0 >>>> rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, >>>> 1000baseT-FDX, auto >>>> ue0: on axe0 >>>> ue0: Ethernet address: 00:0e:c6:88:09:4e >>>> >>>> usbconfig: >>>> laptop# usbconfig >>>> ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL >>>> (12Mbps) pwr=ON >>>> ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL >>>> (12Mbps) pwr=ON >>>> ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL >>>> (12Mbps) pwr=ON >>>> ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL >>>> (12Mbps) pwr=ON >>>> ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH >>>> (480Mbps) pwr=ON >>>> ugen4.2: at usbus4, cfg=0 md=HOST >>>> spd=HIGH (480Mbps) pwr=ON >>>> ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW >>>> (1.5Mbps) pwr=ON >>>> >>>> ifconfig: >>>> ue0: flags=8843 metric 0 mtu 1500 >>>> ether 00:0e:c6:88:09:4e >>>> inet 192.168.2.22 netmask 0xffffff00 broadcast 192.168.2.255 >>>> media: Ethernet autoselect (100baseTX) >>>> status: active >>>> >>>> Thank you for you help! >>>> >>>> >>> >>> >> >> -- >> Regards, Sergey. >> >> > -- Regards, Sergey.