Jump to content

Orange Pi Zero Second SD Card using a GPIO for CS?


Recommended Posts

Hi,

 

for the raspi it is possible to add a second SD Card...

 

I was wondering whether armbian brings the necessary kernel modules (mainline) to achieve this functionality? My approach is not speed, I need tight space so a second SD without USB adaptor would be excellent...

 

Link to comment
Share on other sites

I ported from here.
http://blogsmayan.blogspot.jp/p/interfacing-sd-card.html

 

https://github.com/nopnop2002/SD_CARD_via_GPIO

 

 

orangepi@orangepipc:~/sdcard$ sudo ./RpiSDCard_gpio

Open an existing file (HELLO.TXT).
f_open rc=0

Type the file content.
Hello world!
Goodbye world.
121
253
199

Close the file.

Create a new file (HELLO.TXT).

Write a text data. (Hello world!)
14 bytes written.
16 bytes written.
1 bytes written.
1 bytes written.
1 bytes written.
2 bytes written.
1 bytes written.
1 bytes written.
1 bytes written.
2 bytes written.
1 bytes written.
1 bytes written.
1 bytes written.
2 bytes written.

Close the file.

Open root directory.

Directory listing...
   <dir>  SYSTEM~1
      88  TEST.TXT
      45  HELLO.TXT

Test completed.

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines