From owner-freebsd-arm@FreeBSD.ORG Thu Nov 25 01:28:00 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 498F0106566B for ; Thu, 25 Nov 2010 01:28:00 +0000 (UTC) (envelope-from mr.armvn@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4D38FC13 for ; Thu, 25 Nov 2010 01:27:59 +0000 (UTC) Received: by pvc22 with SMTP id 22so102983pvc.13 for ; Wed, 24 Nov 2010 17:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=PUx3eMs/WUb0xzO7CfoLZ2f0eQNSjQV6VW29tYc2myg=; b=uXzM7NG5oFcsDL/mhxJcVp4CK9sAFZmD7XgqjpTyW8gLnROnn1dm3yraB4XNc5qXb8 2yZL8HkWLmSf4It1AVU4sZMEBsUGJsBiTzU5WiG27Mu+ekZHdByQjPSgBRahOuaEym7M UsVZe+LiMeL0dSRfbwm1DenOWSFdPAdpr8IjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=KNjq0bZm1CkpIHDAJ/qX9HWh514GXXMU/8uZQgzePUijFyuAoKH2Ta4P3ZaIC2DXBY 1L80EOL1t0O84GjBoN3mnhB4vLBHiQD/4o2efaUWr07CjNoCMF3l3R4UYnUgMP0iblhB PADZRHFzbMJ58azK6/es4tsUwEyK3KMqraA2o= MIME-Version: 1.0 Received: by 10.142.49.6 with SMTP id w6mr55607wfw.442.1290648477961; Wed, 24 Nov 2010 17:27:57 -0800 (PST) Received: by 10.143.4.6 with HTTP; Wed, 24 Nov 2010 17:27:57 -0800 (PST) Date: Thu, 25 Nov 2010 08:27:57 +0700 Message-ID: From: mr armvn To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: 2 ethernet interfaces with marvell chip 88F6281(kernel configure file DB-88F6XXX) - PCI (PEX 8311 chip) driver? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 01:28:00 -0000 Hi, Thanks you very much, I saw some difference source between your patch source and my RELEASE version source, I will install CURRENT version to porting freebsd to the board. My board is similar guruplug, but I connect to one PCI (PEX 8311 chip) for another purpose, can you help me about PCI driver on arm-freebsd? Thanks. On Wed, Nov 24, 2010 at 7:28 PM, Milan Obuch wrote: > On Wednesday 24 November 2010 09:05:44 mr armvn wrote: > > Hi Milan Obuch, > > > > I using DB-88F6XXX (http://wiki.freebsd.org/FreeBSDMarvell) to make > image > > for our board, it's working but only one mge0 ethernet interface, I read > > some document about mge1 interface ( > > > http://old.nabble.com/Marvell-Kirkwood-6281-mge1-interface-td26193068.html > ) > > but didn't success, can you help me give some right comment. > > > > Could you tell us something about your board so we know a bit more about > it? > Also, please look for my mail dated Oct 27, 2010 sent to freebsd-arm > mailing > list, there are patches/configs I use to build kernel for my Guruplug > server. > Oh, wait, you just replied to it :) > > > My environment > > > > # uname -a > > FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 > > root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > > My patches are against CURRENT, but you should be able to compile CURRENT > kernel and world on your system too... > > > On Thu, Oct 28, 2010 at 3:59 AM, Milan Obuch > wrote: > > > On Wednesday 27 October 2010 18:44:23 Rafal Jaworowski wrote: > > > > On 2010-10-27, at 16:56, Milan Obuch wrote: > > > > > On Tuesday 26 October 2010 23:19:59 Kristof Provost wrote: > > > [snip] > > > > > > > >> In any case, what I wanted to see is already printed in the boot > > > > >> log. Both mge interfaces are using the correct memory locatins > > > > >> (0xf1076000 for mge1) and the correct PHY numbers. > > > > >> > > > > >> Did you statically configure the mac addresses in the DTS for this > > > > > > boot? > > > > > > > > Yes. Without that, ether addres did not initialize and needs to be > > > > > set manually. > > > > > > > > > > However, after looking over older mails again and trying to look at > > > > > it from the other side, I found the reason. I am going to write a > > > > > > follow-up > > > > > > > > explaining the whole issue and how succesfully solved the > problem... > > > > > please wait a bit, something unrelated needs to be done now... > > > > > > > > Have you got your MPP settings sorted out correctly? The second GE > unit > > > > connections are multiplexed with other functions of the SOC and won't > > > > > > work > > > > > > > without proper set-up, see the hardware spec and the description of > MPP > > > > bindings in the DTS sys/boot/fdt/dts/bindings-mpp.txt > > > > > > Exactly this was the reason, however file you mentioned was not that > > > helpfull > > > for me... but looking at dts for OpenRD client and hardware spec for > > > 88F6281 I > > > got the idea and after looking a bit at linux sources for guruplug > server > > > I modified my dts and this also explain why frames could be received > > > before and > > > not sent - all pins set as gpio are inputs in a way, thus reading > worked, > > > but > > > controller output was not connected to phy, so in effect tcpdump saw > > > input and > > > frames to be sent, but tha's on chip, and they did not get out of chip. > > > > > > That's it for theory, and now some summary - I am attaching patches I > > > used for > > > Guruplug to work, collected from older mails. Patch for mvwin.h and > > > ehci_mv.c > > > are necessary for USB to work correctly. I mentioned them in my first > > > mail dated October 20, 2010, original source is mail from Johny > Mattsson > > > dated September 18, 2010. Patch for if_mge.c makes it unnecessary to > > > specify phy handle in dts and probes them automatically, originally in > > > mail from Norikatsu > > > Shigemura dated June 20, 2010. I modified it a bit to account for > changes > > > in > > > sources in between. > > > > > > For kernel config see my first mail. New dts is attached here. > > > > > Regards, > Milan >