Need help with kernel config to set MTD partitions
Hi all
Im Trying to boot a MPC8548 board using CRAMFS ( I am able to boot a network file system). Im using the powerpc architecture and flattened device tree containing my flash partitions. the previous linux i booted using CRAMFS used mtd/map definition for my board. do i still need to define a mdt map if I'm using a flattened device tree?
How do i configure the kernal to use CFI and configure teh MTD partitions i have? do i useCONFIG_MTD_PHYSMAP or CONFIG_MTD_PHYSMAP_OF.
as far as i understand to use the mtd/maps I would use CONFIG_MTD_COMPLEX_MAPPINGS.
Are the config settings for the FTD and mtd/maps mutually exclusive?
my current config regarding CFI and MTD looks as follows"
CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=3CONFIG_MTD_CONCAT=yCONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
##CONFIG_MTD_OF_PARTS=m
# CONFIG_MTD_AR7_PARTS is not setCONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_CHAR=yCONFIG_MTD_BLKDEVS=yCONFIG_MTD_BLOCK=yCONFIG_MTD_BLOCK_RO=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not setCONFIG_MTD_OOPS=m
-
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=y
#CONFIG_MTD_JEDECPROBE=mCONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
#CONFIG_MTD_MAP_BANK_WIDTH_1=y
#CONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
#CONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not setCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_AMDSTD_RETRY=0
#CONFIG_MTD_CFI_STAA=mCONFIG_MTD_CFI_UTIL=y
#CONFIG_MTD_RAM=mCONFIG_MTD_ROM=y
##CONFIG_MTD_ABSENT=m
Mapping drivers for chip access
#
#CONFIG_MTD_COMPLEX_MAPPINGS=y
#CONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_PCI is not set
# CONFIG_MTD_INTEL_VR_NOR is not set
#CONFIG_MTD_PLATRAM=m
thanks pieter