public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* MTD Devices
@ 2007-11-13 10:29 schardt
  0 siblings, 0 replies; only message in thread
From: schardt @ 2007-11-13 10:29 UTC (permalink / raw)
  To: Linux PPC Linux PPC

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)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-13 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 10:29 MTD Devices schardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox