All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ian" <Relativity@HumanHeuristic.com>
To: "Ollie Lho" <ollie@sis.com.tw>
Cc: mtd@infradead.org
Subject: Re: Problems with r/w on mtdblock0
Date: Wed, 6 Dec 2000 12:45:36 +1000	[thread overview]
Message-ID: <200012060245.MAA20187@singularity.tronunltd.com> (raw)


> Of course it WILL BEHAVIOR THIS WAY !!!!
What is /dev/mtd0 ?


Is it a "raw" device ... do I see unhindered access to the DoC Millennium, or am
I being processed in some way (maybe address mapped) .. ?



 
> The DoC has an NAND flash chip in side. For NAND flash chip
> you can only turn each bit form 1 to 0 by WRITE operation,
> not the other way around. The only way to turn a 0 bit to 1
> is by a ERASE operation. This is why I have to erase the first
> few Erase Blocks befor writing the DoC in my loaddoc script.
> 
> # Erase the first 128 pages of the DoC,
> # 128 pages == 128 page * 512 bytes per page == 1 MB
> ./erase /dev/mtd0 0 128
> 
> # Use dd to (zero) pad linuxbios.strip to 63 KB
> dd conv=sync bs=63k if=$LINUXBIOS/util/config/winfast/linuxbios.strip 
> of=linuxbios.block
> 
> # Use dd to wrtie IPL to the first and second pages (page 0, 1) on the DoC
> # N.B. if you are using 2.4.0-test10 and later kernel, the conv=notrunc
> # is neceressary.
> dd if=$LINUXBIOS/util/config/winfast/docipl of=/dev/mtd0 conv=notrunc
> dd if=$LINUXBIOS/util/config/winfast/docipl of=/dev/mtd0 seek=1 conv=notrunc
> 
> 
> Ollie
> 
> 
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
> 

--
http://HumanHeuristic.com/
"Bringing people together in a world full of computers"



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2000-12-06  2:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-06  2:45 Ian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-12-06  4:33 Problems with r/w on mtdblock0 Ian
2000-12-06  3:07 Ian
2000-12-06  2:28 Ian
2000-12-06  2:52 ` Nicolas Pitre
2000-12-06  0:19 Ian
2000-12-06  0:41 ` Ollie Lho
2000-12-06  2:18   ` Nicolas Pitre
2000-12-05  1:54 Ian
2000-12-05  9:15 ` David Woodhouse
2000-12-05 14:50 ` Ronald G Minnich
2000-12-05 14:54   ` David Woodhouse
2000-12-05 15:34     ` Nicolas Pitre
2000-12-05 15:36       ` David Woodhouse
2000-12-05 19:38         ` Ronald G Minnich
2000-12-05  0:42 Ian
2000-12-04 22:36 Ian
2000-12-05  1:10 ` Ollie Lho

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=200012060245.MAA20187@singularity.tronunltd.com \
    --to=relativity@humanheuristic.com \
    --cc=mtd@infradead.org \
    --cc=ollie@sis.com.tw \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.