www.8devices.com
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
iggarpe
Joined: 08 Nov 2013, 10:13 Posts: 10
|
I need some large storage and the 128M internal flash won't cut it, so I've been trying to connect an SD/MMC card in SPI mode. I figured I'd share my progress.
This is what is needed:
- Level translation: SD cards work with 3.3V, Rambutan GPIO is 2.5V. I'm using a TXB0108. - Tiny patch to mach-rambutan.c. - Install mmc and mmc_spi kernel modules.
So far:
- The level translator needs to be disabled or board won't boot. I think it's attempting to boot from external SPI flash. I'll figure out what's going on later. - The fastest SPI clock seems to be ~7MHz. - The SPI driver does not use DMA and/or uses a busy wait, which sort of freezes the system during disk I/O.
The later is a deal breaker for me. Suggestions welcome.
|
27 Mar 2017, 02:02 |
|
![](./styles/serenity/theme/images/spacer.gif) |
anotherfiz
Joined: 25 Feb 2017, 13:41 Posts: 8
|
Any chance you can post your schematic with your fix / your process?
I'm interested in doing something similar and ran into problems booting as well, after connecting the SD card. I first tried with a 16MB NOR chip and had no issues.
|
28 Mar 2017, 12:41 |
|
![](./styles/serenity/theme/images/spacer.gif) |
iggarpe
Joined: 08 Nov 2013, 10:13 Posts: 10
|
|
07 Apr 2017, 12:20 |
|
![](./styles/serenity/theme/images/spacer.gif) |
iggarpe
Joined: 08 Nov 2013, 10:13 Posts: 10
|
Also, just for the record, since I do need large storage in my project, I ended up adding an USB2640 + microSD card to my design. Costly but gives me also an extra USB port.
If anyone finds a way to use the mmc_spi driver without those freezes I'll be happy to go back to microSD on SPI bus (although to be hones I'd rather go with one of the new 4Gb NAND serial flash, but kernel drivers aren't available yet).
|
07 Apr 2017, 12:27 |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|