nandwrite problem

Donal Morrissey donal.morrissey at gmail.com
Thu Apr 9 16:27:35 EDT 2009


Hi Saravanan,
Looks like that was my problem.
Thank you for your help!
Donal

2009/4/9 saravanan chanemouganandam <saravanan_sprt at hotmail.com>:
> Hello,
>
> It seems you are using NOR type flash from mtd.type = MTD_NORFLASH and you
> are trying to use
> nandwrite to flash your image.
>
> Try using mtd-utils to flash ramdisk.gz try something like
>
> mtd -e ramdisk.gz write ramRamdisk.gz ramdisk.gz
> or
> mtd erase /dev/mtd3
> cat ramRamdisk.gz > /dev/mtd3
>
> hope this helps
>
>
>
>
>
>> Date: Thu, 9 Apr 2009 08:29:37 +0100
>> Subject: nandwrite problem
>> From: donal.morrissey at gmail.com
>> To: linux-mtd at lists.infradead.org
>>
>> Hello All,
>> I'm having problems in using the nandwrite command for my cirius logic
>> EP9302 arm based processor card. I am able to load the images
>> correctly via redboot, but not via the nandwrite shell command.
>>
>> I'm using redboot, kernel 2.6.8.1-crus2.0.8 and nandwrite v1.32.
>>
>> Here is the redboot output:
>> ---------------------------
>> RedBoot> fis list
>> Name FLASH addr Mem addr Length Entry point
>> RedBoot 0x60000000 0x60000000 0x00040000 0x00000000
>> RedBoot config 0x60FC0000 0x60FC0000 0x00001000 0x00000000
>> FIS directory 0x60FE0000 0x60FE0000 0x00020000 0x00000000
>> config1 0x60040000 0x00800000 0x00020000 0x00000000
>> config2 0x60060000 0x00800000 0x00020000 0x00000000
>> ramdisk.gz 0x60080000 0x00800000 0x00400000 0x00800000
>> zImage 0x60480000 0x00080000 0x00140000 0x00080000
>>
>> Here are the MTD Devices
>> ------------------------
>> ~ # cat /proc/mtd
>> dev: size erasesize name
>> mtd0: 00040000 00020000 "RedBoot"
>> mtd1: 00020000 00020000 "config1"
>> mtd2: 00020000 00020000 "config2"
>> mtd3: 00400000 00020000 "ramdisk.gz"
>> mtd4: 00140000 00020000 "zImage"
>> mtd5: 00a00000 00020000 "unallocated"
>> mtd6: 00001000 00020000 "RedBoot config"
>> mtd7: 00020000 00020000 "FIS directory"
>>
>> I'm trying to update the ramdisk.gz which is located in /dev/mtd3:
>>
>> ~ # mtd_debug info /dev/mtd3
>> mtd.type = MTD_NORFLASH
>> mtd.flags = MTD_CLEAR_BITS
>> mtd.size = 4194304 (4M)
>> mtd.erasesize = 131072 (128K)
>> mtd.oobblock = 0
>> mtd.oobsize = 0
>> mtd.ecctype = MTD_ECC_NONE
>> regions = 0
>>
>> You can see that the oobblock and oobsize are 0! When I try to run the
>> nandwrite command I get the following:
>>
>> ~ # nandwrite /dev/mtd3 ramRamdisk.gz
>> Unknown flash (not normal NAND)
>>
>> Having looked at the nandwrite command source code, this problem is
>> caused by the oobblock and oobsize members of the mtf info being 0!
>>
>> Does anyone know why the values are incorrect or how to get around this
>> issue?
>>
>> Best Regards,
>> Donal
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
> ________________________________
> Twice the fun— Share photos while you chat with Windows Live Messenger.



More information about the linux-mtd mailing list