From owner-freebsd-arm@FreeBSD.ORG Sun Oct 16 07:41:08 2011 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 41FA4106564A for ; Sun, 16 Oct 2011 07:41:08 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by mx1.freebsd.org (Postfix) with ESMTP id B0A5F8FC14 for ; Sun, 16 Oct 2011 07:41:07 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcBAB6Dmk7L1iRx/2dsb2JhbAAMNqZqgQiDZwEBAQQ4QAEQCw0LCRYPCQMCAQIBRRMBBwEBtACJAoJPhTkEk3qFSIwi X-IronPort-AV: E=Sophos;i="4.69,353,1315152000"; d="scan'208";a="771899642" Received: from unknown (HELO [192.168.15.65]) ([203.214.36.113]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 16 Oct 2011 15:13:09 +0800 Message-ID: <4E9A7602.6070806@swin.edu.au> Date: Sun, 16 Oct 2011 17:13:22 +1100 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 CC: freebsd-arm@freebsd.org References: <4E782686.6070500@smartfruit.com> <4E98E1CF.2090507@smartfruit.com> <201110150739.35707.freebsd-arm@dino.sk> In-Reply-To: <201110150739.35707.freebsd-arm@dino.sk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Q about Ethernet - GlobalScale DreamPlug + FreeBSD 8.2 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 07:41:08 -0000 On 15/10/11 16:39, Milan Obuch wrote: > On Saturday 15 October 2011 03:28:47 Naoyuki Tai wrote: >> Hi, >> >> I just realized that I get only mge0, one of two ethernet >> ports. >> >> With the linux that came with DreamPlug, both ethernet >> ports show up as eth0 and eth1. >> >> Is there any way to get the mge1 get going? >> > > Hi, > > it looks like you are trying to solve similar issue as I did some time ago... > look in this list archives for message from me sent 2010-10-27 22:59 with > subject 'Re: Guruplug Server Plus working to some extent... [mge1 problem > SOLVED]' with some patches attached. I think at least guruplugplus.dts could > be useful. Basically, SoC used in Guruplug Server Plus and, I think, DreamPlug > uses the same or at least similar, multiplexes some functions on IO pins and > so some initialisation is important. > > Regards, > Milan > I've had the smae problem, and it's not just a multiplexing problem, but also in the dreamplug.dts file send by Matthieu, he uses the wrong address for mdio1 and enet1: 74000 instead of 76000 (although the comments suggest he suspected the problem already :-) ) The two necessary bits in corected version make mge1 work: mdio1: mdio@76000 { /* 76000? */ device_type = "mdio"; compatible = "mrvl,mdio"; reg = <76000 20>; #address-cells = <1>; #size-cells = <0>; phy1: ethernet-phy@0 { reg = <1>; device_type = "ethernet-phy"; }; }; enet1: ethernet@76000 { /* 76000? */ #address-cells = <1>; #size-cells = <1>; model = "V2"; compatible = "mrvl,ge"; reg = <0x76000 0x2000>; ranges = <0x0 0x74000 0x2000>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <16 17 18 15 47>; interrupt-parent = <&PIC>; phy-handle = <&phy1>; }; Additionally, if you need the pins multiplexed differently, there is an openrd-cl.dts found in this thread, (included in sdio_patch.txt), which also adds sdio support to HEAD. I've applied the patch without problems to 9-BETA3. There are two issues though: the included openrd-cl.dts adds pci support which causes a kernel panic, and the sdio driver actually doesn't seem to work. Didn't have enough time to investigate that yet. Mat