Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F3EABE00CE6; Thu, 21 Feb 2019 07:37:52 -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: * -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 * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [67.219.246.5 listed in list.dnswl.org] Received: from mail1.bemta23.messagelabs.com (mail1.bemta23.messagelabs.com [67.219.246.5]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C8DEBE009A0 for ; Thu, 21 Feb 2019 07:37:51 -0800 (PST) Received: from [67.219.246.101] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-5.bemta.az-b.us-east-1.aws.symcld.net id 10/DD-15745-9B2CE6C5; Thu, 21 Feb 2019 15:24:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRWlGSWpSXmKPExsXi5LtOQHfnobw Yg5+twhZ7n2c5MHq0n+hjC2CMYs3MS8qvSGDNuL7oJFPBGv6KtgU72BsYN/F2MXJxCAmsZpQ4 8ewKE4SzlVHi4flu9i5GTg42AR2JKfsPs4DYIgKqEtcvPwSLMwvISJy+P4sRxBYWSJW41LKRD cRmAao5t/ATWD2vgJvEl9ePmEBsCQE5iZvnOplBbE4Bd4mV69aD9QoB1Xzuh5jDKyAocXLmEx aI+RISB1+8YIaoUZbYsuICI8QcBYm1B84zTWDkn4WkZRaSlgWMTKsYzZKKMtMzSnITM3N0DQ0 MdA0NjXSNgSwjvcQq3SS90mLd1MTiEl1DvcTyYr3iytzknBS9vNSSTYzAUEwpYE7bwXi1Pf0Q oyQHk5Io7+uDeTFCfEn5KZUZicUZ8UWlOanFhxhlODiUJHilgKEtJFiUmp5akZaZA4wKmLQEB 4+SCK8oSJq3uCAxtzgzHSJ1ilGX49DyR3OZhVjy8vNSpcR5C0HmC4AUZZTmwY2AReglRlkpYV 5GBgYGIZ6C1KLczBJU+VeM4hyMSsK80iCreDLzSuA2vQI6ggnoiFn/s0GOKElESEk1MAaxOgd v+Zs/0+XH23WqB9xftBtanVKa3dkkVMaZf32B5KrdDi+6vSWyY3qrXebpPltqV6H8Pf3IjLOn ORRVuyO587NmunM45ISd+7BJ/3iB+P5eUzbRZMZJoscka5xLtTZEP3yhO2v1+zsH5fuzb1m/0 3ztbfLFg9GUM0RKh5th6a/Yh9mrlViKMxINtZiLihMBX5XuRMsCAAA= X-Env-Sender: Alex.Gonzalez@digi.com X-Msg-Ref: server-20.tower-385.messagelabs.com!1550762680!3382755!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 26270 invoked from network); 21 Feb 2019 15:24:41 -0000 Received: from owa.digi.com (HELO MCL-VMS-XCH01.digi.com) (66.77.174.16) by server-20.tower-385.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 21 Feb 2019 15:24:41 -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:40 -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:39 -0600 From: Alex Gonzalez To: Date: Thu, 21 Feb 2019 16:24:22 +0100 Message-ID: <1550762666-17995-3-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 2/6] init-ifupdown: ccimx6ulsbcexpress: 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:37:53 -0000 Content-Type: text/plain The ConnectCore 6UL SBC Express has a Wi-Fi interface with both station and softAP functionality. This interfaces file adds the wlan0 interface for station and wlan1 interface for softAP. Note that for softAP functionality to work, MAC addresses for the virtual wireless interfaces need to be programmed in the uboot environment with: env set wlan1addr aa:cc:cc:xx:yy:zz env set wlan2addr aa:cc:cc:xx:yy:zz env set wlan3addr aa:cc:cc:xx:yy:zz Signed-off-by: Alex Gonzalez --- .../init-ifupdown/ccimx6ulsbcexpress/interfaces | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcexpress/interfaces diff --git a/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcexpress/interfaces b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcexpress/interfaces new file mode 100644 index 000000000000..c94f8343dd07 --- /dev/null +++ b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcexpress/interfaces @@ -0,0 +1,45 @@ +# /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 eth0 +iface eth0 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 +