U-Boot compile error about mmc with smdk2440

Andy Green andy at openmoko.com
Sat Oct 25 20:18:19 CEST 2008


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkkDYusACgkQOjLpvpq7dMr8XwCgkLJrnEVtdmx8ZgKBxgIORojW
2tsAnRs75DuFvjWEQpJ7gWcwe8IDIIjY
=padB
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list