Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C72B7E00CAF; Thu, 21 Feb 2019 07:38:48 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [67.219.246.211 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record Received: from mail1.bemta23.messagelabs.com (mail1.bemta23.messagelabs.com [67.219.246.211]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2CC63E007B3 for ; Thu, 21 Feb 2019 07:38:47 -0800 (PST) Received: from [67.219.247.53] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta.az-d.us-east-1.aws.symcld.net id 69/8A-28678-6C2CE6C5; Thu, 21 Feb 2019 15:24:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRWlGSWpSXmKPExsXi5LtOQPfoobw Yg/ZbhhZ7n2c5MHq0n+hjC2CMYs3MS8qvSGDN+D7rAHNBI3/Fs5MLWBoYf/N0MXJxCAmsZpTo +P6XBcLZyigx/8Ys5i5GTg42AR2JKfsPs4DYIgKqEtcvP2QHsZkFZCRO35/FCGILCyRKXLq5i hXEZgGqOX3zHlg9r4CbxNIN08HiEgJyEjfPdYLN5BRwl1i5bj1YrxBQzed+iDm8AoISJ2c+YY GYLyFx8MULZogaZYktKy4wQsxRkFh74DzTBEb+WUhaZiFpWcDItIrRJKkoMz2jJDcxM0fX0MB A19DQSNdS11AvsUo3Ra+0WDc1sbgExC0v1iuuzE3OSdHLSy3ZxAgMw5QCTsYdjFuWpx9ilORg UhLlfX0wL0aILyk/pTIjsTgjvqg0J7X4EKMMB4eSBK8UMKyFBItS01Mr0jJzgBEBk5bg4FES4 RUFSfMWFyTmFmemQ6ROMepyHFr+aC6zEEtefl6qlDhvIch8AZCijNI8uBGw6LzEKCslzMvIwM AgxFOQWpSbWYIq/4pRnINRSZhXGmQVT2ZeCdymV0BHMAEdMet/NsgRJYkIKakGxkg1j6x/DxW OmQRYF/cGh9rnTUy2vJa1L2a3nvup6z6Trpkt223yc1p0u6qj/e1bt+znt+94yaK5RDLvAgvz /aM7t9j6n1Z8G3B1rqbajFLbDwqPZ8y/4N9/f9ZH3wllW4+f/V77P0w54DLPZXv9lAMn9scn1 v2oDj4Zo+USyaneuMuN//KFC0osxRmJhlrMRcWJAP1c0yzJAgAA X-Env-Sender: Alex.Gonzalez@digi.com X-Msg-Ref: server-4.tower-425.messagelabs.com!1550762693!3334651!1 X-Originating-IP: [66.77.174.16] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6961 invoked from network); 21 Feb 2019 15:24:53 -0000 Received: from owa.digi.com (HELO MCL-VMS-XCH01.digi.com) (66.77.174.16) by server-4.tower-425.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 21 Feb 2019 15:24:53 -0000 Received: from MTK-SMS-XCH01.digi.com (10.10.8.195) by MCL-VMS-XCH01.digi.com (10.5.8.49) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 09:24:53 -0600 Received: from log-linux-hp-agonzal.digi.com (10.101.2.214) by MTK-SMS-XCH01.digi.com (10.10.8.195) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 09:24:52 -0600 From: Alex Gonzalez To: Date: Thu, 21 Feb 2019 16:24:26 +0100 Message-ID: <1550762666-17995-7-git-send-email-alex.gonzalez@digi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550762666-17995-1-git-send-email-alex.gonzalez@digi.com> References: <1550762666-17995-1-git-send-email-alex.gonzalez@digi.com> MIME-Version: 1.0 X-Originating-IP: [10.101.2.214] Subject: [3rdparty][PATCH 6/6] init-ifupdown: ccimx6ulsbcpro: Add interfaces file 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: Thu, 21 Feb 2019 15:38:48 -0000 Content-Type: text/plain The ConnectCore 6UL SBC Pro has a Wi-Fi interface with support for both station and softAP modes, as well as two ethernet interfaces. This commit adds an interfaces file that defines a wlan0 interface for the station mode, a wlan1 interface for the softAP, and both eth0 and eth1 interfaces. Note that the ethernet interface that is enabled in U-Boot is the eth1 interface in the Linux kernel. Signed-off-by: Alex Gonzalez --- .../init-ifupdown/ccimx6ulsbcpro/interfaces | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces diff --git a/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces new file mode 100644 index 000000000000..53539e51cf22 --- /dev/null +++ b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces @@ -0,0 +1,46 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces + +# Client infrastructure mode +auto wlan0 +iface wlan0 inet static + address 192.168.8.2 + netmask 255.255.255.0 + network 192.168.8.0 + wireless_mode managed + wireless_essid any + wpa-driver nl80211 + wpa-conf /etc/wpa_supplicant.conf + +# SoftAP mode +auto wlan1 +iface wlan1 inet static + address 192.168.9.2 + netmask 255.255.255.0 + network 192.168.9.0 + post-up /etc/init.d/hostapd start + pre-down /etc/init.d/hostapd stop + +iface atml0 inet dhcp + +# Wired or wireless interfaces +auto eth1 +iface eth0 inet dhcp +iface eth1 inet dhcp + +# Ethernet/RNDIS gadget (g_ether) +# ... or on host side, usbnet and random hwaddr +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1 + +# Bluetooth networking +iface bnep0 inet dhcp +