Re: mtd devices & jffs

David Woodhouse
2000-07-11T07:30:27Z

kayemmess@yahoo.ca said:
> Dirty flash memory or bad inode: hexdump(pos = 0x1098176, len = 128):

Looks like there were data on the flash chips before you started. Erase
them first. There's no utility to erase whole devices, but the 'erase'
program in the util/ directory will erase a single erase block at a time.

for a in `seq 0 131072 16777216` ; do mtd/util/erase /dev/mtd0 $a ; done

...or put a loop into the erase program. The MTDGETINFO ioctl should return
the size of the device.

--
dwmw2