LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-15-2012, 01:34 AM   #1
zali
Member
 
Registered: Sep 2005
Distribution: Suse
Posts: 56

Rep: Reputation: 15
mount SD on Xilinx board in petalinux


Hi
I have a SD card connected to Xilinx board, I want to read/write from/to it via petalinux (Xilinx board is programmed with petalinux)I can use spi mode and read/write segments one by one, but I am looking for a method which enables mounting the SD in the linux(known as a file system). any idea?
Thanks
 
Old 03-15-2012, 01:49 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,268

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
If you're reading sectors one by one, you can use dd.
If you have a terminal, & root access, you can mount with mount (man mount)

You would want to give a bit more info instead of dropping jargon. What's spi mode? Mounting seems an integral feature of petalinux. RTFM?
 
Old 03-15-2012, 07:02 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
SPI is the low-level data communications protocol used to transfer data to & from a SD flash chip. Something akin to SATA, SCSI, etc. Using SPI, either by bit-bashing a GPIO, or through a proper SPI subsystem driver, one can access the device at the lowest level. However, this is much below the filesystem level, or even the device level, which is what dd would require.

As I understand it, an SD flash filesystem is implemented at least in part by the USB Mass Storage system, so at a minimum, you would need to have that loaded. When you insert or remove the SD flash, do you see anything in the system logs?

--- rod.
 
Old 03-16-2012, 02:40 AM   #4
zali
Member
 
Registered: Sep 2005
Distribution: Suse
Posts: 56

Original Poster
Rep: Reputation: 15
But I don't see any file related to SD card in /dev folder, how can I add a device file, so that I can use dd
 
Old 03-16-2012, 03:10 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,268

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
have you storage.ko loaded?
 
Old 03-16-2012, 09:31 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
It is difficult to know what support is built in/with your kernel, and what modules are or are not loaded. I suggest starting with the site 'SD and MMC card readers', and work through that. That should give you enough background information to formulate some more specific questions.
When you insert or remove the SD flash, do you see anything in the system logs?

--- rod.
 
  


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
Loading Linux Image from U-Boot for Xilinx ML507 Board manikumar086 Linux - Newbie 0 10-12-2011 08:55 AM
"kernel panic - not syncing - attempted to kill init" on Xilinx ML507 Board manikumar086 Linux - Newbie 1 09-30-2011 12:46 PM
Specify a local console on Xilinx board user0009 Linux - Embedded & Single-board computer 1 06-20-2011 03:54 AM
MontaVista 4.0.1 on Xilinx ML405 board zvivered Linux - Kernel 0 11-23-2007 11:00 AM
Xilinx ML310 board niteshg Linux - General 0 11-08-2005 05:25 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration