U-Boot compile error about mmc with smdk2440

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


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 which
requires "dwn" program from Samsung to transfer images of the system to the
board. Sadly, this program runs only on windows and I use Debian GNU/Linux
for all. After looking around I found really interesting the u-boot
bootloader so I want to use it in my board.
I have tried to compile u-boot from the "stable" branch in the git
repository (which supports this smdk2440 board) using the CodeSourcery  ARM
toolchain (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-41))
I've done 'make smdk2440_config' and then 'make all' but I get this error
after a while compiling:

$ make all
[...]
UNDEF_SYM=`arm-linux-objdump -x lib_generic/libgeneric.a
board/smdk2440/libsmdk2440.a cpu/arm920t/libarm920t.a
cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a
fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a
fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a
drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a
drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a
drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a
drivers/mtd/onenand/libonenand.a drivers/net/libnet.a
drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a
drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a
drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a
post/libpost.a post/drivers/libpostdrivers.a common/libcommon.a
libfdt/libfdt.a api/libapi.a |sed  -n -e
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
                cd /home/eldruin/arm/om-uboot && arm-linux-ld -Bstatic -T
/home/eldruin/arm/om-uboot/board/smdk2440/u-boot.lds  --defsym raise=hang
-Ttext 0x33F80000 $UNDEF_SYM cpu/arm920t/start.o \
                        --start-group lib_generic/libgeneric.a
board/smdk2440/libsmdk2440.a cpu/arm920t/libarm920t.a
cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a
fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a
fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a
drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a
drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a
drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a
drivers/mtd/onenand/libonenand.a drivers/net/libnet.a
drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a
drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a
drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a
post/libpost.a post/drivers/libpostdrivers.a common/libcommon.a
libfdt/libfdt.a api/libapi.a --end-group -L
/home/eldruin/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t
-lgcc \
                        -Map u-boot.map -o u-boot
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.
Best regards,
Diego.

-- 
Linux Rulz!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20081025/882e2db7/attachment.htm 


More information about the openmoko-kernel mailing list