
Hi We are using AT91sam9261, till date we had never interfaced SDCARD in units . Now we need SDCARD interface in our units. for that i tried to compile u-boot i encountered problems, which are attached as MMC.log please get the attachement. and also we need mmc.h which is missing in u-boot path asm/arch/mmc.h
This is the basic problem when I compile my u-boot version(u-boot-2008.10) for SDMMC CARD
/u-boot-2008.10/u-boot-2008.10/include/configs/at91sam9261ek.h:157:1: warning: multi-line comment In file included from cmd_mmc.c:26: /u-boot_DFR3T/u-boot-2008.10/u-boot-2008.10/include/mmc.h:26:27: error: asm/arch/mmc.h: No such file or directory make[1]: *** [cmd_mmc.o] Error 1 make[1]: Leaving directory 'u-boot_DFR3T/u-boot-2008.10/u-boot-2008.10/common' make: *** [common/libcommon.a] Error 2
when i comment //#include <asm/arch/mmc.h> this section of code in "include/mmc.h" file, and try to compile i encountered the following problem.
common/libcommon.a(cmd_mmc.o): In function `do_mmc': /u-boot-2008.10/u-boot-2008.10/common/cmd_mmc.c:35: undefined reference to `mmc_init' make: *** [u-boot] Error 1

Dear Rajeev Rao Battu,
In message CANcJNwYj8vGAPGyVJ3VdtAbuBUL75VNFgFdHndfB4uWrt1JMFw@mail.gmail.com you wrote:
We are using AT91sam9261, till date we had never interfaced SDCARD in units . Now we need SDCARD interface in our units. for that i tried to compile u-boot i encountered problems, which are attached as MMC.log please get the attachement. and also we need mmc.h which is missing in u-boot path asm/arch/mmc.h
...
This is the basic problem when I compile my u-boot version(u-boot-2008.10)
U-Boot v2008.10 is about 3 years old, i. e. hopelessly obsolete and no longer supported here. Please update and use recent code instead (say, v2011.09).
/u-boot-2008.10/u-boot-2008.10/include/configs/at91sam9261ek.h:157:1: warning: multi-line comment
This is obviously a result of your modifications to the code. Please fix such errrors and warnings as they are raised, one by one, step by step.
In file included from cmd_mmc.c:26: /u-boot_DFR3T/u-boot-2008.10/u-boot-2008.10/include/mmc.h:26:27: error: asm/arch/mmc.h: No such file or directory
This is obsolete code, please update.
On the other hand, I'm not sure if there is any MMC support for AT91 at all in mainline...
Best regards,
Wolfgang Denk
participants (2)
-
Rajeev Rao Battu
-
Wolfgang Denk