2008/10/25 Andy Green <span dir="ltr">&lt;<a href="mailto:andy@openmoko.com">andy@openmoko.com</a>&gt;</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 &quot;Supervivi&quot; bootloader<br>
<br></div><div class="Ih2E3d">
| common/libcommon.a(cmd_mem.o): In function `do_mem_cp&#39;:<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:438: undefined reference to<br>
| `mmc2info&#39;<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:442: undefined reference to<br>
| `mmc_write&#39;<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:457: undefined reference to<br>
| `mmc2info&#39;<br>
| /home/eldruin/arm/om-uboot/common/cmd_mem.c:461: undefined reference to<br>
| `mmc_read&#39;<br>
| common/libcommon.a(cmd_mmc.o): In function `do_mmc&#39;:<br>
| /home/eldruin/arm/om-uboot/common/cmd_mmc.c:30: undefined reference to<br>
| `mmc_init&#39;<br>
| disk/libdisk.a(part.o):(.rodata+0x4): undefined reference to `mmc_get_dev&#39;<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 &quot;make smdk2440_config&quot; does not include<br>
enabling the s3c2440 MMC driver<br>
<br>
#define CONFIG_MMC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br>
#define CONFIG_MMC_S3C 1<br>
#define CFG_MMC_BASE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0xff000000<br>
<br>
but you are compiling the mmc command<br>
<br>
#define CONFIG_CMD_MMC<br>
<br>
which obviously wants to use it. &nbsp;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&#39;ve added the &quot;#define CONFIG_MMC_S3C 1&quot; 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&#39;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>