U-Boot compile error about mmc with smdk2440

Diego Barrios eldruin at gmail.com
Sat Oct 25 21:25:17 CEST 2008


2008/10/25 Andy Green <andy at openmoko.com>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Somebody in the thread at some point said:
> | Hello,
> | I bought a board from FriendlyARM in China which model is QQ2440V3 which
> | is similar to the smdk2440 and it comes with the "Supervivi" bootloader
>
> | common/libcommon.a(cmd_mem.o): In function `do_mem_cp':
> | /home/eldruin/arm/om-uboot/common/cmd_mem.c:438: undefined reference to
> | `mmc2info'
> | /home/eldruin/arm/om-uboot/common/cmd_mem.c:442: undefined reference to
> | `mmc_write'
> | /home/eldruin/arm/om-uboot/common/cmd_mem.c:457: undefined reference to
> | `mmc2info'
> | /home/eldruin/arm/om-uboot/common/cmd_mem.c:461: undefined reference to
> | `mmc_read'
> | common/libcommon.a(cmd_mmc.o): In function `do_mmc':
> | /home/eldruin/arm/om-uboot/common/cmd_mmc.c:30: undefined reference to
> | `mmc_init'
> | disk/libdisk.a(part.o):(.rodata+0x4): undefined reference to
> `mmc_get_dev'
> | make: *** [u-boot] Error 1
> |
> |
> | Any idea of the cause or any solution? Any suggestion will be well
> received.
>
> Seems your config for the "make smdk2440_config" does not include
> enabling the s3c2440 MMC driver
>
> #define CONFIG_MMC              1
> #define CONFIG_MMC_S3C 1
> #define CFG_MMC_BASE            0xff000000
>
> but you are compiling the mmc command
>
> #define CONFIG_CMD_MMC
>
> which obviously wants to use it.  Either comment out the CMD_MMC one or
> try adding the lines above to enable the driver.
>
> - -Andy
>

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
I have attached a little patch (it's just one line XD)
Does this needs a bug report?

Thank you very much Andy!

-- 
Linux Rulz!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20081025/f404e00b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smdk2440.h.patch
Type: text/x-patch
Size: 297 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20081025/f404e00b/attachment.bin 


More information about the openmoko-kernel mailing list