From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 2 Jun 2009 09:27:21 +0200 Subject: [U-Boot] No nandflash found if CONFIG_CMD_UBI is enabled. In-Reply-To: <2c9a759f0906020008k488842e4g564edeee23b34e3c@mail.gmail.com> References: <2c9a759f0906020008k488842e4g564edeee23b34e3c@mail.gmail.com> Message-ID: <200906020927.21555.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Anders, On Tuesday 02 June 2009 09:08:38 Anders Darander wrote: > I'm trying to enable the UBI-support in U-Boot (later intending to > also enable the UBIFS-support). This is on a AT91SAM9260-based system. > I've verified the same behaviour using both the > at91sam9260ek_nandflash_config and a forward-ported patch for the > Olimex sam9_l9260 board. Currently I'm concentrating on the > at91sam9260ek_nandflash_config, as this one is in the U-Boot > repository. > > However, once I enable the UBI-support, the nand-flash chip is not > detected... I've tried to trace the problem, and I've found that it is > timer-related. Which options did you define to enable UBI? apollon.h should be helpful as an example here. Ah, I see them in your patch below. Looks ok on first glance. > It seems that once I enable CONFIG_CMD_UBI, the timer > does not work (the debug-printf in the get_ticks()-function in the > supplied patch is not printing). If I comment out CONFIG_CMD_UBI, > U-Boot continously prints stuff like: > Debug: timestamp=6 > Debug: timestamp=10215 > Debug: timestamp=21556 > which is expected. > > I'm compiling by running: > make clean > make at91sam9260ek_nandflash_config > make > and then flashing u-boot.bin to the board. > > The supplied patch works, unless the '#define CONFIG_CMD_UBI 1' > is uncommented, in which case the get_ticks function in > cpu/arm926ejs/at91/timer.c never seems to be called. I've sofar been > unable to understand why. Strange. This should have nothing to do with UBI at all. Sorry I have no clue where this problem is coming from. Perhaps a "sleeping" issue that is triggered by larger image size? Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================