Forum Discussion
uClinux MMC SPI Driver
Just to let everyone know, an MMC SPI Driver for Alteras SPI Core (modified) is in the works.. currently, cards can be recognized, read/write, and even partitioned.. but some bugs are being worked out. If anyone is interested in an early release, let me know....
56 Replies
- Altera_Forum
Honored Contributor
so basically you don't think it's my kernel build, and it's something else? I removed the MMC driver completely from the build, and just left in the CF driver, and it bailed for files over 1 MB... maybe I will try it on a different board with the same kernel and see what happens.
- Altera_Forum
Honored Contributor
I think it should be a mm problem on all newer kernels. I have tested 2.6.15.6, it has the same failure.
- Altera_Forum
Honored Contributor
Will you or anyone else be loooking into this problem? I have no clue where to start! I am going to try back-porting my driver to 2.6.11 since that's the last known working kernel for me. It's a shame because I switched to 2.6.16.1 because I thought it was better!
- Altera_Forum
Honored Contributor
I am checking this problem, and I think I should be able to solve it. Thank you for helping find out this problem, and sorry for it.
- Altera_Forum
Honored Contributor
No need for apologies!! Bugs are inevitable, I just wasn't sure if you handled these kinds of problems... your work in releasing new kernels has been excellent so far though!
Please let me know if you need any help resolving this... i'll hold off on back-porting my driver. - Altera_Forum
Honored Contributor
There are some changes in kernel header include for newer kernels. And I track them step by step. I had similar problems before, and I have to search and find out from 2.6.11 , 2.6.12, 2.6.13 .... .
It won't take long anyway. - Altera_Forum
Honored Contributor
hey hippo, I was taking a look around kernel.org, and I browsed the changelog for 2.6.17-rc1. It had some stuff about paging in there.. would it be faster for you to patch your kernel tree instead of trying to find the problem?
- Altera_Forum
Honored Contributor
Thanks, I will try.
The code that we shall fix are mostly in the arch/nios2nommu/ kernel and mm dir . This is how I port to a new kernel. First, add the patch of linux-2.6.xxx-uc0 from uClinux.org (if one is available). I would copy arch/nios2nommu and include/asm-nios2nommu to a new kernel. Then try to compile with only the minimal config. I will move other drivers last. When there are problems, I used to check them with other arch , eg, sh and h8300, to find the problem. Maybe you can help to find out. - Altera_Forum
Honored Contributor
I would be more than happy to help out, but it's a very bad time for me right now (final exams), so I won't be able to do anything for a few weeks. I barely had time to finish off the first working version of the MMC driver... and I still need to get the I2C driver working for the OpenCores I2C Host component. If you haven't got around to it in a few weeks, I will take it up. Let me know of your progress if you do anything
- Altera_Forum
Honored Contributor
I am working on it , right now. Still cleaning from 2.6.11 to 2.6.12 .