* 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
* Re: U-boot and UBI
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
0 siblings, 1 reply; 5+ messages in thread
From: Bernard Blackham @ 2008-07-30 18:00 UTC (permalink / raw)
To: Nigel Hathaway; +Cc: linux-mtd
Nigel Hathaway wrote:
> 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 expressed interest in doing so at the time but nothing happened about
it unfortunately. I can't speak for anyone else though.
Bernard.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: U-boot and UBI
2008-07-30 18:00 ` Bernard Blackham
@ 2008-07-31 11:01 ` Nigel Hathaway
2008-07-31 18:50 ` [U-Boot-Users] " Scott Wood
0 siblings, 1 reply; 5+ messages in thread
From: Nigel Hathaway @ 2008-07-31 11:01 UTC (permalink / raw)
To: Bernard Blackham; +Cc: pgssgp, linux-mtd, u-boot-users
Bernard,
> Nigel Hathaway wrote:
> > 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 expressed interest in doing so at the time but nothing happened
about
> it unfortunately. I can't speak for anyone else though.
>
> Bernard.
In the short term we've found a way to get round having to UBI and hence
porting it to U-Boot (we have a NOR/NAND combination, and we've gone for
the NAND as entirely jffs2).
However, the next spin of our product will use entirely NAND flash: it
will use an SoC which has an internal ROMboot and can load U-Boot
directly from NAND flash. We will have to go to UBI then (starting
development early 2009).
I have been playing around with a board from Olimex: the SAM9-L9260 (it
has an Atmel AT91SAM9260 on it). This has a ROMboot with U-Boot in NAND
flash. The board I am using has an interesting feature: the block which
U-Boot is configured to use for storing its environment just happens to
be a bad block, so I can't change and store the U-Boot environment
parameters on it.
Either the U-Boot that comes pre-flashed into the board (v1.2.0) is
misconfigured, or that version of U-Boot has failed to take into account
the possibility of the scenario described. Either way, there would
appear to be some work to do to get U-boot up-to-date with Linux MTD
state-of-the-art.
Nigel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [U-Boot-Users] U-boot and UBI
2008-07-31 11:01 ` Nigel Hathaway
@ 2008-07-31 18:50 ` Scott Wood
0 siblings, 0 replies; 5+ messages in thread
From: Scott Wood @ 2008-07-31 18:50 UTC (permalink / raw)
To: Nigel Hathaway; +Cc: pgssgp, Bernard Blackham, linux-mtd, u-boot-users
On Thu, Jul 31, 2008 at 12:01:18PM +0100, Nigel Hathaway wrote:
> I have been playing around with a board from Olimex: the SAM9-L9260 (it
> has an Atmel AT91SAM9260 on it). This has a ROMboot with U-Boot in NAND
> flash. The board I am using has an interesting feature: the block which
> U-Boot is configured to use for storing its environment just happens to
> be a bad block, so I can't change and store the U-Boot environment
> parameters on it.
There's a patch in the testing branch of u-boot-nand-flash to allow a
range of blocks to be specified for the environment, with bad blocks
being skipped. Another patch has been posted to allow the location of
the environment to be specified in the OOB area of the boot block (which
is guaranteed to be good).
-Scott
^ 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