野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2862|回复: 8

[求助] LBC0 W WLAN0 不可见

[复制链接]
发表于 2023-3-24 15:40:42 | 显示全部楼层 |阅读模式
各位,下午好!


我淘了一个LBC0 WiFi板子,安装了最新的image。登录后,但看不到 wlan0 网卡,这是什么原因?
0. uname

Linux lubancat 4.19.232 #1 SMP Sat Mar 11 17:38:42 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

1. 登录后,ip指令


cat@lubancat:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 46:bb:b1:8a:7d:97 brd ff:ff:ff:ff:ff:ff
    inet 192.168.137.111/24 brd 192.168.137.255 scope global dynamic noprefixroute usb0
       valid_lft 604775sec preferred_lft 604775sec
    inet6 fe80::679d:1b77:9647:cc73/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
cat@lubancat:~$


2. dmesg信息


cat@lubancat:~$ dmesg | grep wlan
[    0.404949] usbcore: registered new interface driver rndis_wlan
[    1.352380] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    1.352964] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    1.353040] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = rtl8821cu
[    1.353061] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[    1.353082] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    1.353122] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,poweren_gpio = 17 flags = 1.
[    1.353164] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[    1.353186] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    1.353239] [WLAN_RFKILL]: Exit rfkill_wlan_probe


cat@lubancat:~$ dmesg | grep usb

[    1.656971] phy phy-fe8a0000.usb2-phy.1: charger = USB_SDP_CHARGER
[    1.729623] usb 1-1: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00
[    1.729682] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.729706] usb 1-1: Product: 802.11ac NIC
[    1.729722] usb 1-1: Manufacturer: Realtek
[    1.729740] usb 1-1: SerialNumber: 123456


3. systemctl status

wpa_supplicant 服务是启动的。
● lubancat
    State: degraded
     Jobs: 0 queued
   Failed: 3 units
    Since: Fri 2017-08-04 17:00:07 CST; 5 years 7 months ago
   CGroup: /
           ├─user.slice
           │ └─user-1000.slice
           │   ├─user@1000.service
           │   │ └─init.scope
           │   │   ├─467 /lib/systemd/systemd --user
           │   │   └─471 (sd-pam)
           │   └─session-c1.scope
           │     ├─391 sshd: cat [priv]
           │     ├─539 sshd: cat@pts/0
           │     ├─542 -bash
           │     ├─577 systemctl status
           │     └─578 pager
           ├─init.scope
           │ └─1 /sbin/init
           └─system.slice
             ├─systemd-udevd.service
             │ └─161 /lib/systemd/systemd-udevd
             ├─cron.service
             │ └─229 /usr/sbin/cron -f -P
             ├─system-serial\x2dgetty.slice
             │ └─serial-getty@ttyFIQ0.service
             │   └─357 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyFIQ0 vt220
             ├─polkit.service
             │ └─235 /usr/libexec/polkitd --no-debug
             ├─networkd-dispatcher.service
             │ └─234 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
             ├─bluetooth.service
             │ └─228 /usr/lib/bluetooth/bluetoothd
             ├─wpa_supplicant.service
             │ └─241 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
             ├─ModemManager.service
             │ └─265 /usr/sbin/ModemManager
             ├─systemd-journald.service
             │ └─131 /lib/systemd/systemd-journald
             ├─ssh.service
             │ └─362 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
             ├─bluez-alsa.service
             │ └─261 /usr/bin/bluealsa
             ├─NetworkManager.service
             │ └─231 /usr/sbin/NetworkManager --no-daemon
             ├─vsftpd.service
             │ └─358 /usr/sbin/vsftpd /etc/vsftpd.conf
             ├─rsyslog.service
             │ └─239 /usr/sbin/rsyslogd -n -iNONE
             ├─cups-browsed.service
             │ └─365 /usr/sbin/cups-browsed
             ├─cups.service
             │ ├─347 /usr/sbin/cupsd -l
             │ └─364 /usr/lib/cups/notifier/dbus dbus://
             ├─systemd-resolved.service
             │ └─224 /lib/systemd/systemd-resolved
             ├─ntp.service
             │ └─361 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:103
             ├─dbus.service
             │ └─230 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
             ├─system-getty.slice
             │ └─getty@tty1.service
             │   └─354 /sbin/agetty -o -p -- \u --noclear tty1 linux
             ├─avahi-daemon.service
             │ ├─227 avahi-daemon: running [lubancat.local]
             │ └─242 avahi-daemon: chroot helper
             └─systemd-logind.service
               └─240 /lib/systemd/systemd-logind


4. systemctl failed


cat@lubancat:~$ sudo systemctl list-units --failed
  UNIT               LOAD   ACTIVE SUB    DESCRIPTION
● adbd.service       loaded failed failed adbd for ubuntu
● rkwifibt.service   loaded failed failed LSB: Setup rockchip platform environment


第二个failed,不知什么原因

5. dmesg - bluetooth related


cat@lubancat:~$ dmesg | grep Bluetooth
[    0.161918] Bluetooth: Core ver 2.22
[    0.162044] Bluetooth: HCI device and connection manager initialized
[    0.162093] Bluetooth: HCI socket layer initialized
[    0.162137] Bluetooth: L2CAP socket layer initialized
[    0.162208] Bluetooth: SCO socket layer initialized
[    1.345195] Bluetooth: RFCOMM TTY layer initialized
[    1.345233] Bluetooth: RFCOMM socket layer initialized
[    1.345275] Bluetooth: RFCOMM ver 1.11
[    1.345304] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.345329] Bluetooth: HIDP socket layer initialized
[    6.029117] Bluetooth: hci0: command 0x1001 tx timeout
[   13.922644] Bluetooth: hci0: RTL: HCI_OP_READ_LOCAL_VERSION failed (-110)


回复

使用道具 举报

发表于 2023-3-27 11:00:53 | 显示全部楼层
本帖最后由 おおおじ。 于 2023-3-27 11:03 编辑

把这个内核deb包解压到板子,然后更新下内核
sudo dpkg -i  xxxxx.deb

kernel_deb.zip

13.51 MB, 下载次数: 10

回复 支持 1 反对 0

使用道具 举报

发表于 2023-3-27 10:29:38 | 显示全部楼层
联系淘宝客服获取最新内核更新包更新一下应该就ok
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-3-27 11:52:38 | 显示全部楼层
おおおじ。 发表于 2023-3-27 11:00
把这个内核deb包解压到板子,然后更新下内核
sudo dpkg -i  xxxxx.deb

按照提示,我试了一下,现在能发现 wlan 了。谢谢。

另外,通过 RDNIS 建立主机和 LBC 的网络连接很不稳定,如何解决?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-3-27 13:22:17 | 显示全部楼层
wpa_supplicant.service 似乎有问题 - 即使设置好了wpa_supplicant.conf也不能连接到网络。

对照树莓派,有一个dhcpcd服务会使用wpa_supplicant.service。Image中好像没有这个服务,而使用的是dhclient,而且绑定的是usb0.

临时的解决办法是systemctl stop wpa_supplicant.service,手动启动:
sudo wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf&

然后 dhclient

这样能获得wlan的网络连接。
回复 支持 反对

使用道具 举报

发表于 2023-3-28 08:59:58 | 显示全部楼层
xuniuer99 发表于 2023-3-27 11:52
按照提示,我试了一下,现在能发现 wlan 了。谢谢。

另外,通过 RDNIS 建立主机和 LBC 的网络连接很不稳 ...

在RDNIS网络下使用iperf3进行了3h的数据传输,并未发生网络断开的现象,后续通过ssh再测试一下
回复 支持 反对

使用道具 举报

发表于 2023-3-28 09:05:41 | 显示全部楼层
xuniuer99 发表于 2023-3-27 13:22
wpa_supplicant.service 似乎有问题 - 即使设置好了wpa_supplicant.conf也不能连接到网络。

对照树莓派, ...

使用nmtui去连接,暂未遇到过无法连接网络或无法自动获取ip的问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-3-28 11:34:27 | 显示全部楼层
我用的是putty(ver. 0.78),win 11 的环境。几分钟之内,闲置或者操作时,就会断开网络。

Putty提示:Network error. Software caused connection abort.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-3-29 11:08:59 | 显示全部楼层
H781997429 发表于 2023-3-28 08:59
在RDNIS网络下使用iperf3进行了3h的数据传输,并未发生网络断开的现象,后续通过ssh再测试一下 ...

通过 ssh 测试有结果了吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-4-19 10:28 , Processed in 0.045127 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表