@[TOC](wfb-ng Release 23.01镜像无头烧录&配置(1))

最近打算搭一个数字图传系统,并进行一些简单测试,在刚开始烧录阶段就遇到各种问题。

当然,主要的问题就是不熟悉,经过几天的摸索和学习,记录下一路遇到的问题,将问题圆满的解决将会是产品化的细化内容。

1. 源由

基于开源树莓派硬件和wfb-ng开源软件,搭建一套数字图传系统,进行简单视频测试。

2. 需求

从源由的角度,我们这里如下技术需求:

  1. 硬件配置:树莓派 + 摄像头 – 笔记本电脑
  2. 软件配置:raspivid + wfb-ng + gstreamer1.0

3. 分析

鉴于wfb-ng目前已经提供镜像文件,因此安装将会非常方便,直接采用:

  • 软件镜像:Release 23.01

4. 步骤

4.1 镜像安装&USB登录

请参考Raspbian镜像无头烧录,将固件Release 23.01刷写到tf卡

注:无需配置无线2.4G WiFi登录,将在后续优化配置时进行调整。

4.2 配置RNDIS-ethernet bridge更新镜像


更新apt库

pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.                                                                                       2 MB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [315 kB                                                                              ]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf Contents (deb) [1,314 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Contents (deb) [41.3 MB]
Fetched 56.2 MB in 2min 13s (421 kB/s)
Reading package lists... Done

更新系统

pi@raspberrypi:~ $ sudo apt-get upgrade

如果更新存在问题,请使用下面命令

pi@raspberrypi:~ $ sudo apt-get upgrade --fix-broken
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:eject exfatprogs gdisk libatasmart4 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2libblockdev-utils2 libblockdev2 libgpgme11 libnl-route-3-200 libparted-fs-resize0 libpcsclite1 libudisks2-0 libvolume-key1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:wpasupplicant
The following packages have been kept back:raspinfo
The following packages will be upgraded:base-files bind9-host bind9-libs bluez-firmware curl distro-info-data git git-man gtk-update-icon-cache libavcodec-dev libavcodec58 libavformat-dev libavformat58libavutil-dev libavutil56 libbluray2 libcamera-apps-lite libcamera0 libcurl3-gnutls libcurl4 libde265-0 libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesalibglx-mesa0 libgnutls30 libgtk-3-0 libgtk-3-bin libgtk-3-common libksba8 liblept5 libnftables1 libnss3 libopenexr-dev libopenexr25 libpq5 libraspberrypi-binlibraspberrypi-dev libraspberrypi-doc libraspberrypi0 libssl1.1 libswresample-dev libswresample3 libswscale-dev libswscale5 libtasn1-6 libtiff-dev libtiff5libtiffxx5 linux-libc-dev mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers nano nftables openssl raspberrypi-bootloader raspberrypi-kernelraspberrypi-kernel-headers raspi-config rpi-eeprom sudo tzdata vcdbg
65 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 200 MB of archives.
After this operation, 2,336 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libssl1.1 armhf 1.1.1n-0+deb11u4+rpt1 [1,293 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf base-files armhf 11.1+rpi1+deb11u6 [70.4 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nftables armhf 0.9.8-3.1+deb11u1 [68.0 kB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf bluez-firmware all 1.2-4+rpt10 [200 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf gtk-update-icon-cache armhf 3.24.24-4+rpt12+deb11u2 [87.7 kB]
Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf libavformat-dev armhf 7:4.3.5-0+deb11u1+rpt3 [1,817 kB]
Get:10 http://archive.raspberrypi.org/debian bullseye/main armhf libavcodec-dev armhf 7:4.3.5-0+deb11u1+rpt3 [10.3 MB]
Get:16 http://archive.raspberrypi.org/debian bullseye/main armhf libavformat58 armhf 7:4.3.5-0+deb11u1+rpt3 [1,570 kB]
Get:14 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf bind9-libs armhf 1:9.16.37-1~deb11u1 [1,271 kB]
Get:19 http://archive.raspberrypi.org/debian bullseye/main armhf libavcodec58 armhf 7:4.3.5-0+deb11u1+rpt3 [9,133 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libnftables1 armhf 0.9.8-3.1+deb11u1 [227 kB]
Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libtasn1-6 armhf 4.16.0-2+deb11u1 [50.0 kB]
Get:9 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libgnutls30 armhf 3.7.1-5+deb11u3 [1,269 kB]
Get:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libksba8 armhf 1.5.0-3+deb11u2 [104 kB]
Get:15 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf bind9-host armhf 1:9.16.37-1~deb11u1 [307 kB]
Get:12 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf tzdata all 2021a-1+deb11u8 [284 kB]
Get:13 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nano armhf 5.4-2+deb11u2 [625 kB]
Get:17 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf curl armhf 7.74.0-1.3+deb11u7 [258 kB]
Get:18 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcurl4 armhf 7.74.0-1.3+deb11u7 [310 kB]
Get:20 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf distro-info-data all 0.51+deb11u3 [7,812 B]
Get:21 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf git-man all 1:2.30.2-1+deb11u2 [1,828 kB]
Get:27 http://archive.raspberrypi.org/debian bullseye/main armhf libswresample-dev armhf 7:4.3.5-0+deb11u1+rpt3 [131 kB]
Get:28 http://archive.raspberrypi.org/debian bullseye/main armhf libswresample3 armhf 7:4.3.5-0+deb11u1+rpt3 [121 kB]
Get:30 http://archive.raspberrypi.org/debian bullseye/main armhf libswscale-dev armhf 7:4.3.5-0+deb11u1+rpt3 [278 kB]
Get:31 http://archive.raspberrypi.org/debian bullseye/main armhf libavutil-dev armhf 7:4.3.5-0+deb11u1+rpt3 [604 kB]
Get:32 http://archive.raspberrypi.org/debian bullseye/main armhf libswscale5 armhf 7:4.3.5-0+deb11u1+rpt3 [261 kB]
Get:33 http://archive.raspberrypi.org/debian bullseye/main armhf libavutil56 armhf 7:4.3.5-0+deb11u1+rpt3 [464 kB]
Get:34 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi-bin armhf 1:2+git20220616~133208+6e8f786-1 [147 kB]
Get:35 http://archive.raspberrypi.org/debian bullseye/main armhf libraspberrypi-dev armhf 1:2+git20220616~133208+6e8f786-1 [177 kB]
Get:36 http://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel armhf 1:1.20230106-1 [99.1 MB]
Get:22 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcurl3-gnutls armhf 7.74.0-1.3+deb11u7 [306 kB]
Get:23 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf git armhf
... bla bla... bla ... bla. ...
Removing 'diversion of /boot/start4cd.elf to /usr/share/rpikernelhack/start4cd.elf by rpikernelhack'
Removing 'diversion of /boot/start4db.elf to /usr/share/rpikernelhack/start4db.elf by rpikernelhack'
Removing 'diversion of /boot/start4x.elf to /usr/share/rpikernelhack/start4x.elf by rpikernelhack'
Removing 'diversion of /boot/fixup4.dat to /usr/share/rpikernelhack/fixup4.dat by rpikernelhack'
Removing 'diversion of /boot/fixup4cd.dat to /usr/share/rpikernelhack/fixup4cd.dat by rpikernelhack'
Removing 'diversion of /boot/fixup4db.dat to /usr/share/rpikernelhack/fixup4db.dat by rpikernelhack'
Removing 'diversion of /boot/fixup4x.dat to /usr/share/rpikernelhack/fixup4x.dat by rpikernelhack'
Removing 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
Setting up libglapi-mesa:armhf (20.3.5-1+rpt5+rpi1) ...
Setting up libraspberrypi0:armhf (1:2+git20220616~133208+6e8f786-1) ...
Setting up nano (5.4-2+deb11u2) ...
Setting up libcurl4:armhf (7.74.0-1.3+deb11u7) ...
Setting up git-man (1:2.30.2-1+deb11u2) ...
Setting up libswscale5:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libtiff5:armhf (4.2.0-1+deb11u4) ...
Setting up curl (7.74.0-1.3+deb11u7) ...
Setting up mesa-va-drivers:armhf (20.3.5-1+rpt5+rpi1) ...
Setting up libcamera0:armhf (0~git20230302+923f5d70-1) ...
Setting up libbluray2:armhf (1:1.2.1-4+deb11u2) ...
Setting up libde265-0:armhf (1.0.11-0+deb11u1+rpi1) ...
Setting up bind9-host (1:9.16.37-1~deb11u1) ...
Setting up openssl (1.1.1n-0+deb11u4+rpt1) ...
Setting up raspi-config (20230214) ...
Installing new version of config file /etc/init.d/raspi-config ...
Setting up libgtk-3-common (3.24.24-4+rpt12+deb11u2) ...
Setting up libtiffxx5:armhf (4.2.0-1+deb11u4) ...
Setting up vcdbg (1:1.20230106-1) ...
Setting up libavutil-dev:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libgl1-mesa-dri:armhf (20.3.5-1+rpt5+rpi1) ...
Setting up libswresample3:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libraspberrypi-bin (1:2+git20220616~133208+6e8f786-1) ...
Setting up liblept5:armhf (1.79.0-1.1+deb11u1) ...
Setting up libegl-mesa0:armhf (20.3.5-1+rpt5+rpi1) ...
Setting up libtiff-dev:armhf (4.2.0-1+deb11u4) ...
Setting up libswscale-dev:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up git (1:2.30.2-1+deb11u2) ...
Setting up libraspberrypi-dev (1:2+git20220616~133208+6e8f786-1) ...
Setting up libcamera-apps-lite (0~git20230301+54a781d-1) ...
Setting up rpi-eeprom (16.0-1) ...
Setting up libavcodec58:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libglx-mesa0:armhf (20.3.5-1+rpt5+rpi1) ...
Setting up libswresample-dev:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libavformat58:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libavcodec-dev:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libavformat-dev:armhf (7:4.3.5-0+deb11u1+rpt3) ...
Setting up libraspberrypi-doc (1:2+git20220616~133208+6e8f786-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
Processing triggers for install-info (6.7.0.dfsg.2-6) ...
Processing triggers for libglib2.0-0:armhf (2.66.8-1) ...
Setting up libgtk-3-0:armhf (3.24.24-4+rpt12+deb11u2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
Setting up libgtk-3-bin (3.24.24-4+rpt12+deb11u2) ...

4.3 安装wpasupplicant

pi@raspberrypi:~ $ sudo apt-get install wpasupplicant
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:eject exfatprogs gdisk libatasmart4 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2libblockdev-utils2 libblockdev2 libgpgme11 libparted-fs-resize0 libudisks2-0 libvolume-key1
Use 'sudo apt autoremove' to remove them.
Suggested packages:wpagui libengine-pkcs11-openssl
The following NEW packages will be installed:wpasupplicant
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,027 kB of archives.
After this operation, 2,828 kB of additional disk space will be used.
Get:1 http://mirrors.zju.edu.cn/raspbian/raspbian bullseye/main armhf wpasupplicant armhf 2:2.9.0-21 [1,027 kB]
Fetched 1,027 kB in 3s (358 kB/s)
Selecting previously unselected package wpasupplicant.
(Reading database ... 121066 files and directories currently installed.)
Preparing to unpack .../wpasupplicant_2%3a2.9.0-21_armhf.deb ...
Unpacking wpasupplicant (2:2.9.0-21) ...
Setting up wpasupplicant (2:2.9.0-21) ...
wpa_supplicant.service is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...

4.4 优化WiFi配置

将Raspberry Pi Zero W默认wifi网卡去掉屏蔽

pi@raspberrypi:~ $ sudo nano /etc/modprobe.d/blacklist-rtl8xxxu.conf
pi@raspberrypi:~ $ cat /etc/modprobe.d/blacklist-rtl8xxxu.conf
#blacklist brcmfmac
blacklist rtl8xxxu

配置wpa无线路由账号密码

pi@raspberrypi:~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
pi@raspberrypi:~ $ cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CNnetwork={ssid="your-network-ssid"psk="your-network-password"
}

修改**【Raspberry Pi 3b+】**网络接口定义

pi@raspberrypi:~ $ sudo nano /etc/network/interfaces
pi@raspberrypi:~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*auto lo
iface lo inet loopbackauto eth0
iface eth0 inet dhcpauto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
iface default inet dhcp

修改**【Raspberry Pi Zero W】**网络接口定义

pi@raspberrypi:~ $ sudo nano /etc/network/interfaces
pi@raspberrypi:~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*auto lo
iface lo inet loopbackauto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
iface default inet dhcp

然后重启树莓派

pi@raspberrypi:~ $ sudo reboot

4.5 调整wfb-ng天空端配置

  1. 配置key
  2. 调整频段
  3. 配置参数
  4. 锁定WiFi接口

注:详见Setup-HOWTO

5. 补充资料 修改hostname

WiFi本地网络内部存在两个相同hostname的设备,会出现一些异常问题。鉴于天空端和地面端都采用了同一个镜像,所以配置时需要做下区分。

5.1 raspi-config弹出对话框

pi@raspberrypi:~ $ sudo raspi-config

5.2 选择Hostname

5.3 Hostname命名规则

5.4 命名地面端和天空端

5.5 配置完成重启

6. 补充资料 天空端完整步骤整理

本文主要介绍了如何天空端入门步骤,比如:ssh/wifi。wfb_ng的配置未进行详细的描述,这部分内容将在wfb-ng Release 23.01镜像无头烧录&配置(2)介绍,其中也会涉及绑定WiFi图传硬件的方法。

7. 参考资料

【1】Raspbian镜像无头烧录
【2】7 Ways to Disable Wi-Fi on Raspberry P (Lite/Desktop)
【3】How to automatically connect to Wifi on boot for Pi2?
【4】which path do you use for connecting Raspberry pi zero w? #285
【5】How to Setup Bridge Connections on Windows 10
【6】Changing the hostname of your Raspberry Pi using the terminal
【7】wfb-ng 锁定WiFi接口
【8】wfb-ng Release 23.01镜像无头烧录&配置(2)

wfb-ng Release 23.01镜像无头烧录配置(1)相关推荐

  1. FPV Camera(RPI 3B+/Zero W+V2.1) | wfb_ng Release 23.01 | H264硬解测试

    @[TOC](FPV Camera(RPI 3B+/Zero W+V2.1) | wfb_ng Release 23.01 | H264硬解测试) 1. 源由 RPI Zero W基于Release ...

  2. FPV Camera(RPI3+V2.1) | wfb_ng Release 23.01 | Ubuntu 20.04 xfce软解测试

    @[TOC](FPV Camera(RPI3+V2.1) | wfb_ng Release 23.01 | Ubuntu 20.04 xfce软解测试) 1. 简介 与其他Linux桌面系统相比,Xf ...

  3. FPV Camera(RPI3+V2.1) | wfb_ng Release 23.01 | ubuntu20.04 gnome软解测试

    @[TOC](FPV Camera(RPI3+V2.1) | wfb_ng Release 23.01 | ubuntu20.04 gnome软解测试) 1. 简介 最近搭建了基于树莓派和wfb_ng ...

  4. Raspbian镜像无头烧录

    Raspbian镜像无头烧录 1. 源由 2. 需求 3. 分析 4. 步骤 4.1 删除tf卡分区内容 4.2 balena烧录镜像 4.3 配置USB直接登录 4.4 配置WiFi 2.4G网络登 ...

  5. 分享Kali Linux 2017年第23周镜像文件

    分享Kali Linux 2017年第23周镜像文件  Kali Linux官方于6月4日发布2017年的第23周镜像.这次维持了11个镜像文件的规模.默认的Gnome桌面的4个镜像,E17.KDE. ...

  6. TImage、TPaintBox、TPicture、TBitmap、TCanvas、TGraphic 的关系与区别作者:万一 来源:博客园 发布时间:2009-01-09 23:01

    TImage.TPaintBox.TPicture.TBitmap.TCanvas.TGraphic 的关系与区别 作者:万一  来源:博客园  发布时间:2009-01-09 23:01  阅读:3 ...

  7. jetson nano 烧录、更换镜像源、配置xrdp、安装Archiconda、配置CUDA、安装pytorch环境一条龙服务

    jetson nano 烧录.更换镜像源.配置xrdp.安装Archiconda.配置CUDA.安装torch环境一条龙服务 一.jetson nano烧录 1.jetson nano上电 2.镜像烧 ...

  8. 添加163镜像为linux yum源,163镜像yum源配置----centos7

    163镜像yum源配置 1.首先 rm -rf  /etc/yum.repos.d/* 2.yum clean all 3.配置 vim /etc/yum.repos.d/163.repo 内容如下: ...

  9. docker中linux用户名密码,linuxea:尽可能不在docker镜像中嵌入配置或者密码

    切勿将配置或机密信息嵌入Docker镜像中.相反,在构建Docker镜像时,期望使用业务流程运行时将配置和机密的信息提供给容器,这些包含:Kubernetes Secrets,Docker Secre ...

最新文章

  1. centos7安装配置pgAgent
  2. pic16f630 c语言编程,PIC16f630简单练习程序
  3. python 引用传递和值传递(实参,形参)
  4. IIS 7.5 解析错误 命令执行漏洞解决方案
  5. JavaScript上传图片及时预览
  6. LeetCode 1800. 最大升序子数组和
  7. IAR软件中直接查看编译后代码大小
  8. Scanner的注意细节
  9. 更换Qt QtEmbedded库的版本出现问题及解决(交叉编译OpenSSL)
  10. php7 mysql部署_windows上apache+php+mysql环境部署(php7安装失败,勿模仿!!)
  11. 20行Python代码爬取王者荣耀全英雄皮肤
  12. centos7修改mysql默认端口号_修改mysql默认端口方法(linux centos 7)
  13. 突然发现浏览器广告拦截插件原理
  14. 趣味生活,智能工业,10个仿生机械臂带你畅游电子工程师的硬核世界
  15. java论文word_word 论文 排版 适用于 word2016
  16. win7蓝屏0x000000f4修复_Win 7电脑突发蓝屏现象,应如何解决或避免
  17. html5 video 不拉伸,HTML 5视频拉伸
  18. 高通Q888内核源码分析--概述篇
  19. 今日头条下拉框推广,出效果付费
  20. 华三服务器怎样用hdm安装linux,H3C服务器配置HDM用户指南

热门文章

  1. C语言(Sleep使用)
  2. 前途无忧-学费分期、招生就业服务平台
  3. c语言枚举型与联合体
  4. RabbitMQ 主题模式即topic类型交换机
  5. Python词频统计——《红楼梦》人物出场次数统计
  6. HDMI视频分割器异形拼接与常规拼接的比较
  7. 菜niao鸟教程C语言100题精选
  8. UML2面向对象分析与设计期末复习知识点
  9. android动态设置背景
  10. java 自适应屏幕_自适应屏幕的CSS响应式布局设计技巧总结