linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Navin Boppuri" <navin.boppuri@newisys.com>
Cc: "Linuxppc-Embedded (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Flash Driver
Date: Tue, 14 Aug 2001 21:32:18 +0200	[thread overview]
Message-ID: <20010814193223.B316010CBA@denx.denx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

In message <3A494DE356A49A40B37442E1E0D9F3B506341C@ptah.ad.newisys.com> you wrote:
>
> Coool!! Now I have the flash driver registering itself and telling me
> all about the number of partitions on my flash etc. etc. I have the
> flash device in the /dev directory. Now, how do I use them? I remember
> using them before using the dd command.

That's one option. If your write() calls are the same or  a  multiple
of  the erase block size, the driver performs auto-erase. You you can
just read / write it.

Attached below is a small patch against busybox to add flash_info and
flash_erase as busybox applets. [That's  part  of  SELF,  our  Simple
Embedded  Linux  Framework; I just wish I'd find the time to complete
the documentation so I could put it all up for FTP...]

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"He only drinks when he gets depressed." "Why does he get depressed?"
"Sometimes it's because he hasn't had a drink."
                                     - Terry Pratchett, _Men at Arms_


[-- Attachment #2: busybox-0.51-flash.patch.gz --]
[-- Type: application/x-gzip , Size: 2921 bytes --]

             reply	other threads:[~2001-08-14 19:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-14 19:32 Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-07 19:16 flash driver liran raz
2008-07-08  6:34 ` Marco Stornelli
     [not found]   ` <e3b3ab5c0807081104w44565527m5602c9d6e85b5875@mail.gmail.com>
     [not found]     ` <e3b3ab5c0807081106l50914537xc41f777669655c52@mail.gmail.com>
2008-07-09  7:00       ` Marco Stornelli
2001-08-14 19:40 Flash Driver Navin Boppuri
2001-08-14 19:54 ` Wolfgang Denk
2001-08-14 19:15 Navin Boppuri
2001-08-13 22:09 Navin Boppuri
2001-08-13 22:28 ` Wolfgang Denk

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=20010814193223.B316010CBA@denx.denx.de \
    --to=wd@denx.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=navin.boppuri@newisys.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;
as well as URLs for NNTP newsgroup(s).