-   Programming (
-   -   mount SD on Xilinx board in petalinux (

zali 03-15-2012 02:34 AM

mount SD on Xilinx board in petalinux
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?

business_kid 03-15-2012 02: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 08: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 03: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 04:10 AM

have you storage.ko loaded?

theNbomr 03-16-2012 10: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 05:15 AM.