Reference: Linux implementation of the USB mass-storage gadget for Pi Zero W v1.1
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- embedded-iot, operating-systems, tooling
Hướng nghiên cứu
Start with the linked rpi-zero-usb-gadget repository and compare its reproducible Nix-flake output and rpiboot deployment with the existing usbboot payload directories. The issue does not name files or tests, and completion would require deciding whether and how this Linux mass-storage payload belongs in the usbboot ecosystem, including the proposed 32- and 64-bit arrangement.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The msd payload used to expose the SD card over USB on the Pi Zero W is firmware. I wanted to modify its behaviour to be able to reboot the gadget without physically replugging the Pi.
So I built a Linux-based replacement for that payload for the Raspberry Pi Zero W v1.1. The Pi boots a small cross-compiled kernel plus an initramfs containing a freestanding init (C, no libc). It waits for the SD card, exposes /dev/mmcblk0 as a USB mass-storage device via configfs, and reboots on eject (and also reboots if no card appears within 20s). The whole thing builds reproducibly with a Nix flake into an rpiboot boot directory, deployed with rpiboot -d result.
Tested end-to-end on real hardware.
Sharing in case it's useful to others hitting the same limitation, and I'd welcome thoughts on whether a Linux-based MSD payload like this fits anywhere in the usbboot ecosystem (perhaps merging 32 and 64 bit directories at some point).
- Ngôn ngữ chính
- C
- Star
- 1.4k
- Fork
- 318
- Merge trung bình
- 15 giờ 55 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của raspberrypi/usbboot
-
mass-storage-gadget64: eMMC is exported as removable media, so Windows cannot write a GPT imageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
raspberrypi/usbboot#419 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
raspberrypi/usbboot#397 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
raspberrypi/usbboot#391 · 4 bình luận ·
-
Windows installer fails to install BCM2711 USB Boot driver (Code 28) – Zadig/WinUSB workaroundĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
raspberrypi/usbboot#383 · 1 bình luận · 2 reaction ·
-
Add `brew` installer for OSxĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
raspberrypi/usbboot#295 · 6 bình luận · 1 reaction ·
Tất cả issue của raspberrypi/usbboot
Issue tương tự
-
bug status: planned
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ChupathingyCE/chupathingyce#1834 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
[Fix Package]: gladCó thể đã có người làm @luadebug đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
xmake-io/xmake-repo#11342 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100