Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow to porting u-boot to my own board?
Hello, everyone I want to use u-boot on my board. I have two questions. 1. Before I use u-boot on my board, I just try to compile u-boot first. So, I follow the readme file. I use ...
Altera_Forum
Honored Contributor
20 years agoHi Scott,
I have tested cfi_flash.c. I add<div class='quotetop'>QUOTE </div> --- Quote Start --- #define CFG_FLASH_CFI_DRIVER# define CFG_MAX_FLASH_SECT 71 /* Max# sects per bank */# define CFG_MAX_FLASH_BANKS 1 /* Max# of flash banks */# define CFG_FLASH_CFI[/b] --- Quote End --- to my board.h file. When I build u-boot, it has error in function flash_init(). <div class='quotetop'>QUOTE </div> --- Quote Start --- cfi_flash.c:343: undefined reference to 'monitor_flash_len'[/b] --- Quote End --- Is monitor_flash_len the u-boot image file size? What can I do about it? Furthermore, My flash is 16-bit width, should I define FLASH_CFI_16BIT in my board.h. Thanks, LiangYi