pandora-firmware: add DSP blob
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 19 Mar 2013 16:51:56 +0000 (18:51 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 19 Mar 2013 17:11:59 +0000 (19:11 +0200)
..and it's udev rule, as I have no idea where else to put it,
also clean up a bit.

recipes/pandora-system/pandora-firmware.bb
recipes/pandora-system/pandora-firmware/README.txt [changed mode: 0755->0644]
recipes/pandora-system/pandora-firmware/baseimage.dof [new file with mode: 0644]
recipes/pandora-system/pandora-firmware/baseimage.dof.license.txt [new file with mode: 0644]
recipes/pandora-system/pandora-firmware/dspbridge.rules [new file with mode: 0644]

index d6e1cea..17d957a 100755 (executable)
@@ -1,15 +1,17 @@
-DESCRIPTION = "Install binary firmware for Bluetooth and WiFi into the image."
+DESCRIPTION = "Binary firmware blobs for WiFi, Bluetooth and DSP."
+SUMMARY = "This is required to support WiFi, BT and DSP on the Pandora"
 LICENSE = "proprietary-binary"
-RRECOMMENDS_${PN} = "kernel-module-firmware-class"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = " \
         file://brf6300.bin \
         file://wl1251-fw.bin \
-        file://bluetooth-conf \        
+        file://bluetooth-conf \
+        file://baseimage.dof \
+        file://baseimage.dof.license.txt \
+        file://dspbridge.rules \
 "
 
-SUMMARY = "This is required to support the Bluetooth and WiFi modules on the Pandora"
 S = "${WORKDIR}"
 
 do_install() {
@@ -17,10 +19,16 @@ do_install() {
         install -m 0644 ${S}/brf6300.bin ${S}/wl1251-fw.bin ${D}${base_libdir}/firmware/
         install -d ${D}${sysconfdir}/sysconfig
         install -m 0755 ${S}/bluetooth-conf ${D}${sysconfdir}/sysconfig/bluetooth     
+        install -d ${D}${base_libdir}/dsp
+        install -m 0644 ${S}/baseimage.dof ${D}${base_libdir}/dsp/
+        install -m 0644 ${S}/baseimage.dof.license.txt ${D}${base_libdir}/dsp/
+        install -d ${D}${base_libdir}/udev/rules.d/
+        install -m 0755 ${S}/dspbridge.rules ${D}${base_libdir}/udev/rules.d/
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-FILES_${PN} += "${base_libdir}/firmware ${sysconfdir}/sysconfig"
+FILES_${PN} += "${base_libdir}/firmware ${base_libdir}/dsp \
+               ${sysconfdir}/sysconfig ${base_libdir}/udev/rules.d"
 
 COMPATIBLE_MACHINE = "omap3-pandora"
old mode 100755 (executable)
new mode 100644 (file)
index 747d1fa..7d2c3ca
@@ -1,5 +1,8 @@
-Place Pandora firmware files in this dir. to build the pandora-firmware package (needed for WiFi and BT support).\r
+These files will be used to build pandora-firmware package, which will contain:\r
 \r
-brf6300.bin and wl1251-fw.bin\r
+wl1251-fw.bin - WiFi firmware blob\r
+brf6300.bin   - BT firmware blob\r
+baseimage.dof - DSP OS blob, to be used with dspbridge\r
 \r
-This also contains a simple script to help bring up the Bluetooth interface on the system.
\ No newline at end of file
+This also contains a simple script to help bring up the Bluetooth interface on the system,\r
+and dspbridge udev rules.\r
diff --git a/recipes/pandora-system/pandora-firmware/baseimage.dof b/recipes/pandora-system/pandora-firmware/baseimage.dof
new file mode 100644 (file)
index 0000000..9da5d97
Binary files /dev/null and b/recipes/pandora-system/pandora-firmware/baseimage.dof differ
diff --git a/recipes/pandora-system/pandora-firmware/baseimage.dof.license.txt b/recipes/pandora-system/pandora-firmware/baseimage.dof.license.txt
new file mode 100644 (file)
index 0000000..25fc54d
--- /dev/null
@@ -0,0 +1,42 @@
+Texas Instruments Incorporated\r
+Technology and Software Publicly Available\r
+Software (Object Code) License Agreement\r
+\r
+IMPORTANT \96 PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY. THIS IS A LEGALLY BINDING\r
+AGREEMENT. DO NOT DOWNLOAD THE LICENSED MATERIALS UNLESS: (1) YOU ARE AUTHORIZED TO ACCEPT\r
+AND AGREE TO THE TERMS OF THIS LICENSE AGREEMENT AND (2) YOU INTEND TO ENTER INTO AND TO BE\r
+BOUND BY THE TERMS OF THIS AGREEMENT.\r
+\r
+This Software License Agreement (\93Agreement\94) is a legal agreement between you (either an individual or entity) and Texas Instruments Incorporated (\93TI\94), 12500 TI Boulevard, Dallas, Texas 75243. The \93Licensed Materials\94 subject to this Agreement include, in whole or in part, the software programs that accompany this Agreement and any \93on-line\94 or electronic documentation associated with these programs. By installing, copying or otherwise using the Licensed Materials you agree to abide by the terms of this Agreement. If you choose not to accept or agree with these terms, do not\r
+download or install the Licensed Materials.\r
+\r
+NOTE: The Licensed Materials may be bundled with software identified as being licensed under open source licenses (in whole or in part, the \93Open Source Materials\94). In such cases, the open source licenses under which such Open Source Materials are licensed to you are located in the header files, or text or similar files accompanying such Open Source Materials. Your use of the Open Source Materials is subject to the separate licensing terms applicable to such Open Source Materials. For clarification, this Agreement does not limit your rights under, or grant you rights that supersede, the license terms of any applicable Open Source Materials license agreement.\r
+\r
+1. Object Code License. TI hereby grants to you a limited, non-exclusive license to reproduce and use the Licensed Materials provided to you in object code format and to distribute an unlimited number of object or executable copies of such Licensed Materials, provided that such object or executable copies are used solely and exclusively on devices manufactured by or for TI.\r
+\r
+2. Termination. This license is effective until terminated. Without prejudice to any other rights, TI may terminate your right to use the Licensed Materials under this Agreement if you fail to comply with the terms of this Agreement. You may also terminate this license if you choose not to accept or agree with its terms. Upon termination whether by You or TI, you shall destroy all copies of the Licensed Materials, including all portions and derivatives thereof.\r
+\r
+3. Intellectual Property Rights. The Licensed Materials being provided to you hereunder are being made publicly available by TI, even though they contain copyrighted material of TI and its licensors, if applicable. In no event may you alter, remove or destroy any copyright notice included in the Licensed Materials. To the extent that any of the Licensed Materials are provided in binary or object code only, you may not unlock, decompile, reverse engineer, disassemble or otherwise translate such binary or object code to human-perceivable form. The source code of such reverse engineered code may contain TI trade secret and other proprietary information. TI reserves all rights not specifically granted under this Agreement\r
+\r
+ 4. Warranties and Limitations. THE LICENSED MATERIALS ARE PROVIDED \93AS IS\94. TI MAKES NO WARRANTY OR REPRESENTATION, EXPRESS, IMPLIED OR STATUTORY, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTIBILITY, FITNESS FOR A  PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS OF RESPONSES, RESULTS AND LACK OF NEGLIGENCE. TI DISCLAIMS ANY WARRANTY OF TITLE, QUIET ENJOYMENT, QUIET POSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE LICENSED MATERIALS OR USE OF THOSE MATERIALS.\r
+\r
+YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS MAY NOT BE INTENDED FOR PRODUCTION APPLICATIONS AND MAY CONTAIN IRREGULARITIES AND DEFECTS NOT FOUND IN PRODUCTION SOFTWARE. FURTHERMORE, YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS HAVE NOT BEEN TESTED OR CERTIFIED BY ANY GOVERNMENT AGENCY OR INDUSTRY REGULATORY ORGANIZATION OR ANY OTHER THIRD PARTY ORGANIZATION. YOU AGREE THAT PRIOR TO USING, INCORPORATING OR DISTRIBUTING THE LICENSED MATERIALS IN OR WITH ANY COMMERCIAL PRODUCT THAT YOU WILL THOROUGHLY TEST THE PRODUCT AND THE FUNCTIONALITY OF THE LICENSED MATERIALS IN OR WITH THAT PRODUCT AND BE SOLELY RESPONSIBLE FOR ANY PROBLEMS OR FAILURES.\r
+\r
+IN NO EVENT SHALL TI, OR ANY APPLICABLE LICENSOR, BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED ON ANY THEORY OF LIABILITY, ARISING IN ANY WAY OUT OF THIS AGREEMENT, OR YOUR USE OF THE LICENSED MATERIALS, WHETHER OR NOT TI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF REMOVAL OR REINSTALLATION, OUTSIDE COMPUTER TIME, LABOR COSTS, LOSS OR CORRUPTION OF DATA, LOSS OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF USE OR INTERRUPTION OF BUSINESS OR ANY OTHER ECONOMIC LOSS.\r
+\r
+IN NO EVENT WILL TI\92S AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF YOUR USE OF THE LICENSED MATERIALS EXCEED FIVE HUNDRED U.S. DOLLARS (US$500).\r
+\r
+Because some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages or limitation on how long an implied warranty lasts, the above limitations or exclusions may not apply to you.\r
+\r
+5. Export Control. The software programs and any \93on-line\94 documentation as well as any updates or upgrades to such software programs or documentation may be subject to the export or import regulations of certain countries. You agree to comply with all such regulations and acknowledge that you have the responsibility to obtain any licenses or other authorizations that may be required to export, re-export or import the Licensed Materials.\r
+\r
+6. Governing Law, Jurisdiction and Severability. This Agreement will be governed by and interpreted in accordance with the laws of the State of Texas, without reference to that state's conflict of laws principles. This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sale of Goods, nor shall it be governed by the Uniform Computer Information Transactions Act (UCITA). Any dispute arising out of or related to this Agreement will be brought in, and each party consents to the exclusive jurisdiction and venue in the state and federal courts sitting in Dallas Country, Texas. Each party waives all defenses of lack of personal jurisdiction and forum non-conveniens and agrees that process may be served on either party in a manner authorized by applicable law or court rule. If for any reason a court of competent jurisdiction finds any provision of the Agreement to be unenforceable, that provision will be enforced to the maximum extent possible to effectuate the intent of the parties and the remainder of the Agreement shall continue in full force and effect.\r
+\r
+7. PRC Provisions. If you are located in the People\92s Republic of China (\93PRC\94) or if the Licensed Materials will be sent to the PRC, the following provisions shall apply and shall supersede any other provisions in this Agreement concerning the same subject matter as the following provisions:\r
+\r
+a. Registration Requirements. You shall be solely responsible for performing all acts and obtaining all approvals that may be required in connection with this Agreement by the government of the PRC, including but not limited to registering pursuant to, and otherwise complying with, the PRC Measures on the Administration of Software Products, Management Regulations on Technology Import-Export, and Technology Import and Export Contract Registration Management Rules. Upon receipt of such approvals from the government authorities, you shall forward evidence of all such approvals to TI for its records. In the event that you fail to obtain any such approval or registration, you shall be solely responsible for any and all losses, damages or costs resulting therefrom, and shall indemnify TI for all such losses, damages or costs.\r
+\r
+b. Governing Language. This Agreement is written and executed in the English language. If a translation of this Agreement is required for any purpose, including but not limited to registration of the Agreement pursuant to any governmental laws, regulations or rules, you shall be solely responsible for creating such translation. Any translation of this Agreement into a language other than English is intended solely in order to comply with such laws or for reference purposes, and the English language version shall be authoritative and controlling.\r
+\r
+8. Entire Agreement. This is the entire Agreement between you and TI and supersedes any prior agreement between the parties related to the subject matter of this Agreement. No amendment or modification of this Agreement will be effective unless in writing and signed by a duly authorized representative of TI. You hereby warrant and represent that you have obtained all authorizations and other applicable consents required empowering you to enter into this Agreement.\r
+\r
diff --git a/recipes/pandora-system/pandora-firmware/dspbridge.rules b/recipes/pandora-system/pandora-firmware/dspbridge.rules
new file mode 100644 (file)
index 0000000..c195f2a
--- /dev/null
@@ -0,0 +1 @@
+KERNEL=="DspBridge", MODE="0666"