树莓派的一些问题记录-1:usbboot仓库

报错如下:

复制代码
tcl@TCL:~ $ git clone https://github.com/raspberrypi/usbboot
Cloning into 'usbboot'...
remote: Enumerating objects: 2386, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (12/12), done.
error: RPC failed; curl 56 Recv failure: Connection reset by peer
error: 8457 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

可能的原因:

这个错误通常是由于网络连接不稳定或git仓库过大导致的。

解决方法:

方法1:

增大git缓冲区:

复制代码
# 设置更大的缓冲区大小
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

# 重新尝试克隆
cd ~
git clone https://github.com/raspberrypi/usbboot

结果:

复制代码
tcl@TCL:~ $ git clone https://github.com/raspberrypi/usbboot
Cloning into 'usbboot'...
remote: Enumerating objects: 2386, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (12/12), done.
Receiving objects:  25% (600/2386), 32.18 MiB | 96.00 KiB/s  

方法2:

只克隆最近一次提交,减少数据量

复制代码
git clone --depth 1 https://github.com/raspberrypi/usbboot

效果:

复制代码
tcl@TCL:~ $ git clone --depth 1 https://github.com/raspberrypi/usbboot
Cloning into 'usbboot'...
remote: Enumerating objects: 125, done.
remote: Counting objects: 100% (125/125), done.
remote: Compressing objects:  38% (38/98)

方法3:

这是我采用的方法:

通过win下载:GitHub - raspberrypi/usbboot: Raspberry Pi USB device provisioning tool (RPIBOOT)

通过FileZilla_3.69.5_win64_sponsored2-setup,将下载的文件拖过去。

然后是命令行:

复制代码
tcl@TCL:~ $ cd ~
tcl@TCL:~ $ ls -la *.zip
-rw-r--r-- 1 tcl tcl 48084274 Jan 24 21:16 master.zip
tcl@TCL:~ $ ls -la *.zip
-rw-r--r-- 1 tcl tcl  48084274 Jan 24 21:16 master.zip
-rw-r--r-- 1 tcl tcl 126336082 Jan 24 21:17 usbboot-master.zip
tcl@TCL:~ $ unzip usbboot-master.zip
Archive:  usbboot-master.zip
d6d87604df0b180be9269b3f9357efec3946c356
//省略一些信息。。。。。。。。。。

tcl@TCL:~ $ mv usbboot-master usbboot
tcl@TCL:~ $ cd usbboot
tcl@TCL:~/usbboot $ ls -la
total 164


//省略一些信息。。。。。。。。。。

tcl@TCL:~/usbboot $ sudo apt update

tcl@TCL:~/usbboot $ sudo apt install libusb-1.0-0-dev build-essential -y

tcl@TCL:~/usbboot $ make

tcl@TCL:~/usbboot $ sudo make install 

tcl@TCL:~/usbboot $ 

sudo rpiboot
RPIBOOT: build-date 2026/01/24 pkg-version local 

Please fit the EMMC_DISABLE / nRPIBOOT jumper before connecting the power and USB cables to the target device.
If the device fails to connect then please see https://rpltd.co/rpiboot for debugging tips.

Waiting for BCM2835/6/7/2711/2712...

嗯,这个就安装结束了。

相关推荐
好家伙VCC18 小时前
### WebRTC技术:实时通信的革新与实现####webRTC(Web Real-TimeComm
java·前端·python·webrtc
前端玖耀里19 小时前
如何使用python的boto库和SES发送电子邮件?
python
serve the people19 小时前
python环境搭建 (十二) pydantic和pydantic-settings类型验证与解析
java·网络·python
小天源19 小时前
Error 1053 Error 1067 服务“启动后立即停止” Java / Python 程序无法后台运行 windows nssm注册器下载与报错处理
开发语言·windows·python·nssm·error 1053·error 1067
喵手19 小时前
Python爬虫实战:HTTP缓存系统深度实战 — ETag、Last-Modified与requests-cache完全指南(附SQLite持久化存储)!
爬虫·python·爬虫实战·http缓存·etag·零基础python爬虫教学·requests-cache
喵手19 小时前
Python爬虫实战:容器化与定时调度实战 - Docker + Cron + 日志轮转 + 失败重试完整方案(附CSV导出 + SQLite持久化存储)!
爬虫·python·爬虫实战·容器化·零基础python爬虫教学·csv导出·定时调度
2601_9491465320 小时前
Python语音通知接口接入教程:开发者快速集成AI语音API的脚本实现
人工智能·python·语音识别
寻梦csdn20 小时前
pycharm+miniconda兼容问题
ide·python·pycharm·conda
Java面试题总结21 小时前
基于 Java 的 PDF 文本水印实现方案(iText7 示例)
java·python·pdf
不懒不懒21 小时前
【决策树算法实战指南:从原理到Python实现】
python·决策树·id3·c4.5·catr