
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 */