From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DD1C9E0147F for ; Mon, 18 Mar 2013 13:25:53 -0700 (PDT) Received: by mail-qa0-f41.google.com with SMTP id bs12so1962262qab.14 for ; Mon, 18 Mar 2013 13:25:53 -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=8Gs4WrUMo/fa4Zv5ckZgF7RwaWUElG6DHKlua0LplQc=; b=Jfe3jhvkKAE5nXAwQH0lkJZuIqcWl621/6brAROaaRIlGkbkTlVSGuKD2cVydVueV9 zeQMpw/fWrzQtpBxIwD0cHAE/JymPrYYUKKrtHd6sWvsOTIExc3aU12P9RbV7n5ROL8y VkXJroqeWiKdOABr+knF9aM53DShBuB/5kEvGQwkhJjAohPRMBSMFywnmIyyz0ZHSNH1 WfAQVfG0wnOLGmfzNlGfYIbxM1iwL06BttlC0dNFqE2yAXiHUMLk+GCn6KModH7MA9OE GW7uc/ZUQ/pP/EVNzql9Nx+llwyOo5o4D4SDa62TgRkNl/7iS8AQglhNUv4UL+Nez44/ I56Q== X-Received: by 10.224.183.197 with SMTP id ch5mr22454615qab.27.1363638353388; Mon, 18 Mar 2013 13:25:53 -0700 (PDT) Received: from localhost.localdomain ([75.76.228.60]) by mx.google.com with ESMTPS id az3sm34754411qeb.7.2013.03.18.13.25.52 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 13:25:53 -0700 (PDT) From: John Weber To: meta-freescale@yoctoproject.org Date: Mon, 18 Mar 2013 15:25:30 -0500 Message-Id: <1363638331-4603-5-git-send-email-rjohnweber@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1363638331-4603-1-git-send-email-rjohnweber@gmail.com> References: <1363638331-4603-1-git-send-email-rjohnweber@gmail.com> MIME-Version: 1.0 Subject: [meta-fsl-arm-extra][PATCH v2 4/5] wandboard-wifi-support: add nvram file and create firmware links 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: Mon, 18 Mar 2013 20:25:54 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This recipe provides the nvram file required by the BCM4329 on Wandboard Dual. It also creates links named brcmfrac-sdio.bin to the firmware binary brcmfmac4329.bin (provided by linux-firmware-bcm4329) and creates a link named brcmfmac-sdio.txt to the provided nvram.txt file for Wandboard All files are installed on the rootfs at /lib/firmware/brcm Signed-off-by: John Weber --- .../files/LICENCE.broadcom_bcm43xx | 65 ++++++++++++++++++ .../files/wandboard-brcmfmac-nvram.txt | 70 ++++++++++++++++++++ .../wandboard-wifi-support.bb | 41 ++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 recipes-bsp/wandboard-wifi-support/files/LICENCE.broadcom_bcm43xx create mode 100644 recipes-bsp/wandboard-wifi-support/files/wandboard-brcmfmac-nvram.txt create mode 100644 recipes-bsp/wandboard-wifi-support/wandboard-wifi-support.bb diff --git a/recipes-bsp/wandboard-wifi-support/files/LICENCE.broadcom_bcm43xx b/recipes-bsp/wandboard-wifi-support/files/LICENCE.broadcom_bcm43xx new file mode 100644 index 0000000..ff26fdd --- /dev/null +++ b/recipes-bsp/wandboard-wifi-support/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/wandboard-wifi-support/files/wandboard-brcmfmac-nvram.txt b/recipes-bsp/wandboard-wifi-support/files/wandboard-brcmfmac-nvram.txt new file mode 100644 index 0000000..53e4bba --- /dev/null +++ b/recipes-bsp/wandboard-wifi-support/files/wandboard-brcmfmac-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 diff --git a/recipes-bsp/wandboard-wifi-support/wandboard-wifi-support.bb b/recipes-bsp/wandboard-wifi-support/wandboard-wifi-support.bb new file mode 100644 index 0000000..8b8bfbb --- /dev/null +++ b/recipes-bsp/wandboard-wifi-support/wandboard-wifi-support.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Firmware support for on-board wifi on Wandboard dual" +SECTION = "kernel" + +# Notes: +# Provides nvram file for the BCM4329 on Wandboard Dual. Depends on +# update-alternatives to create links with correct filenames. + +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" + +RDEPENDS_${PN} = "linux-firmware-bcm4329" + +inherit update-alternatives + +SRC_URI = " \ + file://wandboard-brcmfmac-nvram.txt \ + file://LICENCE.broadcom_bcm43xx \ +" + +S = "${WORKDIR}" + +do_install() { + # Broadcom BCM4329 SDIO nvram file for Wandboard Dual + install -d ${D}/lib/firmware/brcm + + cp -r ${WORKDIR}/wandboard-brcmfmac-nvram.txt \ + ${D}/lib/firmware/brcm/ + ln -sf ./wandboard-brcmfmac-nvram.txt \ + ${D}/lib/firmware/brcm/brcmfmac-sdio.txt + ln -sf ./brcmfmac4329.bin \ + ${D}/lib/firmware/brcm/brcmfmac-sdio.bin + +} + +FILES_${PN} = " \ + /lib/firmware/brcm/wandboard-brcmfmac-nvram.txt \ + /lib/firmware/brcm/brcmfmac-sdio.txt \ + /lib/firmware/brcm/brcmfmac-sdio.bin \ +" + +COMPATIBLE_MACHINE = "(wandboard-dual)" -- 1.7.9.5