read eMMC with Debian Buster -> eMMC not detected by OS

Post Reply
mchobby
Posts: 2
Joined: Sat Mar 03, 2018 6:45 am
languages_spoken: english
ODROIDs: C2, XU4, C1+
Has thanked: 0
Been thanked: 1 time
Contact:

read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by mchobby » Tue Nov 19, 2019 7:30 pm

Hi Odroidians,

We have to report an issue with eMMC read/writing with microSD adapter from a Debian Linux.
As this was working perfectly with older Linux Operating system.
However, it seems that Debian Buster (on the same machine, same Hardware) doesn't see the eMMC anymore when plugged into the card reader (with eMMC->microSD adapter).

Does anyone of you have the same problem ?
A suggestion about it?
These users thanked the author mchobby for the post:
jlou (Tue Nov 19, 2019 8:01 pm)

jlou
Posts: 3
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: french, english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by jlou » Tue Nov 19, 2019 9:25 pm

To complete mchobby post:
Config: debian buster on a dell optiplex 7010 desktop

Here is the dmes log when i plug & unplug the adapter without EMMC module:
[ 3773.583497] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[ 3773.732100] usb 2-1: New USB device found, idVendor=1976, idProduct=1307, bcdDevice= 1.00
[ 3773.732104] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3773.732105] usb 2-1: Product: USB Reader
[ 3773.732107] usb 2-1: Manufacturer: ChipsBnk
[ 3773.732108] usb 2-1: SerialNumber: 110074973765
[ 3773.851817] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 3773.851950] scsi host8: usb-storage 2-1:1.0
[ 3773.852032] usbcore: registered new interface driver usb-storage
[ 3773.863108] usbcore: registered new interface driver uas
[ 3774.868110] scsi 8:0:0:0: Direct-Access ChipsBnk SD/MMCReader 4081 PQ: 0 ANSI: 2
[ 3774.869230] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[ 3774.869499] sd 8:0:0:0: Attached scsi generic sg2 type 0
[ 3780.560529] usb 2-1: USB disconnect, device number 2

And then if i plug & unplug the adapter with the EMMC module:
No new lines added on the dmesg log !

When the adapter is connected on the USB port, if i remove the EMMC module, the previous lines apears again.

On XU4 running Ubuntu Mate on EMMC too, when i plug a second EMMC module on USB, the dmesg log say it use xhci-xcd and it mount this module on SDA but i can not access it corectly...
So, on my desktop with Buster, i have instaled the firmware-mic-nonfree package who is the only one listed on a search like #apt search xhci, but this does not solve the problem and did not change dmesg entries.

Best regads, JL

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by odroid » Wed Nov 20, 2019 10:04 am

We have no Debian Buster Linux PC in our office.

I've just plugged a Transcend TS-RDF5 card reader with a 128GB eMMC module and adapter board to my ODROID-H2 which runs Ubuntu 19.10 & Kernel 5.3.
It works fine.

Code: Select all

[334832.955510] usb 1-1.3: new high-speed USB device number 19 using xhci_hcd
[334833.058681] usb 1-1.3: New USB device found, idVendor=8564, idProduct=4000, bcdDevice= 0.33
[334833.058685] usb 1-1.3: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[334833.058687] usb 1-1.3: Product: Transcend
[334833.058689] usb 1-1.3: Manufacturer: TS-RDF5 
[334833.058690] usb 1-1.3: SerialNumber: 000000000011
[334833.060088] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[334833.061870] scsi host2: usb-storage 1-1.3:1.0
[334834.081008] scsi 2:0:0:0: Direct-Access     TS-RDF5  SD  Transcend    TS33 PQ: 0 ANSI: 6
[334834.081473] sd 2:0:0:0: Attached scsi generic sg0 type 0
[334834.279046] sd 2:0:0:0: [sda] 244277248 512-byte logical blocks: (125 GB/116 GiB)
[334834.280004] sd 2:0:0:0: [sda] Write Protect is off
[334834.280009] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00
[334834.280777] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[334834.286353]  sda: sda1 sda2
[334834.289701] sd 2:0:0:0: [sda] Attached SCSI removable disk
I also connected the same storage device to my ODROID-XU4 which runs Ubuntu 18.04 & Kernel 4.14.150.
It also works fine.

Code: Select all

[   46.616328] usb 4-1.2: new SuperSpeed USB device number 3 using xhci-hcd                                          
[   46.638951] usb 4-1.2: New USB device found, idVendor=8564, idProduct=4000                                        
[   46.638958] usb 4-1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=5                                   
[   46.638963] usb 4-1.2: Product: Transcend                                                                         
[   46.638968] usb 4-1.2: Manufacturer: TS-RDF5                                                                      
[   46.638973] usb 4-1.2: SerialNumber: 000000000011                                                                 
[   46.667430] SCSI subsystem initialized                                                                            
[   46.670489] usb-storage 4-1.2:1.0: USB Mass Storage device detected                                               
[   46.674997] scsi host0: usb-storage 4-1.2:1.0                                                                     
[   46.675482] usbcore: registered new interface driver usb-storage                                                  
[   46.677034] usbcore: registered new interface driver uas                                                          
[   47.685565] scsi 0:0:0:0: Direct-Access     TS-RDF5  SD  Transcend    TS33 PQ: 0 ANSI: 6                          
[   47.697702] scsi 0:0:0:0: Attached scsi generic sg0 type 0                                                        
[   48.131735] sd 0:0:0:0: [sda] 244277248 512-byte logical blocks: (125 GB/116 GiB)                                 
[   48.132494] sd 0:0:0:0: [sda] Write Protect is off                                                                
[   48.132501] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00                                                             
[   48.133295] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA              
[   48.168902]  sda: sda1 sda2                                                                                       
[   48.171806] sd 0:0:0:0: [sda] Attached SCSI removable disk
Which Kernel version and card reader do you use?

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 162 times
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by meveric » Wed Nov 20, 2019 5:47 pm

jlou wrote:
Tue Nov 19, 2019 9:25 pm
[ 3773.583497] usb 2-1: new high-speed USB device number 2 using xhci_hcd
...
[ 3780.560529] usb 2-1: USB disconnect, device number 2
The log says before you even plugged in your eMMC that the device said it was disconnected.
Maybe the card-reader is not working correctly or the power save feature is not correct for this one. As it seems to be disabled before you even use it.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

jlou
Posts: 3
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: french, english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by jlou » Wed Nov 20, 2019 6:10 pm

Thank you for your reply.
I have tested two dfifferents models of adapters and tree differents EMMC modules, with the same result but i dont know the manufacturer of any of them.
The Ubuntu mate used on an XU4 is one of the the tree EMMC modules tested, they are not brokens.
The disconnected line in the log is when i unplug the empty adapter, this is normal.
Please remeber, only the empty adapter is detected; if i plug the adapter with the EMMC module, it is not detected.
Same result with differents adapters, it is hard to believe that they are all broken.

jlou
Posts: 3
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: french, english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by jlou » Wed Nov 20, 2019 11:00 pm

Finally, I took a new computer, made a fresh Ubuntu installation, buy new USB adapter and everything went back to normal.
I was able to compare the result with my olds adapters and they are all broken... It was unlikely and yet
So it was more a storm in a glass of water than a real problem, my apologies

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: read eMMC with Debian Buster -> eMMC not detected by OS

Unread post by odroid » Thu Nov 21, 2019 9:57 am

Glad to hear that you found a compatible card reader.
I think our eMMC adapter PCB thickness is not mechanically compatible with some card readers.
viewtopic.php?f=53&t=2725

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest