dreemurrs-embedded / Jumpdrive

Flash/Rescue SD Card image for PinePhone and PineTab. This is NOT a bootloader
GNU General Public License v2.0
478 stars 57 forks source link

setup_usb_configfs: Make it possible to choose the used UDC #42

Open dos1 opened 3 years ago

dos1 commented 3 years ago

Some devices may have more than one UDC available.


I did it while working on the Librem 5 port, but it turned out to be unnecessary with correctly configured kernel ;) Posting it anyway since it may be useful for other devices in the future and generally seems like a reasonable thing to do.

gschwind commented 3 years ago

Hello,

Maybe my shell knowledge is wrong, but I don't see any difference to make:

echo "$(ls somepath)"

or

UDC="$(ls somepath)"
echo "$UDC"

The explanation look misleading.

dos1 commented 3 years ago

@gschwind The important part is if [ -z "$UDC" ]; then.

gschwind commented 3 years ago

Ok if I infer correctly you want to be able change the info.sh to include the choice of UDC

But currently there is no configuration that doing this.