From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11431 invoked by alias); 16 Mar 2009 17:17:48 -0000 Received: (qmail 11419 invoked by uid 22791); 16 Mar 2009 17:17:47 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_40,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.148) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Mar 2009 17:17:41 +0000 Received: by qw-out-1920.google.com with SMTP id 4so1899107qwk.24 for ; Mon, 16 Mar 2009 10:17:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.82.81 with SMTP id a17mr2131528qcl.107.1237223859212; Mon, 16 Mar 2009 10:17:39 -0700 (PDT) Date: Tue, 17 Mar 2009 13:57:00 -0000 Message-ID: <528f13590903161017l69cc5021r31fd8a528be0f187@mail.gmail.com> From: alfred steele To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] FLASH: driver init failed: Unknown error X-SW-Source: 2009-03/txt/msg00065.txt.bz2 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) { =A0=A0=A0 diag_printf("Inside flash_hwr_init \n"); =A0=A0=A0 if (IS_BOOTING_FROM_NOR() || IS_FIS_FROM_NOR()) { #ifdef MXCFLASH_SELECT_NOR =A0=A0=A0=A0=A0=A0=A0 return norflash_hwr_init(); #else =A0=A0=A0=A0=A0=A0=A0 return -1; #endif =A0=A0=A0 } else if (IS_BOOTING_FROM_NAND() || IS_FIS_FROM_NAND()) { =A0=A0=A0=A0=A0=A0=A0 return nandflash_hwr_init(); =A0=A0=A0 } else if (IS_BOOTING_FROM_MMC() || IS_FIS_FROM_MMC()){ #ifdef MXCFLASH_SELECT_MMC =A0=A0=A0=A0=A0=A0=A0 return mmcflash_hwr_init(); #else =A0=A0=A0=A0=A0=A0=A0 return -1; #endif =A0=A0=A0 } else { =A0=A0=A0=A0=A0=A0=A0 if (!mxc_flash_warning_done) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 mxc_flash_warning_done =3D 1; =A0=A0=A0=A0=A0=A0=A0 diag_printf("2: Use \"factive\" to select a boot type= such as NAND|NOR|MMC|...\n"); =A0=A0=A0=A0=A0=A0=A0 return -1; =A0=A0=A0 } } 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