Skip to content

BigfootACA/ufastbootd

Repository files navigation

Userspace Fastboot Daemon for Linux

Note: this is not fastbootd

Separate from linux-simple-mass-storage

Usage

# Create gadget
cd /sys/kernel/config/usb_gadget/
mkdir gadget
cd gadget

# Configure gadget
echo 0x18d1 > idVendor
echo 0xd00d > idProduct
echo 0x0302 > bcdUSB
mkdir configs/a.1
mkdir strings/0x409
echo 1234567890 > strings/0x409/serialnumber
echo Linux > strings/0x409/manufacturer
echo Fastboot > strings/0x409/product
echo 1 > os_desc/use
echo 0x1 > os_desc/b_vendor_code
echo MSFT100 > os_desc/qw_sign
ln -s configs/a.1 os_desc/a.1
mkdir configs/a.1/strings/0x409
echo fastboot > configs/a.1/strings/0x409/configuration

# Launch ufastbootd
mkdir functions/ffs.fastboot
ln -s functions/ffs.fastboot configs/a.1/f1
mkdir -p /dev/usb-ffs/fastboot
mount -t functionfs fastboot /dev/usb-ffs/fastboot
ufastbootd -d /dev/usb-ffs/fastboot &

# Enable gadget
echo dwc3 > UDC

About

Userspace Fastboot Daemon for Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published