在NVIDIA JetBot Nano小车上更新WIFI驱动
前言:
树莓派上的WIFI驱动类型比较多,经常有更好驱动的需求
本文给出RealTek的无线WIFI模组,8821CU的驱动更新办法
步骤
第一 通过其他方式连接网络
小车通过网线或者老的WIFI连接到网络上
第二 构建驱动模块并下载驱动
首先,我们需要打开一个ubuntu的命令行窗口;进入bash,
用三个键的联合命令,就可以打开
【CTRL】+【Alt】+【T】
构建一个存放驱动模块的文件夹
mkdir -p ~/8821CU/
cd ~/8821CU
2.下载模块
git clone https://github.com/brektrou/rtl8821CU.git
3 进入刚才文件夹
cd rtl8821CU
4.进入Jetbot的驱动配置目录,准备构建新的驱动模块,执行下面两行命令
sudo cp /lib/modules/$(uname -r)/build/arch/arm64/Makefile /lib/modules/$(uname -r)/build/arch/arm64/Makefile.$(date +%Y%m%d%H%M)
sudo sed -i 's/-mgeneral-regs-only//' /lib/modules/$(uname -r)/build/arch/arm64/Makefile
5.更新新的驱动模块
sudo apt-get install nano
nano ~/8821CU/rtl8821CU/Makefile
6.修改编译文件Makefile
将文件中102行左右的配置,
##################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM64_RPI = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
改为
##################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM64_RPI = y
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
7. 安装DKMS包
7.1 下载
sudo apt-get update
sudo apt-get install dkms7AA
7.2 配置安装
sudo ./dkms-install.sh
安装成功如下;
第三,安装硬件WIFI模块
重启Jetson Nano
第四,在Ubuntu里面配置WIFI连接
可能遇到的问题
1 DKMS安装无法解析域名 ports.ubuntu
解决办法;就是换成国内的下载源,先把linux header这些先下载了,
1.1 先备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
1.2 更新到清华源
sudo gedit /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
这样会装linux header的相关文件
1.3 注意重启网络连接
然后,用一个更新的强制的命令选项 【这个在报错的提示里面有】
1.4 重新安装dkms
然后重新执行;注意这里增加了额外的命令选项
sudo apt-get install dkms --fix-missing
如果还有问题,参考以下额外步骤
这部分,因为笔者已经没有问题,所以,没有执行
### Additional steps after plug it in, and was not recognized as a WiFi adapter:The USB ID is required to be known in order to change it later:```bash
lsusb
```In this case my adapter showed up as:```bash
Bus 001 Device 005: ID 0bda:1a2b Realtek Semiconductor Corp.
```Later, an utility has to be installed to change the USB behavior:```bash
sudo apt-get install usb_modeswitch
```Then, to change the USB behavior the following command has to be executed, note that the vendor and product ID (`-v` and `-p` flags parameters have to match with your device):```bash
sudo usb_modeswitch -KW -v 0bda -p 1a2b
```Additionally, the bluetooth service has to be activated if inactive (not really sure why **brektrou** mentions it, but I suspect that is due to some adapters that are a combination of both and may have some relation at deeper level):```bash
systemctl start bluetooth.service
```By now, it should work, but this configuration is not permanent.### Make permanent available the configuration for the WiFi adapter- The `usb_modeswitch` rules need to be open for modification:```bashsudo nano /lib/udev/rules.d/40-usb_modeswitch.rules```- Append the following prior to `LABEL="modeswitch_rules_end"` line, which is located at the end-of-file. Again, make sure to match the vendor and product ID with your device as previous commands```# Realtek 8211CU Wifi AC USBATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"```Now, configuration is **permanent** on your system.At this point it should be possible to connect to an WiFi AP by using GUI or CLI.If you would like to do a headless setup, then follow the instructions at https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant. While paying attention to stop NetworkManager process, otherwise it won't let you scan and add your WiFi AP.```bash
sudo systemctl stop NetworkManager
```## Sources- https://github.com/brektrou/rtl8821CU- https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant
参考
Linux 模块管理方法之 DKMS - 知乎 (zhihu.com)
(1条消息) Linux换国内镜像源(Ubuntu、Debian等)_linux换源_Raywit的博客-CSDN博客
在NVIDIA JetBot Nano小车上更新WIFI驱动相关推荐
- 蓝牙开关消失修复记录(win10 技嘉WiFi主板):更新蓝牙驱动不行的话,试一下更新WiFi驱动
前几天 蓝牙开关 又突然 消失 了,如下图 在网上找了很多方法,都不行: 更新蓝牙驱动,重启电脑. 结果:失败 win+R,输入services.msc,重启蓝牙服务,重启电脑.结果:失败 卸载蓝牙驱 ...
- 28 H5上rtl8189ftv wifi驱动移植
现板上带有一个sdio接口的wifi芯片: sdio其实也就是sd/mmc的接口,只是协议有区别而已.所以使用sdio接口,需要先把sd/mmc的控制器驱动才可以. 通过检查电路原理图,可以发现此wi ...
- 英伟达公开课 | 手把手教你部署一辆高速目标检测Jetbot智能小车
主讲人 | 何琨 英伟达 量子位编辑 | 公众号 QbitAI 3月26日,英伟达图像处理系列公开课第三期线上开播,来自NVIDIA开发者社区的何琨老师,与数百位开发者共同探讨了: 利用NVIDIA迁 ...
- 更新显卡驱动后黑屏无法进入系统的解决办法
帮朋友装了64位的win7,机子显卡是Nvidia GeForce 400系列,更新显卡驱动后出现不能进入系统的情况,也就是过了系统的欢迎进度条,屏幕就一片漆黑无法呈现任何画面 开始时一直认定是显卡驱 ...
- python怎么另起一行阅读答案_使用Python+Dlib构建人脸识别系统(在Nvidia Jetson Nano 2GB开发板上)...
Nvidia Jetson Nano 2GB开发板是一款新的单板机 售价59美元 运行带有GPU加速的人工智能软件.在2020年 你可以从一台售价59美元的单板计算机中获得令人惊叹的性能 让我们用它来 ...
- 使用Python+Dlib构建人脸识别系统(在Nvidia Jetson Nano 2GB开发板上)
Nvidia Jetson Nano 2GB开发板是一款新的单板机,售价59美元,运行带有GPU加速的人工智能软件. 在2020年,你可以从一台售价59美元的单板计算机中获得令人惊叹的性能,让我们用它 ...
- CAN/CANFD转WIFI设备 在agv小车上的简单应用 lcwlan-600/622
CAN/CANFD转WIFI设备 在agv小车上的简单应用 lcwlan-600/622 1,CAN/CANFD转WIFI设备的简介 LCWLAN 系列工业级 CAN 转 WiFi 设备提供一路 WL ...
- 新手入坑自动驾驶,从 JetBot 机器人小车开始,能学到什么?
也许,你曾见过 能灵活地绕开障碍物的它 在桌子边缘"疯狂试探"的它 它是谁? 没错,它就是是英伟达推出的一款入门级人工智能小车--Jetbot ,估计对机器人,尤其是对车械感兴趣的 ...
- linux的系统监视器图片_用Nvidia Jetson Nano 2GB和Python构建一个价值60美元的人脸识别系统...
作者|Adam Geitgey 编译|Flin 来源|medium 新的Nvidia Jetson Nano 2GB开发板(今天宣布!)是一款单板机,售价59美元,运行带有GPU加速的人工智能软件. ...
最新文章
- 上传文件到服务器指定目录,文件名相同自动替换PHP实现代码
- 如何在Git中克隆单个分支?
- [bat] 使用bat文件保证指定程序运行
- linux Pytorch C++ 环境搭建
- 技术面试官告诉你面试应该怎么准备?
- C++shell sort希尔排序的实现算法之一(附完整源码)
- 关于scanf对换行的吸收
- OA、CRM、进销存集成了,美女也不再愁了
- mybatis报-因为 accessExternalDTD 属性设置的限制导致不允许 http 访问
- matlab在循环中保存jpg格式_Matlab如何循环读取文件
- Android工具栏中心标题和自定义字体
- 计算机等级考试四级网络工程师真题,计算机等级考试四级网络工程师试题
- idea dubug时查看某个常量报 no such static field “xxx”
- 乔治城大学计算机科学专业,[转载]美国西北大学计算机科学研究生最新专业排名...
- 【EtherCAT实践篇】四、TwinCAT 3实验1-基本操作
- 学习编程先学什么?怎么学习编程?
- CentOS 8.1安装MySQL 8.0详解
- .Net Core 分布式微服务框架 - Jimu 添加 Swagger 支持
- GD32F405RGT6-SPI主从模式代码
- 将表格数据转为JSON