meta-digi: remove meta-digi-dbl layer
It has been moved to its own git repository. https://jira.digi.com/browse/DEL-505 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
4c14df9620
commit
65ed973d18
|
|
@ -1,90 +0,0 @@
|
|||
END-USER LICENSE AGREEMENT
|
||||
DIGI DEVELOPMENT KIT
|
||||
(PN 90001132)
|
||||
|
||||
This end-user license agreement is a legal agreement between you
|
||||
(either an individual or a single entity) and Digi International, Inc.
|
||||
("Digi") for use of Digi Technology. This license applies to the
|
||||
product with which it was shipped, which may be a Development Kit or a
|
||||
unit of Digi Hardware. By using Digi product, you are consenting to be
|
||||
bound by and are becoming a party to this end-user license agreement.
|
||||
|
||||
DEFINITIONS
|
||||
|
||||
o "Digi Hardware" shall mean electronic assemblies and accessories
|
||||
provided by Digi, under the Digi brand name.
|
||||
|
||||
o "Digi Software" shall mean the computer software code that is
|
||||
distributed by Digi and not subject to third-party ownership rights.
|
||||
|
||||
o "Digi Technology" refers to Digi Hardware and Digi Software.
|
||||
|
||||
o "Development Kit" refers to a combination of Digi Hardware,
|
||||
Digi Software, and documentation and may also include third-party
|
||||
components.
|
||||
|
||||
COPYRIGHT AND INTELLECTUAL PROPERTY
|
||||
|
||||
All title and copyrights in and to the design, manufacture and
|
||||
underlying intellectual property of the Digi Hardware are owned by
|
||||
Digi. The Digi Software is protected by copyright laws and international
|
||||
treaty provisions. The Digi Software is not open source software unless
|
||||
specifically stated. Therefore, you must treat the Digi Software like
|
||||
any other copyrighted material.
|
||||
|
||||
SOFTWARE
|
||||
|
||||
Digi Software is covered by copyright and licensed (not sold). Digi
|
||||
Software is licensed only for use by the person or organization that is the
|
||||
intended end user and only for the purpose of evaluating Digi Technology
|
||||
and developing solutions that incorporate Digi Technology. Digi Software
|
||||
may only be used in conjunction with Digi Hardware. Copies of Digi Software
|
||||
may not be redistributed on a standalone basis or as part of any product
|
||||
not incorporating Digi Hardware.
|
||||
|
||||
THIRD-PARTY COMPONENTS
|
||||
|
||||
A Development Kit may contain third-party components. THE LICENSE TO USE
|
||||
A THIRD-PARTY COMPONENT IS PROVIDED SEPARATELY. YOUR USE OF THIRD PARTY
|
||||
COMPONENTS WILL BE PURSUANT TO THE THIRD-PARTY LICENSE.
|
||||
|
||||
WARRANTIES
|
||||
|
||||
DIGI INTERNATIONAL, INC. EXPRESSLY DISCLAIMS ALL WARRANTIES FOR THE
|
||||
DIGI TECHNOLOGY AND ANY THIRD PARTY COMPONENTS. DIGI INTERNATIONAL,
|
||||
INC. DOES NOT WARRANT THAT THE DIGI TECHNOLOGY IS ERROR FREE OR WILL
|
||||
WORK AS INTENDED. THE DIGI TECHNOLOGY AND ANY RELATED DOCUMENTATION
|
||||
ARE PROVIDED "AS IS" WITH ALL FAULTS, WITHOUT WARRANTY OF ANY KIND,
|
||||
EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
||||
NON-INFRINGEMENT. THE ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF
|
||||
THE DIGI TECHNOLOGY REMAINS WITH THE END-USER.
|
||||
|
||||
LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES
|
||||
|
||||
IN NO EVENT SHALL DIGI INTERNATIONAL INC. OR ITS SUPPLIERS BE LIABLE FOR
|
||||
ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
|
||||
OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION,
|
||||
OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO
|
||||
USE THIS PRODUCT, EVEN IF DIGI INTERNATIONAL INC. HAS BEEN ADVISED OF
|
||||
THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME STATES/JURISDICTIONS DO
|
||||
NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR
|
||||
INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
MISCELLANEOUS
|
||||
|
||||
This agreement is governed by the laws of the State of Minnesota. You
|
||||
agree to comply with all applicable United States export control laws
|
||||
and regulations concerning export and re-export of products, technology
|
||||
and documentation, including without limitation, the laws and regulations
|
||||
administered by the United States Department of Commerce and the United
|
||||
States Department of State.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
U-BOOT LICENSE NOTICE
|
||||
|
||||
THE U-BOOT SOFTWARE THAT IS PROVIDED WITH DIGI SOFTWARE AND DIGI HARDWARE
|
||||
IS COVERED BY THE GNU GENERAL PUBLIC LICENSE (VERSION 2 OR LATER) AS
|
||||
PUBLISHED BY THE FREE SOFTWARE FOUNDATION.
|
||||
|
||||
Please visit http://www.denx.de for current U-Boot license information.
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
THIRD PARTY AND OPEN SOURCE LICENSE NOTICE
|
||||
DIGI EMBEDDED LINUX
|
||||
(PN 93000719)
|
||||
|
||||
|
||||
The product with which this notice was originally transmitted
|
||||
contains a combination of hardware, software and documentary components
|
||||
("Components"). The Components are provided for use under various
|
||||
licenses that are unique to each Component.
|
||||
|
||||
|
||||
THIRD PARTY COMPONENTS
|
||||
|
||||
OpenSSL is subject to the terms and conditions of the OpenSSL/SSLeay
|
||||
License ("OpenSSL License"). The OpenSSL/SSLeay Components are
|
||||
provided under the terms of the OpenSSL/SSLeay License, and any use
|
||||
of such OpenSSL/SSLeay Components shall comply with the terms and
|
||||
conditions of that license. A copy of the OpenSSL/SSLeay license is
|
||||
available in the license.txt file accompanying the Components and at
|
||||
http://www.openssl.org/source/license.html
|
||||
|
||||
The WPA/WPA2 supplicant is dual-licensed under both the GPL version
|
||||
2 and BSD license, and any use of such Components shall comply with
|
||||
the terms and conditions of those licenses.
|
||||
|
||||
The Qt Components ("Qt Components") are provided under the terms
|
||||
of the GNU Lesser General Public License version 2.1 ("LGPL"),
|
||||
and any use of such Qt Components shall comply with the terms and
|
||||
conditions of that license. For Qt production licensing, refer to
|
||||
http://qt.nokia.com/products/licensing for detailed information.
|
||||
|
||||
Use of Components that are subject to one of the versions of the
|
||||
GNU General Public License ("GPL") shall comply with the terms and
|
||||
conditions of those licenses. Copies of the GPL licenses are available
|
||||
at http://www.gnu.org/licenses/licenses.html.
|
||||
|
||||
|
||||
DIGI COMPONENTS
|
||||
|
||||
The Components that are not the property of a third party are the
|
||||
property of Digi International Inc. Unless otherwise noted, Digi
|
||||
Components are provided pursuant to a Digi End-User License Agreement.
|
||||
|
||||
The WPA supplicant has been modified by Digi, and the modification
|
||||
is distributed under the terms of the BSD License set forth below:
|
||||
|
||||
*****************
|
||||
Copyright (c) Digi International, Inc.
|
||||
All rights reserved.
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the Digi International Inc. nor the names of
|
||||
its contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*****************
|
||||
|
||||
|
|
@ -1,132 +0,0 @@
|
|||
DISTRO = "dbl"
|
||||
SDK_DISTRO = "poky"
|
||||
DISTRO_NAME = "Digi Boxed Linux"
|
||||
DISTRO_VERSION = "1.3.2"
|
||||
SDK_VENDOR = "-pokysdk"
|
||||
SDK_VERSION := "${DISTRO_VERSION}"
|
||||
|
||||
MAINTAINER = "Digi Support <support@digi.com>"
|
||||
|
||||
TARGET_VENDOR = "-dbl"
|
||||
|
||||
LOCALCONF_VERSION = "1"
|
||||
LAYER_CONF_VERSION ?= "6"
|
||||
|
||||
# Comment out features to leave them out
|
||||
DISTRO_FEATURES = "alsa"
|
||||
DISTRO_FEATURES += "ext2"
|
||||
DISTRO_FEATURES += "usbgadget"
|
||||
DISTRO_FEATURES += "usbhost"
|
||||
DISTRO_FEATURES += "nfs"
|
||||
DISTRO_FEATURES += "${DISTRO_FEATURES_LIBC}"
|
||||
DISTRO_FEATURES += "largefile"
|
||||
DISTRO_FEATURES += "wifi"
|
||||
|
||||
# Disable pulseaudio (not needed in dbl-image-base)
|
||||
DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
|
||||
|
||||
PREFERRED_PROVIDER_jpeg = "jpeg"
|
||||
|
||||
PREFERRED_VERSION_linux-yocto_qemux86 ?= "3.4%"
|
||||
PREFERRED_VERSION_linux-yocto_qemux86-64 ?= "3.4%"
|
||||
PREFERRED_VERSION_linux-yocto_qemuarm ?= "3.4%"
|
||||
PREFERRED_VERSION_linux-yocto_qemumips ?= "3.4%"
|
||||
PREFERRED_VERSION_linux-yocto_qemuppc ?= "3.4%"
|
||||
|
||||
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
|
||||
SDKPATH = "/opt/${SDK_DISTRO}/${SDK_VERSION}"
|
||||
|
||||
EXTRAOPKGCONFIG = "poky-feed-config-opkg"
|
||||
|
||||
# Override these in poky based distros to modify DISTRO_EXTRA_R*
|
||||
POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-dbl-core"
|
||||
|
||||
DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}"
|
||||
DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
|
||||
|
||||
POKYQEMUDEPS = "${@base_contains("INCOMPATIBLE_LICENSE", "GPLv3", "", "qemu-config",d)}"
|
||||
DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}"
|
||||
DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}"
|
||||
DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}"
|
||||
DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}"
|
||||
DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
|
||||
|
||||
TCLIBCAPPEND = ""
|
||||
|
||||
QEMU_TARGETS ?= "arm i386 mips mipsel ppc x86_64"
|
||||
# Other QEMU_TARGETS "mips64 mips64el sh4"
|
||||
|
||||
# Some packages need this
|
||||
LICENSE_FLAGS_WHITELIST += "commercial"
|
||||
|
||||
PREMIRRORS ?= "\
|
||||
bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
svk://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
|
||||
|
||||
MIRRORS =+ "\
|
||||
ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
|
||||
https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
|
||||
|
||||
MIRRORS += "\
|
||||
ftp://.*/.* ${DIGI_MIRROR}/ \n \
|
||||
http://.*/.* ${DIGI_MIRROR}/ \n \
|
||||
https://.*/.* ${DIGI_MIRROR}/ \n"
|
||||
|
||||
# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
|
||||
# fetch from the network (and warn you if not). To disable the test set
|
||||
# the variable to be empty.
|
||||
# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD
|
||||
|
||||
CONNECTIVITY_CHECK_URIS ?= " \
|
||||
https://eula-downloads.yoctoproject.org/index.php \
|
||||
http://bugzilla.yoctoproject.org/report.cgi"
|
||||
|
||||
SANITY_TESTED_DISTROS ?= " \
|
||||
Yocto (Built by Poky 7.0) 1.2 \n \
|
||||
Yocto (Built by Poky 8.0) 1.3 \n \
|
||||
Poky 7.0 (Yocto Project 1.2 Reference Distro) 1.2 \n \
|
||||
Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3 \n \
|
||||
Ubuntu 10.04.4 LTS \n \
|
||||
Ubuntu 11.10 \n \
|
||||
Ubuntu 12.04 LTS \n \
|
||||
Ubuntu 12.04.1 LTS \n \
|
||||
Ubuntu 12.04.2 LTS \n \
|
||||
Ubuntu 12.10 \n \
|
||||
Fedora release 16 (Verne) \n \
|
||||
Fedora release 17 (Beefy Miracle) \n \
|
||||
Fedora release 18 (Spherical Cow) \n \
|
||||
CentOS release 5.6 (Final) \n \
|
||||
CentOS release 5.7 (Final) \n \
|
||||
CentOS release 5.8 (Final) \n \
|
||||
CentOS release 6.3 (Final) \n \
|
||||
Debian GNU/Linux 6.0.6 (squeeze) \n \
|
||||
openSUSE 11.4 \n \
|
||||
openSUSE 12.1 \n \
|
||||
openSUSE 12.2 \n \
|
||||
"
|
||||
|
||||
# Default hash policy for distro
|
||||
BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
|
||||
#
|
||||
# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in
|
||||
# an incompatible way. Such changes should usually be detailed in the commit
|
||||
# that breaks the format and have been previously discussed on the mailing list
|
||||
# with general agreement from the core team.
|
||||
#
|
||||
OELAYOUT_ABI = "8"
|
||||
|
||||
# add poky sanity bbclass
|
||||
INHERIT += "poky-sanity"
|
||||
|
||||
#WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts"
|
||||
WARN_QA = ""
|
||||
ERROR_QA = "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms useless-rpaths rpaths staticdev ldflags"
|
||||
|
||||
BBMASK = "meta-fsl-arm/recipes-kernel/linux/linux-imx_2.6.35.3.bb"
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have a packages directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "dbl"
|
||||
BBFILE_PATTERN_dbl := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_dbl = "6"
|
||||
|
||||
# This is Digi's General license agreement.
|
||||
DIGI_EULA_FILE = "${LAYERDIR}/DIGI_EULA"
|
||||
|
||||
# This is Digi's Open Source license agreement.
|
||||
DIGI_OPEN_EULA_FILE = "${LAYERDIR}/DIGI_OPEN_EULA"
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# Copyright (C) 2013 Digi International.
|
||||
|
||||
PRINC := "${@int(PRINC) + 1}"
|
||||
PR_append = "+${DISTRO}"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files/:"
|
||||
|
|
@ -1,151 +0,0 @@
|
|||
#!/bin/sh
|
||||
#===============================================================================
|
||||
#
|
||||
# bluez
|
||||
#
|
||||
# Copyright (C) 2013 by Digi International Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
# the Free Software Foundation.
|
||||
#
|
||||
#
|
||||
# !Description: Configure Bluetooth
|
||||
#
|
||||
#===============================================================================
|
||||
|
||||
set -e
|
||||
|
||||
BLUETOOTHDAEMON="/usr/sbin/bluetoothd"
|
||||
HCIATTACH="/usr/sbin/hciattach"
|
||||
HCICONFIG="/usr/sbin/hciconfig"
|
||||
ABTFILT="/usr/sbin/abtfilt"
|
||||
DBUSPIDFILE="/var/run/dbus-daemon.pid"
|
||||
|
||||
BT_DEVICE="/dev/ttyBt"
|
||||
|
||||
BLUETOOTHDAEMONPIDFILE="/var/run/bluetootd.pid"
|
||||
HCIATTACHPIDFILE="/var/run/hciattach.pid"
|
||||
|
||||
[ -x "${BLUETOOTHDAEMON}" ] || exit 0
|
||||
[ -x "${HCIATTACH}" ] || exit 0
|
||||
[ -x "${HCICONFIG}" ] || exit 0
|
||||
[ -x "${ABTFILT}" ] || exit 0
|
||||
[ -e "${DBUSPIDFILE}" ] || exit 0
|
||||
[ -e "${BT_DEVICE}" ] || exit 0
|
||||
[ -e /var/run/product_info/bt ] || exit 0
|
||||
|
||||
|
||||
SCRIPTNAME="bluez"
|
||||
|
||||
start_hciattach() {
|
||||
if ! [ -f "${HCIATTACHPIDFILE}" ]; then
|
||||
[ -z "${quietboot}" ] && echo -n "Starting hciattach: "
|
||||
#
|
||||
# Get the Bluetooth MAC address from NVRAM. Terminate the script
|
||||
# if no address has been set.
|
||||
#
|
||||
BTADDR="$(nvram print module btaddr1 | sed 's,btaddr1=,,g')"
|
||||
if [ -z "${BTADDR}" -o "${BTADDR}" = "00:00:00:00:00:00" ]; then
|
||||
[ -z "${quietboot}" ] && echo "FAILED because no Bluetooth MAC address has been set."
|
||||
exit
|
||||
fi
|
||||
|
||||
#
|
||||
# We need to write the Bluetooth MAC address to ar3kbdaddr.pst in
|
||||
# the AR3k firmware directory. However, we don't want to rewrite the
|
||||
# file if it already exists and the address is the same because we
|
||||
# don't want to wear out NAND flash. So compare the two and only
|
||||
# update the copy on NAND if the address has changed.
|
||||
#
|
||||
FW_MAC="/lib/firmware/ar3k/1020200/ar3kbdaddr.pst"
|
||||
[ -f "${FW_MAC}" ] && [ "$(cat ${FW_MAC})" = "${BTADDR}" ] || echo ${BTADDR} > ${FW_MAC}
|
||||
#
|
||||
# Start the Bluetooth driver and daemon (D-BUS must already be running)
|
||||
#
|
||||
BT_DRIVER="ath3k"
|
||||
BT_BAUD_RATE="4000000"
|
||||
HCIATTACH_OPTIONS="${BT_DEVICE} ${BT_DRIVER} ${BT_BAUD_RATE}"
|
||||
HCIATTACH_OPTIONS_115K="${BT_DEVICE} ${BT_DRIVER} 115200"
|
||||
TRIES="1"
|
||||
MAX_TRIES="11111"
|
||||
while ! hciattach ${HCIATTACH_OPTIONS} 1>/dev/null && [ "${TRIES}" != "${MAX_TRIES}" ] ;
|
||||
do
|
||||
echo -n "retrying... "
|
||||
#
|
||||
# If hciattach at 4Kbps doesn't work, then try it at 115K bps
|
||||
# just to get the chip working.
|
||||
#
|
||||
if hciattach ${HCIATTACH_OPTIONS_115K} 1>/dev/null ; then
|
||||
#
|
||||
# It worked at 115Kbps. The chip should be okay now.
|
||||
# Kill the daemon so we can retry at 4Mbps.
|
||||
#
|
||||
kill -s 9 `pidof hciattach`
|
||||
fi
|
||||
TRIES="${TRIES}1"
|
||||
done
|
||||
if [ "${TRIES}" == "${MAX_TRIES}" ] ; then
|
||||
[ -z "${quietboot}" ] && echo "FAILED"
|
||||
exit
|
||||
fi
|
||||
echo `pidof hciattach` > ${HCIATTACHPIDFILE}
|
||||
[ -z "${quietboot}" ] && echo "Okay"
|
||||
fi
|
||||
}
|
||||
|
||||
start_abtfilt() {
|
||||
[ -z "${quietboot}" ] && echo -n "Starting abtfilt: "
|
||||
BT_FILTER_ARGS="-d -x -s -w wlan0"
|
||||
if ! abtfilt ${BT_FILTER_ARGS} 1>/dev/null; then
|
||||
[ -z "${quietboot}" ] && echo "FAILED"
|
||||
exit
|
||||
fi
|
||||
[ -z "${quietboot}" ] && echo "Okay"
|
||||
}
|
||||
|
||||
start_bluetoothd() {
|
||||
[ -z "${quietboot}" ] && echo -n "Starting bluetoothd: "
|
||||
if hciconfig hci0 up && bluetoothd; then
|
||||
[ -z "${quietboot}" ] && echo "Okay"
|
||||
else
|
||||
[ -z "${quietboot}" ] && echo "FAILED"
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
BLUETOOTHPID=$(pidof bluetoothd)
|
||||
ABTFILTPID=$(pidof abtfilt)
|
||||
if [ -f "${HCIATTACHPIDFILE}" ] && hciconfig hci0 down && hciconfig hci0 reset; then
|
||||
kill -s 9 ${BLUETOOTHPID}
|
||||
kill -s 9 ${ABTFILTPID}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
start() {
|
||||
start_hciattach
|
||||
start_abtfilt
|
||||
start_bluetoothd
|
||||
}
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|force-reload)
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit $?
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2013 Digi International.
|
||||
#
|
||||
|
||||
require dbl-image-base.bb
|
||||
|
||||
DESCRIPTION = "Image that includes everything within dbl-image-base plus meta-toolchain, \
|
||||
development headers and libraries to form a standalone SDK."
|
||||
|
||||
# Dropbear clashes with openssh which is included by tools-debug.
|
||||
IMAGE_FEATURES := "${@oe_filter_out('ssh-server-dropbear', bb.data.getVar('IMAGE_FEATURES', d, 1), d)}"
|
||||
IMAGE_FEATURES += "dev-pkgs tools-sdk\
|
||||
tools-debug debug-tweaks"
|
||||
|
||||
IMAGE_INSTALL += "kernel-dev"
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2012 Digi International.
|
||||
#
|
||||
DESCRIPTION = "DBL busybox based image."
|
||||
|
||||
IMAGE_INSTALL = "packagegroup-dbl-core ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
|
||||
|
||||
IMAGE_LINGUAS = " "
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit core-image
|
||||
inherit dey-image
|
||||
|
||||
INC_PR = "r0"
|
||||
PR = "${INC_PR}"
|
||||
|
||||
# These features will move to the project's local.conf
|
||||
# where they can be customized by platform.
|
||||
|
||||
# Only common features to remain here.
|
||||
IMAGE_FEATURES += "ssh-server-dropbear"
|
||||
IMAGE_FEATURES += "package-management"
|
||||
IMAGE_FEATURES += "dey-network"
|
||||
|
||||
# Machine dependant features
|
||||
IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "alsa", "dey-audio", "", d)}'
|
||||
IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "accel-video", "dey-gstreamer", "", d)}'
|
||||
IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "wifi", "dey-wireless", "", d)}'
|
||||
IMAGE_FEATURES += '${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-bluetooth", "", d)}'
|
||||
|
||||
IMAGE_ROOTFS_SIZE = "8192"
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND += "dey_rootfs_tuning;"
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2012 Digi International.
|
||||
#
|
||||
SUMMARY = "Core packagegroup for DBL image"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
DEPENDS = "virtual/kernel"
|
||||
ALLOW_EMPTY = "1"
|
||||
|
||||
PR = "${DISTRO}.r0"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
#
|
||||
# Set by the machine configuration with packages essential for device bootup
|
||||
#
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
|
||||
|
||||
# Distro can override the following VIRTUAL-RUNTIME providers:
|
||||
VIRTUAL-RUNTIME_login_manager ?= ""
|
||||
VIRTUAL-RUNTIME_passwd_manager ?= "shadow"
|
||||
VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
|
||||
VIRTUAL-RUNTIME_initscripts ?= "initscripts"
|
||||
VIRTUAL-RUNTIME_keymaps ?= "keymaps"
|
||||
VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev"
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
base-files \
|
||||
base-passwd \
|
||||
busybox \
|
||||
${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
|
||||
${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
|
||||
${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests", "",d)} \
|
||||
modutils-initscripts \
|
||||
netbase \
|
||||
nvram \
|
||||
${VIRTUAL-RUNTIME_dev_manager} \
|
||||
${VIRTUAL-RUNTIME_init_manager} \
|
||||
${VIRTUAL-RUNTIME_initscripts} \
|
||||
${VIRTUAL-RUNTIME_login_manager} \
|
||||
${VIRTUAL-RUNTIME_passwd_manager} \
|
||||
${VIRTUAL-RUNTIME_update-alternatives} \
|
||||
ubootenv \
|
||||
update-flash \
|
||||
usbutils \
|
||||
${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
|
||||
|
||||
RRECOMMENDS_${PN} = "\
|
||||
${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"
|
||||
|
|
@ -1,111 +0,0 @@
|
|||
#!/bin/sh -l
|
||||
#===============================================================================
|
||||
#
|
||||
# atheros
|
||||
#
|
||||
# Copyright (C) 2012 by Digi International Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
# the Free Software Foundation.
|
||||
#
|
||||
#
|
||||
# !Description: Load Atheros' wireless driver
|
||||
#
|
||||
#===============================================================================
|
||||
|
||||
# Exit immediately if bmiloader times out or other error occurs
|
||||
set -e
|
||||
|
||||
# Exit if not the wlan0 interface,
|
||||
# or we've already run once
|
||||
[ "${IFACE}" != "wlan0" -o -e /var/run/atheros ] && exit 0
|
||||
|
||||
# If not manufacturing mode, exit if product has no wifi
|
||||
if [ -z "$1" -a ! -e /var/run/product_info/wifi ]; then
|
||||
echo "No wifi device present, skipping wifi startup"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
FIRMWARE_DIR="/lib/firmware/ath6k/AR6003/hw2.1.1"
|
||||
RAM_DRIVE="/var/run"
|
||||
MAC_FILENAME="softmac"
|
||||
|
||||
#
|
||||
# Use $1 for the MAC address, or, if empty, get the wlan MAC address
|
||||
# from kernel command line. Use a default # value if the address has not
|
||||
# been set.
|
||||
#
|
||||
|
||||
MAC_ADDR_CMDLINE=`cat /proc/cmdline | sed 's/\s/\n/g' | awk '/ethaddr2/ {print}' | sed 's/ethaddr2=//g'`
|
||||
MAC_ADDR=${1:-$(MAC_ADDR_CMDLINE)}
|
||||
if [ -z "${MAC_ADDR}" -o "${MAC_ADDR}" = "00:00:00:00:00:00" ]; then
|
||||
MAC_ADDR="00:04:F3:4C:B1:D3"
|
||||
fi
|
||||
|
||||
mac1="$(echo ${MAC_ADDR} | cut -d':' -f1)"
|
||||
mac2="$(echo ${MAC_ADDR} | cut -d':' -f2)"
|
||||
mac3="$(echo ${MAC_ADDR} | cut -d':' -f3)"
|
||||
mac4="$(echo ${MAC_ADDR} | cut -d':' -f4)"
|
||||
mac5="$(echo ${MAC_ADDR} | cut -d':' -f5)"
|
||||
mac6="$(echo ${MAC_ADDR} | cut -d':' -f6)"
|
||||
|
||||
printf "\x${mac1}\x${mac2}\x${mac3}\x${mac4}\x${mac5}\x${mac6}" > ${RAM_DRIVE}/${MAC_FILENAME}
|
||||
|
||||
# We need to write the WLAN MAC address to softmac in the ath6k firmware
|
||||
# directory. However, we don't want to rewrite the file if it already exists
|
||||
# and the address is the same because we don't want to wear out NAND flash.
|
||||
#
|
||||
# So create the file on the RAM DRIVE first and compare the two. Only update
|
||||
# the copy on NAND if the address has changed.
|
||||
#
|
||||
if ! cmp -s ${RAM_DRIVE}/${MAC_FILENAME} ${FIRMWARE_DIR}/${MAC_FILENAME}; then
|
||||
cp ${RAM_DRIVE}/${MAC_FILENAME} ${FIRMWARE_DIR}/${MAC_FILENAME}
|
||||
fi
|
||||
rm -f ${RAM_DRIVE}/${MAC_FILENAME}
|
||||
|
||||
#
|
||||
# Set the correct calibration file. The calibration file determines
|
||||
# which channels are valid and what their power levels are. Different
|
||||
# regions require different settings.
|
||||
#
|
||||
read wifi_version dummy 2>/dev/null < /var/run/product_info/wifi || true
|
||||
# wifi_version: 0=6103 1=6233
|
||||
INTL_MODE=0
|
||||
if [ -e /var/run/product_info/intl ]; then
|
||||
INTL_MODE=1
|
||||
fi
|
||||
# INTL_MODE 0 == United States, 1 == international
|
||||
case "${wifi_version}${INTL_MODE}" in
|
||||
00) BDATA_SOURCE=${FIRMWARE_DIR}/calData_AR6103_Digi_X2e_B.bin ;;
|
||||
01) BDATA_SOURCE=${FIRMWARE_DIR}/calData_AR6103_Digi_X2e_B_world.bin ;;
|
||||
10) BDATA_SOURCE=${FIRMWARE_DIR}/Digi_6203-6233-US.bin ;;
|
||||
11) BDATA_SOURCE=${FIRMWARE_DIR}/Digi_6203-6233-World.bin ;;
|
||||
*) echo "Unexpected wifi hardware /${wifi_version}${INTL_MODE}/"
|
||||
esac
|
||||
BDATA_LINK=${FIRMWARE_DIR}/bdata.bin
|
||||
# We don't want to rewrite NAND everytime we boot so only
|
||||
# change the link if it is wrong.
|
||||
if [ ! -e ${BDATA_LINK} ] || ! cmp -s ${BDATA_LINK} ${BDATA_SOURCE}; then
|
||||
rm -f ${BDATA_LINK}
|
||||
ln ${BDATA_SOURCE} ${BDATA_LINK}
|
||||
fi
|
||||
|
||||
## Load the driver. Load in test mode if /root/wifi_test_mode exists.
|
||||
## No need to explicitly load 'compat' and 'cfg80211' modules. They are resolved as
|
||||
## dependences of 'ath6kl_sdio' module and loaded automatically.
|
||||
ATH6KL_PARAMS=""
|
||||
[ -f "/root/wifi_test_mode" ] && { ATH6KL_PARAMS="${ATH6KL_PARAMS} testmode=1"; test_mode_str=" in test mode"; }
|
||||
grep -qs ath6kl_sdio /proc/modules || \
|
||||
modprobe -q ath6kl_sdio ${ATH6KL_PARAMS} || echo "Loading ath6kl_sdio module${test_mode_str}: [FAILED]"
|
||||
|
||||
# Delay required for the interface 'wlan0' to settle down before trying to configure it.
|
||||
sleep 0.5
|
||||
|
||||
#
|
||||
# Turn off power save mode and background scanning. This improves performance and
|
||||
# reduces latency.
|
||||
#
|
||||
wmi_config -i wlan0 --scan --bg 0
|
||||
iw wlan0 set power_save off
|
||||
|
|
@ -1 +0,0 @@
|
|||
install ath6kl_sdio true
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (C) 2013 by Digi International Inc.
|
||||
|
||||
PRINC := "${@int(PRINC) + 1}"
|
||||
PR_append = "+${DISTRO}"
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${MACHINE}/:"
|
||||
Loading…
Reference in New Issue