[yocto] [meta-raspberrypi][morty][PATCH 1/7] linux-firmware: Bring up wifi/ble interface on rpi3

Andrei Gherzan andrei at gherzan.ro
Wed Apr 19 09:51:27 PDT 2017


On Mon, Apr 17, 2017 at 01:37:04PM +0100, Andrei Gherzan wrote:
> From: Khem Raj <raj.khem at gmail.com>
>
> Currently the firmware is installed but kernel fails to load it
> due this .txt file missing in the firmware directory and it ends
> up with wifi/bluetooth i/f not being initialized. The error is
> also in dmesg
>
> [    3.120991] usbcore: registered new interface driver brcmfmac
> [    3.148240] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.txt failed with error -2
>
> After applying this patch now ifconfig -a can list wlan0 interface
> successfully.
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
> ---
>  .../linux-firmware/files/brcmfmac43430-sdio.txt    | 66 ++++++++++++++++++++++
>  .../linux-firmware/linux-firmware_%.bbappend       | 12 ++++
>  2 files changed, 78 insertions(+)
>  create mode 100644 recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt
>  create mode 100644 recipes-kernel/linux-firmware/linux-firmware_%.bbappend
>
> diff --git a/recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt b/recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt
> new file mode 100644
> index 0000000..ea4f648
> --- /dev/null
> +++ b/recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt
> @@ -0,0 +1,66 @@
> +# NVRAM file for BCM943430WLPTH
> +# 2.4 GHz, 20 MHz BW mode
> +
> +# The following parameter values are just placeholders, need to be updated.
> +manfid=0x2d0
> +prodid=0x0727
> +vendid=0x14e4
> +devid=0x43e2
> +boardtype=0x0727
> +boardrev=0x1101
> +boardnum=22
> +macaddr=00:90:4c:c5:12:38
> +sromrev=11
> +boardflags=0x00404201
> +boardflags3=0x08000000
> +xtalfreq=37400
> +nocrc=1
> +ag0=255
> +aa2g=1
> +ccode=ALL
> +
> +pa0itssit=0x20
> +extpagain2g=0
> +#PA parameters for 2.4GHz, measured at CHIP OUTPUT
> +pa2ga0=-168,7161,-820
> +AvVmid_c0=0x0,0xc8
> +cckpwroffset0=5
> +
> +# PPR params
> +maxp2ga0=84
> +txpwrbckof=6
> +cckbw202gpo=0
> +legofdmbw202gpo=0x66111111
> +mcsbw202gpo=0x77711111
> +propbw202gpo=0xdd
> +
> +# OFDM IIR :
> +ofdmdigfilttype=18
> +ofdmdigfilttypebe=18
> +# PAPD mode:
> +papdmode=1
> +papdvalidtest=1
> +pacalidx2g=42
> +papdepsoffset=-22
> +papdendidx=58
> +
> +# LTECX flags
> +ltecxmux=0
> +ltecxpadnum=0x0102
> +ltecxfnsel=0x44
> +ltecxgcigpio=0x01
> +
> +il0macaddr=00:90:4c:c5:12:38
> +wl0id=0x431b
> +
> +deadman_to=0xffffffff
> +# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG
> +muxenab=0x1
> +# CLDO PWM voltage settings - 0x4 - 1.1 volt
> +#cldo_pwm=0x4
> +
> +#VCO freq 326.4MHz
> +spurconfig=0x3
> +
> +edonthd20l=-75
> +edoffthd20ul=-80
> diff --git a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> new file mode 100644
> index 0000000..252da22
> --- /dev/null
> +++ b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> @@ -0,0 +1,12 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> +
> +SRC_URI += "file://brcmfmac43430-sdio.txt"
> +
> +do_install_append() {
> +	install -D -m 0644 ${WORKDIR}/brcmfmac43430-sdio.txt ${D}/lib/firmware/brcm/brcmfmac43430-sdio.txt
> +}
> +
> +FILES_${PN}-bcm43430 += " \
> +  /lib/firmware/brcm/brcmfmac43430-sdio.txt \
> +"
> +
> --
> 2.12.2
>

Merged series to morty.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170419/8cd05481/attachment.pgp>


More information about the yocto mailing list