LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-02-2013, 12:35 PM   #1
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Rep: Reputation: 15
Accessing a device directly (SD Reader)


Hello,

Recently my mircoSD card had a bit of a traumatic experience with static electricity. It is now non-functional and it's gone. So I had another idea. I would create a disk image file using dd. I have a SD to MicroSD adapter that I was using. I tore this apart and can now see the pins of the device. I want to attach those pins (microSD end) to individual wires that attach to the pins of my MicroSD-card reader for my dreamcast. Since there's no actual card there, that would just connect two card readers and wouldn't do anything. So I want to emulate a device on the laptop side, a fake microSD card that the DC microSD reader can read. I'm not all that great at explaining, but I do have a small diagram that may help:

http://imgur.com/am6UwKo

I assume that linux can access devices directly like this, but I have no clue how I would implement this. Can someone give me some pointers?

Thanks,
Dragos
 
Old 03-03-2013, 07:58 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
As it seems, the difference between SD and microSD is just the dimensions and not the logic. I would say the form factor is the least of your problems.

An SD card is not just like memoey which you address and read out. If it were, it would be easy to connect to SD ports back to back. Like we used to connect parallel printer ports back to back. Unfortuntaly the SD protocol is much more complicated using commands and data. You might find this article interesting:
alumni.cs.ucr.edu/~amitra/sdcard/.../sdcard_appnote_foust.pdfShare

What I also don't know is how much of the logic it integrated in the SD controller and how Linux talks to that device. But that is easy to find out in the kernel module sources. Find a popular SD interface in laptops and find the modules.

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directly accessing RAM not under the control of linux prabknow Linux - Embedded & Single-board computer 2 02-24-2011 11:04 PM
Directly accessing RAM not under the control of linux prabknow Linux - Newbie 1 02-18-2011 07:53 PM
Directly accessing network adapter in virtual box? baig Linux - Newbie 2 05-19-2009 02:08 PM
Accessing USB device directly. hacker supreme General 2 05-13-2007 05:39 PM
Block accessing inernet directly how to shipon_97 Linux - Newbie 1 03-27-2006 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration