RetroBSD
http://retrobsd.org/

SDcards known to work (with indicated SPI speed)
http://retrobsd.org/viewtopic.php?f=3&t=366
Page 1 of 1

Author:  Pito [ Mon Aug 22, 2011 8:20 pm ]
Post subject:  SDcards known to work (with indicated SPI speed)

These cards are known to work, @ following SPI clock speed:
----------------------------------------------------------------------
1) NCP SD 256Mb - type 1, SPI 13.3MHz
2) Patriot SD 2Gb - type 2, SPI 13.3MHz
3) Wintec micro SD 2Gb - type 2, SPI 13.3MHZ
4) Transcend SDHC 4Gb - type 3, SPI 13.3MHz
5) Verbatim SD 2Gb - type 2, SPI 13.3MHz
6) Kingston micro SD 512Mb - class 1, SPI 20MHz
7) Kingston micro SDHC 4Gb - class 4, SPI 20MHz
8) Apacer micro SDHC 4Gb - class 4, SPI 20MHz
9) Sandisk micro SDHC 4Gb - class 4, SPI 20MHz

Author:  Pito [ Thu Aug 25, 2011 1:12 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

10) Kingston micro SD 512Mb - class 1, SPI 24MHz

Author:  vak [ Sat Aug 27, 2011 6:22 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

I measured a write speed of several different SD cards, on kernel r269 and SPI 13.3 MHZ, using command:

# time dd bs=4k if=/dev/zero of=zzz count=1024

Results:
1) NCP SD 256 Mb - 440 kbytes/sec
2) Wintec microSD 2 Gb - 260 kbytes/sec
3) Sandisk SDHC 4 Gb - 198 kbytes/sec
4) Transcend SDHC 4Gb - 180 kbytes/sec
5) Patriot SD 2Gb - 145 kbytes/sec
6) Kingston microSDHC 4Gb - 55 kbytes/sec

Author:  Pito [ Sat Aug 27, 2011 3:32 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Interestingly, my Kingston microSDHC 4Gb (@13.3MHz spi, r269) shows:
# time dd bs=4k count=1024 if=/dev/zero of=zzz
20.1 real 0.0 user 19.7 sys
So when :
write_speed= (bs*count)/sys= 208kB/sec
p.

Author:  vak [ Sun Aug 28, 2011 11:03 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

I changed sd driver to use write-multiple operations, and tested on several types of cards. Not committed yet - first need to fix virtualmips to support new SD commands.

Author:  Pito [ Tue Aug 30, 2011 6:53 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

r287 (new sd driver) - Kingston uSDHC 512MB, SPI @20MHz:
# time dd bs=4k count=1024 if=/dev/zero of=yyy
15.6 real 0.0 user 15.1 sys
# time dd bs=8k if=yyy of=/dev/null
512+0 records in
512+0 records out
4.3 real 0.0 user 3.8 sys
#
this leads to write 271kB/sec (+31) and read 1078kB/sec (+398). Cool!

Author:  vak [ Tue Aug 30, 2011 8:45 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Hi Pito,
Try r288: it should be twice faster on write.
---Serge

Author:  Pito [ Tue Aug 30, 2011 2:44 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Hi Serge, r288, Kingston uSDHC 512MB, SPI @20MHz:
# time dd bs=1k count=4096 if=/dev/zero of=zzz
4096+0 records in
4096+0 records out
13.8 real 0.0 user 13.1 sys
# time dd bs=8k if=zzz of=/dev/null
512+0 records in
512+0 records out
4.6 real 0.0 user 3.8 sys
# time dd bs=4k count=1024 if=/dev/zero of=zzz
1024+0 records in
1024+0 records out
14.0 real 0.0 user 13.1 sys
# time dd bs=8k count=512 if=/dev/zero of=yyy
11.5 real 0.0 user 10.5 sys
# time dd bs=16k count=256 if=/dev/zero of=xxx
10.8 real 0.0 user 10.4 sys
# time dd bs=16k if=xxx of=/dev/null
256+0 records in
256+0 records out
4.6 real 0.0 user 3.7 sys
#

Max Write 394kB/sec, Max Read 1107kB/sec! Great improvement, thanks!
p.

Author:  vak [ Wed Aug 31, 2011 11:49 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

New data, using 32-bit SPI mode (thanks Pito!).


Author:  Pito [ Wed Aug 31, 2011 12:08 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Hi Serge, I thought the 32bit spi sector xfer will have bigger impact, however there is an improvement seen:
Kingston, uSD, 512MB, SPI@20MHz
# time dd bs=4k count=1024 if=/dev/zero of=yyy
10.1 real 0.0 user 9.7 sys
# time dd bs=4k if=yyy of=/dev/null
1024+0 records in
1024+0 records out
3.5 real 0.0 user 3.0 sys
#
This leads to max write 422kB/sec and max read 1365kB/sec.

Author:  vak [ Thu Sep 01, 2011 4:53 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Hi Pito,
Try r291 - with read-multiple ops, reading speed improved by 50%!
--Serge


Author:  Pito [ Thu Sep 01, 2011 6:20 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Hi Serge, this is with r293 and with simple spi enhanced buffering, Kingston uSD 512MB @20MHz SPI, mind 8MB zzz:
# time dd bs=4k count=2048 if=/dev/zero of=zzz
19.8 real 0.0 user 18.7 sys
# time dd bs=8k if=zzz of=/dev/null
1024+0 records in
1024+0 records out
5.6 real 0.0 user 4.9 sys
#
Read 1672kB/sec, Write 438kB/sec.

Author:  vak [ Thu Sep 01, 2011 10:54 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Cool! What is the CPU frequency?

Author:  Pito [ Fri Sep 02, 2011 1:52 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

default 80/80

Author:  vak [ Fri Sep 02, 2011 8:58 am ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Great: your SD card is very fast on read. Does SPI fifo really help?

Author:  Pito [ Fri Sep 02, 2011 3:55 pm ]
Post subject:  Reply To: SDcards known to work (with indicated SPI speed)

Yes, this single card is quite fast.. All others much slower.. The FIFO buffering helps a little (see my post in Drivers). Maybe the buffering can be pipelined somehow - so we do tx while we reading from buffer. This would require more complexity in the algorithm however.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/