2008/10/25 Andy Green <span dir="ltr"><<a href="mailto:andy@openmoko.com">andy@openmoko.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<div class="Ih2E3d"><br>
<br>
Somebody in the thread at some point said:<br>
| Hello,<br>
| I bought a board from FriendlyARM in China which model is QQ2440V3 which<br>
| is similar to the smdk2440 and it comes with the "Supervivi" bootloader<br>
<br></div><div class="Ih2E3d">
| common/libcommon.a(cmd_mem.o): In function `do_mem_cp':<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:438: undefined reference to<br>
| `mmc2info'<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:442: undefined reference to<br>
| `mmc_write'<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:457: undefined reference to<br>
| `mmc2info'<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:461: undefined reference to<br>
| `mmc_read'<br>
| common/libcommon.a(cmd_mmc.o): In function `do_mmc':<br>
| /home/eldruin/arm/om-uboot/common/cmd_mmc.c:30: undefined reference to<br>
| `mmc_init'<br>
| disk/libdisk.a(part.o):(.rodata+0x4): undefined reference to `mmc_get_dev'<br>
| make: *** [u-boot] Error 1<br>
|<br>
|<br>
| Any idea of the cause or any solution? Any suggestion will be well<br>
received.<br>
<br></div>
Seems your config for the "make smdk2440_config" does not include<br>
enabling the s3c2440 MMC driver<br>
<br>
#define CONFIG_MMC 1<br>
#define CONFIG_MMC_S3C 1<br>
#define CFG_MMC_BASE 0xff000000<br>
<br>
but you are compiling the mmc command<br>
<br>
#define CONFIG_CMD_MMC<br>
<br>
which obviously wants to use it. Either comment out the CMD_MMC one or<br>
try adding the lines above to enable the driver.<br>
<br>
- -Andy<br>
</blockquote></div><br>Great! I've added the "#define CONFIG_MMC_S3C 1" line between the two others which are included in the file and U-Boot compiled perfectly :D<br>I have attached a little patch (it's just one line XD)<br>
Does this needs a bug report?<br><br>Thank you very much Andy!<br clear="all"><br>-- <br>Linux Rulz!<br>