PINE64
WiFi/BT, How to make a connection? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: RockPro64 Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=102)
+--- Thread: WiFi/BT, How to make a connection? (/showthread.php?tid=6597)



WiFi/BT, How to make a connection? - Aesop - 09-27-2018

How to make a WiFi/BT connection via shell command?

Tried WiFi first but doesn't succeed yet.

The following is some log.



Environment
- - - - - - - - - -
Board : RockPro64
OS : bionic-minimal-rockpro64-0.6.59-273-arm64.img
WiFi/BT Module : ROCKPro64 2×2 MIMO Dual Band WIFI 802.11AC/BLUETOOTH 4.2 MODULE[url=https://www.pine64.org/?product=rockpro64-2x2-mimo-dual-band-wifi-802-11acbluetooth-4-1-module][/url]


Log
- - -
Quote:rock64@rockpro64:~$ uname -a
Linux rockpro64 4.4.132-rockchip-ayufan-273 #1 SMP Tue Jul 3 21:35:20 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

rock64@rockpro64:~$ sudo ip link set wlan0 up
RTNETLINK answers: Operation not permitted

rock64@rockpro64:~$ sudo ifconfig wlan0 up
SIOCSIFFLAGS: Operation not permitted

rock64@rockpro64:~$ networkctl | awk '/wlan/ {print $2}'
wlan0

rock64@rockpro64:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet6 fe80::ec26:f5ff:fe58:fd1f  prefixlen 64  scopeid 0x20<link>
        ether ee:26:f5:58:fd:1f  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5  bytes 681 (681.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 24  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

rock64@rockpro64:~$ sudo lshw -c network
  *-network:0 DISABLED      
       description: Wireless interface
       physical id: 7
       logical name: wlan0
       serial: ac:83:f3:e6:25:16
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=wl driverversion=0 multicast=yes wireless=IEEE 802.11
  *-network:1
       description: Ethernet interface
       physical id: 8
       logical name: eth0
       serial: ee:26:f5:58:fd:1f
       size: 10Mbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp aui bnc mii fibre 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=March_2013 duplex=half link=no multicast=yes port=MII speed=10Mbit/s

rock64@rockpro64:~$ rfkill list all
0: bt_default: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
        Soft blocked: no
        Hard blocked: no

rock64@rockpro64:~$ lsmod
Module                  Size  Used by
zram                   32768  6
lz4_decompress         16384  1 zram
lz4_compress           16384  1 zram
bcmdhd               1183744  0
rockchip_saradc        16384  0
snd_soc_rockchip_spdif    16384  2
snd_soc_rockchip_i2s    16384  4
snd_soc_rockchip_hdmi_dp    16384  0
ip_tables              24576  0
x_tables               32768  1 ip_tables
autofs4                40960  0
dw_hdmi_i2s_audio      16384  0

rock64@rockpro64:~$ nmcli c
NAME  UUID  TYPE  DEVICE 

rock64@rockpro64:~$ modinfo -p bcmdhd
dhd_doflow: (uint)
dhd_dpcpoll: (uint)
clockoverride:SDIO card clock override (int)
sd_msglevel: (uint)
sd_power: (uint)
sd_clock: (uint)
sd_divisor: (uint)
sd_sdmode: (uint)
sd_hiok: (uint)
sd_f2_blocksize: (int)
sd_f1_blocksize: (int)
g_assert_type: (int)
dhd_oob_gpio_numBig GrinHD oob gpio number (int)
clm_path: (string)
info_string: (string)
op_mode: (int)
dhd_msg_level: (int)
iw_msg_level: (int)
wl_dbg_level: (int)
android_msg_level: (int)
config_msg_level: (int)
dhd_arp_enable: (uint)
dhd_arp_mode: (uint)
disable_proptx: (int)
firmware_path: (string)
nvram_path: (string)
config_path: (string)
dhd_watchdog_ms: (uint)
dhd_console_ms: (uint)
dhd_slpauto: (uint)
dhd_pkt_filter_enable: (uint)
dhd_pkt_filter_init: (uint)
dhd_master_mode: (uint)
dhd_watchdog_prio: (int)
dhd_dpc_prio: (int)
dhd_rxf_prio: (int)
dhd_dongle_ramsize: (int)
passive_channel_skip: (int)
instance_base: (int)
iface_name: (string)
dhd_idletime: (int)
dhd_poll: (uint)
dhd_intr: (uint)
dhd_sdiod_drive_strength: (uint)
dhd_txbound: (uint)
dhd_rxbound: (uint)
dhd_deferred_tx: (uint)
dhd_pktgen: (uint)
dhd_pktgen_len: (uint)
allow_delay_fwdl: (int)