On 01/11/2013 02:41 AM, Waibel Georg wrote:
Hello,
i'm not sure if this is the right place for this question...however, here it is:
i'm using a BDI3000 to program uboot to the flash (Spansion S29GL512P) on a
MPC5200B base board. Erasing / Programming works fine as long as the flash
sectors are not protected (via PPB bit). On a protected sector the erase
command fails (what makes sense). I thought I can use the unlock command to
unprotect the sectors, but this command seems not to work:
unlock 0xfff00000 1000
Hi Georg, do you get the same error if you create an
ERASE list and have UNLOCK added as the mode for those
sectors that need to be unlocked ? Issue then ERASE or
UNLOCK without any parameter in the telnet session and
see if that makes any difference. Also, make sure that
address 0xfff00000 is the correct sector address.
Failing that, please try using the CFI interface of
your flash. Check in your flash memory data sheet for
all the CFI commands. Try to unlock a sector and then
read back the status register to see what the reported
error is. Use MD and MM commands to issue the CFI
commands to your flash.
Hope this helps
-- sinan
Unlocking flash at 0xfff00000
# Invalid parameter for flash programming
Any ideas what I'm doing wrong?
Flash configuration:
[FLASH]
CHIPTYPE MIRRORX16
CHIPSIZE 0x04000000
BUSWIDTH 16
WORKSPACE 0x00000000
Regards
Georg Waibel
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot