LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2011, 03:40 AM   #1
suni550
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
accessing SD card on LPC Linux platform


Hi
i am new to this forum and linux too. I am working on LPC Linux platform. I would like to log some data into SD card from the application. For this I need to know the drivers of SD card. Can any one tell me what are the drivers for SD card in LPC Linux? what are the APIs atleast/ what is the header file/

Thanks
Sunil
 
Old 08-05-2011, 02:10 PM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by suni550 View Post
Hi
i am new to this forum and linux too. I am working on LPC Linux platform. I would like to log some data into SD card from the application. For this I need to know the drivers of SD card. Can any one tell me what are the drivers for SD card in LPC Linux? what are the APIs atleast/ what is the header file/

Thanks
Sunil
I'm not sure I fully understand. Are you trying for low-level access to the sd card? and if so, why? Unless you need low-level access, i.e. for a custom file system, It would be better to just mount the sd card and access it like any other drive.
note: Under Linux, the secure digital encryption is usually not accessible. I don't know if there is perhaps a non-free driver that may be used to make it accessible though! Linux does have it's own built-in encryption options though.
 
0 members found this post helpful.
Old 08-07-2011, 11:12 PM   #3
suni550
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I want to write some simple application to Log (write) data into SD card. By mounting the SD card I can copy the files to SD card (just like USB pen drive). In LPC platform I want to write an application to LOG data into SD card. I can do it by knowing the APIs of SD card driver.
 
Old 08-08-2011, 04:40 PM   #4
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
OK, I've had a look into LPC Linux. It appears to be an embedded development board platform which is out of my league.
If no one else answers from this forum, it might be better to put your query to the LPC forum.
http://www.lpclinux.com/Forums/WebHome
Alternatively, you can try mounting the SD card from a command line and proceed from there.
Code:
mkdir /mnt/sdcard
mount /dev/mmcblk0p1 /mnt/sdcard
On some hardware, it's;
Code:
mkdir /mnt/sdcard
mount /dev/sdb1 /mnt/sdcard
mmcblk0p1 or sdb1 will depend on where the system puts the sd card reader.
You could do this from a bash script as well. You may need to use sudo in front of those commands to borrow root access although I suspect that, being an embedded system, it might default to root access unless otherwise directed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: This week at LWN: LPC: The past, present, and future of Linux audio LXer Syndicated Linux News 0 10-23-2009 07:21 PM
LXer: This week at LWN: LPC: Booting Linux in five seconds LXer Syndicated Linux News 0 10-06-2008 12:10 PM
LXer: This week at LWN: LPC: Linux audio: it's a mess LXer Syndicated Linux News 0 10-04-2008 10:11 AM
I need update BIOS through LPC in Linux,but I don't know how to manipulate LPC frisky Linux - Kernel 3 06-29-2006 11:36 AM
how to run programmes made for windows platform in linux platform... compugeek2006 Linux - Software 1 06-26-2006 10:34 PM


All times are GMT -5. The time now is 05:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration