OpenOCD and sheevaplug config bootloader write problem

Hello,

I want to upgrade the NAND on my board from 512MB to 2GB. But I am having problems writing the bootloader to the 2GB NAND. The sheevaplug_reflash_uboot doesn’t work on it, I am getting errors on the “nand erase 0 0x0 0xa0000” part. I tried to manually write the bootloader by connecting to it via telnet and using the following commands:

sheevaplug_init

nand probe 0

nand erase 0

nand write 0 u-boot.kwb 0

it says that the bootloader was successfully written to the NAND but my board doesn’t boot up.

I also used the “nand write 0 u-boot.kwb 0 oob_softecc_kw” command to write but I am getting an error that says “Unable to write OOB data to NAND device”

Can anybody help?