I'm using eCos 3.0. I'm running my Redboot in ROM mode. Redboot comes up, but gives the following error.
FLASH: driver init failed. Invalid FLASH address.
I have determined that the 'Invalid FLASH address' error, CYG_FLASH_ERR_INVALID, is generated in cyg_flash_get_info() and find_dev(). Both functions are in io/flash/v3_0/src/flash.c.
I am running Redboot on a PowerPC. The flash part is an AMD 29LV160 (2 megabytes). Redboot is loaded at a 1 megabyte offset.
Below are details of my configuration.
I have no errors in the build nor any conflicts.
What have I failed to configure properly?
Keith Smith
------
Here is the package list for my target.
packages { CYGPKG_HAL_POWERPC
CYGPKG_HAL_POWERPC_PPC60x
CYGPKG_HAL_POWERPC_ICM12
CYGPKG_DEVS_FLASH_POWERPC_ICM12
CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
CYGPKG_IO_PCI
CYGPKG_DEVS_ETH_ICM12
CYGPKG_DEVS_ETH_INTEL_I82559
}
Here's the CDL file for CYGPKG_DEVS_FLASH_POWERPC_ICM12:
cdl_package CYGPKG_DEVS_FLASH_POWERPC_ICM12 {
parent CYGPKG_IO_FLASH
active_if CYGPKG_IO_FLASH
requires CYGPKG_HAL_POWERPC_ICM12
compile icm12_flash.c
# Arguably this should do in the generic package
# but then there is a logic loop so you can never enable it.
cdl_interface CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED {
display "Generic AMD flash driver required"
}
implements CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED
requires CYGHWR_DEVS_FLASH_AMD_AM29LV160
}
>From Configuration:
Base address of flash device redboot should use: 0
Which block of flash to use: -1
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
[Linux Embedded]
[U-Boot V2]
[Linux Kernel]
[Linux MIPS]
[Linux ARM]
[Linux for the Blind]
[Linux Resources]
[Photo]
[Yosemite]
[ISDN Cause Codes]
[ECOS Home]
[Site Home]