Carsten Gr\ufffdn wrote: >Hello, >I have some code running now on a Embedded Artists 2148 board that >accesses a SD card (based on the philips code). So I can read/write >individual sectors.... >My plan is to use a SD card as a "circular" buffer for data, so I >won't be using a real "file system" like FAT16 etc. >What I need now is a simple program (or some ideas for it) that can >access a SD card when connected to a PC using "raw" sector access.... >That way I will be able to read the data from the card when it is >inserted in a card reader in a PC. > >Any ideas/pointers ? > > > Linux (maybe Cygwin as well?): use dd command to suck in the drive contents: dd if=/dev/sda of=mySDcard.img If you don't want the whole drive image, limit dd: dd if=/dev/sda of=mySDcard.img bs=512 count=100 That will read the first 100 sectors off the SD card. Assuming, of course, you used an media reader of some kind and inserting the card mounted it as /dev/sda TomW >Regards, >Carsten > > > > > > >Yahoo! Groups Links > > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] MMC/SD support on LPC2000
2006-01-17 by Tom Walsh
Attachments
- No local attachments were found for this message.