From owner-freebsd-net@freebsd.org Tue Jan 24 14:25:21 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1277CBE3D2 for ; Tue, 24 Jan 2017 14:25:21 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77A241FD7 for ; Tue, 24 Jan 2017 14:25:21 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from fwd11.aul.t-online.de (fwd11.aul.t-online.de [172.20.27.152]) by mailout08.t-online.de (Postfix) with SMTP id 9F0A541DABB2; Tue, 24 Jan 2017 15:25:11 +0100 (CET) Received: from [192.168.10.43] (E60sVyZBrhRDM4gs7Mork8AWYJsGAA7VibxZJqgz94F0OLmr+VDySeRhlAj0O+xwxs@[86.56.56.128]) by fwd11.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1cW223-1sQYro0; Tue, 24 Jan 2017 15:25:11 +0100 Subject: Re: RTL8153 Gigabit Ethernet USB Adapter To: Hans Petter Selasky , freebsd-net@freebsd.org References: <59a929e6-5d6d-5f15-6ff6-4c61bf4a14c0@t-online.de> From: diffusae Message-ID: <48723e92-371b-39d2-d16d-845600b01b5c@t-online.de> Date: Tue, 24 Jan 2017 15:25:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-ID: E60sVyZBrhRDM4gs7Mork8AWYJsGAA7VibxZJqgz94F0OLmr+VDySeRhlAj0O+xwxs X-TOI-MSGID: 5b49c2ac-7bbb-43f0-b776-f970836f3b22 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 24 Jan 2017 14:25:21 -0000 Hi! Thanks for your fast reply. On 23.01.2017 21:24, Hans Petter Selasky wrote: > On 01/23/17 21:06, diffusae wrote: >> Hi! >> >> Maybe a noobs question but I am mostly familiar with Linux. >> >> Currently there is no driver for the RTL8153 Gigabit Ethernet Adapter. >> >> Bus 001 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. >> >> https://www.freebsd.org/relnotes/CURRENT/hardware/support.html >> >> RealTek has a Unix (Linux) driver here: >> >> http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=56&PFid=56&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8153 >> >> >> How can I compile a custome kernel with this driver? >> >> I am using FreeBSD 11.0-STABLE (RPI-B) #0 r308738 >> > > Hi, > > Have a look in sys/dev/usb/net and see if you find any similar devices. > I think your driver is already supported. You need to: > > 1) kldload usb_quirk > 2) kldload if_ure > 3) replug your device and it should attach (FreeBSD-12 at least) > > grep -r 8153 /usr/src/sys/dev/usb > > --HPS That was the key. Yes, you're right. It's supported and uses the if_cdce driver, but there is no mediaopt extention with ifconfig. Nevertheless it is connected with one 1 Gbit/s. So, that's fine. It was due to a "faulty" USB OTG cable of the RPI. If I plug the device connector until the end, it isn't detected, because it has no power. If I slighly move it back for some mm, that the power is connected and the device will be detected: usbconfig -d 0.2 dump_device_desc ugen0.2: at usbus0, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (180mA) Strange chinese adaptors ... :-) So, thanks again Best regards,