Assuming that 008a3020 is the correct flash config for Jasper 256MB NAND chips, proceed. If it ISN'T the same flash config you get when you do nandpro dumping and writing, don't continue. (Someone correct me if I'm wrong.)
Before compiling lflash (gcc lflash.c) make these changes
if (sfcx_readreg(0) != 0x01198010)
{
printf(" * unknown flash config %08x\n", sfcx_readreg(0));
return 1;
}
changes to
if (sfcx_readreg(0) != [b]0x008a3020[/b])
{
printf(" * unknown flash config %08x\n", sfcx_readreg(0));
return 1;
}