From: "Miguel Freitas" <miguel@cetuc.puc-rio.br>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Ciro Cattuto <ciro@prosa.it>, mtd@infradead.org
Subject: Re: GRUB on DOC: 2Mb issues
Date: Wed, 30 Aug 2000 10:46:20 GMT-3 [thread overview]
Message-ID: <1512880772E@mamao.cetuc.puc-rio.br> (raw)
In-Reply-To: <10312.967625826@cygnus.co.uk>
On 30 Aug 00, at 9:57, David Woodhouse wrote:
> doc_stage1.S could be hacked to work with both. See the existing loader
> code in the DiskOnChip firmware for inspiration.
>
> There's no real reason to waste the second half of the pages either - and
> we could easily make the checksums work in _both_ types of device at once.
Yes, but to not waste the second half of pages AND make
doc_stage1.S work for all devices we would need to add code to
identify the nand chip. I don't know how much bigger doc_stage1
would be, but it will be probably more than 256 bytes.
Suppose that we can fit that smart doc_stage1 in 512 bytes, so it
will have 2 halfs of 256 bytes. Output of makecsum could be made
as follow:
- First half of stage1, with a checksum byte for 512 paged device,
ie, we should only sum half each 512-page of the first 16Kb.
- Second half of stage2 (this will NOT be loaded by IPL on 512-
page devices). checksum will be generated by summing all the first
8Kb.
- Second half of stage2. checksum = 0.
- Unused 256 bytes, just to simplify stage1 (so it won't have to deal
with READ0 / READ1 commands)
- Stage2 from grub.
BTW, forgot my suggestion for "loadbios" ioctl...
Regards,
Miguel Freitas
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-08-30 13:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-28 16:50 GRUB on DOC: 2Mb issues Ciro Cattuto
2000-08-28 22:24 ` Miguel Freitas
2000-08-30 8:57 ` David Woodhouse
2000-08-30 13:46 ` Miguel Freitas [this message]
2000-08-30 15:07 ` David Woodhouse
2000-08-30 14:23 ` Miguel Freitas
2000-08-31 16:20 ` David Woodhouse
2000-08-31 23:10 ` Ciro Cattuto
2000-08-30 15:47 ` Ciro Cattuto
2000-08-30 16:31 ` David Woodhouse
2000-08-30 16:39 ` David Woodhouse
2000-08-30 14:21 ` Ciro Cattuto
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=1512880772E@mamao.cetuc.puc-rio.br \
--to=miguel@cetuc.puc-rio.br \
--cc=ciro@prosa.it \
--cc=dwmw2@infradead.org \
--cc=mtd@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