From owner-freebsd-arm@FreeBSD.ORG Mon Nov 2 11:06:50 2009 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 833411065672 for ; Mon, 2 Nov 2009 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71B828FC19 for ; Mon, 2 Nov 2009 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nA2B6o1q033530 for ; Mon, 2 Nov 2009 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nA2B6nRq033528 for freebsd-arm@FreeBSD.org; Mon, 2 Nov 2009 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Nov 2009 11:06:49 GMT Message-Id: <200911021106.nA2B6nRq033528@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org 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: Mon, 02 Nov 2009 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 o arm/134092 arm [patch] NSLU.hints contains wrong hints for on board n 3 problems total. From owner-freebsd-arm@FreeBSD.ORG Wed Nov 4 09:14:04 2009 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 979F010656A7 for ; Wed, 4 Nov 2009 09:14:04 +0000 (UTC) (envelope-from Matthias.Reyelt@brunel.de) Received: from mailgate2.arcor-ip.de (mailgate2.arcor-ip.de [145.253.2.48]) by mx1.freebsd.org (Postfix) with ESMTP id 469DE8FC21 for ; Wed, 4 Nov 2009 09:14:04 +0000 (UTC) Received: from mailer.brunellocal.de (ffmcospub2ffmbrunelfw2lo-cs-nat-mail-server.adm.arcor.net [145.254.28.157]) by mailgate1.cs.arcor.net (Arcor-CN-MailRelay-l-B) with ESMTP id A4823F905AE for ; Wed, 4 Nov 2009 09:56:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 77CCA450F7 for ; Wed, 4 Nov 2009 09:56:12 +0100 (CET) X-Virus-Scanned: amavisd-new at brunellocal.de Received: from mailer.brunellocal.de ([127.0.0.1]) by localhost (mailer.brunellocal.de [127.0.0.1]) (amavisd-new, port 10024) with SMTP id FWV+9t9EcR2W for ; Wed, 4 Nov 2009 09:56:12 +0100 (CET) Received: from mail-hv.brunel.de (mail-hv.brunellocal.de [192.168.1.234]) by mailer.brunellocal.de (Postfix) with ESMTP id 58F4C3C469 for ; Wed, 4 Nov 2009 09:56:12 +0100 (CET) Received: from bcslx10.bcs.brunel.local ([172.16.101.231]) by 935s02su.brunellocal.de (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009110409561106-43788 ; Wed, 4 Nov 2009 09:56:11 +0100 Received: from bcspc139.bcs.brunel.local (bcspc139.bcs.brunel.local [172.16.101.98]) by bcslx10.bcs.brunel.local (Postfix) with ESMTP id 3456BFD85E; Wed, 4 Nov 2009 09:56:11 +0100 (CET) From: Matthias Reyelt Organization: Brunel Communications To: freebsd-arm@freebsd.org Date: Wed, 4 Nov 2009 09:56:08 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) MIME-Version: 1.0 Message-Id: <200911040956.09749.Matthias.Reyelt@brunel.de> X-MIMETrack: Itemize by SMTP Server on HUB93501/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 04.11.2009 09:56:11 AM, Serialize by Router on HUB10149/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 04.11.2009 09:56:11 AM, Serialize complete at 04.11.2009 09:56:11 AM Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Subject: Marvell Kirkwood 6281 mge1 interface 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: Wed, 04 Nov 2009 09:14:04 -0000 Hi, I have tried to use the second network interface on an Marvell OpenRD board= =20 with BETA3. The mge1 interfaces seems to have problems with it's phy.=20 I am not familiar with kernel debugging, I've only seen that mii_phy_probe(= )=20 detects the bmsr register at 0x09, but readreg returns 0xffff. Has anybody got that second interface up already? Regards Matthias =2D-=20 Dr.-Ing. Matthias Reyelt Master Software Designer Brunel GmbH Bereich Communications Daimlerring 9 31135 Hildesheim Tel: +49 5121 1760 805 =46ax: +49 5121 1760 999 email: Matthias.Reyelt@brunel.de Internet: www.brunel.de Hauptsitz: Airport City, Hermann-K=C3=B6hl-Str. 1, 28199 Bremen Amtsgericht Bremen HRB 16935 General Manager: Johan Arie van Barneveld From owner-freebsd-arm@FreeBSD.ORG Wed Nov 4 09:37:55 2009 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 5C2041065694 for ; Wed, 4 Nov 2009 09:37:55 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 0EF298FC1D for ; Wed, 4 Nov 2009 09:37:54 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 9907FC3BA2; Wed, 4 Nov 2009 10:38:22 +0100 (CET) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id 2Ms2Pi8tfs-R; Wed, 4 Nov 2009 10:38:22 +0100 (CET) Received: from [10.0.0.34] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 02EA9C3B9E; Wed, 4 Nov 2009 10:38:22 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Rafal Jaworowski In-Reply-To: <200911040956.09749.Matthias.Reyelt@brunel.de> Date: Wed, 4 Nov 2009 10:37:52 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <200911040956.09749.Matthias.Reyelt@brunel.de> To: Matthias Reyelt X-Mailer: Apple Mail (2.1076) Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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: Wed, 04 Nov 2009 09:37:55 -0000 On 2009-11-04, at 09:56, Matthias Reyelt wrote: > I have tried to use the second network interface on an Marvell > OpenRD board > with BETA3. The mge1 interfaces seems to have problems with it's phy. > > I am not familiar with kernel debugging, I've only seen that > mii_phy_probe() > detects the bmsr register at 0x09, but readreg returns 0xffff. > > Has anybody got that second interface up already? Please paste the log with errors you're seeing. Rafal From owner-freebsd-arm@FreeBSD.ORG Wed Nov 4 10:42:36 2009 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 C5FA71065670 for ; Wed, 4 Nov 2009 10:42:36 +0000 (UTC) (envelope-from Matthias.Reyelt@brunel.de) Received: from mailgate2.arcor-ip.de (mailgate2.arcor-ip.de [145.253.2.48]) by mx1.freebsd.org (Postfix) with ESMTP id 403028FC16 for ; Wed, 4 Nov 2009 10:42:36 +0000 (UTC) Received: from mailer.brunellocal.de (ffmcospub2ffmbrunelfw2lo-cs-nat-mail-server.adm.arcor.net [145.254.28.157]) by mailgate1.cs.arcor.net (Arcor-CN-MailRelay-l-B) with ESMTP id 191B2F905F1; Wed, 4 Nov 2009 11:42:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D1D2A450E5; Wed, 4 Nov 2009 11:42:34 +0100 (CET) X-Virus-Scanned: amavisd-new at brunellocal.de Received: from mailer.brunellocal.de ([127.0.0.1]) by localhost (mailer.brunellocal.de [127.0.0.1]) (amavisd-new, port 10024) with SMTP id kiC6wVw8Narg; Wed, 4 Nov 2009 11:42:34 +0100 (CET) Received: from mail-hv.brunel.de (mail-hv.brunellocal.de [192.168.1.234]) by mailer.brunellocal.de (Postfix) with ESMTP id AE360412AD; Wed, 4 Nov 2009 11:42:34 +0100 (CET) Received: from bcslx10.bcs.brunel.local ([172.16.101.231]) by 935s02su.brunellocal.de (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009110411423373-43824 ; Wed, 4 Nov 2009 11:42:33 +0100 Received: from bcspc139.bcs.brunel.local (bcspc139.bcs.brunel.local [172.16.101.98]) by bcslx10.bcs.brunel.local (Postfix) with ESMTP id 01BA6134018; Wed, 4 Nov 2009 11:42:34 +0100 (CET) From: Matthias Reyelt Organization: Brunel Communications To: Rafal Jaworowski Date: Wed, 4 Nov 2009 11:42:30 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200911040956.09749.Matthias.Reyelt@brunel.de> In-Reply-To: MIME-Version: 1.0 Message-Id: <200911041142.32349.Matthias.Reyelt@brunel.de> X-MIMETrack: Itemize by SMTP Server on HUB93501/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 04.11.2009 11:42:33 AM, Serialize by Router on HUB10149/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 04.11.2009 11:42:34 AM, Serialize complete at 04.11.2009 11:42:34 AM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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: Wed, 04 Nov 2009 10:42:36 -0000 Hi, here is the boot log. I have added several device_printf's and removed the 0xffff condition in mii_phy_probe() Matthias ge0: at mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on mbus0 mge0: bpf attached mge0: Ethernet address: 00:50:43:01:a2:5e mge0: Now probing PHY mge0: mii_phy_probe: Starting to probe PHYs: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:31085 ok miibus0: (miibus_probe) is the mii device mge0: (miibus_probe) is the eth device miibus0: Probing phy 0 miibus0: No phy found miibus0: Probing phy 1 miibus0: No phy found miibus0: Probing phy 2 miibus0: No phy found miibus0: Probing phy 3 miibus0: No phy found miibus0: Probing phy 4 miibus0: No phy found miibus0: Probing phy 5 miibus0: No phy found miibus0: Probing phy 6 miibus0: No phy found miibus0: Probing phy 7 miibus0: No phy found miibus0: Probing phy 8 miibus0: found one. Now looking for ID miibus0: Probing phy 9 miibus0: No phy found miibus0: Probing phy a miibus0: No phy found miibus0: Probing phy b miibus0: No phy found miibus0: Probing phy c miibus0: No phy found miibus0: Probing phy d miibus0: No phy found miibus0: Probing phy e miibus0: No phy found miibus0: Probing phy f miibus0: No phy found miibus0: Probing phy 10 miibus0: No phy found miibus0: Probing phy 11 miibus0: No phy found miibus0: Probing phy 12 miibus0: No phy found miibus0: Probing phy 13 miibus0: No phy found miibus0: Probing phy 14 miibus0: No phy found miibus0: Probing phy 15 miibus0: No phy found miibus0: Probing phy 16 miibus0: No phy found miibus0: Probing phy 17 miibus0: No phy found miibus0: Probing phy 18 miibus0: No phy found miibus0: Probing phy 19 miibus0: No phy found miibus0: Probing phy 1a miibus0: No phy found miibus0: Probing phy 1b miibus0: No phy found miibus0: Probing phy 1c miibus0: No phy found miibus0: Probing phy 1d miibus0: No phy found miibus0: Probing phy 1e miibus0: No phy found miibus0: Probing phy 1f miibus0: No phy found miibus0: on mge0 miibus0: miibus_attach e1000phy0: Probing e1000 PHY e1000phy0: Probing e1000 PHY e1000phy0: PHY 8 on miibus0 mge0: Writing 6800 to reg 10 on phy 8 mge0: Writing 70 to reg 14 on phy 8 mge0: Writing 9140 to reg 0 on phy 8 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto mge0: [MPSAFE] mge0: [ITHREAD] mge0: [MPSAFE] mge0: [ITHREAD] mge1: at mem 0xf1076000-0xf1077fff irq 16,17,18,15,46 on mbus0 mge1: bpf attached mge1: Ethernet address: 00:50:43:01:a2:5f mge1: Now probing PHY mge1: mii_phy_probe: Starting to probe PHYs: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:65535 ok miibus1: (miibus_probe) is the mii device mge1: (miibus_probe) is the eth device miibus1: Probing phy 0 miibus1: No phy found miibus1: Probing phy 1 miibus1: No phy found miibus1: Probing phy 2 miibus1: No phy found miibus1: Probing phy 3 miibus1: No phy found miibus1: Probing phy 4 miibus1: No phy found miibus1: Probing phy 5 miibus1: No phy found miibus1: Probing phy 6 miibus1: No phy found miibus1: Probing phy 7 miibus1: No phy found miibus1: Probing phy 8 miibus1: No phy found miibus1: Probing phy 9 miibus1: found one. Now looking for ID miibus1: Probing phy a miibus1: No phy found miibus1: Probing phy b miibus1: No phy found miibus1: Probing phy c miibus1: No phy found miibus1: Probing phy d miibus1: No phy found miibus1: Probing phy e miibus1: No phy found miibus1: Probing phy f miibus1: No phy found miibus1: Probing phy 10 miibus1: No phy found miibus1: Probing phy 11 miibus1: No phy found miibus1: Probing phy 12 miibus1: No phy found miibus1: Probing phy 13 miibus1: No phy found miibus1: Probing phy 14 miibus1: No phy found miibus1: Probing phy 15 miibus1: No phy found miibus1: Probing phy 16 miibus1: No phy found miibus1: Probing phy 17 miibus1: No phy found miibus1: Probing phy 18 miibus1: No phy found miibus1: Probing phy 19 miibus1: No phy found miibus1: Probing phy 1a miibus1: No phy found miibus1: Probing phy 1b miibus1: No phy found miibus1: Probing phy 1c miibus1: No phy found miibus1: Probing phy 1d miibus1: No phy found miibus1: Probing phy 1e miibus1: No phy found miibus1: Probing phy 1f miibus1: No phy found miibus1: on mge1 miibus1: miibus_attach e1000phy1: Probing e1000 PHY ukphy0: PHY 9 on miibus1 ukphy0: OUI 0x3fffff, model 0x003f, rev. 15 mge1: Writing 8400 to reg 0 on phy 9 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 100baseT4, 1000baseSX, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX, auto mge1: [MPSAFE] Am Mittwoch 04 November 2009 10:37:52 schrieb Rafal Jaworowski: > > On 2009-11-04, at 09:56, Matthias Reyelt wrote: > > > I have tried to use the second network interface on an Marvell > > OpenRD board > > with BETA3. The mge1 interfaces seems to have problems with it's phy. > > > > I am not familiar with kernel debugging, I've only seen that > > mii_phy_probe() > > detects the bmsr register at 0x09, but readreg returns 0xffff. > > > > Has anybody got that second interface up already? > > Please paste the log with errors you're seeing. > > Rafal > > From owner-freebsd-arm@FreeBSD.ORG Thu Nov 5 10:46:09 2009 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 77D32106566B for ; Thu, 5 Nov 2009 10:46:09 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 271AA8FC17 for ; Thu, 5 Nov 2009 10:46:08 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 9E3E9C3BA2; Thu, 5 Nov 2009 11:46:38 +0100 (CET) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id ZbjfeMf7vKKH; Thu, 5 Nov 2009 11:46:38 +0100 (CET) Received: from [10.0.0.34] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id E4094C3B9E; Thu, 5 Nov 2009 11:46:37 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Rafal Jaworowski In-Reply-To: <200911041142.32349.Matthias.Reyelt@brunel.de> Date: Thu, 5 Nov 2009 11:46:06 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <200911040956.09749.Matthias.Reyelt@brunel.de> <200911041142.32349.Matthias.Reyelt@brunel.de> To: Matthias Reyelt X-Mailer: Apple Mail (2.1076) Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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, 05 Nov 2009 10:46:09 -0000 On 2009-11-04, at 11:42, Matthias Reyelt wrote: > Hi, > > here is the boot log. I have added several device_printf's and > removed the > 0xffff condition in mii_phy_probe() Before trying to identify PHY problems, can you share all your changes (a diff)? So far all Kirkwood based boards we support had only a single active Ethernet port, so the Kirkwood platform config only accounted for a single MAC, have you altered the obio_devices[] in particular? Rafal From owner-freebsd-arm@FreeBSD.ORG Thu Nov 5 13:24:05 2009 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 D9405106568F for ; Thu, 5 Nov 2009 13:24:05 +0000 (UTC) (envelope-from Matthias.Reyelt@brunel.de) Received: from mailgate2.arcor-ip.de (mailgate2.arcor-ip.de [145.253.2.48]) by mx1.freebsd.org (Postfix) with ESMTP id 535338FC1C for ; Thu, 5 Nov 2009 13:24:05 +0000 (UTC) Received: from mailer.brunellocal.de (ffmcospub2ffmbrunelfw2lo-cs-nat-mail-server.adm.arcor.net [145.254.28.157]) by mailgate1.cs.arcor.net (Arcor-CN-MailRelay-l-B) with ESMTP id 1CF49F8F7CA; Thu, 5 Nov 2009 14:24:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id DF02645378; Thu, 5 Nov 2009 14:24:03 +0100 (CET) X-Virus-Scanned: amavisd-new at brunellocal.de Received: from mailer.brunellocal.de ([127.0.0.1]) by localhost (mailer.brunellocal.de [127.0.0.1]) (amavisd-new, port 10024) with SMTP id xUflntC8k6co; Thu, 5 Nov 2009 14:24:03 +0100 (CET) Received: from mail-hv.brunel.de (mail-hv.brunellocal.de [192.168.1.234]) by mailer.brunellocal.de (Postfix) with ESMTP id B7F1545375; Thu, 5 Nov 2009 14:24:03 +0100 (CET) Received: from bcslx10.bcs.brunel.local ([172.16.101.231]) by 935s02su.brunellocal.de (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009110514235409-44593 ; Thu, 5 Nov 2009 14:23:54 +0100 Received: from bcspc139.bcs.brunel.local (bcspc139.bcs.brunel.local [172.16.101.98]) by bcslx10.bcs.brunel.local (Postfix) with ESMTP id 4417CFD80D; Thu, 5 Nov 2009 14:23:54 +0100 (CET) From: Matthias Reyelt Organization: Brunel Communications To: Rafal Jaworowski Date: Thu, 5 Nov 2009 14:23:50 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200911040956.09749.Matthias.Reyelt@brunel.de> <200911041142.32349.Matthias.Reyelt@brunel.de> In-Reply-To: MIME-Version: 1.0 Message-Id: <200911051423.52940.Matthias.Reyelt@brunel.de> X-MIMETrack: Itemize by SMTP Server on HUB93501/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 05.11.2009 02:23:54 PM, Serialize by Router on HUB10149/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 05.11.2009 02:24:03 PM, Serialize complete at 05.11.2009 02:24:03 PM Content-Type: Multipart/Mixed; boundary="Boundary-00=_oHt8KBer93oXNpg" Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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, 05 Nov 2009 13:24:06 -0000 --Boundary-00=_oHt8KBer93oXNpg Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Hi, here is the diff. The removal of the debug options were due to some performance tests I did before. Am Donnerstag 05 November 2009 11:46:06 schrieb Rafal Jaworowski: > > On 2009-11-04, at 11:42, Matthias Reyelt wrote: > > > Hi, > > > > here is the boot log. I have added several device_printf's and > > removed the > > 0xffff condition in mii_phy_probe() > > Before trying to identify PHY problems, can you share all your > changes (a diff)? So far all Kirkwood based boards we support had only > a single active Ethernet port, so the Kirkwood platform config only Yes, the OpenRD client is rather new, and the board contains an awful lot of interfaces (and no fan), really great. > accounted for a single MAC, have you altered the obio_devices[] in > particular? I did add the second interface to the obio_devices[], and adjusted the defines according to the header files as good as I knew (although I have been aware that there would be a reason for the missing interface :-) Matthias --Boundary-00=_oHt8KBer93oXNpg Content-Transfer-Encoding: 7bit Content-Type: text/x-diff; charset="iso-8859-1"; name="changes-kw2ndif.diff" Content-Disposition: attachment; filename="changes-kw2ndif.diff" Index: arm/mv/kirkwood/kirkwood.c =================================================================== --- arm/mv/kirkwood/kirkwood.c (revision 198539) +++ arm/mv/kirkwood/kirkwood.c (working copy) @@ -95,6 +95,12 @@ { -1 }, CPU_PM_CTRL_GE0 }, + { "mge", MV_ETH1_BASE, MV_ETH_SIZE, + { MV_INT_GBE1RX, MV_INT_GBE1TX, MV_INT_GBE1MISC, + MV_INT_GBE1SUM, MV_INT_GBEERR, -1 }, + { -1 }, + CPU_PM_CTRL_GE1 + }, { "twsi", MV_TWSI0_BASE, MV_TWSI_SIZE, { -1 }, { -1 }, CPU_PM_CTRL_NONE Index: arm/conf/DB-88F6XXX =================================================================== --- arm/conf/DB-88F6XXX (revision 198539) +++ arm/conf/DB-88F6XXX (working copy) @@ -39,12 +39,12 @@ # Debugging options ALT_BREAK_TO_DEBUGGER options DDB -options DIAGNOSTIC +#options DIAGNOSTIC #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS options KDB -options WITNESS #Enable checks to detect deadlocks and cycles -options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed +#options WITNESS #Enable checks to detect deadlocks and cycles +#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options WITNESS_KDB device pci Index: conf/NOTES =================================================================== --- conf/NOTES (revision 198539) +++ conf/NOTES (working copy) @@ -266,12 +266,12 @@ # a lock hierarchy violation occurs or if locks are held when going to # sleep. # WITNESS_SKIPSPIN disables the witness checks on spin mutexes. -options PREEMPTION -options FULL_PREEMPTION -options MUTEX_DEBUG -options WITNESS -options WITNESS_KDB -options WITNESS_SKIPSPIN +#options PREEMPTION +#options FULL_PREEMPTION +#options MUTEX_DEBUG +#options WITNESS +#options WITNESS_KDB +#options WITNESS_SKIPSPIN # LOCK_PROFILING - Profiling locks. See LOCK_PROFILING(9) for details. options LOCK_PROFILING Index: dev/mge/if_mge.c =================================================================== --- dev/mge/if_mge.c (revision 198785) +++ dev/mge/if_mge.c (working copy) @@ -685,6 +685,7 @@ ether_ifattach(ifp, hwaddr); callout_init(&sc->wd_callout, 0); + device_printf( dev, "Now probing PHY\n" ); /* Probe PHY(s) */ error = mii_phy_probe(dev, &sc->miibus, mge_ifmedia_upd, mge_ifmedia_sts); if (error) { @@ -1273,10 +1274,11 @@ * unit. */ - + if ((MII_ADDR_BASE + device_get_unit(dev)) != phy) return (0); + MGE_WRITE(sc_mge0, MGE_REG_SMI, 0x1fffffff & (MGE_SMI_READ | (reg << 21) | (phy << 16))); @@ -1298,6 +1300,7 @@ if ((MII_ADDR_BASE + device_get_unit(dev)) != phy) return (0); + device_printf( dev, "Writing %x to reg %x on phy %x\n", value, reg, phy ); MGE_WRITE(sc_mge0, MGE_REG_SMI, 0x1fffffff & (MGE_SMI_WRITE | (reg << 21) | (phy << 16) | (value & 0xffff))); Index: dev/mii/e1000phy.c =================================================================== --- dev/mii/e1000phy.c (revision 198539) +++ dev/mii/e1000phy.c (working copy) @@ -119,7 +119,7 @@ static int e1000phy_probe(device_t dev) { - + device_printf( dev, "Probing e1000 PHY\n" ); return (mii_phy_dev_probe(dev, e1000phys, BUS_PROBE_DEFAULT)); } Index: dev/mii/mii.c =================================================================== --- dev/mii/mii.c (revision 198539) +++ dev/mii/mii.c (working copy) @@ -124,7 +124,9 @@ int bmsr, capmask = 0xFFFFFFFF; mii = device_get_softc(dev); + device_printf( dev, "(miibus_probe) is the mii device\n" ); parent = device_get_parent(dev); + device_printf( parent, "(miibus_probe) is the eth device\n" ); LIST_INIT(&mii->mii_phys); for (ma.mii_phyno = 0; ma.mii_phyno < MII_NPHY; ma.mii_phyno++) { @@ -133,13 +135,15 @@ * many braindead PHYs report 0/0 in their ID registers, * so we test for media in the BMSR. */ + device_printf( dev, "Probing phy %x ", ma.mii_phyno ); bmsr = MIIBUS_READREG(parent, ma.mii_phyno, MII_BMSR); - if (bmsr == 0 || bmsr == 0xffff || + if (bmsr == 0 || (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { /* Assume no PHY at this address. */ - continue; + device_printf( dev, "No phy found\n" ); + continue; } - + device_printf( dev, "found one. Now looking for ID\n" ); /* * Extract the IDs. Braindead PHYs will be handled by * the `ukphy' driver, as we have no ID information to @@ -179,6 +183,7 @@ * Note that each NIC's softc must start with an ifnet pointer. * XXX: EVIL HACK! */ + device_printf( dev, "miibus_attach\n" ); mii->mii_ifp = *(struct ifnet**)device_get_softc(device_get_parent(dev)); ivars = device_get_ivars(dev); ifmedia_init(&mii->mii_media, IFM_IMASK, ivars->ifmedia_upd, @@ -337,13 +342,16 @@ *child = device_add_child(dev, "miibus", -1); device_set_ivars(*child, ivars); + device_printf( dev, "mii_phy_probe: Starting to probe PHYs: " ); for (i = 0; i < MII_NPHY; i++) { bmsr = MIIBUS_READREG(dev, i, MII_BMSR); - if (bmsr == 0 || bmsr == 0xffff || + printf( "%d:%d ", i, bmsr ); + if (bmsr == 0 || (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { /* Assume no PHY at this address. */ continue; } else + printf( "ok\n" ); break; } --Boundary-00=_oHt8KBer93oXNpg-- From owner-freebsd-arm@FreeBSD.ORG Thu Nov 5 14:16:11 2009 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 67C24106566B for ; Thu, 5 Nov 2009 14:16:11 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 138F18FC1A for ; Thu, 5 Nov 2009 14:16:10 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 2F5E5C3BA2; Thu, 5 Nov 2009 15:16:41 +0100 (CET) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id S3V-x9OAuWY0; Thu, 5 Nov 2009 15:16:40 +0100 (CET) Received: from [10.0.0.34] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 5881AC3B9C; Thu, 5 Nov 2009 15:16:40 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Rafal Jaworowski In-Reply-To: <200911051423.52940.Matthias.Reyelt@brunel.de> Date: Thu, 5 Nov 2009 15:16:08 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <200911040956.09749.Matthias.Reyelt@brunel.de> <200911041142.32349.Matthias.Reyelt@brunel.de> <200911051423.52940.Matthias.Reyelt@brunel.de> To: Matthias Reyelt X-Mailer: Apple Mail (2.1076) Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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, 05 Nov 2009 14:16:11 -0000 On 2009-11-05, at 14:23, Matthias Reyelt wrote: >> Before trying to identify PHY problems, can you share all your >> changes (a diff)? So far all Kirkwood based boards we support had >> only >> a single active Ethernet port, so the Kirkwood platform config only > Yes, the OpenRD client is rather new, and the board contains an > awful lot of > interfaces (and no fan), really great. Can you eye inspect the PHY chip connected to the second MAC, is it E1116 as well? BTW: if you managed to get OpenRD to boot, please send a full booting log for reference. >> accounted for a single MAC, have you altered the obio_devices[] in >> particular? > I did add the second interface to the obio_devices[], and adjusted > the defines > according to the header files as good as I knew (although I have > been aware > that there would be a reason for the missing interface :-) Your diff looks fine, however there is missing at least one important piece: decode window for the second ETH is not being configured. Try adding the change below. Rafal diff --git a/sys/arm/mv/common.c b/sys/arm/mv/common.c index 76758be..b60d0ac 100644 --- a/sys/arm/mv/common.c +++ b/sys/arm/mv/common.c @@ -204,7 +204,8 @@ soc_decode_win(void) decode_win_cpu_setup(); decode_win_usb_setup(); decode_win_eth_setup(MV_ETH0_BASE); - if (dev == MV_DEV_MV78100 || dev == MV_DEV_MV78100_Z0) + if (dev == MV_DEV_88F6281 || + dev == MV_DEV_MV78100 || dev == MV_DEV_MV78100_Z0) decode_win_eth_setup(MV_ETH1_BASE); if (dev == MV_DEV_88F6281 || dev == MV_DEV_MV78100 || dev == MV_DEV_MV78100_Z0) From owner-freebsd-arm@FreeBSD.ORG Thu Nov 5 15:24:02 2009 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 67DE8106568B for ; Thu, 5 Nov 2009 15:24:02 +0000 (UTC) (envelope-from Matthias.Reyelt@brunel.de) Received: from mailgate2.arcor-ip.de (mailgate2.arcor-ip.de [145.253.2.48]) by mx1.freebsd.org (Postfix) with ESMTP id 7C91D8FC17 for ; Thu, 5 Nov 2009 15:24:01 +0000 (UTC) Received: from mailer.brunellocal.de (ffmcospub2ffmbrunelfw2lo-cs-nat-mail-server.adm.arcor.net [145.254.28.157]) by mailgate1.cs.arcor.net (Arcor-CN-MailRelay-l-B) with ESMTP id F0102F8FEF7; Thu, 5 Nov 2009 16:23:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id B8E844543B; Thu, 5 Nov 2009 16:23:59 +0100 (CET) X-Virus-Scanned: amavisd-new at brunellocal.de Received: from mailer.brunellocal.de ([127.0.0.1]) by localhost (mailer.brunellocal.de [127.0.0.1]) (amavisd-new, port 10024) with SMTP id uOonCEj-SHce; Thu, 5 Nov 2009 16:23:59 +0100 (CET) Received: from mail-hv.brunel.de (mail-hv.brunellocal.de [192.168.1.234]) by mailer.brunellocal.de (Postfix) with ESMTP id 96BD245404; Thu, 5 Nov 2009 16:23:59 +0100 (CET) Received: from bcslx10.bcs.brunel.local ([172.16.101.231]) by 935s02su.brunellocal.de (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009110516235754-44822 ; Thu, 5 Nov 2009 16:23:57 +0100 Received: from bcspc139.bcs.brunel.local (bcspc139.bcs.brunel.local [172.16.101.98]) by bcslx10.bcs.brunel.local (Postfix) with ESMTP id D0F33FD971; Thu, 5 Nov 2009 16:23:57 +0100 (CET) From: Matthias Reyelt Organization: Brunel Communications To: Rafal Jaworowski Date: Thu, 5 Nov 2009 16:23:54 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200911040956.09749.Matthias.Reyelt@brunel.de> <200911051423.52940.Matthias.Reyelt@brunel.de> In-Reply-To: MIME-Version: 1.0 Message-Id: <200911051623.56583.Matthias.Reyelt@brunel.de> X-MIMETrack: Itemize by SMTP Server on HUB93501/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 05.11.2009 04:23:57 PM, Serialize by Router on HUB10149/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 05.11.2009 04:23:58 PM, Serialize complete at 05.11.2009 04:23:58 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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, 05 Nov 2009 15:24:02 -0000 Hi, the second phy is an E1116 as well. I have applied the patch to common.h There is still something missing. Here is the boot log. There are some other error messages, e.g. from pcib. Matthias -------------------------------snip----------------------------------------------------------------- __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: OpenRD-Client LE U-Boot 1.1.4 (May 18 2009 - 13:33:10) Marvell version: 3.4.16 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE80 Soc: 88F6281 A0 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM CS[1] base 0x10000000 size 256MB DRAM Total size 512MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:512 MB Checking for BootROM Routine Errors No. of BootROM routine retries: 0 No error found Running POST... DDR2 data bus test PASSED DDR2 address bus test PASSED UART 1 internal loopback test on baudrate 9600 PASSED UART 1 internal loopback test on baudrate 19200 PASSED UART 1 internal loopback test on baudrate 115200 PASSED Device: 0, Size: 512 MB, Page Size: 2 KB, Block Size: 128 KB NAND detection test PASSED Bad Block: 1a5a0000 NAND bad-block detection test PASSED RTC test PASSED 6/6 tests PASSED POST completed CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled Module 0 is AUDIO Module 1 is RGMII USB 0: host mode PCI 0: PCI Express Root Complex Interface PEX interface detected Link X1 Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 Marvell>> tftpboot 900000 kernel.bin Using egiga0 device TFTP from server 172.16.102.81; our IP address is 172.16.102.69 Filename 'kernel.bin'. Load address: 0x900000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################################################### done Bytes transferred = 2980852 (2d7bf4 hex) Marvell>> go 900000 ## Starting application at 0x00900000 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-RC2 #15 r198539:198785M: Thu Nov 5 15:46:38 CET 2009 root@bcspc5.bcs.brunel.local:/usr/obj/arm/arm/src/8-stable/8/sys/DB-88F6XXX Preloaded elf kernel "elf kernel" at 0xc0bf11d8. CPU: Feroceon 88FR131 rev 1 (write-through core) WB enabled EABT branch prediction enabled 16KB/32B 4-way Instruction cache 16KB/32B 4-way write-back-locking-C Data cache real memory = 536870912 (512 MB) Physical memory chunk(s): 00000000 - 0x8fffff, 9437184 bytes (2304 pages) 0xce7000 - 0x1f64bfff, 513167360 bytes (125285 pages) avail memory = 520372224 (496 MB) SOC: (0x6281:0x02) Marvell 88F6281 rev A0, TClock 200MHz nfslock: pseudo-device mem: null: random: mbus0: on motherboard ic0: at mem 0xf1020200-0xf102023b on mbus0 timer0: at mem 0xf1020300-0xf102032f irq 1 on mbus0 timer0: [FILTER] rtc0: at mem 0xf1010300-0xf1010307 on mbus0 rtc0: registered as a time-of-day clock (resolution 1000000us) gpio0: at mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on mbus0 gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] gpio0: [FILTER] uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 33 on mbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (115740,n,8,1) uart1: <16550 or compatible> at mem 0xf1012100-0xf101211f irq 34 on mbus0 uart1: [FILTER] uart1: fast interrupt ehci0: at mem 0xf1050000-0xf1050fff irq 48,19 on mbus0 ehci0: [FILTER] ehci0: [MPSAFE] ehci0: [ITHREAD] ehci0: 5.24 GL USB-2 workaround enabled usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: on ehci0 mge0: at mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on mbus0 mge0: bpf attached mge0: Ethernet address: 00:50:43:01:a2:5e mge0: Now probing PHY mge0: mii_phy_probe: Starting to probe PHYs: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:31085 ok miibus0: (miibus_probe) is the mii device mge0: (miibus_probe) is the eth device miibus0: Probing phy 0 miibus0: No phy found miibus0: Probing phy 1 miibus0: No phy found miibus0: Probing phy 2 miibus0: No phy found miibus0: Probing phy 3 miibus0: No phy found miibus0: Probing phy 4 miibus0: No phy found miibus0: Probing phy 5 miibus0: No phy found miibus0: Probing phy 6 miibus0: No phy found miibus0: Probing phy 7 miibus0: No phy found miibus0: Probing phy 8 miibus0: found one. Now looking for ID miibus0: Probing phy 9 miibus0: No phy found miibus0: Probing phy a miibus0: No phy found miibus0: Probing phy b miibus0: No phy found miibus0: Probing phy c miibus0: No phy found miibus0: Probing phy d miibus0: No phy found miibus0: Probing phy e miibus0: No phy found miibus0: Probing phy f miibus0: No phy found miibus0: Probing phy 10 miibus0: No phy found miibus0: Probing phy 11 miibus0: No phy found miibus0: Probing phy 12 miibus0: No phy found miibus0: Probing phy 13 miibus0: No phy found miibus0: Probing phy 14 miibus0: No phy found miibus0: Probing phy 15 miibus0: No phy found miibus0: Probing phy 16 miibus0: No phy found miibus0: Probing phy 17 miibus0: No phy found miibus0: Probing phy 18 miibus0: No phy found miibus0: Probing phy 19 miibus0: No phy found miibus0: Probing phy 1a miibus0: No phy found miibus0: Probing phy 1b miibus0: No phy found miibus0: Probing phy 1c miibus0: No phy found miibus0: Probing phy 1d miibus0: No phy found miibus0: Probing phy 1e miibus0: No phy found miibus0: Probing phy 1f miibus0: No phy found miibus0: on mge0 miibus0: miibus_attach e1000phy0: Probing e1000 PHY e1000phy0: Probing e1000 PHY e1000phy0: PHY 8 on miibus0 mge0: Writing 6800 to reg 10 on phy 8 mge0: Writing 70 to reg 14 on phy 8 mge0: Writing 9140 to reg 0 on phy 8 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto mge0: [MPSAFE] mge0: [ITHREAD] mge0: [MPSAFE] mge0: [ITHREAD] mge1: at mem 0xf1076000-0xf1077fff irq 16,17,18,15,46 on mbus0 mge1: bpf attached mge1: Ethernet address: 00:50:43:01:a2:5f mge1: Now probing PHY mge1: mii_phy_probe: Starting to probe PHYs: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:65535 ok miibus1: (miibus_probe) is the mii device mge1: (miibus_probe) is the eth device miibus1: Probing phy 0 miibus1: No phy found miibus1: Probing phy 1 miibus1: No phy found miibus1: Probing phy 2 miibus1: No phy found miibus1: Probing phy 3 miibus1: No phy found miibus1: Probing phy 4 miibus1: No phy found miibus1: Probing phy 5 miibus1: No phy found miibus1: Probing phy 6 miibus1: No phy found miibus1: Probing phy 7 miibus1: No phy found miibus1: Probing phy 8 miibus1: No phy found miibus1: Probing phy 9 miibus1: found one. Now looking for ID miibus1: Probing phy a miibus1: No phy found miibus1: Probing phy b miibus1: No phy found miibus1: Probing phy c miibus1: No phy found miibus1: Probing phy d miibus1: No phy found miibus1: Probing phy e miibus1: No phy found miibus1: Probing phy f miibus1: No phy found miibus1: Probing phy 10 miibus1: No phy found miibus1: Probing phy 11 miibus1: No phy found miibus1: Probing phy 12 miibus1: No phy found miibus1: Probing phy 13 miibus1: No phy found miibus1: Probing phy 14 miibus1: No phy found miibus1: Probing phy 15 miibus1: No phy found miibus1: Probing phy 16 miibus1: No phy found miibus1: Probing phy 17 miibus1: No phy found miibus1: Probing phy 18 miibus1: No phy found miibus1: Probing phy 19 miibus1: No phy found miibus1: Probing phy 1a miibus1: No phy found miibus1: Probing phy 1b miibus1: No phy found miibus1: Probing phy 1c miibus1: No phy found miibus1: Probing phy 1d miibus1: No phy found miibus1: Probing phy 1e miibus1: No phy found miibus1: Probing phy 1f miibus1: No phy found miibus1: on mge1 miibus1: miibus_attach e1000phy1: Probing e1000 PHY ukphy0: PHY 9 on miibus1 ukphy0: OUI 0x3fffff, model 0x003f, rev. 15 mge1: Writing 8400 to reg 0 on phy 9 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 100baseT4, 1000baseSX, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX, auto mge1: [MPSAFE] mge1: [ITHREAD] mge1: [MPSAFE] mge1: [ITHREAD] twsi0: at mem 0xf1011000-0xf101101f on mbus0 iicbus0: on twsi0 iic0: on iicbus0 sata0: at mem 0xf1080000-0xf1085fff irq 21 on mbus0 sata0: [MPSAFE] sata0: [ITHREAD] ata0: on sata0 ata0: hardware reset ... ata0: SATA connect timeout status=00000000 ata0: [MPSAFE] ata0: [ITHREAD] ata1: on sata0 ata1: hardware reset ... ata1: SATA connect timeout status=00000000 ata1: [MPSAFE] ata1: [ITHREAD] pcib0: at mem 0xf1040000-0xf1041fff on mbus0 pcib0: PCI IO/Memory space exhausted device_attach: pcib0 attach returned 12 Timecounter "CPU Timer" frequency 200000000 Hz quality 1000 Timecounters tick every 10.000 msec lo0: bpf attached ata0: Identifying devices: 00000000 ata0: New devices: 00000000 ata1: Identifying devices: 00000000 ata1: New devices: 00000000 usbus0: 480Mbps High Speed USB v2.0 bootpc_init: wired to interface 'mge0' Sending DHCP Discover packet from interface mge0 (00:50:43:01:a2:5e) ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered mge0: link state changed to UP ugen0.2: at usbus0 uhub1: on usbus0 uhub1: 7 ports with 7 removable, self powered DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 Received DHCP Offer packet on mge0 from 172.16.102.81 (accepted) (no root path) Sending DHCP Request packet from interface mge0 (00:50:43:01:a2:5e) DHCP/BOOTP timeout for server 255.255.255.255 Received DHCP Ack packet on mge0 from 172.16.102.81 (accepted) (got root path) mge0 at 172.16.102.69 server 172.16.102.81 boot file kernel.bin subnet mask 255.255.255.0 router 172.16.102.3 rootfs 172.16.102.81:/nfsroot/arm-8-le hostname open-rd1 Adjusted interface mge0 ifa_del_loopback_route: deletion failed Trying to mount root from nfs: NFS ROOT: 172.16.102.81:/nfsroot/arm-8-le ct_to_ts([2009-11-05 14:55:27]) = 1257432927.000000000 ct_to_ts([2009-11-05 14:55:27]) = 1257432927.000000000 start_init: trying /sbin/init Enter full pathname of shell or RETURN for /bin/sh: # exit Interface mge0 IP-Address 172.16.102.69 Broadcast 172.16.102.255 Entropy harvesting: interrupts ethernet point_to_point kickstart. Fast boot: skipping disk checks. mount_nfs: can't update /var/db/mounttab for 172.16.102.81:/nfsroot/arm-8-le Starting Network: lo0. route: writing to routing socket: File exists add net default: gateway 172.16.102.3: route already in table devd: cannot open pid file: Operation not supported Mounting NFS file systems:mount_nfs: can't update /var/db/mounttab for 172.16.102.81:/nfsvar/arm-8-le . syslogd: cannot open pid file: Operation not supported Recovering vi editor sessions:. Starting local daemons:rc.local . Nov 5 14:55:45 open-rd1 sm-mta[820]: nA5EtjYr000820: SYSERR(root): hash map "Alias0": missing map file /etc/mail/aliases.db: No such file or directory Nov 5 14:55:45 open-rd1 sm-mta[829]: nA5EtjYr000820: SYSERR(root): hash map "Alias0": missing map file /etc/mail/aliases.db: No such file or directory Thu Nov 5 14:55:46 UTC 2009 FreeBSD/arm (open-rd1) (ttyu0) login: ----------------------------------snip--------------------------------------------------- Am Donnerstag 05 November 2009 15:16:08 schrieb Rafal Jaworowski: > > On 2009-11-05, at 14:23, Matthias Reyelt wrote: > > >> Before trying to identify PHY problems, can you share all your > >> changes (a diff)? So far all Kirkwood based boards we support had > >> only > >> a single active Ethernet port, so the Kirkwood platform config only > > Yes, the OpenRD client is rather new, and the board contains an > > awful lot of > > interfaces (and no fan), really great. > > Can you eye inspect the PHY chip connected to the second MAC, is it > E1116 as well? > > BTW: if you managed to get OpenRD to boot, please send a full booting > log for reference. > > >> accounted for a single MAC, have you altered the obio_devices[] in > >> particular? > > I did add the second interface to the obio_devices[], and adjusted > > the defines > > according to the header files as good as I knew (although I have > > been aware > > that there would be a reason for the missing interface :-) > > Your diff looks fine, however there is missing at least one important > piece: decode window for the second ETH is not being configured. Try > adding the change below. > > Rafal > > diff --git a/sys/arm/mv/common.c b/sys/arm/mv/common.c > index 76758be..b60d0ac 100644 > --- a/sys/arm/mv/common.c > +++ b/sys/arm/mv/common.c > @@ -204,7 +204,8 @@ soc_decode_win(void) > decode_win_cpu_setup(); > decode_win_usb_setup(); > decode_win_eth_setup(MV_ETH0_BASE); > - if (dev == MV_DEV_MV78100 || dev == MV_DEV_MV78100_Z0) > + if (dev == MV_DEV_88F6281 || > + dev == MV_DEV_MV78100 || dev == MV_DEV_MV78100_Z0) > decode_win_eth_setup(MV_ETH1_BASE); > if (dev == MV_DEV_88F6281 || dev == MV_DEV_MV78100 || > dev == MV_DEV_MV78100_Z0) > > From owner-freebsd-arm@FreeBSD.ORG Thu Nov 5 20:12:31 2009 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 577F41065670 for ; Thu, 5 Nov 2009 20:12:31 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id E49E28FC18 for ; Thu, 5 Nov 2009 20:12:30 +0000 (UTC) Received: by ewy18 with SMTP id 18so167155ewy.43 for ; Thu, 05 Nov 2009 12:12:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=9es1UsqhY1u5E2gcziknU5RYGSu3uMeoiu3TnaBrSn0=; b=bZjxFun0Wtd3MzdsIKOXJzf/YNA9wFdzwKtAkTyDfBy6eivKJmfLT9ujqJ7/a7TTdw D6CH7XIiX9SRnBrLoFIexL3bN8WpyAinBi2AcFMRXBtLzHA9Rrzjo5WZskdId0V1ztVD ZmgKiQPHIMqUDFGvdHa/qJDnpFC4iKh0mN3IM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xeCogrCvnNNAXmYVC4r5hDmLeC7Lh2b+7w5jSWREOS7owlZwtPsyEoqJSygQlF2lUl RaG9Ys5PhBB38yEmXO0Z/W/+8c5LTxVPmUOO9RsOjaXIBKeCv2g5xSl/gDhPy6lU9Dk0 6Qryk7znq9FM2E7nN/7m0kDoeneShz9Z3IpZE= MIME-Version: 1.0 Received: by 10.213.23.81 with SMTP id q17mr592657ebb.93.1257451949922; Thu, 05 Nov 2009 12:12:29 -0800 (PST) Date: Thu, 5 Nov 2009 21:12:29 +0100 Message-ID: From: Guillaume Ballet To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Initarm function for the Beagleboard 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, 05 Nov 2009 20:12:31 -0000 Hello list, I have just submitted the first of many files of my port fo FreeBSD the BeagleBoard. This is the initarm function. The cleanup continues and I will submit the rest as soon a possible, but I figured it would be great if I could have some feedback already. Link to the file: http://code.google.com/p/freebsd-bgb/source/browse/trunk/cortexa8_machdep.c For instance, suggestions on how to use DOMAIN_CLIENT instead of DOMAIN_MANAGER on line 265 would be particularly appreciated. Note that this is the backward-compatibility version. I am working on integrating some of the ARMv[67] features, but that will come later. Guillaume From owner-freebsd-arm@FreeBSD.ORG Fri Nov 6 13:36:05 2009 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 E8B3B10656A3 for ; Fri, 6 Nov 2009 13:36:05 +0000 (UTC) (envelope-from Matthias.Reyelt@brunel.de) Received: from mailgate2.arcor-ip.de (mailgate2.arcor-ip.de [145.253.2.48]) by mx1.freebsd.org (Postfix) with ESMTP id 956588FC19 for ; Fri, 6 Nov 2009 13:36:05 +0000 (UTC) Received: from mailer.brunellocal.de (ffmcospub2ffmbrunelfw2lo-cs-nat-mail-server.adm.arcor.net [145.254.28.157]) by mailgate1.cs.arcor.net (Arcor-CN-MailRelay-l-B) with ESMTP id 1798CF9018E; Fri, 6 Nov 2009 14:36:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D12B6454C0; Fri, 6 Nov 2009 14:36:03 +0100 (CET) X-Virus-Scanned: amavisd-new at brunellocal.de Received: from mailer.brunellocal.de ([127.0.0.1]) by localhost (mailer.brunellocal.de [127.0.0.1]) (amavisd-new, port 10024) with SMTP id HQ460qujlJQu; Fri, 6 Nov 2009 14:36:03 +0100 (CET) Received: from mail-hv.brunel.de (mail-hv.brunellocal.de [192.168.1.234]) by mailer.brunellocal.de (Postfix) with ESMTP id AAD5445020; Fri, 6 Nov 2009 14:36:03 +0100 (CET) Received: from bcslx10.bcs.brunel.local ([172.16.101.231]) by 935s02su.brunellocal.de (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009110614355869-45294 ; Fri, 6 Nov 2009 14:35:58 +0100 Received: from bcspc139.bcs.brunel.local (bcspc139.bcs.brunel.local [172.16.101.98]) by bcslx10.bcs.brunel.local (Postfix) with ESMTP id 1C7DCFD8B2; Fri, 6 Nov 2009 14:35:59 +0100 (CET) From: Matthias Reyelt Organization: Brunel Communications To: Rafal Jaworowski Date: Fri, 6 Nov 2009 14:35:55 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200911040956.09749.Matthias.Reyelt@brunel.de> <200911051623.56583.Matthias.Reyelt@brunel.de> In-Reply-To: <200911051623.56583.Matthias.Reyelt@brunel.de> MIME-Version: 1.0 Message-Id: <200911061435.57673.Matthias.Reyelt@brunel.de> X-MIMETrack: Itemize by SMTP Server on HUB93501/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 06.11.2009 02:35:58 PM, Serialize by Router on HUB10149/Brunel/De(Release 7.0.3FP1|February 24, 2008) at 06.11.2009 02:36:03 PM, Serialize complete at 06.11.2009 02:36:03 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Cc: freebsd-arm@freebsd.org Subject: Re: Marvell Kirkwood 6281 mge1 interface 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: Fri, 06 Nov 2009 13:36:06 -0000 Hi, I have built a linux kernel with some debug code and found out that the base address for the second phy is not at 0x09 but at 0x18. Actually it's in the config files, but I wasn't looking for an extra configuration for this board before. I think this would require a patch to mge_miibus_readreg(), because it's a different mapping. Is that correct? I will do a quick patch on monday to test it. Are there other files that have to be patched, Rafal? Matthias From owner-freebsd-arm@FreeBSD.ORG Fri Nov 6 20:05:58 2009 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 9E276106568B for ; Fri, 6 Nov 2009 20:05:58 +0000 (UTC) (envelope-from c2itbounce@telkomsa.net) Received: from hdavidsonhome.org (hdavidsonhome.org [111.67.199.56]) by mx1.freebsd.org (Postfix) with ESMTP id C46BC8FC23 for ; Fri, 6 Nov 2009 20:05:55 +0000 (UTC) Received: from WWW-46B4E803B79 ([111.67.199.56]) by hdavidsonhome.org with MailEnable ESMTP; Fri, 6 Nov 2009 12:05:52 -0800 From: C2IT Computer Hardware To: Message-Id: <20091106120552.118049343@telkomsa.net> Date: Fri, 6 Nov 2009 12:05:52 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: New Arrival of REFURBISHED and NEW Computers & Laptops X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sales@c2it-hardware.co.za List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 20:05:58 -0000