* [ECOS] FLASH: driver init failed: Unknown error
@ 2009-03-17 13:57 alfred steele
0 siblings, 0 replies; only message in thread
From: alfred steele @ 2009-03-17 13:57 UTC (permalink / raw)
To: ecos-discuss
Hi all:
I am trying to boot on a MX31 with NAND flash. In a porting effort, i
actually modified some files and then when i was trying to load the
image to RAM using JTAG and then execute it, i got the following on
running the image.
++Inside flash_hwr_init
2: Use "factive" to select a boot type such as NAND|NOR|MMC|...
FLASH: driver init failed: Unknown error
Sorry, FLASH config exceeds available space in FIS directory.
I went to trace the origin of the error message and it seems the
flash_hwr_init() is failing because of some reason. APparently , it
ends up in the
int flash_hwr_init(void)
{
diag_printf("Inside flash_hwr_init \n");
if (IS_BOOTING_FROM_NOR() || IS_FIS_FROM_NOR()) {
#ifdef MXCFLASH_SELECT_NOR
return norflash_hwr_init();
#else
return -1;
#endif
} else if (IS_BOOTING_FROM_NAND() || IS_FIS_FROM_NAND()) {
return nandflash_hwr_init();
} else if (IS_BOOTING_FROM_MMC() || IS_FIS_FROM_MMC()){
#ifdef MXCFLASH_SELECT_MMC
return mmcflash_hwr_init();
#else
return -1;
#endif
} else {
if (!mxc_flash_warning_done)
mxc_flash_warning_done = 1;
diag_printf("2: Use \"factive\" to select a boot type such as
NAND|NOR|MMC|...\n");
return -1;
}
}
I am landing into the third "else" block. I don't know the reasons for
the same. It seems i have modified some startup code. Would it be
because i have modified something in the platform_setup.h
Thanks in Advance,
Alfred.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-16 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 13:57 [ECOS] FLASH: driver init failed: Unknown error alfred steele
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).