Merge pull request #14 from ubports/add-sd
Add microSD card to JumpDrive
This commit is contained in:
commit
1b0f0ea334
|
@ -38,6 +38,8 @@ setup_usb_configfs() {
|
||||||
|| echo " Couldn't create $CONFIGFS/g1/functions/$usb_rndis_function"
|
|| echo " Couldn't create $CONFIGFS/g1/functions/$usb_rndis_function"
|
||||||
mkdir $CONFIGFS/g1/functions/"$usb_mass_storage_function" \
|
mkdir $CONFIGFS/g1/functions/"$usb_mass_storage_function" \
|
||||||
|| echo " Couldn't create $CONFIGFS/g1/functions/$usb_mass_storage_function"
|
|| echo " Couldn't create $CONFIGFS/g1/functions/$usb_mass_storage_function"
|
||||||
|
mkdir $CONFIGFS/g1/functions/"$usb_mass_storage_function/lun.1" \
|
||||||
|
|| echo " Couldn't create $CONFIGFS/g1/functions/$usb_mass_storage_function/lun.1"
|
||||||
|
|
||||||
# Create configuration instance for the gadget
|
# Create configuration instance for the gadget
|
||||||
mkdir $CONFIGFS/g1/configs/c.1 \
|
mkdir $CONFIGFS/g1/configs/c.1 \
|
||||||
|
@ -54,9 +56,11 @@ setup_usb_configfs() {
|
||||||
|
|
||||||
# Set up mass storage to internal EMMC
|
# Set up mass storage to internal EMMC
|
||||||
echo $EMMC > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/file
|
echo $EMMC > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/file
|
||||||
|
echo $SD > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.1/file
|
||||||
|
|
||||||
# Rename the mass storage device
|
# Rename the mass storage device
|
||||||
echo "JumpDrive" > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/inquiry_string
|
echo "JumpDrive eMMC" > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/inquiry_string
|
||||||
|
echo "JumpDrive microSD" > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.1/inquiry_string
|
||||||
|
|
||||||
# Link the rndis/mass_storage instance to the configuration
|
# Link the rndis/mass_storage instance to the configuration
|
||||||
ln -s $CONFIGFS/g1/functions/"$usb_rndis_function" $CONFIGFS/g1/configs/c.1 \
|
ln -s $CONFIGFS/g1/functions/"$usb_rndis_function" $CONFIGFS/g1/configs/c.1 \
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
PLATFORM=pine64-pinephone
|
PLATFORM=pine64-pinephone
|
||||||
EMMC=/dev/mmcblk2
|
EMMC=/dev/mmcblk2
|
||||||
|
SD=/dev/mmcblk0
|
||||||
LED=pinephone\:red\:user
|
LED=pinephone\:red\:user
|
||||||
TRIGGER=mmc2
|
TRIGGER=mmc2
|
||||||
ERRORLINES=80
|
ERRORLINES=80
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
PLATFORM=pine64-pinetab
|
PLATFORM=pine64-pinetab
|
||||||
EMMC=/dev/mmcblk2
|
EMMC=/dev/mmcblk2
|
||||||
|
SD=/dev/mmcblk0
|
||||||
|
|
Loading…
Reference in New Issue