Error setting up UBI system

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Error setting up UBI system

Hi, I am trying to write a filesystem to the nand on my gumstix overo and getting some errors (see below). Is my nand bad? Can I work around it?



              ubiformat -y /dev/mtd4 -f rootfs.ubi


ubiformat: mtd4 (nand), size 530055168 bytes (505.5 MiB), 4044 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 4043 -- 100 % complete
ubiformat: 4038 eraseblocks have valid erase counter, mean value is 5
ubiformat: 1 eraseblocks are supposedly empty
ubiformat: 5 bad eraseblocks found, numbers: 2647, 2649, 2650, 2651, 4022
ubiformat: flashing eraseblock 427 -- 100 % complete
ubiformat: formatting eraseblock 2645 -- 61 % complete  libmtd: error!: cannot write 512 bytes to mtd4 (eraseblock 2645, offset 0)
        cannot write 512cannot write 512

ubiformat: error!: cannot write EC header (512 bytes buffer) to eraseblock 2645
           error 5 (Input/output error)
libmtd: run torture test for PEB 2645
libmtd: error!: erased PEB 2645, but a non-0xFF byte found
ubiformat: marking block 2645 bad
libmtd: error!: MEMSETBADBLOCK ioctl failed for eraseblock 2645 (mtd4)
        error 5 (Input/output error)