All of lore.kernel.org
 help / color / mirror / Atom feed
From: schardt <g.schardt@fz-juelich.de>
To: Linux PPC Linux PPC <linuxppc-embedded@ozlabs.org>
Subject: MTD Devices
Date: Tue, 13 Nov 2007 11:29:04 +0100	[thread overview]
Message-ID: <47397C70.9000106@fz-juelich.de> (raw)

Hi again,

i have some problems to copy a cramfs image to flash.  the situation as
follows:

cat /proc/mtd:
dev:    size   erasesize  name
mtd0: 00180000 00010000 "kernel"
mtd1: 00280000 00010000 "rootfs"

cat /proc/partitions:
major minor  #blocks  name

 254     0      62720 xsa
 254     1       9840 xsa1
 254     2      52864 xsa2
  31     0       1536 mtdblock0
  31     1       2560 mtdblock1

ls -l /dev/mtd*:
crw-r--r--    1 root     root      90,   0 Jan  1 00:14 /dev/mtd0
crw-r--r--    1 root     root      90,   2 Jan  1 00:21 /dev/mtd1
brw-r--r--    1 root     root      31,   0 Jan  1 00:01 /dev/mtdblock0
brw-r--r--    1 root     root      31,   1 Jan  1 00:08 /dev/mtdblock1


now, imho it is possible to make a

- eraseall /dev/mtd1 to erase the flash
- dd if=cramfs.img of=/dev/mtd1 to copy image to flash

but if i read the mtd1 device back, the flash is emtpy :(((

what is my mistake ?

Georg



-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

             reply	other threads:[~2007-11-13 10:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-13 10:29 schardt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-15 22:57 mtd devices Jeremy Bowen
2003-04-16  7:19 ` Eric DEJONC
2003-04-16  9:52 ` Daniel Toussaint

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=47397C70.9000106@fz-juelich.de \
    --to=g.schardt@fz-juelich.de \
    --cc=linuxppc-embedded@ozlabs.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 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.