Date: Fri, 6 Feb 2015 17:11:15 +0900 From: "Lundberg, Johannes" <johannes@brilliantservice.co.jp> To: Hans Petter Selasky <hps@selasky.org> Cc: "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org> Subject: Re: Macbook touchpad wsp Message-ID: <CAASDrVnoRfPr8sQt3TLRxGTHpDSe0XF5DJH5QcmBcPeDkwhxFg@mail.gmail.com> In-Reply-To: <54D475B7.2050208@selasky.org> References: <CAASDrVnob4A%2B5-4vHRw6sTAingq=CqNgsdACQHK_35Pdb=jZVg@mail.gmail.com> <54D3E995.9050205@selasky.org> <CAASDrVktQ7%2Bn4AZ-5gKAk7B%2Bho777%2BC4eENWQ=kDb69qGZ2how@mail.gmail.com> <54D46DA9.5000303@selasky.org> <CAASDrVnPfbL4fDLW6Xybwk9yjDooyQqUif27=naq-okJtiXtFQ@mail.gmail.com> <54D47524.9010300@selasky.org> <54D475B7.2050208@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
VGhlIHdlaXJkIHRoaW5nIGlzIHRoYXQgdGhpcyB1c2VkIHRvIHdvcmsgb3V0IG9mIHRoZSBib3gg YSB3aGlsZSBhZ28uIEkNCmV2ZW4gcmVtb3ZlZCB1bXMua28gZnJvbSBrZXJuZWwgZm9sZGVyIGFu ZCBhZGRlZCB3c3AgdG8gbG9hZGVyLmNvbmYgYnV0IGl0DQpkb2VzIG5vdCBtYXR0ZXIuLiB3c3Ag c2ltcGxlIHdvbid0IGF0dGFjaC4uIEkgaGF2ZW4ndCBtYWRlIGFueSBjaGFuZ2VzIGluDQpzcmMv LiAvZXRjL2RldmQvdXNiLmNvbmYgaXMgY29ycmVjdCBpbiB0aGUgbGF0ZXN0IHNuYXBzaG90IG1l bXN0aWNrIGltYWdlLg0KDQpBbnl3YXksIG5vdyBJIGtub3cgdGhlcmUncyBubyBrbm93biBwcm9i bGVtLiBJIHRyeSBsb29rIG1vcmUgaW50byBpdCB0bXJ3DQpzZWUgaWYgSSBjYW4gcGlucG9pbnQg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gIHphY3luIPjgIHjgZ3jga7ku5bjga7liKnnlKjjgIHjgb7jgZ/jga/oqJjo vInlhoXlrrnjgavln7rjgaXjgY/jgYTjgYvjgarjgovooYzli5XjgoLjgZXjgozjgarjgYTjgojj gYbjgYrpoZjjgYTnlLPjgZfkuIrjgZLjgb7jgZnjgIIKLS0tCkNPTkZJREVOVElBTElUWSBOT1RF OiBUaGUgaW5mb3JtYXRpb24gaW4gdGhpcyBlbWFpbCBpcyBjb25maWRlbnRpYWwKYW5kIGludGVu ZGVkIHNvbGVseSBmb3IgdGhlIGFkZHJlc3NlZS4KRGlzY2xvc3VyZSwgY29weWluZywgZGlzdHJp YnV0aW9uIG9yIGFueSBvdGhlciBhY3Rpb24gb2YgdXNlIG9mIHRoaXMKZW1haWwgYnkgcGVyc29u IG90aGVyIHRoYW4gaW50ZW5kZWQgcmVjaXBpZW50LCBpcyBwcm9oaWJpdGVkLgpJZiB5b3UgYXJl IG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IGFuZCBoYXZlIHJlY2VpdmVkIHRoaXMgZW1haWwg aW4KZXJyb3IsIHBsZWFzZSBkZXN0cm95IHRoZSBvcmlnaW5hbCBtZXNzYWdlLgo= From owner-freebsd-usb@FreeBSD.ORG Fri Feb 6 11:55:26 2015 Return-Path: <owner-freebsd-usb@FreeBSD.ORG> Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0396861; Fri, 6 Feb 2015 11:55:26 +0000 (UTC) Received: from pzwet.vanderzwet.net (pzwet.vanderzwet.net [IPv6:2a01:4f8:190:8221::1:1]) by mx1.freebsd.org (Postfix) with ESMTP id A20463CB; Fri, 6 Feb 2015 11:55:26 +0000 (UTC) Received: from [IPv6:2001:1af8:febe:0:b6b6:76ff:fe4f:1cd5] (unknown [IPv6:2001:1af8:febe:0:b6b6:76ff:fe4f:1cd5]) by pzwet.vanderzwet.net (Postfix) with ESMTPSA id 86022AF2BE6; Fri, 6 Feb 2015 11:55:14 +0000 (UTC) Message-ID: <54D4ABA2.2090109@rickvanderzwet.nl> Date: Fri, 06 Feb 2015 12:55:14 +0100 From: Rick van der Zwet <info@rickvanderzwet.nl> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Kevin Lo <kevlo@FreeBSD.org> Subject: Re: Realtek RTL8152 driver attempt References: <54D32724.60307@rickvanderzwet.nl> <20150205153355.GA85786@ns.kevlo.org> In-Reply-To: <20150205153355.GA85786@ns.kevlo.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pzwet.vanderzwet.net Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB <freebsd-usb.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-usb>, <mailto:freebsd-usb-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-usb/> List-Post: <mailto:freebsd-usb@freebsd.org> List-Help: <mailto:freebsd-usb-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-usb>, <mailto:freebsd-usb-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 06 Feb 2015 11:55:27 -0000 On 05/02/15 16:33, Kevin Lo wrote: > On Thu, Feb 05, 2015 at 09:17:40AM +0100, Rick van der Zwet wrote: >> >> Hi Folks, > > Hi Rick, > >> I have been trying to write a FreeBSD driver (if_rtl) for the Realtek >> RTL8152 chipset, which is a USB to Ethernet dongle (using the Sitecom >> LN-030 v3). > > What a coincidence. I've been slowly working on porting r8152 driver from > Linux to FreeBSD since last month. Nice! >> Looking at the if_rue(4) and the linux r8152.c code, basically I got >> this far in porting but yet no working code: >> https://rickvanderzwet.nl/svn/personal/freebsd-rtl-driver/ >> >> There are no bulk out and in packets passing trough, so I am basically >> stuck now, not knowing how-to continue this journey. Could anybody give >> me an hint on how-to get this train going again? > > Mine basically is working but needs serious cleanup and bug fixes. > http://people.freebsd.org/~kevlo/ure.diff > > Please let me know if it works for you, thanks. I have been trying it in VirtualBox and basic I/O works. It really does not like to be stressed. Running an `ping -f` or iperf kills the driver saying 'ure0: PHY read failed'. Will try to get some real hardware setup to see if it makes any difference. Best regards, /Rick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASDrVnoRfPr8sQt3TLRxGTHpDSe0XF5DJH5QcmBcPeDkwhxFg>