public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hedwin Koning <hedwin.koning@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Need some help with a UBI memory allocation issue
Date: Thu, 26 Nov 2009 00:25:29 +0100	[thread overview]
Message-ID: <4B0DBCE9.3070009@gmail.com> (raw)

Hi,

I am interested in some thoughts, ideas from the uboot community with an 
issue I have with u-boot.
When I use the following sequence of commands:

    nand erase /partition1
    ubi part nand /partition1
    ubi create aVolume1
    nand erase /partition2
    ubi part nand /partition2
    ubi create aVolume2

When I execute "ubi part nand /partition2" uboot has a hangup. I was 
able to
trace is back to a call to kmem_cache_alloc in file wl.c in function 
ubi_wl_init_scan which never
returns. I did not yet had a closer look at what is happening in 
dlmalloc.c but one solution that
works is to set the minimum allocateble chunck to 64B. So for chunks 
smaller than 64B always 64B
is allocated.
The system we use uboot, the size of the allocatable memory region has 
to be more than 2MB (is now 4MB).
With 2MB or lower it simply doesn't work. Looking at how much is being 
allocated by UBI it is
not that supprising.

Is this an entirely unknown issue in uboot waiting in the dark to 
strike? or is it something I might
have done incorrectly, like a CONFIG I need to set or .. or ..

Oh yeah, I use the 2009.01 version, can't change that need to keep the 
customer happy but I frequently
check the latest uboot for any interesting update/sollution/bugfix.

Appreciate any comment/ideas on this.

Hedwin Koning

                 reply	other threads:[~2009-11-25 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B0DBCE9.3070009@gmail.com \
    --to=hedwin.koning@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox