Skip to contentSkip to conversation

configs: imx6ulpico: Add Wifi support

PATCH New Fabio Estevam 2 participants 2 messages Aug 1, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 configs: imx6ulpico: Add Wifi support

From: Fabio Estevam <[email protected]>

imx6ulpico has a BCM4339 Wifi chip. Add Wifi support by default to allow a better customer experience.

The dts patch has already been sent to the linux-arm-kernel list and we can remove it once it reaches a mainline kernel (in version 4.9 probably).

---
 board/technexion/imx6ulpico/linux.fragment         |   1 +
 .../imx6ulpico/patches/linux/0001-picowifi.patch   |  67 ++++++++++++++
 board/technexion/imx6ulpico/readme.txt             |  11 +++
 .../lib/firmware/brcm/brcmfmac4339-sdio.txt        | 102 +++++++++++++++++++++
 configs/imx6ulpico_defconfig                       |  16 ++++
 5 files changed, 197 insertions(+)
 create mode 100644 board/technexion/imx6ulpico/linux.fragment
 create mode 100644 board/technexion/imx6ulpico/patches/linux/0001-picowifi.patch
 create mode 100644 board/technexion/imx6ulpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt
board/technexion/imx6ulpico/linux.fragment new file +1 -0
new file mode 100644
index 0000000..892d0cb
@@ -0,0 +1 @@
+CONFIG_CFG80211_WEXT=y
board/technexion/imx6ulpico/patches/linux/0001-picowifi.patch new file +66 -0

66 lines not on this page · raw message

board/technexion/imx6ulpico/readme.txt +11 -0
index 8046bdb..194a9db 100644
@@ -56,4 +56,15 @@ To boot your newly created system:
   emulator@115200 bps, 8n1;
 - power on the board.
 
+Using Wifi
+==========
+
+# modprobe brcmfmac
+# iwconfig wlan0 essid ACCESSPOINTNAME
+# wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
+(enter the wifi password and press enter)
+# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
+# udhcpc -i wlan0
+# ping buildroot.org
+
 Enjoy!
board/technexion/imx6ulpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt new file +102 -0

102 lines not on this page · raw message

configs/imx6ulpico_defconfig +16 -0
index 2372636..8406226 100644
@@ -8,14 +8,30 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=y
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc5"
 
+# rootfs overlay
+BR2_ROOTFS_OVERLAY="board/technexion/imx6ulpico/rootfs_overlay"
+
+# patches
+BR2_GLOBAL_PATCH_DIR="board/technexion/imx6ulpico/patches"
+
 # kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/technexion/imx6ulpico/linux.fragment"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6ul-pico-hobbit"
 
+# wifi firmware for brcm4339
+BR2_PACKAGE_LINUX_FIRMWARE=y
+BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y
+
+# wireless packages
+BR2_PACKAGE_WIRELESS_TOOLS=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
+
 # bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BOARDNAME="pico-imx6ul"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 configs: imx6ulpico: Add Wifi support

Hello,

Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

imx6ulpico has a BCM4339 Wifi chip. Add Wifi support by default to allow a better customer experience.

The dts patch has already been sent to the linux-arm-kernel list and we can remove it once it reaches a mainline kernel (in version 4.9 probably).

Quoted 10 lines
---
 board/technexion/imx6ulpico/linux.fragment         |   1 +
 .../imx6ulpico/patches/linux/0001-picowifi.patch   |  67 ++++++++++++++
 board/technexion/imx6ulpico/readme.txt             |  11 +++
 .../lib/firmware/brcm/brcmfmac4339-sdio.txt        | 102 +++++++++++++++++++++
 configs/imx6ulpico_defconfig                       |  16 ++++
 5 files changed, 197 insertions(+)
 create mode 100644 board/technexion/imx6ulpico/linux.fragment
 create mode 100644 board/technexion/imx6ulpico/patches/linux/0001-picowifi.patch
 create mode 100644 board/technexion/imx6ulpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com