SD card compatibility issue.

Moderators: odroid, mdrjr

Re: SD card compatibility issue.

Unread postby redy_w » Sat Mar 28, 2015 1:49 pm

Special Thanks to @Fabry, I had purchase SanDisk Extreme 16GB with jumper Booting micro SD closed result booting Ubuntu no issued, my question is how turn ON UHS mode?
User avatar
redy_w
 
Posts: 26
Joined: Mon Feb 09, 2015 11:49 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby odroid » Sat Mar 28, 2015 3:12 pm

Comment out [setenv disableuhs "disableuhs"] line in the boot.ini to enable the UHS mode.
User avatar
odroid
Site Admin
 
Posts: 21806
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: SD card compatibility issue.

Unread postby redy_w » Sat Mar 28, 2015 4:25 pm

Hi @Odroid thanks a lot for your kindly advice :)
User avatar
redy_w
 
Posts: 26
Joined: Mon Feb 09, 2015 11:49 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby redy_w » Wed Apr 01, 2015 2:50 pm

Hi @Odroid & all my friends - can you give me result test for eMMC 16GB, I had Sandisk Extreme 16GB and the result same with @Fabry about
SanDisk 16GB Extreme read speed is from minimum 10.2MB/s to maximum 36.5MB/s
SanDisk 16GB Extreme write speed is from minimum 2.6MB/s to maximum 30.5MB/s
I'm interest to buy eMMC but will compare performace first :) because pricing SD Extreme with eMMC different to much :D
User avatar
redy_w
 
Posts: 26
Joined: Mon Feb 09, 2015 11:49 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby odroid » Wed Apr 01, 2015 3:50 pm

eMMC Write : 29.7MB/s
eMMC Read : 73.5MB/s

My benchmark command is here.
Code: Select all
$ dd if=/dev/zero of=test.tmp oflag=direct bs=500K count=1024
$ dd if=test.tmp of=/dev/null iflag=direct bs=500K count=1024
User avatar
odroid
Site Admin
 
Posts: 21806
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: SD card compatibility issue.

Unread postby redy_w » Wed Apr 01, 2015 8:25 pm

odroid wrote:eMMC Write : 29.7MB/s
eMMC Read : 73.5MB/s

My benchmark command is here.
Code: Select all
$ dd if=/dev/zero of=test.tmp oflag=direct bs=500K count=1024
$ dd if=test.tmp of=/dev/null iflag=direct bs=500K count=1024


with same code :
SanDisk Extreme 16GB only achieve:
Read 36.3 MB/s
Write 20.3 MB/s
may will increase when using Extreme Plus or Extreme Pro :D
User avatar
redy_w
 
Posts: 26
Joined: Mon Feb 09, 2015 11:49 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby daoyama » Wed Apr 01, 2015 10:17 pm

There is my experience on some cards other than Sandisk.

Unfortunately, I didn't get reboot issue on latest NAS4Free kernel.
If you have broken cards, please test it with NAS4Free kernel.
https://sourceforge.net/projects/nas4free/files/NAS4Free-ARM/9.3.0.2.1378/

Execution command is like this:
(read from head/write to swap partition 64MB)

Code: Select all
[root@odroidc1 ~]# dd if=/dev/mmcsd0 of=/dev/null bs=1m count=64
64+0 records in
64+0 records out
67108864 bytes transferred in 0.999250 secs (67159233 bytes/sec)
[root@odroidc1 ~]# dd if=/dev/zero of=/dev/mmcsd0s2b bs=1m count=64
64+0 records in
64+0 records out
67108864 bytes transferred in 1.108881 secs (60519446 bytes/sec)


eMMC 8GB obtained from Hardkernel (HS200/8bit-200MHz)
-> R:116.5MB/s W:18.8MB/s

Samsung 32GB PRO (card spec: SDR104/4bit-208MHz R:90MB/s W:80MB/s)
http://www.amazon.com/dp/B00IVPU894
-> R:67.1MB/s W:60.5MB/s (this card have initial boot delay about 10sec, no reboot issue)

Toshiba EXCERIA 16GB U3 (card spec: SDR104/4bit-208MHz R:95MB/s W:60MB/s)
Can't find in amazon.com
(JP: http://www.amazon.co.jp/dp/B00NBF3H1U)
-> R:67.4MB/s W:38.9MB/s (works well)

Toshiba EXCERIA TypeHD 16GB (card spec: SDR104/4bit-208MHz R:95MB/s W:30MB/s)
http://www.amazon.com/dp/B00AIH3CUA
-> R:66.9MB/s W:30.3MB/s (works well, recommend for NAS4Free)

Samsung 16GB EVO (card spec: SDR50/4bit-100MHz R:48MB/s W:??)
http://www.amazon.com/dp/B00IVPU7KE
-> R:40.9MB/s W:18.4MB/s (this card have initial boot delay about 10-15sec, no reboot issue)

Transcend 16GB Premium 300x (card spec: SDR104/4bit-208MHz R:45MB/s)
http://www.amazon.com/dp/B00APCMMEK
-> R:65.5MB/s W:12.4MB/s (this card have initial boot delay about 20-30sec, no reboot issue)

Toshiba 16GB (card spec: R:30MB/s)
http://www.amazon.com/dp/B00DGMU4BY
-> R:32.5MB/s W:11.6MB/s (works well)

Update: fix link and clear about issue.
Last edited by daoyama on Sun Apr 12, 2015 2:24 pm, edited 1 time in total.
daoyama
 
Posts: 14
Joined: Wed Feb 25, 2015 5:02 am
languages_spoken: Japanese
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby redy_w » Thu Apr 02, 2015 8:36 am

daoyama wrote:There is my experience on some cards other than Sandisk.

Unfortunately, I didn't get reboot issue on latest NAS4Free kernel.
If you have broken cards, please test it with NAS4Free kernel.
https://sourceforge.net/projects/nas4free/files/NAS4Free-ARM/9.3.0.2.1364/

Execution command is like this:
(read from head/write to swap partition 64MB)

Code: Select all
[root@odroidc1 ~]# dd if=/dev/mmcsd0 of=/dev/null bs=1m count=64
64+0 records in
64+0 records out
67108864 bytes transferred in 0.999250 secs (67159233 bytes/sec)
[root@odroidc1 ~]# dd if=/dev/zero of=/dev/mmcsd0s2b bs=1m count=64
64+0 records in
64+0 records out
67108864 bytes transferred in 1.108881 secs (60519446 bytes/sec)


eMMC 8GB obtained from Hardkernel (HS200/8bit-200MHz)
-> R:116.5MB/s W:18.8MB/s

Samsung 32GB PRO (card spec: SDR104/4bit-208MHz R:90MB/s W:80MB/s)
http://www.amazon.com/dp/B00IVPU894
-> R:67.1MB/s W:60.5MB/s (this card have boot issue)

Toshiba EXCERIA 16GB U3 (card spec: SDR104/4bit-208MHz R:95MB/s W:60MB/s)
Can't find in amazon.com
(JP: http://www.amazon.co.jp/dp/B00NBF3H1U)
-> R:67.4MB/s W:38.9MB/s (works well)

Toshiba EXCERIA TypeHD 16GB (card spec: SDR104/4bit-208MHz R:95MB/s W:30MB/s)
http://www.amazon.com/dp/B00AIH3CUA
-> R:66.9MB/s W:30.3MB/s (works well, recommend for NAS4Free)

Samsung 16GB EVO (card spec: SDR50/4bit-100MHz R:48MB/s W:??)
http://www.amazon.com/dp/B00IVPU7KE
-> R:40.9MB/s W:18.4MB/s (this card have boot issue)

Transcend 16GB Premium 300x (card spec: SDR104/4bit-208MHz R:45MB/s)
http://www.amazon.com/dp/B00APCMMEK
-> R:65.5MB/s W:12.4MB/s (this card have boot issue)

Toshiba 16GB (card spec: R:30MB/s)
http://www.amazon.com/dp/B00DGMU4BY
-> R:32.5MB/s W:11.6MB/s (works well)


Thanks 4 @Daoyama your reference very usefull for me & another member ;)
User avatar
redy_w
 
Posts: 26
Joined: Mon Feb 09, 2015 11:49 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby Gosha » Thu Apr 02, 2015 9:38 pm

Could someone create a table with all these cards and its performances at one place? It would be a very useful info for all C1 owners.
Gosha
 
Posts: 36
Joined: Sun Mar 29, 2015 4:06 am
languages_spoken: english
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby umiddelb » Fri Apr 03, 2015 4:24 am

Gosha wrote:Could someone create a table with all these cards and its performances at one place? It would be a very useful info for all C1 owners.


+1
http://forum.odroid.com/viewtopic.php?f=117&t=8919
umiddelb
 
Posts: 386
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: SD card compatibility issue.

Unread postby Fabry » Mon Apr 13, 2015 2:56 am

daoyama wrote:There is my experience on some cards other than Sandisk.

Unfortunately, I didn't get reboot issue on latest NAS4Free kernel.
If you have broken cards, please test it with NAS4Free kernel.
https://sourceforge.net/projects/nas4free/files/NAS4Free-ARM/9.3.0.2.1378/

... cut

From C1's specs we can read SDR 100MHz 4 bit (UHS-1 SDR50) for the SD Bus, so the maximum (and theorical) speed for an SD on C1 is about 47.7MiB/s (for the eMMC bus it is instead about 133MiB/s)

In your tests I read results over 60MiB/s which are theorically impossible.
Probably C1 was using ram as cache during test, please use flag "direct" on your dd tests (iflag=direct or oflag=direct) and read more data than 64MiB (at least 128MiB even better 256-512MiB) to have longer test (with more accurate result)
Fabry
 
Posts: 74
Joined: Fri Mar 06, 2015 1:49 am
languages_spoken: english, italian
ODROIDs: ODroid C1+

Re: SD card compatibility issue.

Unread postby phoenix73 » Mon Apr 13, 2015 6:10 pm

I have 2 Samsung 16GB Micro SDHC Class 10 EVO (MB-MP16D/EU ) on my C1.
For both, I have to plug/unplug power twice to get them boot.

Sadly, I didn't get to this page before.
I'll change for a SanDisk instead
phoenix73
 
Posts: 61
Joined: Sun Mar 22, 2015 4:59 pm
languages_spoken: english
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby daoyama » Mon Apr 13, 2015 7:22 pm

Fabry wrote:From C1's specs we can read SDR 100MHz 4 bit (UHS-1 SDR50) for the SD Bus, so the maximum (and theorical) speed for an SD on C1 is about 47.7MiB/s (for the eMMC bus it is instead about 133MiB/s)

In your tests I read results over 60MiB/s which are theorically impossible.


The driver of NAS4Free use max clock of the cards. (up to 200MHz by default)
Also I beleive FreeBSD kernel have no cache in raw device. (no direct flag available)
If you doubt the result, you can test any time by published NAS4Free images.
http://sourceforge.net/projects/nas4free/files/NAS4Free-ARM/

Fabry wrote:read more data than 64MiB (at least 128MiB even better 256-512MiB) to have longer test (with more accurate result)


8GiB read with default setting of NAS4Free (actual 850MHz /5 = 170MHz):
mmc0: <MMC/SD bus> on m8b_sdhc0
mmcsd0: 32GB <SDHC 00000 1.0 SN 505E3060 MFG 04/2014 by 27 SM> at mmc0 200.0MHz/4bit/2048-block

[root@odroidc1 ~]# dd if=/dev/mmcsd0 of=/dev/null bs=1m count=8192
8192+0 records in
8192+0 records out
8589934592 bytes transferred in 127.584020 secs (67327668 bytes/sec)

8GiB read with limit to 100MHz (actual 850MHz /9 = 94.4MHz):
mmc0: <MMC/SD bus> on m8b_sdhc0
mmcsd0: 32GB <SDHC 00000 1.0 SN 505E3060 MFG 04/2014 by 27 SM> at mmc0 100.0MHz/4bit/2048-block

[root@odroidc1 ~]# dd if=/dev/mmcsd0 of=/dev/null bs=1m count=8192
8192+0 records in
8192+0 records out
8589934592 bytes transferred in 210.091162 secs (40886701 bytes/sec)
daoyama
 
Posts: 14
Joined: Wed Feb 25, 2015 5:02 am
languages_spoken: Japanese
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby Fabry » Mon Apr 13, 2015 10:34 pm

So S805 has SDR104 mode (or at least an unofficial SDR100) ?

In effect the documentation is a bit ambiguous.

At page 10 we can reade "SDSC/SDHC/SDXC card and SDIO interface with 1-bit and 4-bit data bus width supporting spec version 2.x/3.x/4.x
DS/HS modes up to UHS-I SDR50"
, instead at page 74 we can read "Provide UHS-I both 3.3v and 1.8v signaling, and support DS, HS, SDR12, SDR25, SDR50, DDR50, and SDR104 speed modes." but then at page 75 we read "Clock frequency UHS-1 speed: max 100MHz" (which is SDR50 and not SDR100 or SDR104).
Boh ??

Linux Kernel (LUbuntu but also other images) seems to use only SDR50 (and for one time after power up, after a reboot UHS mode is lost)
Fabry
 
Posts: 74
Joined: Fri Mar 06, 2015 1:49 am
languages_spoken: english, italian
ODROIDs: ODroid C1+

Re: SD card compatibility issue.

Unread postby phoenix73 » Tue Apr 14, 2015 5:37 am

Did someone used C1 with microSDHC SanDisk Ultra 16 GB Class 10 UHS-I (SDSDQL-016G-G35) ?
I've got 2 Samsung EVO 16GB, and I've to change them due to cold boot problem.
Thanks
phoenix73
 
Posts: 61
Joined: Sun Mar 22, 2015 4:59 pm
languages_spoken: english
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby spanx » Sat Apr 18, 2015 9:59 pm

Patriot LX series 64Gb UHS mode ON

Works only with cold start (power-off power-on), if you reboot it goes horribly WRONG. Can not reboot because errors appear during booting and eventually stops.
Anyone have a solution?
spanx
 
Posts: 19
Joined: Mon Feb 02, 2015 5:29 am
languages_spoken: english
ODROIDs: Odroid C1

Re: SD card compatibility issue.

Unread postby phoenix73 » Sun Apr 19, 2015 6:17 pm

I moved to a Sandisk 8GB Ultra (SDSDQUAN-008G-G4A) and it works great.
no more cold boot or reboot problems
phoenix73
 
Posts: 61
Joined: Sun Mar 22, 2015 4:59 pm
languages_spoken: english
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby daoyama » Fri Apr 24, 2015 12:44 am

Fabry wrote:At page 10 we can reade "SDSC/SDHC/SDXC card and SDIO interface with 1-bit and 4-bit data bus width supporting spec version 2.x/3.x/4.x DS/HS modes up to UHS-I SDR50"


Also eMMC is up to 100MHz.
ODROID-C1's 140MHz of eMMC (in BLOCK DIAGRAM) is overclock than SoC spec.
I think that there is no reason limit to 100MHz on SD card.

Fabry wrote:Linux Kernel (LUbuntu but also other images) seems to use only SDR50


Current Linux driver use SDR104 and 100MHz. (4bit/100MHz is 50MB/s)
Probably, you misunderstand SD spec.
SDR104 cards work with any frequency lower than or equal to 208MHz.
So, SDR104 and 100MHz is valid configuration.

Fabry wrote:(and for one time after power up, after a reboot UHS mode is lost)


This is complete bug of Linux driver used in ODROID-C1.
It's a reason of reboot issue, CRC error, etc.
I can fix it easily. But I don't have enough linux kernel driver's knowledge.
UHS enabled kernel should work on every cards including class6/4/2 cards.

Other hand, initial boot 30 sec delay is probably bug of ROM(SoC) or bl1.bin.hardkernel.
I can't fix it. The hint is some card don't like multiple CMD7 in initial sequence.

If you are interested in NAS4Free driver, please contact to aoyama@nas4free.org directly.

phoenix73 wrote:I've got 2 Samsung EVO 16GB, and I've to change them due to cold boot problem.


I think Samsung EVO is one of cost-effective card except initial 30 sec delay...
daoyama
 
Posts: 14
Joined: Wed Feb 25, 2015 5:02 am
languages_spoken: Japanese
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby Fabry » Sun Apr 26, 2015 7:01 am

daoyama wrote:Current Linux driver use SDR104 and 100MHz. (4bit/100MHz is 50MB/s)
Probably, you misunderstand SD spec.
SDR104 cards work with any frequency lower than or equal to 208MHz.
So, SDR104 and 100MHz is valid configuration.


SDR104 means "Single Data Rate Bus with 104MB/s bandwith".
So yes you can use SDR with 100MHz bus but since the datarate is only 50MB/s (with a 4 bit bus) at this speed it is called SDR50 and not SDR104 !!

To have a real SDR104, Linux must set 208MHz on C1 SD Bus ?
C1 supports this speed ?

It is evident that the misunderstanding of terms is yours.
There are UHS104 cards that can work at any bus speed with SDR or with DDR, but SDR104 is not a type of card but it is instead a speed rating, and SDR104 uses exactly 208MHz (or over 100MHz and up to 208MHz) and this is clearly written at page 25 (13) of SD 3.01 specification.

So, "SDR104 and 100MHz is a valid configuration" is an imprecise sentence which is more correct as "UHS104 cards and 100MHz is a valid configuration which correspond to SDR50"
Fabry
 
Posts: 74
Joined: Fri Mar 06, 2015 1:49 am
languages_spoken: english, italian
ODROIDs: ODroid C1+

Re: SD card compatibility issue.

Unread postby Shonk » Thu May 07, 2015 5:40 am

Kingston 4gb Class 4 (2010 Model) 20 read 10 write in Windows (Not UHS)
UHS Disabled = Fine
UHS Enabled = Fine
Reboot = fine

Samsung 64 GB UHS-1 (2013 Model 70 read 20 write spec) (MB-MGCGBEU)
UHS Disabled = CRC Error
UHS Enabled = Fast Booting, Fast scanning in kodi
Reboot = CRC Error

Samsung 32GB Class 10 Essential (2012 Model 24 read 13 write spec) (MB-MSBGAEU) (Not UHS)
UHS Disabled = Fine
UHS Enabled = Fine
Reboot = Fine

No delays on any card in modes that worked

Im using the 32GB Samsung for now but in the long term i want to swapout the 64GB Samsung
That UHS-1 Linux driver reboot bug needs fixing asap..
Shonk
 
Posts: 29
Joined: Tue May 05, 2015 12:04 am
languages_spoken: english

Re: SD card compatibility issue.

Unread postby daoyama » Fri May 15, 2015 4:49 am

Fabry wrote:So, "SDR104 and 100MHz is a valid configuration" is an imprecise sentence which is more correct as "UHS104 cards and 100MHz is a valid configuration which correspond to SDR50"

You are wrong. SDR104 is not same electric requirements of SDR50 but this thread is not discussion thread for spec. I don't write more.

Shonk wrote:Samsung 64 GB UHS-1 (2013 Model 70 read 20 write spec) (MB-MGCGBEU)
UHS Disabled = CRC Error
UHS Enabled = Fast Booting, Fast scanning in kodi
Reboot = CRC Error

Im using the 32GB Samsung for now but in the long term i want to swapout the 64GB Samsung
That UHS-1 Linux driver reboot bug needs fixing asap..


I have created demonstration driver(kernel). You can test it.
I'm testing with Transcend 16GB Premium 300x, Samsung 16GB EVO and unknown vendor.

viewtopic.php?f=112&t=12891
daoyama
 
Posts: 14
Joined: Wed Feb 25, 2015 5:02 am
languages_spoken: Japanese
ODROIDs: ODROID-C1

Re: SD card compatibility issue.

Unread postby wrxtasy » Thu May 28, 2015 4:46 pm

I hope the HardKernel devs take up daoyama's offer and the NAS4Free driver can be incorporated into the next set of C1 images.
It looks like he has fixed the boot/reboot problems with Samsung EVO SDHC's and others brands.
I have the same problem with a:

Samsung 16GB EVO Class 10 SDHC up to 48MB/s (MB-SP16D/AM)
UHS Disabled = CRC Error
UHS Enabled = Fast Booting, Fast scanning in kodi, plug power in and out 2 or 3 times before it will actually boot.
Reboot = CRC Error
LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE
User avatar
wrxtasy
 
Posts: 1267
Joined: Wed May 13, 2015 1:59 pm
Location: Australia
languages_spoken: english
ODROIDs: C1, C1+, C2

Re: SD card compatibility issue.

Unread postby illiac4 » Tue Jun 02, 2015 1:08 pm

Odroid sd card compatibillity is PITA. I have tried three sd cards. Transcend 32gb c10 does not boot at all, samsung evo 32 does not reboot, 16 samsung also does not reboot.
I hope that you will be able to fix this.
illiac4
 
Posts: 25
Joined: Tue Dec 23, 2014 2:11 pm
languages_spoken: english

Re: SD card compatibility issue.

Unread postby Special_fr » Fri Jun 05, 2015 5:17 am

Hi

I am using the " MicroSDXC 64GB EVO Memory " with Release Note (v1.4.1) (Official EU Germany: http://de.eu.odroid.in/ubuntu_14.04lts and Win32DiskImager)

But it did not work for me. Any help would be nice :)

http://www.samsung.com/us/computer/memo ... -MP64DA/AM
Special_fr
 
Posts: 1
Joined: Fri Jun 05, 2015 5:00 am
languages_spoken: english/french
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby illiac4 » Fri Jun 26, 2015 12:29 pm

Are you going to release any fix for sd cards or, is this is what will C1 get?
illiac4
 
Posts: 25
Joined: Tue Dec 23, 2014 2:11 pm
languages_spoken: english

Re: SD card compatibility issue.

Unread postby tobetter » Fri Jun 26, 2015 12:39 pm

illiac4 wrote:Are you going to release any fix for sd cards or, is this is what will C1 get?

Still no luck to fix the issue yet, and no patch from someone else.
tobetter
 
Posts: 1974
Joined: Mon Feb 25, 2013 10:55 am
Location: Republic Of Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: SD card compatibility issue.

Unread postby illiac4 » Fri Jun 26, 2015 2:00 pm

Is this not usable?
viewtopic.php?f=112&t=12891
illiac4
 
Posts: 25
Joined: Tue Dec 23, 2014 2:11 pm
languages_spoken: english

Re: SD card compatibility issue.

Unread postby tobetter » Fri Jun 26, 2015 2:02 pm

illiac4 wrote:Is this not usable?
viewtopic.php?f=112&t=12891

Usable, but not yet finished to work it out.
tobetter
 
Posts: 1974
Joined: Mon Feb 25, 2013 10:55 am
Location: Republic Of Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: SD card compatibility issue.

Unread postby Koxx » Tue Jul 07, 2015 4:05 pm

I've just managed to make my Samsung EVO to reboot with this :
viewtopic.php?f=112&t=12891

sd: new ultra high speed SDR50 SDHC card at address 0001, clock 94444444, 4-bit-bus-width

I guess UHS is enabled :
#setenv disableuhs "disableuhs"

Performances :
Code: Select all
odroid@odroid:~$  dd if=/dev/zero of=test.tmp oflag=direct bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 56.9042 s, 9.2 MB/s

odroid@odroid:~$ dd if=test.tmp of=/dev/null iflag=direct bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 16.4864 s, 31.8 MB/s
Koxx
 
Posts: 103
Joined: Tue Jun 16, 2015 6:04 am
languages_spoken: english, french
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby odcdev » Fri Jan 08, 2016 6:24 am

Does anyone else have a reboot problem where the Odroid-C1's SD card drops back to SD HS performance after having run at UHS speed - i.e., with UHS-I enabled in boot.ini and working at full speed initially?

I am using a new Sandisk Ultra UHS-I/Class10 "MicroSDHC I" card with disableuhs commented out in /media/boot/boot.ini.
After the first (cold) boot, the system comes up with no problems nor delays and reports the following in var/log/syslog:
sd: new high speed SDHC card at address aaaa, clock 50000000, 4-bit-bus-width

I then run the dd benchmark and see UHS-I level performance:
Write: 15.7 MB/s Read: 35.0 MB/s.
I run this test several times over 24 hours and the results always about the same.

Then I reboot - NO problems rebooting (no delays, no error messages, etc). I again see the following in var/log/syslog:
sd: new high speed SDHC card at address aaaa, clock 50000000, 4-bit-bus-width

However, I again run the dd benchmark and now I consistently see only:
Write: 11.3 MB/s Read: 20.8 MB/s.
Which is what I would get with disableuhs set in boot.ini

Then I shutdown and then cold boot again (with adapter removed and then reinserted).
I then run the dd benchmark again: Back to the original: Write: 15.7 MB/s Read: 35.0 MB/s.
I do the above over and over an the same reboot / cold boot metrics.
So rebooting somehow changes the SD's read/write speeds.

Any idea how to make it reboot and keep the higher read/write speeds?

The card used: http://ecx.images-amazon.com/images/I/4 ... SX300_.jpg.
It was chosen as Sandisk Ultra has been mentioned as a compatible card.
Image

ps: would be great to have one page for all makes ad models of SD cards tried on the Odroid-C1 *with* performance figures as well
odcdev
 
Posts: 2
Joined: Fri Jan 08, 2016 5:53 am
languages_spoken: english
ODROIDs: C1

Re: SD card compatibility issue.

Unread postby odroid » Fri Jan 08, 2016 1:30 pm

The original C1 board has no hardware function to reset SD card power while C1+ has added a circuit to fix the issue.
In the initial boot process, the SD card must be in normal mode and changed to UHS mode by kernel driver.
Otherwise, the SD card works in normal mode. But there is no way to go back to normal mode from UHS mode without power cycling the SD card.

So we should add a simple power circuit in the power rail of SD on the C1+ PCB to reset the SD card power.
User avatar
odroid
Site Admin
 
Posts: 21806
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: SD card compatibility issue.

Unread postby jonvi » Fri Jan 29, 2016 5:17 pm

I got a Sandisk Ultra 16Gb class 10 UHC-I working on Odroid C1 and benchmark
shows 15Mb/s read and 9Mb/s write with boot time around 30s. Is that normal ?
If I short the J1 on the board, will read time decrease ?
jonvi
 
Posts: 35
Joined: Thu Jan 29, 2015 1:10 am
languages_spoken: english
ODROIDs: Odroid-C1

Re: SD card compatibility issue.

Unread postby odroid » Sat Jan 30, 2016 11:46 am

No. The J1 doesn't affect the booting time.

Change the option of "disableuhs" in the boot.ini file and measure the read/write speed.
User avatar
odroid
Site Admin
 
Posts: 21806
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: SD card compatibility issue.

Unread postby germankey » Mon Feb 01, 2016 4:17 am

Samsung EVO Plus 32GB boots with UHS enabled in the boot.ini without delay, reboot from command line does NOT work.

Code: Select all
iozone -e -I -a -s 100M -r 4k -i 0 -i 1 -i 2 [-f /path/to/file]

                                                                                                   random  random                     
kB             reclen      write      rewrite     read        reread    read        write
102400       4            3660      3988       10361     10362    10333     3904
germankey
 
Posts: 14
Joined: Sat Jan 16, 2016 9:05 pm
languages_spoken: english

Re: SD card compatibility issue.

Unread postby entr » Thu Feb 11, 2016 9:23 pm

I am a bit confused now. Should I be expecting any compatability issues with SD cards in C1+ ? The + model. Sometimes I don't know what people mean when they mention C1. Do they mean C1 or C1+?

Card I am planning to acquire is 16GB MicroSDHC PRO Class 10 U3.
entr
 
Posts: 14
Joined: Mon Feb 08, 2016 7:09 pm
languages_spoken: english
ODROIDs: C1+

Re: SD card compatibility issue.

Unread postby stmicro » Fri Feb 12, 2016 9:25 am

@entr, According to my experience, the C1+ have no compatibility issue my several different micro-sd cards while the old C1 was very picky. But the UHS-3 card runs at UHS-1 mode on the C1+. So any UHS-1 cards should be enough.
stmicro
 
Posts: 195
Joined: Tue Apr 28, 2015 4:23 pm
languages_spoken: english
ODROIDs: 2 x C1+, 2 x C2
1 x XU-L, 2 x XU3-L, 3 x U3, 2 x U2, 9 x XU4

Re: SD card compatibility issue.

Unread postby rooted » Fri Feb 12, 2016 10:57 am

SanDisk have shown to be the most compatible card, if purchasing a new card I find no reason to go with a different brand.
User avatar
rooted
 
Posts: 3291
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: SD card compatibility issue.

Unread postby oid » Fri Feb 26, 2016 1:12 am

test script

Code: Select all
#!/bin/sh

SD_DIR=/storage/sdcard0/Download
FILENAME=file_speed_test.deleteme
BS=500000
COUNT=128


values_speed=""
dmesg |grep sd: |grep card |grep new
echo '==============='
echo '= write tests ='
echo '==============='
for i in 1 2 3 4 5
do
    result=`dd if=/dev/zero of=${SD_DIR}/${FILENAME} bs=$BS count=$COUNT 2>&1 |tail -n1`
    echo "$i - $result"
    size=`echo $result | sed -e 's/\(.*\) bytes \(.*\)/\1/'`
    time=`echo $result | sed -r 's/(.*)(in | copied, )(.*) sec(.*)/\3/'`
    speed=`awk -v size="$size" -v time="$time" "BEGIN {print size/1024/1024/time}"`
    if [ "x$values_speed" = "x" ]; then
      values_speed="${speed}"
     
    else
      values_speed="${values_speed},${speed}"
    fi
done

stddev=`echo $values_speed | awk -F','  '{ sum=0; sumsq=0; min=9999999999999; max=0
for(i=1; i<=NF;i++) {sum+=$i; sumsq+=$i*$i; min = (min < $i ? min : $i); max = (max > $i ? max : $i)}
printf("mean=%.0f min=%.0f max=%.0f stddev=%.0f\n",sum/NF, min, max, sqrt((sumsq-(NF*(sum/NF)*(sum/NF)))/(NF-1)) ) } '`
echo "Speed in MB/s: ${stddev}"

echo

values_speed=""
echo '=============='
echo '= READ TESTS ='
echo '=============='
for i in 1 2 3 4 5 6 7 8 9 10
do
    result=`dd if=${SD_DIR}/${FILENAME} of=/dev/zero bs=$BS count=$COUNT 2>&1 |tail -n1`
    echo "$i - $result"
    size=`echo $result | sed -e 's/\(.*\) bytes \(.*\)/\1/'`
    time=`echo $result | sed -r 's/(.*)(in | copied, )(.*) sec(.*)/\3/'`
    speed=`awk -v size="$size" -v time="$time" "BEGIN {print size/1024/1024/time}"`
    if [ "x$values_speed" = "x" ]; then
      values_speed="${speed}"
     
    else
      values_speed="${values_speed},${speed}"
    fi
done

rm ${SD_DIR}/${FILENAME}

stddev=`echo $values_speed | awk -F','  '{ sum=0; sumsq=0; min=9999999999999; max=0
for(i=1; i<=NF;i++) {sum+=$i; sumsq+=$i*$i; min = (min < $i ? min : $i); max = (max > $i ? max : $i)}
printf("mean=%.0f min=%.0f max=%.0f stddev=%.0f\n",sum/NF, min, max, sqrt((sumsq-(NF*(sum/NF)*(sum/NF)))/(NF-1)) ) } '`
echo "Speed in MB/s: ${stddev}"




example output

Code: Select all
===============
= write tests =
===============
1 - 64000000 bytes transferred in 2.256 secs (28368794 bytes/sec)
2 - 64000000 bytes transferred in 2.383 secs (26856903 bytes/sec)
3 - 64000000 bytes transferred in 2.265 secs (28256070 bytes/sec)
4 - 64000000 bytes transferred in 2.220 secs (28828828 bytes/sec)
5 - 64000000 bytes transferred in 13.300 secs (4812030 bytes/sec)
Speed in MB/s: mean=22 min=5 max=27 stddev=10

==============
= READ TESTS =
==============
1 - 64000000 bytes transferred in 0.549 secs (116575591 bytes/sec)
2 - 64000000 bytes transferred in 0.456 secs (140350877 bytes/sec)
3 - 64000000 bytes transferred in 0.460 secs (139130434 bytes/sec)
4 - 64000000 bytes transferred in 0.464 secs (137931034 bytes/sec)
5 - 64000000 bytes transferred in 0.485 secs (131958762 bytes/sec)
6 - 64000000 bytes transferred in 0.473 secs (135306553 bytes/sec)
7 - 64000000 bytes transferred in 0.456 secs (140350877 bytes/sec)
8 - 64000000 bytes transferred in 0.532 secs (120300751 bytes/sec)
9 - 64000000 bytes transferred in 0.461 secs (138828633 bytes/sec)
10 - 64000000 bytes transferred in 0.460 secs (139130434 bytes/sec)
Speed in MB/s: mean=128 min=111 max=134 stddev=8
oid
 
Posts: 3
Joined: Thu Feb 25, 2016 1:34 am
languages_spoken: english

Re: SD card compatibility issue.

Unread postby bim » Thu Mar 17, 2016 1:37 am

So does the C0 also have these issues (is it based on the C1 or C1+)?!
I have the C0 here with a 8GB Verbatim Micro SDHC Class 10 card (#44081, http://www.amazon.de/Verbatim-44081-Class-Micro-Adapter/dp/B00CBAUI40). When I copy over Ubuntu (v1.6) to the card with dd, sync and check, everything's ok. Then I put the card into the C0, the system boots, resizes the partition and reboots again into desktop. On that boot already some error-messages related to /dev/mmcblk0 show up. Now when I try to edit stuff, run the ODROID utility, or start Kodi, the system locks up very quickly. After this you can reboot, but the system is totally unusable. I've checked the file system on a different computer and it's fine. I've tried this 3 times now...
I've checked the card with H2testw and it's working fine, no bad blocks. I checked the cards file system on a different computer with "e2fsck -c -f [sdcard]" - no errors. The power supply should be sufficient (checked for stable 5V and it delivers up to 3A) and I have no USB devices connected.

Any ideas?

EDIT: I found boot.ini and disabled UHS there - still no dice. The mmcblk0 errors are a couple. I did a "dmesg | grep mmc":
[ 2.044680@0] mmc driver version: 1.07, 2014-06-30: eMMC add hw reset function
[ 2.473128@2] sd: mmc_rescan_try_freq: trying to init card at 400000 Hz
[ 2.634306@1] get property: pinname, str:emmc
[ 2.656202@2] mmcblk0: sd:0007 SD08G 7.42 GiB
[ 2.657431@2] mmcblk0: p1 p2
[ 2.669487@1] [is_emmc_exist] host->storage_flag=0, POR_BOOT_VALUE=1
[ 2.713142@2] emmc: mmc_rescan_try_freq: trying to init card at 400000 Hz
[ 2.717367@2] aml_emmc_hw_reset 1379
[ 3.492424@2] mmcblk0: r/w command failed, status = 0x80000b00
[ 3.495435@2] end_request: I/O error, dev mmcblk0, sector 15564792
[ 3.501588@2] Buffer I/O error on device mmcblk0, logical block 1945599
(...repeated a couple of times...)
[ 3.590732@2] mmcblk0: r/w command failed, status = 0x80000b00
[ 3.590737@2] mmc_blk_reset 938 reset error md->reset_done:1 and type:1
[ 3.590741@2] end_request: I/O error, dev mmcblk0, sector 15564792
[ 3.911013@2] EXT4-fs (mmcblk0p2): mounting with "discard" option, but the device does not support discard
[ 3.919782@2] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 5.928351@2] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 6.555349@2] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 6.724175@2] emmc: mmc_rescan_try_freq: trying to init card at 300000 Hz
[ 6.763186@3] aml_emmc_hw_reset 1379
[ 7.084042@2] mmcblk0: r/w command failed, status = 0x80000b00
[ 7.088222@2] Buffer I/O error on device mmcblk0, logical block 1945599
(...repeated a couple of times...)
[ 7.467416@2] mmcblk0: r/w command failed, status = 0x80000b00
[ 7.471690@2] Buffer I/O error on device mmcblk0, logical block 1945599

I seems because of the errors the fs is mounted read-only which can explain the lockups etc., but why the mmc problems in the first place?!
Last edited by bim on Thu Mar 17, 2016 8:49 pm, edited 1 time in total.
bim
 
Posts: 9
Joined: Tue Sep 23, 2014 4:47 am
languages_spoken: english, german
ODROIDs: ODROID-W

Re: SD card compatibility issue.

Unread postby odroid » Thu Mar 17, 2016 10:25 am

Change the "disableuhs" option in the boot.ini file since your SD card seems to be a UHS-1.
User avatar
odroid
Site Admin
 
Posts: 21806
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: SD card compatibility issue.

Unread postby bim » Thu Mar 17, 2016 6:40 pm

It does not work for "disableuhs" inactive (default) or active. Same errors.
bim
 
Posts: 9
Joined: Tue Sep 23, 2014 4:47 am
languages_spoken: english, german
ODROIDs: ODROID-W

Re: SD card compatibility issue.

Unread postby bim » Tue Mar 22, 2016 3:41 am

Slightly off-topic, but related to my problems with the C0:
Please do yourself and other people a favor and correct your OS image installation procedure. I found it to be VERY unreliable to use the "dd ... bs=1M conv=fsync" command. Even with multiple "sync" commands afterwards, waiting and safe removal of the SD card I had corrupt images. A regular "dd" command takes "only" ~3 times as long, but has worked for me 100% of the time. You should correct the webpage instructions and the user manual.

It would also be good to have a proper compatibility list for SD cards for the different Odroid models with a proper brand/model and a green/yellow/red indicator PROMINENTLY linked to on the product page! It is a real pita and can also be pricey to order a product and then find out afterwards it only works with 50% of the SD cards. Please state it clearly on your page that products do not work with every SD card and users should look into the list of supported cards. It is no solution to simply sell EMMC (very expensive in comparison to UHS-I-cards) and your own SD cards, as people tend to have some cards "lying around" that they want to use.
I found it very frustrating to find out AFTERWARDS that I would have been better off buying a different brand/model of card. If I would have known before I would have bought a different card, or at least had no reason to complain... And, no, I didn't read this before, because I don't read the complete manual before my device has even arrived.

On topic:
I can confirm that "Toshiba Exceria M301-EA microSDHC UHS-I 8GB" (THN-M301R0080EA, http://www.amazon.de/Toshiba-EXCERIA-M301-EA-Klasse-Speicherkarte/dp/B0162LT998) SD cards works on the C0.

The "8GB Verbatim Micro SDHC Class 10 card (#44081, http://www.amazon.de/Verbatim-44081-Class-Micro-Adapter/dp/B00CBAUI40)" I can confirm to NOT work on the C0, with or without "disableuhs".
bim
 
Posts: 9
Joined: Tue Sep 23, 2014 4:47 am
languages_spoken: english, german
ODROIDs: ODROID-W

Previous

Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests