Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167158375
D57317.id178863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D57317.id178863.diff
View Options
diff --git a/sysutils/Makefile b/sysutils/Makefile
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1568,6 +1568,7 @@
SUBDIR += usacloud
SUBDIR += usacloud-core
SUBDIR += usb_modeswitch
+ SUBDIR += usbboot
SUBDIR += usbhid-dump
SUBDIR += usbtop
SUBDIR += usbutils
diff --git a/sysutils/usbboot/Makefile b/sysutils/usbboot/Makefile
new file mode 100644
--- /dev/null
+++ b/sysutils/usbboot/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= usbboot
+DISTVERSION= 20250908-162618
+CATEGORIES= sysutils
+
+MAINTAINER= jrm@FreeBSD.org
+COMMENT= Raspberry Pi USB device boot and provisioning tool
+WWW= https://github.com/raspberrypi/usbboot
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake pkgconfig
+
+USE_GITHUB= yes
+GH_ACCOUNT= raspberrypi
+
+ALL_TARGET= rpiboot
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/rpiboot ${STAGEDIR}${PREFIX}/bin/rpiboot
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/rpiboot/msd
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/rpiboot/mass-storage-gadget64
+ ${INSTALL_DATA} ${WRKSRC}/msd/bootcode.bin \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/msd/
+ ${INSTALL_DATA} ${WRKSRC}/msd/bootcode4.bin \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/msd/
+ ${INSTALL_DATA} ${WRKSRC}/msd/start.elf \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/msd/
+ ${INSTALL_DATA} ${WRKSRC}/mass-storage-gadget64/boot.img \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/mass-storage-gadget64/
+ ${INSTALL_DATA} ${WRKSRC}/mass-storage-gadget64/config.txt \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/mass-storage-gadget64/
+ ${INSTALL_DATA} ${WRKSRC}/mass-storage-gadget64/bootfiles.bin \
+ ${STAGEDIR}${PREFIX}/share/rpiboot/mass-storage-gadget64/
+
+.include <bsd.port.mk>
diff --git a/sysutils/usbboot/distinfo b/sysutils/usbboot/distinfo
new file mode 100644
--- /dev/null
+++ b/sysutils/usbboot/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1779999516
+SHA256 (raspberrypi-usbboot-20250908-162618_GH0.tar.gz) = 956cd4e09050263e1f5ba126ecdb832b53fd0fdea06d1a85397d577bd8bc6ba0
+SIZE (raspberrypi-usbboot-20250908-162618_GH0.tar.gz) = 152485415
diff --git a/sysutils/usbboot/files/patch-Makefile b/sysutils/usbboot/files/patch-Makefile
new file mode 100644
--- /dev/null
+++ b/sysutils/usbboot/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2026-05-28 21:28:56 UTC
++++ Makefile
+@@ -5,7 +5,7 @@ rpiboot: main.c bootfiles.c decode_duid.c msd/bootcode
+ INSTALL_PREFIX?=/usr
+
+ rpiboot: main.c bootfiles.c decode_duid.c msd/bootcode.h msd/start.h msd/bootcode4.h
+- $(CC) -Wall -Wextra -g $(CPPFLAGS) $(CFLAGS) -o $@ main.c bootfiles.c decode_duid.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DBUILD_DATE="\"$(BUILD_DATE)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" $(LDFLAGS)
++ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ main.c bootfiles.c decode_duid.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DBUILD_DATE="\"$(BUILD_DATE)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" $(LDFLAGS)
+
+ ifeq ($(HAVE_XXD),y)
+ %.h: %.bin
diff --git a/sysutils/usbboot/pkg-descr b/sysutils/usbboot/pkg-descr
new file mode 100644
--- /dev/null
+++ b/sysutils/usbboot/pkg-descr
@@ -0,0 +1,5 @@
+The rpiboot tool provides a file server for loading software into memory
+on a Raspberry Pi for provisioning. By default, it boots the device
+with firmware that makes it appear to the host as a USB mass-storage
+device. The host operating system then treats it as a standard USB
+drive, allowing the filesystem to be accessed.
diff --git a/sysutils/usbboot/pkg-plist b/sysutils/usbboot/pkg-plist
new file mode 100644
--- /dev/null
+++ b/sysutils/usbboot/pkg-plist
@@ -0,0 +1,7 @@
+bin/rpiboot
+share/rpiboot/mass-storage-gadget64/boot.img
+share/rpiboot/mass-storage-gadget64/bootfiles.bin
+share/rpiboot/mass-storage-gadget64/config.txt
+share/rpiboot/msd/bootcode.bin
+share/rpiboot/msd/bootcode4.bin
+share/rpiboot/msd/start.elf
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 1:50 PM (10 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36965642
Default Alt Text
D57317.id178863.diff (3 KB)
Attached To
Mode
D57317: sysutils/rpi-usbboot: Raspberry Pi USB device provisioning tool
Attached
Detach File
Event Timeline
Log In to Comment