From patchwork Mon Jun 10 19:35:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1113300 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gs74z8fW"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45N3Jw2p1nz9s6w for ; Tue, 11 Jun 2019 05:35:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 46FA18651E; Mon, 10 Jun 2019 19:35:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SilUiaPCSiTI; Mon, 10 Jun 2019 19:35:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D55386576; Mon, 10 Jun 2019 19:35:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BCF331BF47D for ; Mon, 10 Jun 2019 19:35:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B4CBC2043B for ; Mon, 10 Jun 2019 19:35:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fd6e+V84ct2H for ; Mon, 10 Jun 2019 19:35:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id DAA9C2041A for ; Mon, 10 Jun 2019 19:35:47 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v19so467167wmj.5 for ; Mon, 10 Jun 2019 12:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rQoBARh23WmFFMkfPrxoP67bLcyS4pqrjb0+bJmq1EI=; b=gs74z8fW/lRIV8Lwp1XwpId1wPpSnObdmauWLvDKuZFOTV4WkaH8hiWdaqLmqejllJ hLeee5jn487vjVvkX7I4UgLhhCm4VQhZYkLKQ0vllExbJDCXpOhiaHWo0ponuytfpUmK +l8SSUPf9Y/Ae2/MAhOpm0k3nx2k9redUPyd9FwwHK3eBUA/hHqQPE2zxw8H9e1cXBcn +LFREvBSAIVHMO7YSyJBCojtqjpVl+35Pm/In6+9o0M9YXGbNTOFqGxip7PniGfoO7cb oGTRWR8Yq3sgxffydx0smbCzi692jF1RqRnwfkFDXNyh6jXiAn8DFivdB2HoZ9ukVCfU 5tIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rQoBARh23WmFFMkfPrxoP67bLcyS4pqrjb0+bJmq1EI=; b=QBKw7+hrXyGKbIf/uvu28cyCZVT7DXmg4OU+Q3N0aBIbLFnVcDAKLVJ7uwAU7A5jjK bREZHibm49j4DnjVuu66oVmUwzVNQkhNTOcvb/dlDDuFY3NA6XhGUwfcjd6gwWCTSKj1 0+yeExTCscADoOAl0Yg/LdquahmfJGjydxmEnPufhrWA+FvdmrLrAiMpvc4AtWIMXebq UM/2HXv+bsnKxwTU6lKEdPjV6dasPxbJPy8U6LRHAOig7mTvcPfz2w2Wv9qjmP8UMqat GkLMG/ElS9HFqSvv79P0ubVBbJlCForE5jiFHVOoyaRceI0f3tSiPDf5xigpeDQAASoz A+JA== X-Gm-Message-State: APjAAAXzMxHncaYQSSPIky9gupiGwcc1XnZfEseTdw9qcfDgEELO8zE4 +XNl6aoCHATy5I467NE3/IfY+E/5JyY= X-Google-Smtp-Source: APXvYqyGLJ3h1pq6ji86lEbB26jytbeJaFF46itbBzy6nP3jTtunfE12wLglroD28lVWjQ8eJ8yz+A== X-Received: by 2002:a05:600c:20ca:: with SMTP id y10mr14148853wmm.72.1560195346132; Mon, 10 Jun 2019 12:35:46 -0700 (PDT) Received: from furher.home ([2a01:cb19:16b:9900:a924:2336:79a9:d19d]) by smtp.gmail.com with ESMTPSA id y133sm922035wmg.5.2019.06.10.12.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 12:35:45 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Mon, 10 Jun 2019 21:35:36 +0200 Message-Id: <20190610193540.25174-3-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610193540.25174-1-offougajoris@gmail.com> References: <20190610193540.25174-1-offougajoris@gmail.com> Subject: [Buildroot] [PATCH 3/3] configs/imx7dpico: Add Wifi support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joris Offouga , Fabio Estevam MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" imx7dpico has a BCM4339 Wifi chip. Add Wifi support by default to allow a better customer experience. Signed-off-by: Joris Offouga Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Tested-by: Pierre-Jean Texier --- board/technexion/imx7dpico/readme.txt | 11 +++ .../lib/firmware/brcm/brcmfmac4339-sdio.txt | 99 +++++++++++++++++++ configs/imx7dpico_defconfig | 12 +++ 3 files changed, 122 insertions(+) create mode 100644 board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt diff --git a/board/technexion/imx7dpico/readme.txt b/board/technexion/imx7dpico/readme.txt index 07e089c38e..1b9e80a0fd 100644 --- a/board/technexion/imx7dpico/readme.txt +++ b/board/technexion/imx7dpico/readme.txt @@ -57,4 +57,15 @@ To boot your newly created system: emulator at 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! diff --git a/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt b/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt new file mode 100644 index 0000000000..1ddd929504 --- /dev/null +++ b/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt @@ -0,0 +1,99 @@ +#AP6335_NVRAM_V1.5_03112014 +NVRAMRev=$Rev: 410316 $ +sromrev=11 +boardrev=0x1203 +boardtype=0x06c5 +boardflags=0x00000c01 +boardflags2=0x00002000 +boardflags3=0x101188 +macaddr=00:90:4c:c5:12:38 +ccode=0 +regrev=0 +antswitch=0 +pdgain2g=7 +pdgain5g=7 +tworangetssi2g=0 +tworangetssi5g=0 +femctrl=7 +pcieingress_war=15 +vendid=0x14e4 +devid=0x43ae +manfid=0x2d0 +nocrc=1 +otpimagesize=502 +xtalfreq=37400 +extpagain2g=2 +pdetrange2g=2 +extpagain5g=2 +pdetrange5g=2 +rxgains2gelnagaina0=0 +rxgains2gtrisoa0=7 +rxgains2gtrelnabypa0=0 +rxgains5gelnagaina0=0 +rxgains5gtrisoa0=11 +rxgains5gtrelnabypa0=0 +rxchain=1 +txchain=1 +aa2g=1 +aa5g=1 +tssipos5g=0 +tssipos2g=0 +pa2ga0=-161,6269,-723 +pa2gccka0=-116,7568,-852 +pa5ga0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pa5gbw40a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pa5gbw80a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pdoffset40ma0=0 +pdoffset80ma0=0 +pdoffsetcckma0=0 +maxp2ga0=75 +maxp5ga0=64,64,72,72 +cckbw202gpo=0x0000 +cckbw20ul2gpo=0x0 +mcsbw202gpo=0x99445533 +mcsbw402gpo=0x99775533 +dot11agofdmhrbw202gpo=0x2233 +ofdmlrbw202gpo=0x0000 +tssifloor2g=500 +mcsbw205glpo=0x66333330 +mcsbw405glpo=0x66665530 +mcsbw805glpo=0xAA555530 +mcsbw1605glpo=0x99555530 +mcsbw205gmpo=0x99BB5530 +mcsbw405gmpo=0x99BB5530 +mcsbw805gmpo=0xEE555530 +mcsbw1605gmpo=0x99555530 +mcsbw205ghpo=0x99995530 +mcsbw405ghpo=0x99BB5530 +mcsbw805ghpo=0xEE555530 +mcsbw1605ghpo=0x99555530 +mcslr5glpo=0x0000 +mcslr5gmpo=0x0000 +mcslr5ghpo=0x0000 +sb20in40hrrpo=0x0 +sb20in80and160hr5glpo=0x0 +sb40and80hr5glpo=0x0 +sb20in80and160hr5gmpo=0x0 +sb40and80hr5gmpo=0x0 +sb20in80and160hr5ghpo=0x0 +sb40and80hr5ghpo=0x0 +sb20in40lrpo=0x0 +sb20in80and160lr5glpo=0x0 +sb40and80lr5glpo=0x0 +sb20in80and160lr5gmpo=0x0 +sb40and80lr5gmpo=0x0 +sb20in80and160lr5ghpo=0x0 +sb40and80lr5ghpo=0x0 +dot11agduphrpo=0x0 +dot11agduplrpo=0x0 +phycal_tempdelta=25 +cckdigfilttype=2 +pacalidx2g=65 +dacrate2g=160 +swctrlmap_5g=0x00000008,0x00000010,0x00000008,0x000000,0x038 +swctrlmap_2g=0x00000001,0x00000002,0x00000001,0x040002,0x0ff +swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +rssicorrnorm_c0=3,3 +rssicorrnorm5g_c0=2,3,4,2,3,3,0,1,2,0,1,2 +muxenab=0x10 diff --git a/configs/imx7dpico_defconfig b/configs/imx7dpico_defconfig index cd12e282ef..056f549d0b 100644 --- a/configs/imx7dpico_defconfig +++ b/configs/imx7dpico_defconfig @@ -28,6 +28,18 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" BR2_TARGET_UBOOT_FORMAT_IMG=y +# wifi firmware for brcm43439 +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y + +# For automatic firmware loading +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y + +# wireless packages +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y + # required tools to create the eMMC image BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y