Hi Dirk!
Dirk Behme wrote:
in DaVinci wiki I saw the change
by "Bernardb" and assume that is you? Sorry if not ;)
Good detective work ;)
-- cut --
You cannot use u-boot's NAND drivers to write the UBL because the RBL
(that loads the UBL) expects a non-standard ECC format.
-- cut --
While this is totally correct, you can write UBL to NAND if you apply a
patch teaching U-Boot to write the special ECC format. I sent one some
weeks ago
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/34602
Sergey commented that this isn't "right", but seems that he didn't refer
to the technical part of the patch.
If you find this useful like me, I can try to update the patch and
resend it again. Or should we at least mention it in wiki, so that
interested people can apply it? (Assuming they know what they do
regarding Sergeys comments)
What do you think?
Thanks for pointing that patch out! I agree with Sergey that it should
be a run-time option. Perhaps some generic infrastructure to support
additional NAND commands could be leveraged upon later.
Personally, I think it's silly to have one tool to write one part of
flash and another tool to write the other, but I can understand why
people want to do it in different ways.
From a quick Google and glance at the uboot code
(drivers/mtd/nand/nand_util.c), it seems there are already differences
in ECC formats between jffs2 and yaffs. From the user's point of view,
it would make sense to extend the "nand read[.jffs2|...]" syntax, but I
haven't looked yet at how that would find its way cleanly up to the
Davinci NAND driver.
If you want to have a shot at re-implementing the patch to do it at
runtime, that would be great! I'd offer to try, however it may sit on my
list for a few weeks before I get to it :)
Cheers,
Bernard.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source