[U-Boot] U-Boot and UBI

Kyungmin Park kmpark at infradead.org
Tue Aug 12 06:25:22 EDT 2008


Hi,

On Tue, Aug 12, 2008 at 5:02 AM, Stefan Roese <sr at denx.de> wrote:
> On Monday 11 August 2008, Kyungmin Park wrote:
>> Actually the Samsung implemented the UBI support on U-boot already and
>> has used it internally. The big difference is the code base. It's
>> based on kernel UBI code. Yes it's not fit well to u-boot ecosystem so
>> it created the ubi wrapper for u-boot.
>
> And how does NAND/OneNAND booting with UBI support fit into this? I assume
> that you have some size restrictions for the IPL/SPL on your platforms as
> well.
>

It's not yet covered. it's TODO

Anyway, here's UBI patch.
The real implementation was done by another board but to publish I
make a patch for apollon board for usage. (tested and verified)

As see it's all-in-one patch and contains several parts, apollon
board, OneNAND, mtdpartition, and UBI.

After the feedback, I will generate right patches for purpose.

Please give any comments and feedbacks

Thank you,
Kyungmin Park

P.S., it's bzip2ed since mailing list has size limitation.

 Makefile                           |    1 +
 board/apollon/Makefile             |    2 +-
 board/apollon/config.mk            |    2 +-
 board/apollon/ubi.c                |   55 ++
 common/Makefile                    |    1 +
 common/cmd_jffs2.c                 |   69 ++-
 common/cmd_ubi.c                   |  532 ++++++++++++
 drivers/mtd/Makefile               |    1 +
 drivers/mtd/mtdcore.c              |  140 +++
 drivers/mtd/mtdpart.c              |  531 ++++++++++++
 drivers/mtd/nand/nand_base.c       |    2 +
 drivers/mtd/onenand/onenand_base.c |   98 ++-
 drivers/mtd/ubi/Makefile           |   48 +
 drivers/mtd/ubi/build.c            | 1182 +++++++++++++++++++++++++
 drivers/mtd/ubi/cdev.c             |  819 ++++++++++++++++++
 drivers/mtd/ubi/crc32.c            |  510 +++++++++++
 drivers/mtd/ubi/crc32defs.h        |   32 +
 drivers/mtd/ubi/crc32table.h       |  136 +++
 drivers/mtd/ubi/debug.c            |  192 +++++
 drivers/mtd/ubi/debug.h            |  152 ++++
 drivers/mtd/ubi/eba.c              | 1256 +++++++++++++++++++++++++++
 drivers/mtd/ubi/gluebi.c           |  347 ++++++++
 drivers/mtd/ubi/io.c               | 1274 +++++++++++++++++++++++++++
 drivers/mtd/ubi/kapi.c             |  638 ++++++++++++++
 drivers/mtd/ubi/misc.c             |  106 +++
 drivers/mtd/ubi/scan.c             | 1361 +++++++++++++++++++++++++++++
 drivers/mtd/ubi/scan.h             |  165 ++++
 drivers/mtd/ubi/ubi-media.h        |  372 ++++++++
 drivers/mtd/ubi/ubi.h              |  641 ++++++++++++++
 drivers/mtd/ubi/upd.c              |  441 ++++++++++
 drivers/mtd/ubi/vmt.c              |  862 +++++++++++++++++++
 drivers/mtd/ubi/vtbl.c             |  837 ++++++++++++++++++
 drivers/mtd/ubi/wl.c               | 1670 ++++++++++++++++++++++++++++++++++++
 fs/jffs2/jffs2_1pass.c             |  118 +++
 include/configs/apollon.h          |   21 +-
 include/jffs2/load_kernel.h        |   11 +-
 include/linux/crc32.h              |   27 +
 include/linux/mtd/compat.h         |    5 +
 include/linux/mtd/mtd-abi.h        |    1 +
 include/linux/mtd/mtd.h            |   27 +
 include/linux/mtd/nand.h           |   14 -
 include/linux/mtd/nand_legacy.h    |   12 -
 include/linux/mtd/onenand.h        |   19 +-
 include/linux/mtd/partitions.h     |   84 ++
 include/linux/mtd/ubi.h            |  186 ++++
 include/linux/rbtree.h             |  161 ++++
 include/linux/types.h              |   24 +
 include/mtd/ubi-header.h           |  372 ++++++++
 include/mtd/ubi-user.h             |  268 ++++++
 include/mtd_uboot.h                |    7 +
 include/onenand_uboot.h            |   11 +-
 include/ubi_uboot.h                |  222 +++++
 lib_generic/Makefile               |    1 +
 lib_generic/rbtree.c               |  397 +++++++++
 54 files changed, 16383 insertions(+), 80 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubi-uboot.patch.bz2
Type: application/x-bzip2
Size: 89437 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20080812/87759f61/attachment-0001.bz2 


More information about the linux-mtd mailing list