flash for lite5200
Hello.
I'm using linux-2.6.14-rc3-g4c234921 from denx, and I need to access the flash device. While in 2.4 there is drivers/mtd/maps/icecube.c (by Wolfgang Denk himself, it seems), I managed to see the flash using the physmap driver and cmdline partitions.
Does it make sense to add the correct MTD settings to arch/ppc/configs/lite5200_defconfig (and some hints in Documentation/powerpc/mpc52xx.txt) without porting the whole of maps/icecube.c or is there a specific advantage in add a file in maps? -- well, besides having sensible partitions already ported from 2.4?
In either case, I'm willing to contribute the patch.
These are the winning settings for me, but it doesn't cope with lite5200 speciments with 8MBi of flash (are there any still around?) [there's more than strictly needed, actually]
CONFIG_MTD=yCONFIG_MTD_PARTITIONS=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_CHAR=yCONFIG_MTD_CFI=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_AMDSTD_RETRY=0CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=0xff000000CONFIG_MTD_PHYSMAP_LEN=0x1000000CONFIG_MTD_PHYSMAP_BANKWIDTH=1
/alessandro
The Lite5200 has an official Port to 2.6 by Sylvain Munaut <[email protected]>
There is an Mapping MTD driver ready.
if it's not in vanilla, you found a patchset on Mailign archive or on Sylvain's HP.
Am Mon, 17 Oct 2005 18:42:53 +0200 schrieb Alessandro Rubini <[email protected]> :
Quoted 48 lines
Hello.
I'm using linux-2.6.14-rc3-g4c234921 from denx, and I need to access the flash device. While in 2.4 there is
drivers/mtd/maps/icecube.c(by Wolfgang Denk himself, it seems), I managed to see the flash using the physmap driver and cmdline partitions.Does it make sense to add the correct MTD settings to
arch/ppc/configs/lite5200_defconfig(and some hints inDocumentation/powerpc/mpc52xx.txt) without porting the whole ofmaps/icecube.cor is there a specific advantage in add a file in maps? -- well, besides having sensible partitions already ported from 2.4?In either case, I'm willing to contribute the patch.
These are the winning settings for me, but it doesn't cope with lite5200 speciments with 8MBi of flash (are there any still around?) [there's more than strictly needed, actually]
CONFIG_MTD=yCONFIG_MTD_PARTITIONS=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_CHAR=yCONFIG_MTD_CFI=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_AMDSTD_RETRY=0CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=0xff000000CONFIG_MTD_PHYSMAP_LEN=0x1000000CONFIG_MTD_PHYSMAP_BANKWIDTH=1/alessandro
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded