Skip to content

Commit

Permalink
Merge pull request #14 from ubports/add-sd
Browse files Browse the repository at this point in the history
Add microSD card to JumpDrive
  • Loading branch information
MartijnBraam authored May 2, 2020
2 parents d9c599b + 6693e37 commit 1b0f0ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion initramfs/init_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions src/info-pine64-pinephone.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PLATFORM=pine64-pinephone
EMMC=/dev/mmcblk2
SD=/dev/mmcblk0
LED=pinephone\:red\:user
TRIGGER=mmc2
ERRORLINES=80
1 change: 1 addition & 0 deletions src/info-pine64-pinetab.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PLATFORM=pine64-pinetab
EMMC=/dev/mmcblk2
SD=/dev/mmcblk0

0 comments on commit 1b0f0ea

Please sign in to comment.