public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [patch 0/2] SPL: Lightweight UBI and UBI fastmap support
Date: Sat, 12 Jul 2014 06:54:19 +0200	[thread overview]
Message-ID: <53C0BF7B.1050801@denx.de> (raw)
In-Reply-To: <20140705092042.528529053@linutronix.de>

Hello Thomas,

Am 05.07.2014 11:48, schrieb Thomas Gleixner:
> Utilizing NAND FLASH requires proper wear leveling and bitflip
> management. Linux choice for this is UBI. The upstream UBI
> implementation is far too big for a SPL, but it is desired to load
> arbitrary payload including u-boot itself from a UBI managed NAND
> FLASH. That restricts the non-UBI managed part of the NAND flash to
> the first few eraseblocks which are reserved for the SoC boot ROM to
> load the SPL.
>
> The following patches provide a lightweight and fast UBI attach and
> load code, which supports fastmap and full scan mode.

Thnaks for your work. I try to look into this patches ASAP...

> The text foot print on the board which I used for development is:
>
>   6854	0	0	6854	1abd	drivers/mtd/ubispl/built-in.o
>
> Attaching a NAND chip with 4096 physical eraseblocks (4 blocks are
> reserved for the SPL) takes:
>
> In full scan mode:	1172ms
> In fastmap mode:	  95ms
>
> With that and a moderate sized kernel image, I'm able to hand off to
> the kernel within less than 500ms.

Great!

> The scan and logical to physical block mapping code is developed from
> scratch, while the fastmap functions are lifted from the linux kernel
> source and adjusted to fit the SPL needs.
>
> The implementation is paranoid and carefully preserves the UBI
> robustness.
>
> For now I keep a private copy of ubi-media.h which should be shared
> with the drivers/mtd/ubi/ one once Heiko has synced it to the 3.14
> source.

Yes, that was also my first thought, as I looked roughly over your
patches.

> There is room for more boot time optimizations:
>
>        - Implement sub page reads for nand_spl_simple
>
>        - Hand the UBI data from SPL to kernel to avoid rescan of the
>          fastmap/flash

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

      parent reply	other threads:[~2014-07-12  4:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-05  9:48 [U-Boot] [patch 0/2] SPL: Lightweight UBI and UBI fastmap support Thomas Gleixner
2014-07-05  9:48 ` [U-Boot] [patch 1/2] nand_spl_simple: Add a simple flash read function Thomas Gleixner
2014-07-05  9:48 ` [U-Boot] [patch 2/2] spl: Lightweight UBI and UBI fastmap support Thomas Gleixner
2014-08-08 18:56   ` Tom Rini
2014-09-01  7:44     ` Thomas Gleixner
2014-09-29 22:21   ` Richard Weinberger
2014-09-30  4:49     ` Heiko Schocher
2014-07-12  4:54 ` Heiko Schocher [this message]

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=53C0BF7B.1050801@denx.de \
    --to=hs@denx.de \
    --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