From: Dan Brown <dan.brown@nrl.navy.mil>
To: Zeri Virgo <zerivirgo@infocell-its.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
linux-mtd@lists.infradead.org
Subject: Re: [UPDATE] DOCBoot support for NFTL-based DOC2000
Date: Wed, 06 Apr 2005 14:23:34 -0400 [thread overview]
Message-ID: <42542926.9040209@nrl.navy.mil> (raw)
In-Reply-To: <42540E53.8080109@ieee.org>
Dan Brown wrote:
> Zeri Virgo wrote:
>
>> OOB Data: 36 7f eb 1f 3b aa ff ff ff ff ff ff ff ff ff ff
>
> Sounds right, at first glance. The OOB data actually follows each block
> (perhaps that's just a terminology issue :) )
Ah, I see it! That OOB data is actually wrong, it should be:
?? ?? ?? ?? ?? ?? 55 55 ff ff ff ff ff ff ff ff
Here's the whole sordid story:
1) The only reason DOCBoot has been working for *me* lately is because
I've been lazy/stupid.
2) Specifically, although I've been updating my copies of the kernel
code to keep pace with CVS changes, I have *failed* to update my
mtd/utils subdirectory.
3) Thomas recently made a modification to nandwrite. It forces all OOB
bytes not designated as "free" to 0xff. Perfectly sensible.
4) There is apparently a long-standing oddity in diskonchip.c, in which
I set the number of ECC bytes to 6, and designate the last 8 bytes as
"free" bytes. This leaves two bytes (right after the ECC) unaccounted for.
5) DOCBoot puts magic numbers in those exact two OOB bytes.
6) As a result, recent versions of nandwrite will erase the information
DOCBoot needs to identify kernel pages. I've been blissfully unaware of
this because I've been using an older version.
7) So, I've changed diskonchip.c to designate all of the last 10 bytes
as "free". It seems like the right thing to do, since only the first 6
bytes are used by the hardware itself. BUT ....
8) I have this nagging feeling there was a reason for 4).
9) I think this may break compatibility with any jffs2 filesystems
written before the change, because the cleanmarker will be in the wrong
place. Hmm... maybe I should back out the change. David? Thomas? Opinions?
10) AAAARRRGGGHHHH!!!!
-Dan
next prev parent reply other threads:[~2005-04-06 18:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-29 21:06 [UPDATE] DOCBoot support for NFTL-based DOC2000 Dan Brown
2005-03-31 15:50 ` Zeri Virgo
2005-03-31 20:35 ` Dan Brown
2005-04-01 1:33 ` Zeri Virgo
2005-04-01 2:13 ` Dan Brown
2005-04-04 15:05 ` Zeri Virgo
2005-04-04 18:04 ` Dan Brown
2005-04-05 12:00 ` Zeri Virgo
2005-04-05 19:51 ` Dan Brown
2005-04-06 12:13 ` Zeri Virgo
2005-04-06 12:29 ` Zeri Virgo
2005-04-06 13:12 ` Dan Brown
2005-04-06 14:48 ` Zeri Virgo
2005-04-06 16:29 ` Dan Brown
2005-04-06 18:23 ` Dan Brown [this message]
2005-04-07 14:27 ` Dan Brown
2005-04-07 21:45 ` Zeri Virgo
2005-04-08 15:41 ` Dan Brown
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=42542926.9040209@nrl.navy.mil \
--to=dan.brown@nrl.navy.mil \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=tglx@linutronix.de \
--cc=zerivirgo@infocell-its.com \
/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