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