Flashing NAND from NAND
matthias.huber at wollishausen.de
Tue Oct 20 13:48:09 CEST 2009
Joachim Ott schrieb:
> 2009/10/20 Matthias Huber <matthias.huber at wollishausen.de>:
>> Joachim Ott schrieb:
>> 2009/10/20 Matthias Huber <matthias.huber at wollishausen.de>:
>> just for clearness: is the boot - partition different from the rootfs ?
>> and how are the other partitions ?
>> /dev/mtd0 is the 2 MB NOR flash that contains the NOR bootloader
>> /dev/mtd1 - mtd6 are the 256 MB NAND flash, the names and sizes are
>> shown when the kernel boots (check "dmesg | more" after boot) and they
>> - u-boot or Qi
>> - u-boot environment
>> - kernel
>> - splash image shown directly after power on
>> - factory settings
>> - rootfs
>> my question was thougt as: do the other partitions also have to be erased ?
>> on the mounted rootfs (/dev/mtdblock6) i am writing just normal without
>> erasing, thats why i am stating this question.
> There's a difference between flashing a partition and writing to a
> mounted filesystem. When you edit a file and change only one byte, the
> whole block containig this changed byte will be erased and newly
> written. This happens transparent to you.
>> and what is then the difference between /dev/mtd6 and /dev/mtdblock6 ?
> /dev/mtd6 is accessed as char device, while /dev/mtdblock6 is accessed
> as block device. See e.g.
(... coming back to my method of restoring and saving)
so is then in the driver a difference
between /dev/mtd1 and /dev/mtd6 ?
or between /dev/mtdblock1 and /dev/mtdblock6 ?
and between mtd0 and mtd6 ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the support