diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-02-16 17:54:43 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2017-02-16 18:02:46 -0800 |
| commit | 6ce6e57782c23fd21ad47286ac8b809ce989ea78 (patch) | |
| tree | bfb99a8bca50c6565df82fb66520d8f80f4b16d3 | |
| parent | 9aded8f9d432cdc7d57ab5dfd3afd45ebc71d783 (diff) | |
| download | meta-raspberrypi-6ce6e57782c23fd21ad47286ac8b809ce989ea78.tar.gz | |
linux-firmware: Bring up wifi/ble interface on rpi3
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@gmail.com>
| -rw-r--r-- | recipes-kernel/linux-firmware/files/brcmfmac43430-sdio.txt | 66 | ||||
| -rw-r--r-- | recipes-kernel/linux-firmware/linux-firmware_%.bbappend | 12 |
2 files changed, 78 insertions, 0 deletions
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 @@ | |||
| 1 | # NVRAM file for BCM943430WLPTH | ||
| 2 | # 2.4 GHz, 20 MHz BW mode | ||
| 3 | |||
| 4 | # The following parameter values are just placeholders, need to be updated. | ||
| 5 | manfid=0x2d0 | ||
| 6 | prodid=0x0727 | ||
| 7 | vendid=0x14e4 | ||
| 8 | devid=0x43e2 | ||
| 9 | boardtype=0x0727 | ||
| 10 | boardrev=0x1101 | ||
| 11 | boardnum=22 | ||
| 12 | macaddr=00:90:4c:c5:12:38 | ||
| 13 | sromrev=11 | ||
| 14 | boardflags=0x00404201 | ||
| 15 | boardflags3=0x08000000 | ||
| 16 | xtalfreq=37400 | ||
| 17 | nocrc=1 | ||
| 18 | ag0=255 | ||
| 19 | aa2g=1 | ||
| 20 | ccode=ALL | ||
| 21 | |||
| 22 | pa0itssit=0x20 | ||
| 23 | extpagain2g=0 | ||
| 24 | #PA parameters for 2.4GHz, measured at CHIP OUTPUT | ||
| 25 | pa2ga0=-168,7161,-820 | ||
| 26 | AvVmid_c0=0x0,0xc8 | ||
| 27 | cckpwroffset0=5 | ||
| 28 | |||
| 29 | # PPR params | ||
| 30 | maxp2ga0=84 | ||
| 31 | txpwrbckof=6 | ||
| 32 | cckbw202gpo=0 | ||
| 33 | legofdmbw202gpo=0x66111111 | ||
| 34 | mcsbw202gpo=0x77711111 | ||
| 35 | propbw202gpo=0xdd | ||
| 36 | |||
| 37 | # OFDM IIR : | ||
| 38 | ofdmdigfilttype=18 | ||
| 39 | ofdmdigfilttypebe=18 | ||
| 40 | # PAPD mode: | ||
| 41 | papdmode=1 | ||
| 42 | papdvalidtest=1 | ||
| 43 | pacalidx2g=42 | ||
| 44 | papdepsoffset=-22 | ||
| 45 | papdendidx=58 | ||
| 46 | |||
| 47 | # LTECX flags | ||
| 48 | ltecxmux=0 | ||
| 49 | ltecxpadnum=0x0102 | ||
| 50 | ltecxfnsel=0x44 | ||
| 51 | ltecxgcigpio=0x01 | ||
| 52 | |||
| 53 | il0macaddr=00:90:4c:c5:12:38 | ||
| 54 | wl0id=0x431b | ||
| 55 | |||
| 56 | deadman_to=0xffffffff | ||
| 57 | # muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG | ||
| 58 | muxenab=0x1 | ||
| 59 | # CLDO PWM voltage settings - 0x4 - 1.1 volt | ||
| 60 | #cldo_pwm=0x4 | ||
| 61 | |||
| 62 | #VCO freq 326.4MHz | ||
| 63 | spurconfig=0x3 | ||
| 64 | |||
| 65 | edonthd20l=-75 | ||
| 66 | 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 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 2 | |||
| 3 | SRC_URI += "file://brcmfmac43430-sdio.txt" | ||
| 4 | |||
| 5 | do_install_append() { | ||
| 6 | install -D -m 0644 ${WORKDIR}/brcmfmac43430-sdio.txt ${D}/lib/firmware/brcm/brcmfmac43430-sdio.txt | ||
| 7 | } | ||
| 8 | |||
| 9 | FILES_${PN}-bcm43430 += " \ | ||
| 10 | /lib/firmware/brcm/brcmfmac43430-sdio.txt \ | ||
| 11 | " | ||
| 12 | |||
