public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* U-boot and UBI
@ 2008-07-18 12:20 Nigel Hathaway
  2008-07-30 18:00 ` Bernard Blackham
  0 siblings, 1 reply; 5+ messages in thread
From: Nigel Hathaway @ 2008-07-18 12:20 UTC (permalink / raw)
  To: linux-mtd

Hoping to avoid re-inventing the wheel....

It would seem that there are a number of people who are independently
porting UBI to U-Boot. I notice that there is a thread on the subject on
this mailing list (linux-mtd) from April 2008. It has also been
indicated to me that IBM have, in fact, done a port of UBI to U-Boot,
but haven't released any source code (yet). Does anyone know if this is
true?

It would seem sensible to somehow coordinate the effort.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* U-Boot and UBI
@ 2008-08-08 18:26 Josh Boyer
  0 siblings, 0 replies; 5+ messages in thread
From: Josh Boyer @ 2008-08-08 18:26 UTC (permalink / raw)
  To: u-boot, linux-mtd; +Cc: arnez, haver

Hi All,

As has been stated before by various people, IBM has added some form of
UBI support to an older version of U-Boot.  While we would love to be
able to forward port this to the latest version of U-Boot, we have
simply not found the time and don't see that being the case in the near
future.

So as an alternative, I have cleaned up the code slightly and pushed out
a version that applies to U-Boot 1.1.6.  This way there is at least some
form of code release that people can use as a reference.  I am not
pushing this for inclusion into the current U-Boot, as we are well aware
of the need for further adaptation and cleanup.

A few caveats:

- This is a quick forward port from a patched 1.1.4 tree to 1.1.6.  It
compiles for the example board (PowerPC 440EP Bamboo), but that example
code may not actually work due to the differences in how flash was read
between the code bases.  When moving to a newer U-Boot, I highly
recommend using the generic MTD interfaces.

- There might be slight differences in the UBI format that this code
base supports and what is in the upstream Linux kernel.  Comparison of
the data structures in the current kernel would be advised if you are
forward porting.

- There is no write support for UBI in this port.

- The interfaces have two methods of getting scan information.  The
first is having a bit of code that runs before U-Boot do the scan and
pass it.  The second is to have a user/script use the "ubiscan" command
to have U-Boot manually perform the scan itself.  The latter method is
likely more flexible for new boards.

All of that being said, we hope this code is useful as a guide.  I will
certainly answer questions as I can.  If for some unknown reason I find
a massive amount of spare time, I might even try to forward port it, but
that seems unlikely these days.

I would like to thank Frank Haverkamp, Thomas Gleixner, Andreas Arnez,
and Artem Bityutskiy for their work on UBI and the majority of the
U-Boot code we have.

The git tree can be found here:

git fetch git://git.infradead.org/users/jwboyer/u-boot.git ubi

http://git.infradead.org/users/jwboyer/u-boot.git?a=shortlog;h=refs/heads/ubi

josh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-08 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 12:20 U-boot and UBI Nigel Hathaway
2008-07-30 18:00 ` Bernard Blackham
2008-07-31 11:01   ` Nigel Hathaway
2008-07-31 18:50     ` [U-Boot-Users] " Scott Wood
  -- strict thread matches above, loose matches on Subject: below --
2008-08-08 18:26 U-Boot " Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox