Re: [U-Boot] Using Micron (Numonyx) m28w640hcb with u-boot

Hi Vipin
I have had a similar problem with spear3xx board. Basically, this flash is write protected in hardware by default. It has to be specifically made writable. Please define a flag CONFIG_SYS_FLASH_PROTECTION in your config file.
Thanks a lot. This works like charm :)
Now I have spent the whole day on trying to mount the device from Linux as a read/write partition but without luck.
I can mount the partition but if I try to do some writing to it I get:
Write clean marker to block at 0x00030000 failed: -30 ... repeated for all sector boundaries. If I reboot the device the partition is empty.
Then I tried to use flash_eraseall but it fails as well # flash_eraseall -j /dev/mtd1 Erasing 64 Kibyte @ 0 -- 0 % complete. flash_eraseall: /dev/mtd1: MTD write failure: Read-only file system
I tried to unlock the flash (using protect off) before booting Linux but without any success.
I can't find any configuration option related to the NOR CFI flash in the spear3xx kernel configuration files. Do you have any useful hint on this as well?
Regards Gudjon

On 11/14/2011 9:59 PM, Gudjon I. Gudjonsson wrote:
Hi Vipin
Hello Gudjon,
I have had a similar problem with spear3xx board. Basically, this flash is write protected in hardware by default. It has to be specifically made writable. Please define a flag CONFIG_SYS_FLASH_PROTECTION in your config file.
Thanks a lot. This works like charm :)
Now I have spent the whole day on trying to mount the device from Linux as a read/write partition but without luck.
Ideally, it should have happened now
I can mount the partition but if I try to do some writing to it I get:
Write clean marker to block at 0x00030000 failed: -30 ... repeated for all sector boundaries. If I reboot the device the partition is empty.
Then I tried to use flash_eraseall but it fails as well # flash_eraseall -j /dev/mtd1 Erasing 64 Kibyte @ 0 -- 0 % complete. flash_eraseall: /dev/mtd1: MTD write failure: Read-only file system
I tried to unlock the flash (using protect off) before booting Linux but without any success.
There is one environment variable to do it. setenv unlock yes I think this should be sufficient
I can't find any configuration option related to the NOR CFI flash in the spear3xx kernel configuration files. Do you have any useful hint on this as well?
Sorry, I dont have any other idea specifically for this. I will let you know if something comes to mind
Vipin
Regards Gudjon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Hello Vipin
Now I have spent the whole day on trying to mount the device from Linux as a read/write partition but without luck.
Ideally, it should have happened now
Setting FORCE_WORD_WRITE to 1 in the cfi_cmdset_0001.c fixes the problem. #define FORCE_WORD_WRITE 1 but it is set to 0 by default.
Thanks again a lot for your help
Regards Gudjon
participants (2)
-
Gudjon I. Gudjonsson
-
Vipin Kumar