linux-firmware: Bring up wifi/ble interface on rpi3
PATCH 1/7 linux-firmware: Bring up wifi/ble interface on rpi3
From: Khem Raj <[email protected]>
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.
--- .../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
recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt new file +66 -0
@@ -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
recipes-kernel/linux-firmware/linux-firmware_%.bbappend new file +12 -0
@@ -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 \ +" +
Signature · 1 line
2.12.2
PATCH 2/7 firmware: Update to 20161215 release
From: Khem Raj <[email protected]>
--- recipes-bsp/common/firmware.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/common/firmware.inc +3 -3
@@ -1,10 +1,10 @@ -RPIFW_DATE ?= "20161125" +RPIFW_DATE ?= "20161215" RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz" RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}" SRC_URI = "${RPIFW_SRC_URI}" -SRC_URI[md5sum] = "a9281d2869e2d7673a83d41bacfa66c2" -SRC_URI[sha256sum] = "744e050630621c70991c91e0ee8663dc2f579e743583ca762b13b00bc75859bc" +SRC_URI[md5sum] = "ddd7645988360d7ef267b48c32293ad7" +SRC_URI[sha256sum] = "bda18f2affb50053940fd88c3f3bec5af9a4b4ced753d01107a2b106cfb02d13" PV = "${RPIFW_DATE}"
Signature · 1 line
2.12.2
PATCH 3/7 firmware: Update to 20170303 release
In reply to Andrei GherzanFrom: Khem Raj <[email protected]>
Uses 4.9.13 and has rpi0w support
--- recipes-bsp/common/firmware.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/common/firmware.inc +3 -3
@@ -1,10 +1,10 @@ -RPIFW_DATE ?= "20161215" +RPIFW_DATE ?= "20170303" RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz" RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}" SRC_URI = "${RPIFW_SRC_URI}" -SRC_URI[md5sum] = "ddd7645988360d7ef267b48c32293ad7" -SRC_URI[sha256sum] = "bda18f2affb50053940fd88c3f3bec5af9a4b4ced753d01107a2b106cfb02d13" +SRC_URI[md5sum] = "c87bc1bffbb8f254fc739e34baa03b02" +SRC_URI[sha256sum] = "ee8758d7e63c8fea7c8b7b476ff1c09f9591c74349b7751036a78ae5b88eca36" PV = "${RPIFW_DATE}"
Signature · 1 line
2.12.2
PATCH 4/7 firmware.inc: Bump to 20170405
In reply to Andrei Gherzan--- recipes-bsp/common/firmware.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/common/firmware.inc +3 -3
@@ -1,10 +1,10 @@ -RPIFW_DATE ?= "20170303" +RPIFW_DATE ?= "20170405" RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz" RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}" SRC_URI = "${RPIFW_SRC_URI}" -SRC_URI[md5sum] = "c87bc1bffbb8f254fc739e34baa03b02" -SRC_URI[sha256sum] = "ee8758d7e63c8fea7c8b7b476ff1c09f9591c74349b7751036a78ae5b88eca36" +SRC_URI[md5sum] = "ea82d14a7cd8cfae9b78e00d4e56bc71" +SRC_URI[sha256sum] = "2f4e5bddbac1372590db203002c35cbba3fb9d6172a93c314ee27bf05ae13bff" PV = "${RPIFW_DATE}"
Signature · 1 line
2.12.2
PATCH 5/7 rpi-base.inc: Include dtb for RPI0 WiFi
In reply to Andrei Gherzan--- conf/machine/include/rpi-base.inc | 1 + 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
@@ -14,6 +14,7 @@ XSERVER = " \ " KERNEL_DEVICETREE ?= " \ + bcm2708-rpi-0-w.dtb \ bcm2708-rpi-b.dtb \ bcm2708-rpi-b-plus.dtb \ bcm2709-rpi-2-b.dtb \
Signature · 1 line
2.12.2
PATCH 6/7 raspberrypi0-wifi.conf: Add machine configuration file
In reply to Andrei Gherzan--- conf/machine/raspberrypi0-wifi.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 conf/machine/raspberrypi0-wifi.conf
conf/machine/raspberrypi0-wifi.conf new file +11 -0
@@ -0,0 +1,11 @@ +#@TYPE: Machine +#@NAME: RaspberryPi Zero WiFi Development Board +#@DESCRIPTION: Machine configuration for the RaspberryPi Zero WiFi board (https://www.raspberrypi.org/blog/raspberry-pi-zero-w-joins-family/) + +MACHINEOVERRIDES = "raspberrypi:${MACHINE}" +include conf/machine/raspberrypi.conf + +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" + +SERIAL_CONSOLE = "115200 ttyS0" +VC4_CMA_SIZE ?= "cma-128"
Signature · 1 line
2.12.2
PATCH 7/7 README: Add info about raspberrypi0-wifi
In reply to Andrei Gherzan--- README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
README +4 -4
@@ -77,6 +77,7 @@ b. Add needed layer to bblayers.conf: c. Set MACHINE in local.conf to one of the supported boards: - raspberrypi - raspberrypi0 + - raspberrypi0-wifi - raspberrypi2 - raspberrypi3 - raspberrypi-cm (dummy alias for raspberrypi)
@@ -243,11 +244,10 @@ List of currently supported models: 3.O. Enable UART =============== +RaspberryPi 0, 1, 2 and CM will have UART console enabled by default. -RaspberryPi 1, 2 and CM will have UART console enabled by default. - -RaspberryPi 3 does not have the UART enabled by default because this needs a -fixed core frequency and enable_uart wil set it to the minimum. Certain +RaspberryPi 0 WiFi and 3 does not have the UART enabled by default because this +needs a fixed core frequency and enable_uart wil set it to the minimum. Certain operations - 60fps h264 decode, high quality deinterlace - which aren't performed on the ARM may be affected, and we wouldn't want to do that to users who don't want to use the serial port. Users who want serial console support on
Signature · 1 line
2.12.2
Quoted 113 lines · Andrei Gherzan
From: Khem Raj <[email protected]>
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 -2After applying this patch now ifconfig -a can list wlan0 interface successfully.
Signed-off-by Khem Raj <[email protected]>Signed-off-by Andrei Gherzan <[email protected]>--- .../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_%.bbappendrecipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt new file +66
-0@@ -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=-80recipes-kernel/linux-firmware/linux-firmware_%.bbappend new file +12
-1@@ -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 \ +" + --
Quoted 2 lines
2.12.2
Merged series to morty.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan