
On Wed, 09 Sep 2009 20:52 +0200, Konrad Mattheis wrote :
Hi Albin,
so I describe you what I did.
Downloaded u-boot 2009.08
changed:
#if defined(CONFIG_HAS_DATAFLASH)
to:
#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
applied Patch: http://lists.denx.de/pipermail/u-boot/2009-September/060053.html
then applied Patch V3: from mail
added to:include/config/at91sam9260ek.h
#define CONFIG_CMD_MMC 1 #define CONFIG_MMC 1 #define CONFIG_ATMEL_MCI
compiled and the on the at91sam9g20ek I can start a normal kernel,... but if I write mmc init I get the following error:
Ok, so that's what I thought: you're missing a call to at91_mciX_hw_init in your board init code. This function assigns the correst I/O pins to the MCI controller and takes care of enabling the clock. Please have a look at at91_mciX_hw_init cpu/arm926ejs/at91/at91sam9260_devices.c to see what arguments the function expects.
mmc: clock 150000 too low; setting CLKDIV to 255 No MMC card found
After this I tried to download git://git.denx.de/u-boot.git and then I could not apply the patches. I always got this message: Reversed (or previously applied) patch detected! Assume -R? [n] Did you already applied the patches to the git repository?
The CONFIG_ATMEL_SPI change is in mainline, yes. Other parts of the patch aren't.
Regards,