AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1013682
Accepted
NickG
NickG
Asked: 2018-03-11 06:33:48 +0800 CST2018-03-11 06:33:48 +0800 CST 2018-03-11 06:33:48 +0800 CST

BeagleBone Black Wireless 与 Ubuntu Xenial 16.04 Wifi 不工作

  • 772

我有 BeagleBone Black Wireless,并且我已经将Ubuntu 16.04 刷到了它。我正在尝试使 WiFi 正常工作,但到目前为止都失败了。我已经尝试/etc/network/interfaces通过添加以下命令来修改文件wlan0,但没有任何运气:

auto wlan0
   iface wlan0 inet static
   address 192.168.1.2
   netmask 255.255.255.0
   gateway 192.168.1.1
   wireless-mode ad-hoc
   wireless-essid BBB

在一些论坛中,人们建议使用connmanctl,但是在 Ubuntu 中没有这样的预安装包。我也不能把它下载到 BBBw,因为它的 WiFi 不工作。我尝试通过与 PC 的 USB 连接将 BBBw 连接到互联网,我将此连接编辑为“与其他计算机共享”,但同样,我没有与 BBBw 的互联网连接。

总而言之,我的问题是:有没有一种简单的方法可以使 BBBw(使用 Ubuntu)的 WiFi 工作,而无需使用connmanctl?

如果没有,任何有关如何安装的详细信息connmanctl将不胜感激。

我包括了整个/etc/network/interfaces文件,以及我添加的部分,它出现在注释“以下行wlan0由我添加”之后。

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# The following lines for the wlan0 were added by me
# Ad-Hoc wifi
auto wlan0
   iface wlan0 inet static
   address 192.168.1.2
   netmask 255.255.25a5.0
   gateway 192.168.1.1
   wireless-mode ad-hoc
   wireless-essid BBB

##connman: ethX static config
#connmanctl services
#Using the appropriate ethernet service, tell connman to setup a static IP address for that service:
#sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>

##connman: WiFi
#
#connmanctl
#connmanctl> tether wifi off
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> quit

# Ethernet/RNDIS gadget (g_ether)
# Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.252
    network 192.168.7.0
    gateway 192.168.7.1
  • 网络诊断结果
wireless 16.04 beagleboard
  • 1 1 个回答
  • 1170 Views

1 个回答

  • Voted
  1. Best Answer
    NickG
    2018-05-20T15:02:07+08:002018-05-20T15:02:07+08:00

    我找到了一种让 BBBw 的 WiFi 工作的方法。

    1. 首先将以下行添加到 BBBw 的 etc/network/interfaces 文件中(您需要通过其他方式访问它,例如与笔记本电脑的串行连接):

      auto wlan0
          iface wlan0 inet dhcp
          wpa-ssid yourSSID
          wpa-psk yourPass
      
    2. 重启 BBBw
    3. 然后你必须更新固件(感谢 jeremy31 提供的信息:https ://ubuntuforums.org/showthread.php?t=2386780 ):

      sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ti-connectivity/wl18xx-fw-4.bin
      

      将上述.bin文件复制到BBBw的lib/firmware/ti-connectivity目录下

    4. 重启 BBBw

    完成这些操作后,您必须建立与您的 linux PC 的连接,以便 BBBw 连接到该连接。此连接应该是“共享到其他计算机”,热点模式,WPA/WPA2 个人,并且具有与接口文件中的相同的 ssid。

    之后,您的 BBBw 应该能够连接到您的 PC。如果您希望您的 BBBw 能够访问 Internet,则必须将以太网电缆连接到您的 PC。“共享到其他计算机”热点连接会将 PC 的以太网 Internet 共享给 BBBw。

    更多问题:

    • 很有可能,为了让 BBBw 连接到 PC 的热点连接,您不应该在 BBBw 启动期间连接 PC 的 Internet 以太网电缆(BBBw 在启动时试图找到一个网络连接)。
    • 直到刷新了最新的 ubuntu armhf 控制台映像(即 2018-03-09 版本)后,Wifi 仍然无法正常工作。我还没有设法使旧的 2018-02-09 版本工作。
    • 1

相关问题

  • 华为EC-1260(Tata Photon)USB上网设备如何通过家庭无线网络共享互联网?

  • 如何将 Ubuntu 设置为无线接入点?

  • 如何为 LG X130 上网本安装 relink 无线驱动程序

  • 无论用户是否登录,如何配置 WiFi 以在启动时登录 WPA?

  • 如何设置与 Eee PC 1005 的无线连接?[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve