Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

u-boot without flash device

Altera_Forum
Honored Contributor II
1,176 Views

Is there any way to skip the flash check on the beginning of u-boot ?? 

 

***************************************** 

U-Boot 2009.03-00006-g3387a3e-dirty (Dec 17 2010 - 15:42:36) 

 

CPU : Nios-II 

SYSID : <unknown> 

BOARD : My Board# # Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB 

 

 

*** ERROR: unimplemented instruction @ f2fd00a0# ## ERROR# ## Please reset board# ## 

***************************************** 

 

Since I do not have any CFI-Flash, it failing. 

CFG_NO_FLASH option did not work. 

CONFIG_ENV_IS_NOWHERE option did not work.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
299 Views

Solved. 

 

define config_sys_no_flash 

do not define config_flash_cfi_driver 

do not define config_cmd_flash (undefine it if necessary 

do not define config_cmd_imls (undefine it if necessary) 

 

You may still see error in compilation. 

Go to u-boot/lib_nios2/board.c 

around line 155, comment out the line 

//bd->bi_flashsize = flash_init(); 

 

At least, this will give you a command prompt of the u-boot. 

Or simply the board.c file should use# ifdef to process this line. 

 

1 more thing. If you are using the config_cmd_default, then... 

In side of u-boot/include/config_cmd_default.h  

around line 25, comment out# define CONFIG_CMD_FLASH
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

It seems like this issue was cause by using older version of u-boot. 

I was using 20090730 version. 

 

In the new version, 20100621, this issue has been fixed.
0 Kudos
Reply