Stack on the top side
Stack the WiFi TF-card on the bottom side
Execute the following commands to setup wlan0:
Short Cut:
Long Way:
First enable the UART in dts:
uart0_pins_a: uart0@0 { pins = "PB8", "PB9"; function = "uart0";bias-pull-up; };
uart1_pins_a: uart1@0 { Pins = "PE21", "PE22"; function = "uart1";bias-pull-up; };
uart2_pins_a: uart2@0 { pins = "PB0", "PB1"; function = "uart2";bias-pull- Up; };
&uart0 { pinctrl-0 = <&uart0_pins_a>;pinctrl-names = "default";status = "okay"; };
&uart1 { pinctrl-0 = <&uart1_pins_a>;pinctrl-names = "default";status = "okay"; };
&uart2 { pinctrl-0 = <&uart2_pins_a>;pinctrl-names = "default";status = "okay"; };
Then enable Bluetooth in the kernel:
[ ]Networking support->Bluetooth subsystem support
[ ]Networking support->Bluetooth subsystem support->Bluetooth device->
HC UART driver->Three-wire UART (H5) protocol support
./start_bt.sh ttyS2
hciconfig -a
hciconfig hci0 up
hcitool scan
WiFi module inserts okay, but 'ifconfig -a' shows no wlan0
root@LicheePi:~# insmod r8723bs.ko
[ 37.054004] r8723bs: loading out-of-tree module taints kernel.
[ 37.090084] RTL8723BS: module init start
[ 37.094173] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 37.101496] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 37.108377] RTL8723BS: module init ret =0
root@LicheePi:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)usb0 Link encap:Ethernet HWaddr 96:c0:f5:f1:ab:22
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)check the first partition’s boot.scr is right?
root@LicheePi:~# mount /dev/mmcblk0p1 /mnt/
root@LicheePi:~# ls /mnt/
boot.scr sun8i-v3s-licheepi-zero-dock.dtb zImage
sun8i-v3s-licheepi-zero-ctc.dtb sun8i-v3s-licheepi-zero.dtb
root@LicheePi:~# cat /mnt/boot.scr
setenv bootargs console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
load mmc 0:1 0x41000000 zImage
load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-ctc.dtb <--wrong dtb file
bootz 0x41000000 - 0x41800000The right dtb that open the wifi function is sun8i-v3s-licheepi-zero-dock.dtb, you can find it in zero_imager or github.
Download the following dtb file: https://licheepizero.us/downloads/sun8i-v3s-licheepi-zero-dock.dtb
WiFi module insert fails
root@LicheePi:~# insmod r8723bs.ko
insmod: ERROR: could not insert module r8723bs.ko: Invalid module format
The module version is wrong, download the correct module at: https://licheepizero.us/downloads/r8723bs.ko
WiFi module is poor welding, or you didn’t remove the resistor as noted above.