I checked my .config file again, I sure that I have configed it . But... flash_eraseall can't work all the same. ============ # # Memory Technology Devices (MTD) # CONFIG_MTD=y CONFIG_MTD_DEBUG=y CONFIG_MTD_DEBUG_VERBOSE=3 CONFIG_MTD_PARTITIONS=y # CONFIG_MTD_CONCAT is not set # CONFIG_MTD_REDBOOT_PARTS is not set CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y # CONFIG_FTL is not set # CONFIG_NFTL is not set
# # RAM/ROM/Flash chip drivers # CONFIG_MTD_CFI=y # CONFIG_MTD_JEDECPROBE is not set CONFIG_MTD_GEN_PROBE=y CONFIG_MTD_CFI_ADV_OPTIONS=y CONFIG_MTD_CFI_NOSWAP=y # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set CONFIG_MTD_CFI_GEOMETRY=y CONFIG_MTD_CFI_B1=y # CONFIG_MTD_CFI_B2 is not set # CONFIG_MTD_CFI_B4 is not set CONFIG_MTD_CFI_I1=y # CONFIG_MTD_CFI_I2 is not set # CONFIG_MTD_CFI_I4 is not set # CONFIG_MTD_CFI_INTELEXT is not set CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_RAM=y # CONFIG_MTD_ROM is not set # CONFIG_MTD_ABSENT is not set # CONFIG_MTD_OBSOLETE_CHIPS is not set # CONFIG_MTD_AMDSTD is not set # CONFIG_MTD_SHARP is not set # CONFIG_MTD_JEDEC is not set # # Mapping drivers for chip access # # CONFIG_MTD_PHYSMAP is not set # CONFIG_MTD_DRAGONIX is not set # CONFIG_MTD_NETtel is not set CONFIG_MTD_NETteluC=y # CONFIG_FLASHAUTO is not set # CONFIG_FLASH128KB is not set # CONFIG_FLASH1MB is not set # CONFIG_FLASH2MB is not set CONFIG_FLASH4MB=y # CONFIG_FLASH6MB is not set # CONFIG_FLASH8MB is not set # CONFIG_FLASH16MB is not set # CONFIG_MTD_KeyTechnology is not set # CONFIG_MTD_PB1000 is not set # CONFIG_MTD_PB1500 is not set # CONFIG_MTD_CSTM_MIPS_IXX is not set # CONFIG_MTD_OCELOT is not set # CONFIG_MTD_PCI is not set # # Self-contained MTD device drivers # # CONFIG_MTD_PMC551 is not set # CONFIG_MTD_SLRAM is not set # CONFIG_MTD_MTDRAM is not set # CONFIG_MTD_BLKMTD is not set # CONFIG_MTD_DOC1000 is not set # CONFIG_MTD_DOC2000 is not set # CONFIG_MTD_DOC2001 is not set # CONFIG_MTD_DOCPROBE is not set ============ 2007/3/23, Aubrey Li <[EMAIL PROTECTED]>:
On 3/23/07, Yue Han <[EMAIL PROTECTED]> wrote: > Chime in easily! > > I have made my flash_eraseall use mtd-snapshot-20050217 and mips-linux-gcc > cross compiler, but I got this error message as below: > ========= > # ./flash_eraseall /dev/mtd2 > MTD_open > MTD_ioctl > MTD_ioctl > Invalid ioctl 80084d0b (MEMGETINFO = 40204d01) > > > ./flash_eraseall /dev/mtd2: MTD get bad block failed: Inappropriate ioctl > for device > ========= > I don't know how to fix it. > You missed something in the kernel configuration. Did you enable the following option? [Memory Technology Devices (MTD)] --> Direct char device access to MTD devices? -Aubrey _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
