LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   mount SD on Xilinx board in petalinux (http://www.linuxquestions.org/questions/programming-9/mount-sd-on-xilinx-board-in-petalinux-934533/)

zali 03-15-2012 01:34 AM

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

business_kid 03-15-2012 01:49 PM

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?

theNbomr 03-15-2012 07:02 PM

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.

zali 03-16-2012 02:40 AM

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

business_kid 03-16-2012 03:10 AM

have you storage.ko loaded?

theNbomr 03-16-2012 09:31 AM

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.


All times are GMT -5. The time now is 09:30 AM.