Forum Discussion
SD card - DE2
Hi,
Sorry for my english, I'm Brazilian. I have a Altera DE2 kit and I want to use SD Card on uCLinux. I have to make the same steps used for Compat Flash ? http://nioswiki.jot.com/wikihome/operating...ms/compactflash (http://nioswiki.jot.com/wikihome/operatingsystems/compactflash) Thanks.12 Replies
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
I am having some problems accessing the site referenced in that post. Where can I find the README file that has all the installation instructions?
I beleive that is what the initial poster is looking for too. To quote the original post on MMC SPI driver: " have completed an initial revision of the MMC SPI driver, it can be checked out/dl'ed from: http://via.dynalias.org/svn/uclinux/patche..._mmc/tags/0.1.1 (http://via.dynalias.org/svn/uclinux/patche..._mmc/tags/0.1.1) This the latest stable release, and the latest is always in trunk/. Read the README file for installation instructions." - Altera_Forum
Honored Contributor
Thank you very much. I've been looking for that for some time now.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Jul 26 2006, 11:31 PM see,http://nioswiki.jot.com/wikihome/operating...%b5clinux/mmcsd (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/mmcsd)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17160)
--- quote end ---
--- Quote End --- Thanks for everyone. I'm now trying use Jdhar's MMC SPI Driver , but I think that it is possible to use a SD card without uCLinux with some implementation of a FS. I'm trying these approaches . Sorry again for my english.
- Altera_Forum
Honored Contributor
Thanks Very Much! I really appreciate it!
- Altera_Forum
Honored Contributor
Ok. I have read the README file. Make a SOPC NIOS configuration with the SD card hardware in it. Compiled the kernel with the driver in it and the device comes up, however how do I use the device. Cat /proc/devices and I get 2 mmc devices with a major number of 254. I created mmc and mmc0 (minor numbers 0 and 1) in the /dev directory however I cannot mount the SD card as it says the device does not exist. What am I doing wrong? Thanks in advance.
- Altera_Forum
Honored Contributor
Ok a little more info on progress (at least there is some).
Found that the driver has a hard time telling that we have an SD card and not a MMC card. I commented out the if(mmc_card_sd(card)) line in mmc.c file. Now we get an unknown partition table. Also we cannot have the card inserted when the processor starts up. Also inserting a card will produce spurious results. Sometimes it gives me a command line some times it refuses to give me a command line back... My hardware counterpart thinks it might be a clocking issue. Anyone have any clues. Thanks for your time. - Altera_Forum
Honored Contributor
Sorry for being away for a while guys... I have been extremely busy with contracting work, so I have been away from the linux scene for a while.
First off, that MMC driver I put out is definitely not complete... I tested it with MMC cards, so I'm not sure how it works using SD cards. And hippo, please use the updated link for the SVN server, the dynalias one has been out for a long time. http://via.fps-tech.org/svn/ (http://via.fps-tech.org/svn/) Also, I stopped creating patch files for the MMC driver since most ppl weren't using them. Most ppl just wanted the whole kernel tree with the driver included, so you are better off grabbing the whole kernel source from: http://via.fps-tech.org/snapshots/uclinux/kernel/ (http://via.fps-tech.org/snapshots/uclinux/kernel/) - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Jul 31 2006, 06:37 PM sorry for being away for a while guys... i have been extremely busy with contracting work, so i have been away from the linux scene for a while.first off, that mmc driver i put out is definitely not complete... i tested it with mmc cards, so i'm not sure how it works using sd cards. and hippo, please use the updated link for the svn server, the dynalias one has been out for a long time.
http://via.fps-tech.org/svn/ (http://via.fps-tech.org/svn/)
also, i stopped creating patch files for the mmc driver since most ppl weren't using them. most ppl just wanted the whole kernel tree with the driver included, so you are better off grabbing the whole kernel source from:
http://via.fps-tech.org/snapshots/uclinux/kernel/ (http://via.fps-tech.org/snapshots/uclinux/kernel/)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17295)
--- quote end ---
--- Quote End --- hello, i need to use this sd support and neither way works: patch (you said to be broken) and downloading this already patched kernel if you can point out where to read so i can go through this goal http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif i have a DE2 board, and need to use SD card. i work with isaac and iḿ in charge to make a uClinux ffrom scratch to work on it. up to now, just a generic build works and the result cant boot properly http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif it says cant find root. thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif matheus