Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

u-boot without flash device

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.