Problem with finding flash device AM29F040B
I have a MPC866ADS out of the box board and I got linux running from ramdisk. But I could not get flash (AM29F040B) working with 2.4.21 kernel. I tried to specify phys map but I still have:
physmap flash device: 200000 at 2800000
CFI: Found no Physically mapped flash device at location zero
kmod: failed to exec /sbin/modprobe -s -k jedec_probe, errno = 2
kmod: failed to exec /sbin/modprobe -s -k map_rom, errno = 2
Could somebody please give me a clue about this.
Thank you in advance for any help.
Some details of my kernel config:
#
# Mapping drivers for chip access
#CONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=2800000CONFIG_MTD_PHYSMAP_LEN=200000CONFIG_MTD_PHYSMAP_BUSWIDTH=2
# CONFIG_MTD_TQM8XXL is not set
# CONFIG_MTD_RPXLITE is not set
# CONFIG_MTD_MBX860 is not set
# CONFIG_MTD_DBOX2 is not set
# CONFIG_MTD_CFI_FLAGADM is not set
# CONFIG_MTD_REDWOOD is not set
# CONFIG_MTD_PCI is not set
# CONFIG_MTD_PCMCIA is not set
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not setCONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
# CONFIG_MTD_CFI_INTELEXT is not set
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not setCONFIG_MTD_OBSOLETE_CHIPS=yCONFIG_MTD_AMDSTD=y
#
# Memory Technology Devices (MTD)
#CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not setCONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_CONCAT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not setCONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
Quoted 4 lines · Dmytro Bablinyuk
I have a MPC866ADS out of the box board and I got linux running from ramdisk.
But I could not get flash (AM29F040B) working with 2.4.21 kernel. I tried to specify phys map but I still have:
I haven't ever used phys map - it may work. You may need to probe the chip before it can be used by phys map.
Quoted 5 lines
physmap flash device: 200000 at 2800000
CFI: Found no Physically mapped flash device at location zero
kmod: failed to exec/sbin/modprobe-s -kjedec_probe, errno = 2
kmod: failed to exec/sbin/modprobe-s -kmap_rom, errno = 2
Aren't these obvious errors WRT the config options you list below?
Quoted 21 lines
Could somebody please give me a clue about this.
Thank you in advance for any help.Some details of my kernel config:
#
# Mapping drivers for chip access
#CONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=2800000CONFIG_MTD_PHYSMAP_LEN=200000CONFIG_MTD_PHYSMAP_BUSWIDTH=2
#CONFIG_MTD_TQM8XXLis not set
#CONFIG_MTD_RPXLITEis not set
#CONFIG_MTD_MBX860is not set
#CONFIG_MTD_DBOX2is not set
#CONFIG_MTD_CFI_FLAGADMis not set
#CONFIG_MTD_REDWOODis not set
#CONFIG_MTD_PCIis not set
#CONFIG_MTD_PCMCIAis not set
Quoted 5 lines
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=y
#CONFIG_MTD_JEDECPROBEis not set
I suggest turning this on.
Quoted 11 lines
CONFIG_MTD_GEN_PROBE=y
#CONFIG_MTD_CFI_ADV_OPTIONSis not set
#CONFIG_MTD_CFI_INTELEXTis not set
#CONFIG_MTD_CFI_AMDSTDis not set
#CONFIG_MTD_CFI_STAAis not set
#CONFIG_MTD_RAMis not set
#CONFIG_MTD_ROMis not set
#CONFIG_MTD_ABSENTis not setCONFIG_MTD_OBSOLETE_CHIPS=yCONFIG_MTD_AMDSTD=y
Quoted 5 lines
#
# Memory Technology Devices (MTD)
#CONFIG_MTD=y
#CONFIG_MTD_DEBUGis not set
CONFIG_MTD_DEBUG is also helpful - turni it on and set CONFIG_MTD_DEBUG_VERBOSE to 3. The kernel output might be useful to figure out where things are failing (this can be turned off once everything is working).
Quoted 8 lines
CONFIG_MTD_PARTITIONS=y
#CONFIG_MTD_CONCATis not set
#CONFIG_MTD_REDBOOT_PARTSis not set
#CONFIG_MTD_CMDLINE_PARTSis not setCONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=y
#CONFIG_FTLis not set
#CONFIG_NFTLis not set
Signature · 2 lines
Thayne Harbaugh Linux Networx