From: John Sutton <john@scl.co.uk>
To: Russ Dill <Russ.Dill@asu.edu>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Booting from DOC2000 with GRUB loader
Date: Thu, 2 May 2002 11:56:52 +0100 [thread overview]
Message-ID: <02050212224002.09412@diva.localdomain> (raw)
In-Reply-To: <1020331947.19824.3160.camel@russ>
Nearly there ;-)...
On Thu, 02 May 2002, Russ Dill wrote:
> On Thu, 2002-05-02 at 00:47, John Sutton wrote:
> > Hi again
> >
> > Many thanks for all that feedback! Definitely a positive consensus
> > about the units for start_offset ;-)
> >
> > Jasmine suggests that I should leave some extra after the end of grub for
> > future expansion, which seems a good idea, but raises in my mind the
> > question as to how grub (or anything else) knows where the nftl partition
> > starts? Does nftl_format also write a pointer to the start block
> > somewhere else? Or does the format contain some kind of signature?
>
> just sure to erase any unused sectors.
Is a sector a block? And what is a block?
Here's where I'm up to now:
./nftl_format /dev/mtd0 98304
$Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $
Erase size not 8Kb - I'm confused
So I put a %d for meminfo.erasesize in the printf and I get:
./nftl_format /dev/mtd0 98304
$Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $
Erase size not 8Kb - I'm confused 16384
So I've got a 16Kb erase size. What now? If I hack the source so that it
just falls through this test and proceeds to malloc(meminfo.erasesize * 5)
am I heading for big trouble or success?
Once I've gotten past this little gotcha, how do I go about using the
erase util to erase the piece between the end of the grub and the start of
the nftl partition? I'm thinking that if I start the nftl at 98304 then I
don't need to erase anything because doc_loadbios will have already erased
the unoccupied 96k-87k=9k at the end of the last of the 6 blocks.
Whereas, if I do:
./nftl_format /dev/mtd0 114688 ( i.e. 7 x 16k block )
then I'll need to do:
erase /dev/mtd0 6 1
or, should that be:
erase /dev/mtd0 98304 16384
Sorry to be a dummy ;-(
Thanks again!
***************************************************
John Sutton
SCL Internet
URL http://www.scl.co.uk/
Tel. +44 (0) 1239 711 888
***************************************************
next prev parent reply other threads:[~2002-05-02 11:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-01 19:17 Booting from DOC2000 with GRUB loader John Sutton
2002-05-01 19:49 ` Ilguiz Latypov
2002-05-01 19:49 ` Nikhil Goel
2002-05-01 20:15 ` Russ Dill
2002-05-02 7:47 ` John Sutton
2002-05-02 9:32 ` Russ Dill
2002-05-02 10:56 ` John Sutton [this message]
2002-05-02 16:09 ` Ilguiz Latypov
2002-05-02 17:33 ` Jasmine Strong
2002-05-02 17:39 ` Jasmine Strong
2002-05-02 18:17 ` Frederick Lefebvre
2002-05-02 18:45 ` Ilguiz Latypov
2002-05-03 13:40 ` John Sutton
2002-05-03 16:19 ` Jasmine Strong
-- strict thread matches above, loose matches on Subject: below --
2002-04-26 2:19 Zhiwei Yu
2002-04-26 2:35 ` Russ Dill
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=02050212224002.09412@diva.localdomain \
--to=john@scl.co.uk \
--cc=Russ.Dill@asu.edu \
--cc=linux-mtd@lists.infradead.org \
/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