re-formatting a Disk-on-Chip without going to DOS
Christopher E Piggott
cepasp at rit.edu
Tue Feb 6 15:49:20 EST 2007
I did something with a bit too much haste, and I erased my DOC2000-D08
chip.
Before I did this, I attempted to save something that I could use later
as an backup:
dd if=/dev/mtd0 of=backup.img bs=8k
The file I got makes sense, at least in that it has the ANAND in it at
offsets 0xC000 and 0xE000... which makes me think I saved my bad block
map.
My trick now is how to put it back. Linux sees the chip, but not as a
DoC:
Using configured DiskOnChip probe address 0xd0000
DiskOnChip found at 0xd0000
NAND device: Manufacturer ID: 0x98, Chip ID: 0xe6 (Toshiba NAND 8MiB
3,3V 8-bit)
ECC error scanning DOC at 0xc000
ECC error scanning DOC at 0xe000
DiskOnChip ANAND Media Header not found.
This means that there is no /dev/mtd0 to put it back.
Is it even possible to do this without going back to DOS? That is a
problem for me as the systems I have with DoC sockets don't have the
ability to boot off of a FreeDOS floppy or CD-ROM. It MAY be possible
to do something using an external hard drive, putting freedos on that,
and going on from there ... but life would be much simpler for me if
there were a way to do this entirely from linux, considering that I
saved the image before I started.
Any ideas or tricks?
--Chris
More information about the linux-mtd
mailing list