[U-Boot-Users] build error for omap5912osk on u-boot 1.1.4

Hi,
While building u-boot-1.1.4 for omap5912osk, I got following error:
... arm-sony-linux-ld -Bstatic -T u-boot-1.1.4/board/omap5912osk/u-boot.lds -Ttext 0x11080000 $UNDEF_SYM cpu/arm926ejs/start.o \ --start-group lib_generic/libgeneric.a board/omap5912osk/libomap5912osk.a cpu/arm926ejs/libarm926ejs.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 rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/local/arm-sony-linux/devel/lib/gcc/arm-sony-linux/3.4.4 -lgcc \ -Map u-boot.map -o u-boot lib_arm/libarm.a(board.o)(.text+0x1c4): In function `start_armboot': u-boot-1.1.4/lib_arm/board.c:236: undefined reference to `flash_init' common/libcommon.a(cmd_bootm.o)(.text+0x56c): In function `do_imls': u-boot-1.1.4/common/cmd_bootm.c:1160: undefined reference to `flash_info' ... (and more flash related undef ref) ... common/libcommon.a(flash.o)(.text+0x2a8): In function `flash_write': u-boot-1.1.4/common/flash.c:177: undefined reference to `write_buff' make: *** [u-boot] Error 1
This was due to file removal of board/omap5912osk/flash.c, which was in u-boot-1.1.3. Looking at board/omap5912osk/Makefile, I assume intention of removing this file is to use drivers/cfi_flash.c as in omap1510inn.
However, in order to use drivers/cfi_flash.c, CFG_FLASH_CFI_DRIVER macro must be defined, but it was not, in omap5912osk.h. (It is defined in omap1510inn.h)
What else do I have to #define other than CFG_FLASH_CFI_DRIVER?
Best Regards,
HK. --

Hi,
While building u-boot-1.1.4 for omap5912osk, I got following error:
...
What else do I have to #define other than CFG_FLASH_CFI_DRIVER?
Attached is the patch I'm using for omap5912osk on u-boot-1.1.4.
With this patch (and other patch I posted), u-boot-1.1.4 build for omap5912osk is successful.
Best Regards,
HK. --
Index: u-boot-1.1.4/include/configs/omap5912osk.h =================================================================== --- u-boot-1.1.4.orig/include/configs/omap5912osk.h 2006-02-01 15:49:40.000000000 +0900 +++ u-boot-1.1.4/include/configs/omap5912osk.h 2006-02-01 16:04:59.000000000 +0900 @@ -158,6 +158,15 @@ #define CFG_MAX_FLASH_SECT (259) /* max number of sectors on one chip */ /* addr of environment */ #define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x020000) +#define CFG_MONITOR_BASE CFG_FLASH_BASE /* Monitor at beginning of flash */ + +/*----------------------------------------------------------------------- + * FLASH driver setup + */ +#define CFG_FLASH_CFI 1 /* Flash memory is CFI compliant */ +#define CFG_FLASH_CFI_DRIVER 1 /* Use drivers/cfi_flash.c */ +#define CFG_FLASH_USE_BUFFER_WRITE 1 /* Use buffered writes (~10x faster) */ +#define CFG_FLASH_PROTECTION 1 /* Use hardware sector protection */
/* timeout values are in ticks */ #define CFG_FLASH_ERASE_TOUT (20*CFG_HZ) /* Timeout for Flash Erase */
participants (1)
-
Hiroki Kaminaga