카테고리 없음

i.MX Linux Reference Manual - Connectivity - Wi-Fi

까마귀75 2022. 8. 2. 13:22
728x90
반응형

4.13 Wi-Fi

4.13.1 Introduction

BluetoothWi-Fi는 온보드 칩 솔루션와 외부 하드웨어를 통해 i.MX에서 지원한다. 아래 테이블에는 다양한 온보드 칩과 외부 솔루션이 나열되어 있다.

 

Table 50. On-board chips and external solutions for Buletooth and Wi-Fi support

SoC On-board chip PCIe uSD card or uSD-to-M.2 baseboard
8QuadXPlus/8DXL - Azurewave CM276 M.2 card -
8QuadMax - Azurewave CM276 M.2 card -
8MQuad - Azurewave CM276 M.2 card -
8M Nano Azurewave CM358 - -
8M Mini - - -
7ULP - - Azurewave CM358 uSD card
7Dual - - Azurewave CM358 uSD card
6QuadPlus/Quad/Dual/Solo - - Azurewave CM358 uSD card
6SLL/6UltraLite/6ULL/6ULZ - - Azurewave CM358 uSD card
8M Plus - Azurewave CM276 M.2 card -

 

4.13.2 Software Operation

지원되는 BSP:

  • NXPOnedriver는 모든 NXP 칩셋을 지원한다. Onedriver 지원은 5.4.47-2.2.0 릴리즈부터 시작된다.

 

4.13.3 Driver features

NXP 8987NXP 8997 무선 드라이버는 스테이션과 AP 모드를 모두 지원하는 CFG80211 드라이버이다.

 

드라이버에는 칩의 네트워크 프로세서에서 실행되는 펌웨어가 필요하다. 다음 디렉토리는 rootfs: /lib/firmware/nxp의 펌웨어 위치를 지정한다.

 

4.13.4 Source Code Structure

NXP Onedriver 소스 코드 파일은 codeaurora.org에서 사용할 수 있다.

 

4.13.5 Menu Configuration Options

이 모듈에는 아래 Linux 커널 구성 옵션이 제공된다:

  • CONFIG_MAC80211=y
  • COCONFIG_NL80211_TESTMODE=y
  • CONFIG_CFG80211_WEXT=y
  • CONFIG_HOSTAP=y
  • CONFIG_CFG80211_INTERNAL_REGDB=y

 

4.13.6 Configuring WLAN form User Space

Connecting AP in Station Mode

 

아래 명령어 그룹은 WLAN을 지정된 SSID 연결에 사용된다.

head -n 4 /etc/wpa_supplicant.conf > /etc/wpa_supplicant.conf.tmp
wpa_passphrase ssid password >> /etc/wpa_supplicant.conf.tmp
mv /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.bak
mv /etc/wpa_supplicant.conf.tmp /etc/wpa_supplicant.conf
wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf -D nl80211

다음은 wpa_supplicant.conf의 예이다:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
	ssid="NETGEAR73"
	#psk="freshbutter"
	psk=eb0376fc14ee5d1e6ce129ad54da038adab……
}

 

Obtaining an IP address

 

아래 명령은 wlan0IP 주소를 가져오는 데 사용된다:

udhcpc -i mlan0

 

728x90
반응형