Return-Path: Received: from mail-gh0-f171.google.com (mail-gh0-f171.google.com [209.85.160.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B4B30E006D6 for ; Thu, 21 Mar 2013 20:18:17 -0700 (PDT) Received: by mail-gh0-f171.google.com with SMTP id r17so50178ghr.16 for ; Thu, 21 Mar 2013 20:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=LqRXgc1/D5Up92DJYVyHhsnLfiKwmSyYupi7He1kZ8I=; b=t2TUC6JS8LBqFFYsuprp6QjzGza9rkEgSSWfJSOGz/1LunJ7Hdop/bzPqxFpGxD58j 5UY6zcZsgJA8S1E3RHrRVJhIQ/FIq5t+WyF6HlebTiYXkf1PHpdmVKErFT5y/G4KmQrr pmfi27w9wGKuk6+D42Ty+grhusZPdwUYZKdoFUlG5a7Iyv3YB7aPFOTdc+atWa4tv1/6 2BFq5+uGWVC2BhfBO/7ZYef3PBPtW0GZQzNyW4Z3h0ImDF+I9gwjnMkoNsIm/0rc/asd X5VFX1uL20jNjBk9UC1KUBq10FIjnmDRkNLXiPm6QJ441gVnDyX1FVW9lHTyrpLW7IYn acLw== X-Received: by 10.236.189.228 with SMTP id c64mr134116yhn.67.1363922297179; Thu, 21 Mar 2013 20:18:17 -0700 (PDT) Received: from localhost.localdomain ([75.76.228.60]) by mx.google.com with ESMTPS id y1sm882311yha.17.2013.03.21.20.18.16 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 20:18:16 -0700 (PDT) From: John Weber To: meta-freescale@yoctoproject.org Date: Thu, 21 Mar 2013 22:18:11 -0500 Message-Id: <1363922292-31197-2-git-send-email-rjohnweber@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1363922292-31197-1-git-send-email-rjohnweber@gmail.com> References: <1363922292-31197-1-git-send-email-rjohnweber@gmail.com> MIME-Version: 1.0 Subject: [meta-fsl-arm-extra][PATCH v3 1/2] broadcom-nvram-config: add nvram file support X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Mar 2013 03:18:17 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a recipe to provide an nvram file required by certain Broadcom wifi chips. This file is machine-specific. Files are installed at /lib/firmware/brcm. Signed-off-by: John Weber --- .../broadcom-nvram-config/broadcom-nvram-config.bb | 28 ++++++++ .../files/LICENCE.broadcom_bcm43xx | 65 ++++++++++++++++++ .../files/wandboard-dual/nvram.txt | 70 ++++++++++++++++++++ 3 files changed, 163 insertions(+) create mode 100644 recipes-bsp/broadcom-nvram-config/broadcom-nvram-config.bb create mode 100644 recipes-bsp/broadcom-nvram-config/files/LICENCE.broadcom_bcm43xx create mode 100644 recipes-bsp/broadcom-nvram-config/files/wandboard-dual/nvram.txt diff --git a/recipes-bsp/broadcom-nvram-config/broadcom-nvram-config.bb b/recipes-bsp/broadcom-nvram-config/broadcom-nvram-config.bb new file mode 100644 index 0000000..b0e440c --- /dev/null +++ b/recipes-bsp/broadcom-nvram-config/broadcom-nvram-config.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "Nvram support for Broadcom wifi chips" +SECTION = "kernel" + +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" + +SRC_URI = " \ + file://nvram.txt \ + file://LICENCE.broadcom_bcm43xx \ +" + +S="${WORKDIR}" + +do_install() { + install -d ${D}/lib/firmware/brcm + + cp -r ${WORKDIR}/nvram.txt \ + ${D}/lib/firmware/brcm/brcmfmac-sdio.txt +} + +FILES_${PN} = " \ + /lib/firmware/brcm/brcmfmac-sdio.txt \ +" +BROADCOM_FIRMWARE = "INVALID" +BROADCOM_FIRMWARE_wandboard-dual = "bcm4329" + +RDEPENDS_${PN} = "linux-firmware-${BROADCOM_FIRMWARE}" + diff --git a/recipes-bsp/broadcom-nvram-config/files/LICENCE.broadcom_bcm43xx b/recipes-bsp/broadcom-nvram-config/files/LICENCE.broadcom_bcm43xx new file mode 100644 index 0000000..ff26fdd --- /dev/null +++ b/recipes-bsp/broadcom-nvram-config/files/LICENCE.broadcom_bcm43xx @@ -0,0 +1,65 @@ +SOFTWARE LICENSE AGREEMENT + +The accompanying software in binary code form (“Software”), is licensed to you, +or, if you are accepting on behalf of an entity, the entity and its affiliates +exercising rights hereunder (“Licensee”) subject to the terms of this software +license agreement (“Agreement”), unless Licensee and Broadcom Corporation +(“Broadcom”) execute a separate written software license agreement governing +use of the Software. ANY USE, REPRODUCTION, OR DISTRIBUTION OF THE SOFTWARE +CONSTITUTES LICENSEE’S ACCEPTANCE OF THIS AGREEMENT. + +1. License. Subject to the terms and conditions of this Agreement, +Broadcom hereby grants to Licensee a limited, non-exclusive, non-transferable, +royalty-free license: (i) to use and integrate the Software with any other +software; and (ii) to reproduce and distribute the Software complete, +unmodified, and as provided by Broadcom, solely for use with Broadcom +proprietary integrated circuit product(s) sold by Broadcom with which the +Software was designed to be used, or their successors. + +2. Restrictions. Licensee shall distribute Software with a copy of this +Agreement. Licensee shall not remove, efface or obscure any copyright or +trademark notices from the Software. Reproductions of the Broadcom copyright +notice shall be included with each copy of the Software, except where such +Software is embedded in a manner not readily accessible to the end user. +Licensee shall not: (i) use, license, sell or otherwise distribute the Software +except as provided in this Agreement; (ii) attempt to modify in any way, +reverse engineer, decompile or disassemble any portion of the Software; or +(iii) use the Software or other material in violation of any applicable law or +regulation, including but not limited to any regulatory agency. This Agreement +shall automatically terminate upon Licensee’s failure to comply with any of the +terms of this Agreement. In such event, Licensee will destroy all copies of the +Software and its component parts. + +3. Ownership. The Software is licensed and not sold. Title to and +ownership of the Software, including all intellectual property rights thereto, +and any portion thereof remain with Broadcom or its licensors. Licensee hereby +covenants that it will not assert any claim that the Software created by or for +Broadcom infringe any intellectual property right owned or controlled by +Licensee. + +4. Disclaimer. THE SOFTWARE IS OFFERED “AS IS,” AND BROADCOM PROVIDES AND +GRANTS AND LICENSEE RECEIVES NO SUPPORT AND NO WARRANTIES OF ANY KIND, EXPRESS +OR IMPLIED, BY STATUTE, COMMUNICATION OR CONDUCT WITH LICENSEE, OR OTHERWISE. +BROADCOM SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A SPECIFIC PURPOSE, OR NONINFRINGEMENT CONCERNING THE SOFTWARE OR +ANY UPGRADES TO OR DOCUMENTATION FOR THE SOFTWARE. WITHOUT LIMITATION OF THE +ABOVE, BROADCOM GRANTS NO WARRANTY THAT THE SOFTWARE IS ERROR-FREE OR WILL +OPERATE WITHOUT INTERRUPTION, AND GRANTS NO WARRANTY REGARDING ITS USE OR THE +RESULTS THEREFROM INCLUDING, WITHOUT LIMITATION, ITS CORRECTNESS, ACCURACY, OR +RELIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM +OR ANY OF ITS LICENSORS HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER FOR BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR +OTHERWISE, ARISING OUT OF THIS AGREEMENT OR USE, REPRODUCTION, OR DISTRIBUTION +OF THE SOFTWARE, INCLUDING BUT NOT LIMITED TO LOSS OF DATA AND LOSS OF PROFITS, +EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THESE +LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY +LIMITED REMEDY. + +5. Export Laws. LICENSEE UNDERSTANDS AND AGREES THAT THE SOFTWARE IS +SUBJECT TO UNITED STATES AND OTHER APPLICABLE EXPORT-RELATED LAWS AND +REGULATIONS AND THAT LICENSEE MAY NOT EXPORT, RE-EXPORT OR TRANSFER THE +SOFTWARE OR ANY DIRECT PRODUCT OF THE SOFTWARE EXCEPT AS PERMITTED UNDER THOSE +LAWS. WITHOUT LIMITING THE FOREGOING, EXPORT, RE-EXPORT, OR TRANSFER OF THE +SOFTWARE TO CUBA, IRAN, NORTH KOREA, SUDAN, AND SYRIA IS PROHIBITED. + diff --git a/recipes-bsp/broadcom-nvram-config/files/wandboard-dual/nvram.txt b/recipes-bsp/broadcom-nvram-config/files/wandboard-dual/nvram.txt new file mode 100644 index 0000000..53e4bba --- /dev/null +++ b/recipes-bsp/broadcom-nvram-config/files/wandboard-dual/nvram.txt @@ -0,0 +1,70 @@ +# bcm4329 NVRAM file for Wandboard Dual +# $Copyright (C) 2008 Broadcom Corporation$ +# $id$ + +sromrev=3 +vendid=0x14e4 +devid=0x432f +boardtype=0x53e + +boardrev=0x41 + +#boardflags=0x1200 +boardflags=0x200 + +# Specify the xtalfreq if it is otherthan 38.4MHz +xtalfreq=37400 + +aa2g=3 +aa5g=0 + +ag0=255 +#tri2g=0x64 + +# 11g paparams +pa0b0=5542,5542,5542 +pa0b1=64244,64244,64244 +pa0b2=65202,65202,65202 + +pa0itssit=62 +pa0maxpwr=74 +opo=0 +mcs2gpo0=0x6666 +mcs2gpo1=0x6666 + +# 11g rssi params +rssismf2g=0xa,0xa,0xa +rssismc2g=0xb,0xb,0xb +rssisav2g=0x3,0x3,0x3 +bxa2g=0 + +# country code +ccode=ALL +cctl=0x0 +cckdigfilttype=0 +ofdmdigfilttype=1 + +rxpo2g=0 + +boardnum=1 +macaddr=00:90:4c:c5:00:34 + +# xtal pu and pd time control variable +# pu time is driver default (0x1501) +#r13t=0x1501 + +####### +nocrc=1 + +#for mfgc +otpimagesize=182 + +# sdio extra configs +hwhdr=0x05ffff031030031003100000 + +#This generates empty F1, F2 and F3 tuple chains, and may be used if the host SDIO stack does not require the standard tuples. +#RAW1=80 02 fe ff + +#This includes the standard FUNCID and FUNCE tuples in the F1, F2, F3 and common CIS. +RAW1=80 32 fe 21 02 0c 00 22 2a 01 01 00 00 c5 0 e6 00 00 00 00 00 40 00 00 ff ff 80 00 00 00 00 00 00 00 00 00 00 c8 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 20 04 D0 2 29 43 21 02 0c 00 22 04 00 20 00 5A +nvramver=4.218.214.0 -- 1.7.9.5