From 6693e378cab8951e11cbf17e42854d263457dfaf Mon Sep 17 00:00:00 2001 From: Dalton Durst Date: Fri, 10 Apr 2020 19:55:59 -0500 Subject: [PATCH] Add microSD card to JumpDrive --- initramfs/init_functions.sh | 6 +++++- src/info-pine64-pinephone.sh | 1 + src/info-pine64-pinetab.sh | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/initramfs/init_functions.sh b/initramfs/init_functions.sh index 98602f2..a225af5 100755 --- a/initramfs/init_functions.sh +++ b/initramfs/init_functions.sh @@ -38,6 +38,8 @@ setup_usb_configfs() { || echo " Couldn't create $CONFIGFS/g1/functions/$usb_rndis_function" mkdir $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 mkdir $CONFIGFS/g1/configs/c.1 \ @@ -54,9 +56,11 @@ setup_usb_configfs() { # Set up mass storage to internal EMMC 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 - 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 ln -s $CONFIGFS/g1/functions/"$usb_rndis_function" $CONFIGFS/g1/configs/c.1 \ diff --git a/src/info-pine64-pinephone.sh b/src/info-pine64-pinephone.sh index 7e84f29..e01995d 100644 --- a/src/info-pine64-pinephone.sh +++ b/src/info-pine64-pinephone.sh @@ -1,5 +1,6 @@ PLATFORM=pine64-pinephone EMMC=/dev/mmcblk2 +SD=/dev/mmcblk0 LED=pinephone\:red\:user TRIGGER=mmc2 ERRORLINES=80 diff --git a/src/info-pine64-pinetab.sh b/src/info-pine64-pinetab.sh index 60dd5a0..4cdbb4f 100644 --- a/src/info-pine64-pinetab.sh +++ b/src/info-pine64-pinetab.sh @@ -1,2 +1,3 @@ PLATFORM=pine64-pinetab EMMC=/dev/mmcblk2 +SD=/dev/mmcblk0