NAND flah programming for S3C2410 and SMDK2410 board

Thanks to everybody for this great work ! Let’s hope it does not fall in the hands of the evil empire :slight_smile:

I am currently juggling with the SMDK2410 board and at the moment I am using dnw.exe to program the SmartMedia (NAND Flash).

As far as I see in the source (src/flash/s3c2410_nand.c) there should be some way to write/read that flash from OpenOCD but, please forgive me, I could not find out how in the few hours I had available to look at the whole OpenOCD-Gdb-Eclipse integration, under Linux Ubuntu 7.1

The question: what is the correct syntax to define the NAND flash ?

(is it by chance this one ?)

flash bank cfi 0x0 0x40000 0 0 0 lpc2000_v1 14745 calc_checksum

Thanks !

Damiano

sorry the above command should be really wrong, so it is surely not that one…

The following line should work:

nand device s3c2410 0

The ‘0’ selects the first defined target. If you have multiple targets in your .cfg you would have to adjust this value, but for single-target setups ‘0’ is correct.

Regards,

Dominic