[U-Boot] at91sam9g45ekes SDHC/MMC
Ulf Samuelsson
ulf.samuelsson at atmel.com
Tue Apr 6 11:57:56 CEST 2010
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 month.
The patchset for 2009.11 is available for testing in my private git
branch on www.openembedded.org: origin/ulf/linux-2.6.30-20100317
I came to the conclusion that the atmel MCI driver (written for the big
endian AVR32) has significant byte sex problems.
BR
Ulf Samuelsson.
> 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.html
> http://lists.denx.de/pipermail/u-boot/2009-September/060243.html
>
> Added these #define's to include/configs/at91sam9m10g45ek.h:
>
> #define CONFIG_CMD_EXT2 1
> #define CONFIG_CMD_FAT 1
> #define CONFIG_CMD_MMC 1
> #define CONFIG_MMC 1
> #define CONFIG_ATMEL_MCI 1
>
> Finally, I added this to the board init function:
>
> #ifdef CONFIG_ATMEL_MCI
> at91_mci0_hw_init(0, 4);
> #endif
>
> When I try it out this is what I get:
> U-Boot> mmc init 0
> mmc: clock 150000 too low; setting CLKDIV to 255
> mmc: command 1 failed (status: 0x0c100025)
> No MMC card found
>
> Am I doing something wrong? Any help is appreciated,
>
> Henry
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list