請先看『使用說明』
MB:2N8MP
From LEXWiKi
(→How to Test WIFI/BT(Sparklan WNFB-266AXI(BT) Modules) |
(→How to Test WIFI/BT(Sparklan WNFB-266AXI(BT) Modules) |
||
Line 282: | Line 282: | ||
9.Enable BT | 9.Enable BT | ||
- | |||
- | $cd /lib/firmware/bcmdhd | ||
- | |||
- | $./brcm_patchram_plus -d --enable_hci --no2bytes --tosleep 200000 --baudrate 3000000 --patchram /lib/firmware/bcmdhd/BCM4362A2_001.003.006.1059.1089.hcd /dev/ttymxc0 & | ||
- | |||
- | $hciconfig hci0 up | ||
- | |||
- | $hciconfig | ||
[[Image:bt.jpg]] | [[Image:bt.jpg]] |
Revision as of 15:51, 29 May 2024
O.S. | CPU | Rev | LVDS | HDMI | Dual output | M.2(B key) | nano SIM | USB2.0 | USB3.0 | PCIE | LAN | COM-422 | COM-485 | F75111N | WDT/DIO | TPM2.0 | CN059 | AU002 | Download | Patch |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zeus_yocto |
A53 |
0.3 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
- |
Yes |
Yes |
kernel5.4.70 | |
kirkstone_yocto |
A53 |
0.3 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
- |
Yes |
Yes |
kernel5.15.71 | |
kirkstone_desktop |
A53 |
0.3 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
- |
- |
kernel5.15.71 |
Contents |
How to Test CIO/CPWM1
Download Sample code
DIO.ZIP https://drive.google.com/file/d/1ozNkJM7kMCuZY4z5h6gxbEk6VwjMniiT/view?usp=drive_link
Note
TPM2.0 only kirkstone_desktop Test, because other kernel not support clevis tool
How to Test CN059/AU002
root@imx8mpevk:~# cat /proc/asound/cards
0 [audiohdmi ]: audio-hdmi - audio-hdmi audio-hdmi 1 [Device ]: USB-Audio - USB Advanced Audio Device C-Media Electronics Inc. USB Advanced Audio Device at usb-xhci-hcd.1.auto-1.4.4
1.CN059/AU002 Recored Test
root@imx8mpevk:~# arecord -Dhw:1,0 -d 5 -f cd -r 44100 test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
2.CN059/AU002 play Test
root@imx8mpevk:~# aplay -Dhw:1,0 -f cd -r 44100 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
3.CN059/AU002 Record+Play Test
3-1.check sound card
pactl list sinks
pactl list sources
3-2.assignation Sound Card source:
pacmd set-default-source 1 (Microphone)
3-3.assignation Sound Card sink
pacmd set-default-sink 0 (C-Media)
3-4. Line In / Mic In Test
Line In Test : First Modify source Active Port is analog-input-linein:
pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-linein
Mic In Test:First Modify source Active Port = analog-input-mic(Default):
pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-mic
3-5.Arecord + Play Command
arecord –Dhw:1,0 –d 5 –f cd –r 44100 | aplay –Dhw:1,0 –r44100
Support 4G/5G LTE Module
SIMCOM SIM7906G-M2,LTE CAT6 M.2 Type Module
SIMCOM SIM8200EA-M2
Support WIFI/BT Module
AzureWave AW-CM276MA SDIO-UART
How to Test WIFI/BT(Sparklan WNFB-266AXI(BT) Modules
WNFB-266AXI(BT) firmware file https://drive.google.com/file/d/18ms4wlhH81pfqyqfQKgiZCtPfeLikIy3/view?usp=sharing
WIFI/BT source code https://drive.google.com/file/d/1r8nv0mBHGocV-4fwtleFyeN6l4Xq9dQD/view?usp=sharing
1.新增CONFIG到/kernel-source/arch/arm64/boot/configs/imx_v8_defconfig
2.bcmdhd.tar.gz extract to /kernel-source/drivers/net/wireless/
3.cp -r bcmdhd/include /kernel-source/include
4.build image(bitbake imx-image-multimedia)
5.into 2n8mp and create bcmdhd folder unzip sparklan_wnfb-266axi(bt)_fw.zip mkdir /lib/firmware/bcmdhd cd /fw/ cp -v *.* /lib/firmware/bcmdhd
6.reboot
7.ifconfig wlan0 up
8.Test WIFI Function vi /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="BONA_5G" psk="0222281056"
}
Start:
wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 &
Get IP:
udhcpc -i wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.100.100.39 netmask 255.255.255.0 broadcast 10.100.100.255 inet6 fe80::20e:8eff:feb2:72da prefixlen 64 scopeid 0x20<link> ether 00:0e:8e:b2:72:da txqueuelen 1000 (Ethernet) RX packets 57 bytes 5737 (5.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 51 bytes 6626 (6.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@imx8mpevk:/lib/firmware/bcmdhd# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=13.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=12.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=12.2 ms
9.Enable BT