Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2010 08:27:57 +0700
From:      mr armvn <mr.armvn@gmail.com>
To:        Milan Obuch <freebsd-arm@dino.sk>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 2 ethernet interfaces with marvell chip 88F6281(kernel configure file DB-88F6XXX) - PCI (PEX 8311 chip) driver?
Message-ID:  <AANLkTik0cYH=uQ%2BT8VY=Ou-4K3egF9DO%2BB9GedQmN_92@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 <freebsd-arm@dino.sk> 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 <freebsd-arm@dino.sk>
> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik0cYH=uQ%2BT8VY=Ou-4K3egF9DO%2BB9GedQmN_92>