JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 50 of 84
C1 - Public
After loading the Wi-Fi driver with combo firmware, we do not need to specify the Bluetooth firmware
while loading the driver. The UART host interface of the JODY-W2 series module must be configured
for Bluetooth. See also
☞
The
hci_uart.ko
kernel module is distributed with the kernel sources, which means that
BT_HCIUART feature might already be included in the kernel. If this is the case, it is not
possible to load the module provided by NXP. The kernel configuration should include
CONFIG_BT_HCIUART=m
and must not include
CONFIG_BT_HCIUART=y
so that it allows us to load the
proprietary module provided by NXP.
3.11.3.2
Parallel mode
In parallel mode, two different firmware binary files are used together with the respective driver. Set
the driver parameter
fw_serial=0
to configure the download operation in parallel mode, as shown
below.
To download the Bluetooth firmware over UART, we need
fw_loader
built from
uartfwloader_src
present in the
SDIO-UART
driver package. Sample to download along with all the parameters is shown
below.
☞
Note the sequence. The firmware is downloaded first and is then followed by driver.
☞
The example uses
/dev/ttyUSB0
as the serial device port. Replace it with the port where the
JODY-W2 series UART interface is connected to the host system.
# insmod ./hci_uart.ko
[ 435.469227] HCI UART driver ver 2.2-M2614100
[ 435.477280] HCI H4 protocol initialized
[ 435.502009] HCI BCSP protocol initialized
[ 435.511552] HCILL protocol initialized
# insmod mlan.ko
# insmod sd8987.ko fw_name=mrvl/sd8987_wlan_jody-w2-sdiouart.bin cfg80211_wext=0xf
cal_data_cfg=none
fw_serial=0
# fw_loader /dev/ttyUSB0 115200 0 /lib/firmware/mrvl/uart8987_bt_jody-w2-sdiouart.bin
3000000
Protocol: Marvell Proprietary
FW Loader Version: M304
ComPort : /dev/ttyUSB0
BaudRate: 115200
FlowControl: 0
Filename: /lib/firmware/mrvl/uart8987_bt_jody-w2-sdiouart.bin
Second BaudRate: 3000000
File downloaded: 204864: 204864
Download Complete
time:8060
CTS is low
# insmod hci_uart.ko