Using OpenOCD to dump NAND memory

Hi,

My first try with OpenOCD…

I have a board that I’m reversing - and attempting to dump the image out of the NAND flash.

Board has a SAMSUNG s3c2440 SOC CPU, and there’s a SAMSUNG k9f1g08u0d 128 MB NAND flash device.

I’m using a BusPirate through JTAG to connect. So far that’s OK. I run a

#nand probe 0

NAND flash device ‘NAND 128MiB 3.3V (Samsung)’ found

So it looks like my setup is at least talking to the NAND device.

How do i go about just dumping the entire flash memory to a file on my Linux host ?

TIA, doe