From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 4 Jun 2009 11:17:32 +0200 Subject: [U-Boot] UBI on NAND flash again In-Reply-To: <20090604090740.GD26688@buzzloop.caiaq.de> References: <20090603180551.GL26160@buzzloop.caiaq.de> <200906041015.30536.sr@denx.de> <20090604090740.GD26688@buzzloop.caiaq.de> Message-ID: <200906041117.32865.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 On Thursday 04 June 2009 11:07:40 Daniel Mack wrote: > On Thu, Jun 04, 2009 at 10:15:30AM +0200, Stefan Roese wrote: > > > Hmm. That still doesn't work for me, and I still wonder about the > > > 'attaching mtd1 to ubi0' string, which looks like a mismatch to me. > > > > I would have to check in more details here. But I'm pretty sure this is > > not the reason for your failure. Here a log from one of mine UBI systems: > > Oh well - you're right. The code failed in vmalloc() due to a too small > CONFIG_SYS_MALLOC_LEN which I needed to augment to 512kB. Yes, you're not the first person to stumble over this malloc problem. :) I'll add some #warning/#error to the code to warn the user if such a mis- configuration is happening. 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 =====================================================================