Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] u-boot MMC support - SAM9G20
PostPosted: Sat Oct 01, 2011 5:18 am 
Offline

Joined: Mon Oct 23, 2006 4:15 pm
Posts: 53
Hi folks, has anyone successfully patched u-boot to support MMC on the SAM9G20? I have a SAM9G20-EK board with only 1 slot and have recompiled the latest u-boot (2011.09) with MMC support.

I can almost get the SDCard to work. When I do an "mmc rescan" followed by "mmcinfo" it successfully reads the card info, however if I try to read/write anything to the card I constantly get the following:

gen_atmel_mci: CMDR 00001050 (16) ARGR 00000200 (SR: 000cc0e5) Command Failed

From the status register it looks like there is a CRC7 error and a Response Index Error.

I'm just not very familiar with the MCI spec to understand where to begin debugging this.

Any suggestions?

Thanks, Matt.


Last edited by mattwood2000 on Tue Oct 04, 2011 11:59 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: u-boot MMC support - SAM9G20
PostPosted: Sat Oct 01, 2011 10:03 pm 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
[quote="mattwood2000"]Hi folks, has anyone successfully patched u-boot to support MMC on the SAM9G20? I have a SAM9G20-EK board with only 1 slot and have recompiled the latest u-boot (2011.09) with MMC support.

I can almost get the SDCard to work. When I do an "mmc rescan" followed by "mmcinfo" it successfully reads the card info, however if I try to read/write anything to the card I constantly get the following:

gen_atmel_mci: CMDR 00001050 (16) ARGR 00000200 (SR: 000cc0e5) Command Failed

From the status register it looks like there is a CRC7 error and a Response Index Error.

I'm just not very familiar with the MCI spec to understand where to begin debugging this.

Any suggestions?

Thanks, Matt.[/quote]

Check out the u-boot patches in OpenEmbedded for the SAM9M10EKES.
This will work for cards up to 2 GB (No SDHC)

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject: Re: u-boot MMC support - SAM9G20
PostPosted: Tue Oct 04, 2011 11:58 pm 
Offline

Joined: Mon Oct 23, 2006 4:15 pm
Posts: 53
Ulf, thanks for the info. Turns out it was a hardware issue - removing R42 solved the problem. I guess the SPI SCK line being tied to the MCI CLK line was causing issues.

Thanks, Matt.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: