VS1005 / VSOS 3.66 supports SD Cards up to 1 TB

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

VS1005 / VSOS 3.66 supports SD Cards up to 1 TB

Post by Henrik »

Hello!

We have had support for SD Cards up to 256 GB (gigabytes) since early 2019. While 256 GB is a huge amount of data space for audio, there are some applications that would require even more storage space.

This week we have moved our upper limit for SD Card size to 1 terabyte(1). As an example of how much 1 TB is, here are how long continuous recordigs you may make using the VS1005 HiRes Recorder:
  • 1481 hours, or almost 62 days, or just over 2 months of continuous, above CD quality 16-bit stereo PCM recording at 48kHz!
  • 246 hours, or over 10 days of continuous 24-bit 4-channel PCM recording at 96kHz.
To be able to use SD Cards between approximately 260 GB and 1 TB, you need to upgrade to VSOS v3.66 or higher and install an updated version of the file system Root image.

VSOS 3.66 and the Root images are available from the link below:
viewtopic.php?p=15636#p15636

Below is the printouts of a system booted with a SanDIsk 1 TB card inserted:

Code: Select all

Hello.
VSOS 3.66 build Feb 14 2023 11:35:55
VLSI Solution Oy 2012-2021 - www.vlsi.fi

Starting the kernel..
Starting Devices... 
External SPI Flash
2048 KiB

Installed system devices:
S: 1920K SPI Flash c814, handled by FAT.
Load drivers, config 0...
Driver: RUN... SETCLOCK -l93 80
Driver: SDSD... D: SD/SD Card

Driver: UARTIN... 
Driver: AUODAC... 
Driver: INTTRACE...
Driver: S:SHELL.AP3... 
VSOS SHELL
S:>::
Currently installed system devices are:
- D:  953G SD/SD Card, handled by FAT.
- S: 1920K SPI Flash c814, handled by FAT.
S:>dir -v d:
-    3. 2.MP4         237963011 2015-07-07 19:38:22 2.mp4
	First block 0xad840,  Cluster list: 0x1c63-0x38c1
	Total cluster chain 0x1c5f, file size 0x1c5f, OK
-    2. MP1.MP3      1760960544 2014-03-31 10:08:40 mp1.mp3
	First block 0x11f000,  Cluster list: 0x38c2-0x10aae
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-    4. MP2.MP3      1760960544 2014-03-31 10:08:40 mp2.mp3
	First block 0x466b40,  Cluster list: 0x10aaf-0x1dc9b
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-    8. MP7.MP3      1760960544 2014-03-31 10:08:40 mp7.mp3
	First block 0x1185840,  Cluster list: 0x45263-0x5244f
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-    9. MP8.MP3      1760960544 2014-03-31 10:08:40 mp8.mp3
	First block 0x14cd380,  Cluster list: 0x52450-0x5f63c
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-   10. MP9.MP3      1760960544 2014-03-31 10:08:40 mp9.mp3
	First block 0x1814ec0,  Cluster list: 0x5f63d-0x6c829
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-    6. MYFILE1.MP3  1760960544 2014-03-31 10:08:40 myfile1.mp3
	First block 0x1cdf600,  Cluster list: 0x728da-0x7fac6
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-   11. MYFILE3.MP3  1760960544 2014-03-31 10:08:40 myfile3.mp3
	First block 0x236ec80,  Cluster list: 0x8ccb4-0x99ea0
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-   14. MYFILE4.MP3  1760960544 2014-03-31 10:08:40 myfile4.mp3
	First block 0x2b3ebc0,  Cluster list: 0xac0b1-0xb929d
	Total cluster chain 0xd1ed, file size 0xd1ed, OK
-    5. REC.MP4       811060694 2021-03-22 07:46:26 rec.mp4
	First block 0x1b5ca00,  Cluster list: 0x6c82a-0x728d9
	Total cluster chain 0x60b0, file size 0x60b0, OK
-    7. REC2.MP4      811060694 2021-03-22 07:46:26 rec2.mp4
	First block 0x26b67c0,  Cluster list: 0x99ea1-0x9ff50
	Total cluster chain 0x60b0, file size 0x60b0, OK
-   12. REC3.MP4      811060694 2021-03-22 07:46:26 rec3.mp4
	First block 0x28393c0,  Cluster list: 0x9ff51-0xa6000
	Total cluster chain 0x60b0, file size 0x60b0, OK
-   13. REC4.MP4      811060694 2021-03-22 07:46:26 rec4.mp4
	First block 0x29bbfc0,  Cluster list: 0xa6001-0xac0b0
	Total cluster chain 0x60b0, file size 0x60b0, OK
-    1. TEST.TXT             16 1999-12-31 12:00:00 TEST.TXT
	First block 0x3c040,  Cluster list: 0x3
	Total cluster chain 0x1, file size 0x1, OK
S:>diskfree -v -v d:
Cluster  4194304 KiB per symbol: # all used, + partially used, . all free
0x0000000 +##+....+######+.+#####+........................................
0x0200000 ................................................................
0x0400000 ................................................................
0x0600000 ................................................................
0x0800000 ................................................................
0x0a00000 ................................................................
0x0c00000 ................................................................
0x0e00000 ................................................................
0x1000000 ................................................................
0x1200000 ................................................................
0x1400000 ................................................................
0x1600000 ................................................................
0x1800000 ................................................................
0x1a00000 ................................................................
0x1c00000 .........................................................
Drv  Used/KiB   Free/KiB  Total/KiB  Use%  Name
D:   17158432  982593248  999751680    2%  SD/SD Card
S:>diskfree -v -H d:
Drv Used  Free Total  Use%  Name
D:   16G  937G  953G    2%  SD/SD Card
S:>
Note that the apparent discrepancy in drive size is due to the weird and mathematically incorrect manufacturer definition of "1TB"=10^9KiB = 1024000000000B. VSOS always shows sizes in KiB/MiB/GiB.

1024000000000B = 10^9KiB ~= 976562MiB ~= 953.67GiB ~= 0.931TiB.


As always, comments and questions are welcome!

Kind regards,
- Henrik

(1) For historical and commercial reasons, many drive manufacturers use a definition of "1TB" = 10^9KiB, not 1TiB = 1024^4B or 1TB=10^12B.
Good signatures never die. They just fade away.
Post Reply