Hi thanks for the tipp
I´ve managed to get it working now this lib composite... the BIOS now recognizes the Pi
I still have one problem: The Ethernet adapter from the Raspberry Pi, which is configured by libcomposite, is not recognized correctly in Windows 11, or Windows 11 cannot find a suitable driver. The Ethernet adapter appears as a CDC ECM device in Device Manage.
I followed this guide to setup the libcomposite side: https://www.isticktoit.net/?p=1383
And this is the script file I created:
I´ve managed to get it working now this lib composite... the BIOS now recognizes the Pi
I still have one problem: The Ethernet adapter from the Raspberry Pi, which is configured by libcomposite, is not recognized correctly in Windows 11, or Windows 11 cannot find a suitable driver. The Ethernet adapter appears as a CDC ECM device in Device Manage.
I followed this guide to setup the libcomposite side: https://www.isticktoit.net/?p=1383
And this is the script file I created:
Code:
#!/bin/bashcd /sys/kernel/config/usb_gadget/mkdir -p mcgreedy_usbcd sina_access_usbecho 0x1d6b > idVendor # Linux Foundationecho 0x0104 > idProduct # Multifunction Composite Gadgetecho 0x0100 > bcdDevice # v1.0.0echo 0x0200 > bcdUSB # USB2mkdir -p strings/0x409echo "fedcba9876543210" > strings/0x409/serialnumberecho "Greedy" > strings/0x409/manufacturerecho "McGreedy USB Device" > strings/0x409/productmkdir -p configs/c.1/strings/0x409echo "Config 1: ECM network" > configs/c.1/strings/0x409/configurationecho 250 > configs/c.1/MaxPower# Add functions here#Ethernet Adapter:mkdir -p functions/ecm.usb0HOST="48:6f:73:74:50:43" # "HostPC"SELF="42:61:64:55:53:42" # "BadUSB"echo $HOST > functions/ecm.usb0/host_addrecho $SELF > functions/ecm.usb0/dev_addrln -s functions/ecm.usb0 configs/c.1/#Mass Storage:FILE=/mnt/disk1.imgmkdir -p ${FILE/img/d}mount -o loop,ro, -t ntfs-3g $FILE ${FILE/img/d}mkdir -p functions/mass_storage.usb0echo 1 > functions/mass_storage.usb0/stallecho 0 > functions/mass_storage.usb0/lun.0/cdromecho 0 > functions/mass_storage.usb0/lun.0/roecho 0 > functions/mass_storage.usb0/lun.0/nofuaecho $FILE > functions/mass_storage.usb0/lun.0/fileln -s functions/mass_storage.usb0 configs/c.1/# End functionsls /sys/class/udc > UDC#Ethernet Adapter startupifconfig usb0 10.0.0.1 netmask 255.255.255.252 uproute add -net default gw 10.0.0.2Statistics: Posted by SgtMcGreedy — Wed Jul 31, 2024 11:46 am