Will have to look at rewriting it with JTAG, if you could let me know your setup and procedure for doing that it would be great.
If you want to restore the whole Nand via JTAG, H-JTAG/H-Flasher is the way to go. It will work with a low cost LPT Wrigler type JTAG interface. In the last version, V3.0, there is already a template for S3C2416+K9F1G08 Nand Flash ready to use.
http://www.hjtag.com/en/xz.aspEither you concatenate you 4 nanddump files in one (Boot+logo+kernel+rootfs) and restore the whole flash, either you flash it in 4 times. Usually you don't need to flash the bootloader (safer because you will always have access to u-boot in case of flash problem), nor the logo (empty).
The Nand flash in the HDG is a 128Mb one. It is divided in 1024 blocks of 64 pages, each page containing 2048 bytes.
If you want to flash a specific part of the Nand, you will have to tell H-Flasher which block and page number to start with. Here are the values in Hex and the corresponding values in Block/page:
Beginning End Beginning End
Bootloader 0 100000 0/0 7/63
Logo 100000 300000 8/0 23/63
Kernel 300000 700000 24/0 55/63
Rootfs 700000 8000000 56/0 1023/63
You also have the choice to flash only data or data with spare blocks (spare/oob), which you will choose.
It takes 3 1/2 hours with the LPT interface to flash the whole nand with oob (132Mb). Quite long but it works ...
Usually you just need to flash the bootloader via Jtag (if you can't see u-boot when starting) and then you can use u-boot to flash the nand via SD, USB or tftp (if lan is available). With my dev board, I have a tool to prepare a SD so that it can update the nand via u-boot but I had to mod a bootloader for that because of file size problem (limited to 64Mb). I did not test that with the HDG yet...(on my todo list
)
If you need more details on how to, just ask me.