setup_usb_configfs: Make manufacturer and product strings configurable

This commit is contained in:
Sebastian Krzyszkowiak 2021-01-24 06:17:57 +01:00
parent 96439b1828
commit 921d72d282
No known key found for this signature in database
GPG Key ID: E8F235CF3BDBC3FF
4 changed files with 8 additions and 2 deletions

View File

@ -28,10 +28,10 @@ setup_usb_configfs() {
mkdir $CONFIGFS/g1/strings/0x409 || echo " Couldn't create $CONFIGFS/g1/strings/0x409"
# shellcheck disable=SC2154
echo "Pine64" > "$CONFIGFS/g1/strings/0x409/manufacturer"
echo "$MANUFACTURER" > "$CONFIGFS/g1/strings/0x409/manufacturer"
echo "$usb_serialnumber" > "$CONFIGFS/g1/strings/0x409/serialnumber"
# shellcheck disable=SC2154
echo "PinePhone" > "$CONFIGFS/g1/strings/0x409/product"
echo "$PRODUCT" > "$CONFIGFS/g1/strings/0x409/product"
# Create rndis/mass_storage function
mkdir $CONFIGFS/g1/functions/"$usb_rndis_function" \

View File

@ -1,2 +1,4 @@
PLATFORM=pine64-pinebookpro
MANUFACTURER=Pine64
PRODUCT="Pinebook Pro"
EMMC=/dev/mmcblk2

View File

@ -1,4 +1,6 @@
PLATFORM=pine64-pinephone
MANUFACTURER=Pine64
PRODUCT=PinePhone
EMMC=/dev/mmcblk2
SD=/dev/mmcblk0
LED=pinephone\:red\:user

View File

@ -1,4 +1,6 @@
PLATFORM=pine64-pinetab
MANUFACTURER=Pine64
PRODUCT=PineTab
EMMC=/dev/mmcblk2
SD=/dev/mmcblk0
SERIAL_CON=ttyS0