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

Reply via email to