From owner-freebsd-mips@FreeBSD.ORG Fri Feb 14 09:27:39 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 693469AF; Fri, 14 Feb 2014 09:27:39 +0000 (UTC) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F3C6D1287; Fri, 14 Feb 2014 09:27:38 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id im17so8967701vcb.5 for ; Fri, 14 Feb 2014 01:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=A7c5PXyrrrt/sv5UIlDdtExIMSIrYvLzuRsv69yccws=; b=K3gJyrZ7//cZcSFGknn1aO+OgqeyMVybR0n5dCKI5ZAEwoSSk4Oo4Ti8xtF+wuYycX ofFVNbv8svTEdTNbQAADDXEXkOVXDFTjZhGIGQOdMe5CqbWI+B7H8BVwelAIiPbO//+p Re2HCESEQjifFlfaIO8DXUrJczecAYSyx7tqbAp6fPdLceFsnVNafiu8Fnv3nDNJ4D+y nYpaXV0TJdiQaCBT3rdcf1I6ZnYGpI5oFcyd4kDbFn+VvOg+Z/cVQxDM9hDcHgHhBTOj UHoYtbZfzLuSsoS4kzsZ8Jn5N/6cgrUY2eWxnqgZoCR7mtECjFgRYR7DEa1Xv6OcYaZK Stqg== MIME-Version: 1.0 X-Received: by 10.52.247.231 with SMTP id yh7mr340239vdc.34.1392370057756; Fri, 14 Feb 2014 01:27:37 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.113.199 with HTTP; Fri, 14 Feb 2014 01:27:37 -0800 (PST) In-Reply-To: <201402140525.s1E5PFSq056154@svn.freebsd.org> References: <201402140525.s1E5PFSq056154@svn.freebsd.org> Date: Fri, 14 Feb 2014 01:27:37 -0800 X-Google-Sender-Auth: 8g3fmqiewpEK_Kg5slXwG7DLCMI Message-ID: Subject: Fwd: svn commit: r261871 - head/sys/mips/conf From: Adrian Chadd To: "freebsd-wireless@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 09:27:39 -0000 sorry for the cross-posting. So, the basic wifi bits are now probing, attaching and (for some values of work) working. There's still stuck beacons at interface up time that I need to diagnose in case I really am gating the beacon queue incorrectly. But, boards like the D-Link DIR-825 rev C1 which have an AR9344 and an external AR9380 should now work. I'll sort out USB tomorrow, then I'll move onto the external switch support and audio support. Please let me know if you have further success with any AR9344 boards. There's a lot of cheap AR934x stuff out there now which has 128MByte or more RAM. (I think the SoC supports up to 256MByte of physical RAM.) -a ---------- Forwarded message ---------- From: Adrian Chadd Date: 13 February 2014 21:25 Subject: svn commit: r261871 - head/sys/mips/conf To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Fri Feb 14 05:25:15 2014 New Revision: 261871 URL: http://svnweb.freebsd.org/changeset/base/261871 Log: Enable use of the PCIe connected wifi on the DB120 (AR9344) board. The on-board NIC is an 3x3 AR9380 with 5GHz only. * enable pci code in AR9344_BASE * enable ath_pci and the firmware loading bits in DB120 * add in the relevant hints in DB120.hints to inform the probe/attach code where the PCIe fixup data is for the onboard chip. This is only relevant for a default development board. I also have a DB120 with the on-board PCIe wifi NIC disabled and it's exposed as a real PCIe slot (to put normal PCIe NICs in); the fixup code will need to be disabled to make this work correctly. Tested: * DB120 Modified: head/sys/mips/conf/AR934X_BASE head/sys/mips/conf/AR934X_BASE.hints head/sys/mips/conf/DB120 head/sys/mips/conf/DB120.hints Modified: head/sys/mips/conf/AR934X_BASE ============================================================================== --- head/sys/mips/conf/AR934X_BASE Fri Feb 14 05:22:28 2014 (r261870) +++ head/sys/mips/conf/AR934X_BASE Fri Feb 14 05:25:15 2014 (r261871) @@ -102,6 +102,9 @@ options USB_DEBUG options USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this device ehci +device pci +device ar724x_pci + device scbus device umass device da Modified: head/sys/mips/conf/AR934X_BASE.hints ============================================================================== --- head/sys/mips/conf/AR934X_BASE.hints Fri Feb 14 05:22:28 2014 (r261870) +++ head/sys/mips/conf/AR934X_BASE.hints Fri Feb 14 05:25:15 2014 (r261871) @@ -22,6 +22,10 @@ hint.ehci.0.maddr=0x1b000100 hint.ehci.0.msize=0x00001000 hint.ehci.0.irq=1 +# pci +hint.pcib.0.at="nexus0" +hint.pcib.0.irq=0 + hint.arge.0.at="nexus0" hint.arge.0.maddr=0x19000000 hint.arge.0.msize=0x1000 Modified: head/sys/mips/conf/DB120 ============================================================================== --- head/sys/mips/conf/DB120 Fri Feb 14 05:22:28 2014 (r261870) +++ head/sys/mips/conf/DB120 Fri Feb 14 05:25:15 2014 (r261871) @@ -42,5 +42,11 @@ options GEOM_UNCOMPRESS # Used for the static uboot partition map device geom_map +# yes, this board has a PCI connected atheros device +device ath_pci +options AR71XX_ATH_EEPROM +device firmware # Used by the above +options ATH_EEPROM_FIRMWARE + # Boot off of the rootfs, as defined in the geom_map setup. options ROOTDEVNAME=\"ufs:map/rootfs.uncompress\" Modified: head/sys/mips/conf/DB120.hints ============================================================================== --- head/sys/mips/conf/DB120.hints Fri Feb 14 05:22:28 2014 (r261870) +++ head/sys/mips/conf/DB120.hints Fri Feb 14 05:25:15 2014 (r261871) @@ -60,6 +60,13 @@ hint.ath.0.eepromsize=16384 # host registers on the NIC) and then we teach ath where # to find it. +# ath1 hint - pcie slot 0 +hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 +hint.pcib.0.bus.0.0.0.ath_fixup_size=16384 + +# ath0 - eeprom comes from here +hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" + # flash layout: # # bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART)