This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error Compiling u-boot for OCMC

We are having trouble getting a custom board based on the 8168 chip to boot off flash.  While we're working through that issue, we'd like to get the board booting through an alternative means.  We thought we would try to recompile u-boot for OCMC, but we are getting errors on the make.  The commands and the tail of the make output are below.  Any help would be appreciated.

make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8168_evm_min_ocmc

make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm u-boot.ti


common/libcommon.a(env_flash.o): In function `saveenv':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/common/env_flash.c:316: undefined reference to `flash_write'
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/common/env_flash.c:318: undefined reference to `flash_perror'
fs/fat/libfat.a(fat.o): In function `file_fat_detectfs':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/fs/fat/fat.c:975: undefined reference to `dev_print'
fs/fat/libfat.a(fat.o): In function `fat_register_device':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/fs/fat/fat.c:94: undefined reference to `get_partition_info'
drivers/mtd/libmtd.a(cfi_flash.o): In function `flash_init':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/drivers/mtd/cfi_flash.c:2069: undefined reference to `flash_protect'
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/drivers/mtd/cfi_flash.c:2077: undefined reference to `flash_protect'
drivers/mtd/libmtd.a(cfi_mtd.o): In function `cfi_mtd_unlock':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/drivers/mtd/cfi_mtd.c:150: undefined reference to `flash_protect'
drivers/mtd/libmtd.a(cfi_mtd.o): In function `cfi_mtd_lock':
/home/eric/ti-ezsdk_dm816x-evm_5_01_01_80/psp/u-boot-2010.06-psp04.00.00.10/drivers/mtd/cfi_mtd.c:138: undefined reference to `flash_protect'
make: *** [u-boot] Error 1

  • These errors are probably due to a missing distclean before the config and build.

    Try this:

    $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
    $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8168_evm_min_ocmc
    $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm u-boot.ti

    Regards,

    Vaibhav

  • This did the trick as far as making it past the compile issue.  Thanks!

    Eric

  • We are now able to compile, but we are not seeing anything come out of the serial port (at the oddball 32452 rate or 115200).  In addition, we have tried to break in using our XDS560v2 JTAG emulator on CCS 5 on windows.  However, we just get an error when pressing the "pause" button or when we try to do a "connect" (if we weren't already connected).

    Has anyone successfully booted a C6 Integra via serial port w/o flash?  If so, how did you it?  What changes were necessary in the u-boot source/Makefile?

  • Please avoid mixing up different issues in the same thread.

    Eric W said:
    we just get an error when pressing the "pause" button or when we try to do a "connect" (if we weren't already connected).

    Looks like you have a problem with CCS connectivity. You can create a post in the CCS forum for this.

    Eric W said:
    Has anyone successfully booted a C6 Integra via serial port w/o flash?

    IIRC there's an errata for serial boot on DM8168.

    Regards,

    Vaibhav