Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-05-03 Thread Henry Súcart
The patch works. Thanks Rob! This is what I did, in case somebody else is looking for this: Apply the patch. Add all the other stuff mentioned in the patch link. Add the #define CONFIG_CMD_MMC 1 and #define CONFIG_CMD_FAT 1 to your board config file (in my case at91sam9mg45ek.h). I only needed t

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-28 Thread Robert Emanuele
Andy, Henry, Ulf, and the rest, I've posted the patch that I'm using for my SD/MMC support. It is a new driver based on some of the code from the original Atmel driver that uses the MMC framework. I've tested it on a at91sam9g45 (ES and production chips) and on an ek board and our own board. I

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-23 Thread Andy Fleming
On Fri, Apr 23, 2010 at 6:21 PM, Albin Tonnerre wrote: > On Fri, 23 Apr 2010 16:58 -0500, Andy Fleming wrote : >> On Thu, Apr 22, 2010 at 7:51 PM, Rob Emanuele wrote: >> > Hi Henry & U-Boot Community, >> > >> > I've been experiencing the same errors and frustration you have. >> > >> > So I've bee

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-23 Thread Albin Tonnerre
On Fri, 23 Apr 2010 16:58 -0500, Andy Fleming wrote : > On Thu, Apr 22, 2010 at 7:51 PM, Rob Emanuele wrote: > > Hi Henry & U-Boot Community, > > > > I've been experiencing the same errors and frustration you have. > > > > So I've been looking at this code and these patch sets for a day or > > two

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-23 Thread Andy Fleming
On Thu, Apr 22, 2010 at 7:51 PM, Rob Emanuele wrote: > Hi Henry & U-Boot Community, > > I've been experiencing the same errors and frustration you have. > > So I've been looking at this code and these patch sets for a day or > two now.  I've done that in conjunction with reading the SD card spec:

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-22 Thread Samuelsson, Ulf
denx.de > Ämne: Re: [U-Boot] at91sam9g45ekes SDHC/MMC > > Hi Henry & U-Boot Community, > > I've been experiencing the same errors and frustration you have. > > So I've been looking at this code and these patch sets for a day or > two now. I've d

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-22 Thread Rob Emanuele
Hi Henry & U-Boot Community, I've been experiencing the same errors and frustration you have. So I've been looking at this code and these patch sets for a day or two now. I've done that in conjunction with reading the SD card spec: http://www.sdcard.org/developers/tech/sdcard/pls/ I've come to

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-12 Thread Henry Súcart
Hi Ulf, Thanks for the reply. I applied your patches but I still can't get it to read the SD card Without the SD card: U-Boot> mmc init 0 mmc: command 55 failed (status: 0x0c100025) mmc: command 1 failed (status: 0x0c100025) No MMC card found With the SD card: U-Boot> mmc init 0 mmc: command 1 f

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-04-06 Thread Ulf Samuelsson
Henry Súcart skrev: > Hi, > > I've been trying to get an SD card working with an at91sam9g45ek-es board. I > read a couple of threads in the archive and ended up doing this: > I have booted the AT91SAM9G45EKES (Actually the AT91SAM9M10EKES, but it is almost the same) from SD-Card for the last mo

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-17 Thread Henry Súcart
Hi Albin, Thanks for all the help :). After doing some research i found out that I the configuration I need is !CONFIG_ATMEL_MCI1 since I the interface I'm trying to use is MCI0. When I try it out it does seem like it's trying to read from it (it immediately returns with an -EIO if I remove the S

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-16 Thread Henry Súcart
I put the printf you asked for in sd_init_card, right after the for loop. Here's the output: With #define CONFIG_ATMEL_MCI1 1 U-Boot> mmc init 0 mmc: setting clock 15 Hz, block size 512 mmc: clock 15 too low; setting CLKDIV to 255 mmc: CMD0 0x0 (flags 0x0) mmc: status 0x0c25 mmc: CM

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-16 Thread Albin Tonnerre
On Tue, 16 Mar 2010 08:30 -0400, Henry Súcart wrote : > Here's the command I'm using and the output. I put a debugging statement in > sd_init_card() after the for loop (HJS:). > > U-Boot> mmc init 0 > mmc: clock 15 too low; setting CLKDIV to 255 > HJS: sd_init_card() mmc_acmd for loop finished

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-16 Thread Henry Súcart
Here's the command I'm using and the output. I put a debugging statement in sd_init_card() after the for loop (HJS:). U-Boot> mmc init 0 mmc: clock 15 too low; setting CLKDIV to 255 HJS: sd_init_card() mmc_acmd for loop finished. ret = -19, resp[0] = 0x6B200020 No MMC card found The same thin

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-15 Thread Albin Tonnerre
On Mon, 15 Mar 2010 17:40 -0400, Henry Súcart wrote : > Hi Albin, > > First of all thanks for the quick reply. You're welcome. > I tried out what you said about adding #define CONFIG_AT91_MCI1 to the board > config file but although that did got rid of the mmc: command 1 failed > (status: 0x0c10

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-15 Thread Henry Súcart
Hi Albin, First of all thanks for the quick reply. I tried out what you said about adding #define CONFIG_AT91_MCI1 to the board config file but although that did got rid of the mmc: command 1 failed (status: 0x0c100025) error it still doesn't see the SD card. After doing some debugging it seems l

Re: [U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-15 Thread Albin Tonnerre
On Mon, 15 Mar 2010 15:51 -0400, Henry Súcart wrote : > Hi, Hi Henry, > I've been trying to get an SD card working with an at91sam9g45ek-es board. I > read a couple of threads in the archive and ended up doing this: > > I applied these patches: > > http://lists.denx.de/pipermail/u-boot/2009-Aug

[U-Boot] at91sam9g45ekes SDHC/MMC

2010-03-15 Thread Henry Súcart
Hi, I've been trying to get an SD card working with an at91sam9g45ek-es board. I read a couple of threads in the archive and ended up doing this: I applied these patches: http://lists.denx.de/pipermail/u-boot/2009-August/059595.html http://lists.denx.de/pipermail/u-boot/2009-September/060053.htm