IMX6 USB Pendrive Not mounting Automatically

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 USB Pendrive Not mounting Automatically

616 Views
Lavanyavijay
Contributor II

Team,

In imx6 board running in Android 9. We have usb connector, when we insert pendrive it's detecting and we can able to mount manually, but Auto mount not working.?

Can you please help to fix this?

 

logcat after pendrive insert:


01-15 02:46:18.386 1278 1293 I com.android.mt: Waiting for a blocking GC ProfileSaver
01-15 02:46:18.395 1278 1293 I com.android.mt: WaitForGcToComplete blocked ProfileSaver on HeapTrim for 8.167ms
01-15 02:46:18.529 237 237 E /vendor/bin/hw/android.hardware.health@2.0-service.imx: /sys/block/mmcblk0/stat: ReadFileToString failed.
01-15 02:46:29.567 274 291 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
01-15 02:46:29.566 237 237 E /vendor/bin/hw/android.hardware.health@2.0-service.imx: /sys/block/mmcblk0/stat: ReadFileToString failed.
01-15 02:46:30.362 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3
01-15 02:46:30.364 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0
01-15 02:46:30.380 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0
01-15 02:46:30.380 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/scsi_host/host0
01-15 02:46:30.381 236 330 E display : threadLoop invalid uevent bind@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0
01-15 02:46:30.381 236 330 E display : threadLoop invalid uevent bind@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3
01-15 02:46:30.385 370 504 D UsbHostManager: USB device attached: vidpid 0781:5567 mfg/product/ver/serial SanDisk/Cruzer Blade/1.00/04014919121420205247 hasAudio/HID/Storage: false/false/true
01-15 02:46:30.387 370 504 D UsbDeviceDescriptor: 1 configs
01-15 02:46:30.388 370 504 D UsbHostManager: Added device UsbDevice[mName=/dev/bus/usb/001/005,mVendorId=1921,mProductId=21863,mClass=0,mSubclass=0,mProtocol=0,mManufacturerName=SanDisk,mProductName=Cruzer Blade,mVersion=1.00,mSerialNumber=04014919121420205247,mConfigurations=[
01-15 02:46:30.388 370 504 D UsbHostManager: UsbConfiguration[mId=1,mName=null,mAttributes=128,mMaxPower=100,mInterfaces=[
01-15 02:46:30.388 370 504 D UsbHostManager: UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=8,mSubclass=6,mProtocol=80,mEndpoints=[
01-15 02:46:30.388 370 504 D UsbHostManager: UsbEndpoint[mAddress=129,mAttributes=2,mMaxPacketSize=512,mInterval=0]
01-15 02:46:30.388 370 504 D UsbHostManager: UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=512,mInterval=1]]]]
01-15 02:46:30.414 370 504 E AlsaCardRecord: Failed to parse line 0 of /proc/asound/cards: ---
01-15 02:46:31.457 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0
01-15 02:46:31.458 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0
01-15 02:46:31.459 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0
01-15 02:46:31.460 236 330 E display : threadLoop invalid uevent bind@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0
01-15 02:46:31.461 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0
01-15 02:46:31.485 236 330 E display : threadLoop invalid uevent add@/devices/virtual/bdi/8:0
01-15 02:46:31.470 28 28 I kdevtmpfs: type=1400 audit(0.0:67): avc: denied { create } for name="sda" scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
01-15 02:46:31.553 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0/block/sda
01-15 02:46:31.557 236 330 E display : threadLoop invalid uevent add@/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3/1-1.3:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
01-15 02:46:31.550 169 169 I ueventd : type=1400 audit(0.0:69): avc: denied { create } for name="sda" scontext=u:r:ueventd:s0 tcontext=u:object_r:fuse:s0 tclass=blk_file permissive=1

 

//Vold not getting called.

 

@aravinthkumarja 


Lavanya

0 Kudos
2 Replies

600 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you please share which i.MX6 are you using?
is it a custom board or an NXP board?
If possible could you share the full logs?

Also, please remember that if you're using i.MX6 SABRE Board the only USB supported should be the OTG one, and it is already defined at fstab.freescale:

/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0*  auto auto defaults voldmanaged=usb:auto

Best regards,
Aldo.

0 Kudos

594 Views
Lavanyavijay
Contributor II

Hello  

Thanks so much for the response. 


Please find the answers to your queries

Q1: Could you please share which i.MX6 are you using?
A1:  IMX6Q

Q2 : Is it a custom board or an NXP board?
A2 : Its custom board with the reference of Sabresd


Q3. If possible could you share the full logs?
 A3: Yes, Find an attachment with the name "USB_Card_D_21_6_4"

Also please find an attachment for its dts files and fstab file 

We are using USB Host instead of UBS OTG and same has been configured in dts file .

 

Please solve this issue .

@aravinthkumarja 
Best regards,
Lavanya.

0 Kudos