USB Pendrive and MicroSD card issues

Hi,
I'm having some troubles trying to connect a 1GB USB Pendrive (Kingston DataTraveler USB2.0), formatted as FAT32. I have created both the arduino folder and then www inside before to connect it.

This is the kernel log for it:

[ 1968.910000] usb 1-1.1: new high-speed USB device number 17 using ehci-platform
[ 1969.050000] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1605
[ 1969.050000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1969.050000] usb 1-1.1: Product: DataTravelerMini
[ 1969.050000] usb 1-1.1: Manufacturer: Kingston
[ 1969.060000] usb 1-1.1: SerialNumber: 5B83148E0604
[ 1969.060000] usb 1-1.1: can't set config #1, error -71
[ 1969.180000] usb 1-1.1: USB disconnect, device number 17
[ 1969.440000] usb 1-1.1: new high-speed USB device number 18 using ehci-platform
[ 1969.480000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1969.940000] usb 1-1.1: new high-speed USB device number 19 using ehci-platform
[ 1969.980000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1970.450000] usb 1-1.1: new high-speed USB device number 20 using ehci-platform
[ 1970.480000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1970.720000] usb 1-1.1: new high-speed USB device number 21 using ehci-platform
[ 1970.770000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1971.050000] usb 1-1.1: new high-speed USB device number 22 using ehci-platform
[ 1971.080000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1971.470000] usb 1-1.1: new high-speed USB device number 23 using ehci-platform
[ 1971.500000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 1971.700000] hub 1-1:1.0: unable to enumerate USB device on port 1

And this is the system log for it:

Sep 27 13:55:08 YunJP kern.info kernel: [ 1650.960000] usb 1-1.1: new high-speed USB device number 97 using ehci-platform
Sep 27 13:55:08 YunJP kern.err kernel: [ 1651.100000] usb 1-1.1: device descriptor read/all, error -71
Sep 27 13:55:08 YunJP kern.err kernel: [ 1651.140000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 13:55:08 YunJP kern.info kernel: [ 1651.470000] usb 1-1.1: new high-speed USB device number 99 using ehci-platform
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.610000] usb 1-1.1: New USB device found, idVendor=0951, idProduct=1605
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.610000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.610000] usb 1-1.1: Product: DataTravelerMini
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.610000] usb 1-1.1: Manufacturer: Kingston
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.620000] usb 1-1.1: SerialNumber: 5B83148E0604
Sep 27 13:55:09 YunJP kern.err kernel: [ 1651.620000] usb 1-1.1: can't set config #1, error -71
Sep 27 13:55:09 YunJP kern.info kernel: [ 1651.740000] usb 1-1.1: USB disconnect, device number 99

This is the kernel log for a 4GB microsd card that has been working properly from monday and has failing from today, also has both the arduino folder and then www inside:
. I have created both the arduino folder and then www inside.

[ 2086.150000] sd 0:0:0:0: [sda] Media Changed
[ 2086.150000] sd 0:0:0:0: [sda]  
[ 2086.150000] Result: hostbyte=0x00 driverbyte=0x08
[ 2086.160000] sd 0:0:0:0: [sda]  
[ 2086.160000] Sense Key : 0x6 [current] 
[ 2086.160000] Info fld=0x0
[ 2086.160000] sd 0:0:0:0: [sda]  
[ 2086.160000] ASC=0x28 ASCQ=0x0
[ 2086.160000] sd 0:0:0:0: [sda] CDB: 
[ 2086.160000] cdb[0]=0x28: 28 00 00 00 00 08 00 00 08 00
[ 2086.170000] end_request: I/O error, dev sda, sector 8
[ 2086.170000] Buffer I/O error on device sda, logical block 1
[ 2086.180000] sd 0:0:0:0: [sda] No Caching mode page present
[ 2086.180000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2086.190000] sd 0:0:0:0: [sda] No Caching mode page present
[ 2086.190000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2086.200000]  sda: sda1
[ 2086.380000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2086.610000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2086.870000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2087.140000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2087.400000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2087.630000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2087.910000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2088.150000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2088.420000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2088.690000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
[ 2088.900000] usb 1-1.1: new high-speed USB device number 92 using ehci-platform
[ 2088.950000] hub 1-1:1.0: unable to enumerate USB device on port 1
[ 2089.050000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform

and the system log for it:

Sep 27 14:03:20 YunJP kern.info kernel: [ 2142.610000] sd 0:0:0:0: [sda] Media Changed
Sep 27 14:03:20 YunJP kern.info kernel: [ 2142.620000] sd 0:0:0:0: [sda]  
Sep 27 14:03:20 YunJP kern.warn kernel: [ 2142.620000] Result: hostbyte=0x00 driverbyte=0x08
Sep 27 14:03:20 YunJP kern.info kernel: [ 2142.620000] sd 0:0:0:0: [sda]  
Sep 27 14:03:20 YunJP kern.warn kernel: [ 2142.620000] Sense Key : 0x6 [current] 
Sep 27 14:03:20 YunJP kern.warn kernel: [ 2142.620000] Info fld=0x0
Sep 27 14:03:20 YunJP kern.info kernel: [ 2142.620000] sd 0:0:0:0: [sda]  
Sep 27 14:03:20 YunJP kern.warn kernel: [ 2142.620000] ASC=0x28 ASCQ=0x0
Sep 27 14:03:20 YunJP kern.info kernel: [ 2142.630000] sd 0:0:0:0: [sda] CDB: 
Sep 27 14:03:20 YunJP kern.warn kernel: [ 2142.630000] cdb[0]=0x28: 28 00 00 78 07 f8 00 00 01 00
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.630000] end_request: I/O error, dev sda, sector 7866360
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.630000] Buffer I/O error on device sda, logical block 983295
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.640000] sd 0:0:0:0: [sda] No Caching mode page present
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.650000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.650000] sd 0:0:0:0: [sda] No Caching mode page present
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.650000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.690000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.690000] hub 1-1:1.0: cannot disable port 1 (err = -71)
Sep 27 14:03:20 YunJP kern.err kernel: [ 2142.930000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 14:03:20 YunJP kern.info kernel: [ 2143.030000] usb 1-1.4: reset high-speed USB device number 4 using ehci-platform
Sep 27 14:03:20 YunJP kern.info kernel: [ 2143.240000] usb 1-1.1: new high-speed USB device number 25 using ehci-platform
Sep 27 14:03:20 YunJP kern.err kernel: [ 2143.280000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 14:03:20 YunJP kern.err kernel: [ 2143.460000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 14:03:21 YunJP kern.err kernel: [ 2143.700000] hub 1-1:1.0: unable to enumerate USB device on port 1
Sep 27 14:03:21 YunJP kern.info kernel: [ 2144.010000] usb 1-1.1: new high-speed USB device number 28 using ehci-platform
Sep 27 14:03:21 YunJP kern.err kernel: [ 2144.060000] hub 1-1:1.0: unable to enumerate USB device on port 1

I hope this helps in any manner.

Thank you.

While I'm not sure, one possibility it that the pen drive is drawing too much power and the yun alone is unable to give it enough of it. It happened to me with one of my pen drives and an early prototype of the board.
Just as a test: have you tried plugging in the sd card while the pen drive was unplugged?
Do you have other sd cards to try?

Can you also give a link to the exact model of your pen drive? Maybe we can buy one and test it

Good point, I have not measured the power consumption and my power supply is 5V@500mA only.

I have tested only the microsd card with pendrive unplugged all the time but problem persists, so I am currently copying everything to /www for a while (yun's internal memory) using a scp client in windows to copy those files (WinScp).

Thanks.

JPM

Do you have a link of the exact model of both your sd and pen drive? I'd like to buy one of each and test them

Sure, the pendrive it's like this, but the microsd card it's a chinese generic 4GB (no brand). I thing i will test with another branded.

JPM