LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NAND partition (https://www.linuxquestions.org/questions/linux-newbie-8/nand-partition-4175664994/)

jkeertir 11-27-2019 04:39 AM

NAND partition
 
Hi,

I configured linux kernel to create partition on nand flash.
CONFIG_MTD=y
CONFIG_MTD_TESTS=m
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_AFS_PARTS=y
CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_AR7_PARTS=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_M25P80=y
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_BCH=y
CONFIG_MTD_NAND_ECC_BCH=y
CONFIG_MTD_NAND_DENALI=y
CONFIG_MTD_NAND_DENALI_DT=y
CONFIG_MTD_NAND_OMAP2=y
CONFIG_MTD_NAND_IDS=y
CONFIG_MTD_NAND_CAFE=y
CONFIG_MTD_NAND_BRCMNAND=y
CONFIG_MTD_NAND_PLATFORM=y
CONFIG_MTD_NAND_HISI504=y
CONFIG_MTD_NAND_MTK=y
CONFIG_MTD_SPI_NOR=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
CONFIG_OMAP_GPMC=y

but cannot see the following partitions


[ 1.525197] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.532213] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.539446] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.546619] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.553698] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.561118] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.568302] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.575411] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.583129] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.593577] 0x000000a00000-0x000010000000 : "NAND.file-system"

bhaslinux 11-28-2019 08:35 AM

I think there is a confusion here between partition map and partition table.
https://bootlin.com/blog/managing-fl...ge-with-linux/


All times are GMT -5. The time now is 05:27 PM.