]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment
authorTom Rini <trini@konsulko.com>
Tue, 14 Jun 2022 02:57:36 +0000 (22:57 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:11:49 +0000 (17:11 -0400)
- Ensure that everyone setting mtdids= and mtdparts= is doing so via the
  CONFIG options.
- If the CONFIG options are set, ensure that the default environment
  sets mtdparts / mtdids.

Signed-off-by: Tom Rini <trini@konsulko.com>
67 files changed:
configs/aristainetos2c_defconfig
configs/aristainetos2ccslb_defconfig
configs/dockstar_defconfig
configs/ib62x0_defconfig
configs/iconnect_defconfig
configs/nas220_defconfig
configs/nsa310s_defconfig
configs/pogo_e02_defconfig
include/configs/am335x_evm.h
include/configs/am335x_igep003x.h
include/configs/am3517_evm.h
include/configs/am43xx_evm.h
include/configs/am65x_evm.h
include/configs/aristainetos2.h
include/configs/at91sam9n12ek.h
include/configs/baltos.h
include/configs/bk4r1.h
include/configs/brppt1.h
include/configs/chiliboard.h
include/configs/cm_fx6.h
include/configs/cm_t335.h
include/configs/colibri-imx6ull.h
include/configs/colibri_imx7.h
include/configs/colibri_t20.h
include/configs/colibri_vf.h
include/configs/dns325.h
include/configs/dockstar.h
include/configs/goflexhome.h
include/configs/guruplug.h
include/configs/gw_ventana.h
include/configs/ib62x0.h
include/configs/iconnect.h
include/configs/ids8313.h
include/configs/imx27lite-common.h
include/configs/imx8mn_bsh_smm_s2.h
include/configs/j721e_evm.h
include/configs/j721s2_evm.h
include/configs/km/keymile-common.h
include/configs/ls1028aqds.h
include/configs/ls1028ardb.h
include/configs/ls1043a_common.h
include/configs/m53menlo.h
include/configs/mccmon6.h
include/configs/mys_6ulx.h
include/configs/nas220.h
include/configs/npi_imx6ull.h
include/configs/nsa310s.h
include/configs/omap3_evm.h
include/configs/omap3_logic.h
include/configs/pcl063.h
include/configs/pcm052.h
include/configs/pcm058.h
include/configs/phycore_am335x_r2.h
include/configs/pm9261.h
include/configs/pm9263.h
include/configs/pogo_e02.h
include/configs/pogo_v4.h
include/configs/s5pc210_universal.h
include/configs/smartweb.h
include/configs/smdkc100.h
include/configs/socfpga_arria5_secu1.h
include/configs/sunxi-common.h
include/configs/ti816x_evm.h
include/configs/ti_armv7_keystone2.h
include/configs/usb_a9263.h
include/configs/vcoreiii.h
include/env_default.h

index 7a3e690ed6611f387a2ba957cba9014380bdcda0..26bcb00ff5373511de9c2aad34eaa060b089b473 100644 (file)
@@ -51,6 +51,8 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=spi0.0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:832k(u-boot),64k(env),64k(env-red),-(ubi-nor)"
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_DTB_RESELECT=y
index 6bc78b773295178cd5d46f6e60eb6a24e0adfbaf..682903082cba74a0c328a305f984a5c6abdf1bd9 100644 (file)
@@ -51,6 +51,8 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=spi0.0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:832k(u-boot),64k(env),64k(env-red),-(ubi-nor)"
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_DTB_RESELECT=y
index 3cb09ea4f7f07cdd0acdd9676c0fa4f9106e4e73..6f99cdd44b05f5f31207aa9f2e8d864ddc8a889d 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),-(root)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
index 4771e720c9b75445a1ff43a09dd8635d3b8413ba..6ed3d68cd9c6bc8a5f61ddd486d4278701930e28 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),-@0x100000(root)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
index 644d0abd3aaa258428360c3512695a5c895f6bcc..7adf76d77799ddaface46d0ed6de677f815d2e2a 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0x80000@0x0(uboot),0x20000@0x80000(uboot_env),-@0xa0000(rootfs)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
index 99f36b72bf97cb98e44bf48eaacb71fd07b8b138..cc971f9b19a034c3a13b5aded601dd2191ce7ffa 100644 (file)
@@ -38,6 +38,8 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xa0000@0x0(uboot),0x010000@0xa0000(env),0x500000@0xc0000(uimage),0x1a40000@0x5c0000(rootfs)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
index 0c1d808f127f1eec22de7b154d820d080e2374b5..2b39ae74b3150c12c68d2e106079032671998f47 100644 (file)
@@ -39,6 +39,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
index b7f9c12efcd61d9d4816b88c40b3164e93cabdb8..e1a2517eb6377c86d440933db1960fa0dc23af6a 100644 (file)
@@ -35,6 +35,8 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)"
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
index 13d11084cd4e9941b1a5f73273ff513151085419..754bcc3304b99037e3c033846afe5c36f757ce55 100644 (file)
@@ -27,8 +27,6 @@
 
 #ifdef CONFIG_MTD_RAW_NAND
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} " \
                "${optargs} " \
                "root=${nandroot} " \
index 8d36ddeba596bc351638f40e1a725dd745fa6887..3952783ee1a796d9170ed31646e0a2fcb03e2d30 100644 (file)
@@ -54,8 +54,6 @@
                                "bootz ${loadaddr} - ${fdtaddr};" \
                        "fi;" \
                "fi;\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandroot=ubi0:rootfs rw ubi.mtd=1\0" \
        "nandrootfstype=ubifs rootwait\0" \
        "nandload=ubi part UBI; " \
index b896f962f080e78cc689f932d236849bb38e6e6e..e6c9039d16643c07e1c5769190c32a72284c2809 100644 (file)
@@ -49,8 +49,6 @@
        "bootenv=uEnv.txt\0" \
        "cmdline=\0" \
        "optargs=\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "mmcdev=0\0" \
        "mmcpart=1\0" \
        "mmcroot=/dev/mmcblk0p2 rw\0" \
index e3a01adae971823acd5a8f620873e2bdfeb7bd78..87d3a27099bd326241cba8b814cff4c1c85ffcb9 100644 (file)
 #define CONFIG_SYS_NAND_ECCSIZE                512
 #define CONFIG_SYS_NAND_ECCBYTES       26
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} " \
                "${optargs} " \
                "root=${nandroot} " \
index 65b0a576a6f4f4190f2ddb3e7077c6065d1e5bb3..d8f18d0b9ac9eb37242e8686cb946e17fe7d6dc8 100644 (file)
                "0 /lib/firmware/am65x-mcu-r5f0_0-fw "                  \
                "1 /lib/firmware/am65x-mcu-r5f0_1-fw "
 
-#ifdef CONFIG_TARGET_AM654_A53_EVM
-#define EXTRA_ENV_AM65X_BOARD_SETTINGS_MTD                             \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
-#else
-#define EXTRA_ENV_AM65X_BOARD_SETTINGS_MTD
-#endif
-
 #define EXTRA_ENV_AM65X_BOARD_SETTINGS_UBI                             \
        "init_ubi=run args_all args_ubi; sf probe; "                    \
                "ubi part ospi.rootfs; ubifsmount ubi:rootfs;\0"        \
        DEFAULT_FIT_TI_ARGS                                             \
        EXTRA_ENV_AM65X_BOARD_SETTINGS                                  \
        EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC                              \
-       EXTRA_ENV_AM65X_BOARD_SETTINGS_MTD                              \
        EXTRA_ENV_AM65X_BOARD_SETTINGS_UBI                              \
        EXTRA_ENV_RPROC_SETTINGS                                        \
        EXTRA_ENV_DFUARGS                                               \
index 0c44f7483bdb0718645fbc6fc0cb9f45ce6ebf3a..8997c6a0ea9001303c3581ce3a761168858aeb32 100644 (file)
        "splashpos=m,m\0" \
        "console=" CONSOLE_DEV "\0" \
        "emmcroot=/dev/mmcblk1p1 rootwait rw\0" \
-       "mtdids=nor0=spi0.0\0" \
-       "mtdparts=mtdparts=spi0.0:832k(u-boot),64k(env),64k(env-red)," \
-               "-(ubi-nor)\0" \
        "mk_fitfile_path=setenv fit_file /${sysnum}/system.itb\0" \
        "mk_rescue_fitfile_path=setenv rescue_fit_file /${rescue_sysnum}/system.itb\0" \
        "mk_uboot_path=setenv uboot /${sysnum}/u-boot.imx\0" \
index abcddc3cc9d75124f9edb83e85b22e7469a6f2f4..29affe7b5cd6b7f6b5f8debf60d7d15f0f15b90e 100644 (file)
@@ -36,7 +36,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
        "console=console=ttyS0,115200\0"                                \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0"                                  \
        "bootargs_nand=rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw\0"\
        "bootargs_mmc=root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait\0"
 
index 1abda0836ab6dbd2bd31e62fcf50129766867c49..25906e404b1cc096fd23bdd6a4cd430d71ab94a4 100644 (file)
@@ -29,8 +29,6 @@
 #ifdef CONFIG_MTD_RAW_NAND
 
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} " \
                "${optargs} " \
                "${mtdparts} " \
index 5311dc4eff9c7387ad41927d6fe6edf05cbb3070..925a68787c91f0322cfee3d21bba5a914952e247 100644 (file)
@@ -80,7 +80,6 @@
        "nfs_root=/path/to/nfs/root\0" \
        "tftptimeout=1000\0" \
        "tftptimeoutcountmax=1000000\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "ipaddr=192.168.0.60\0" \
        "serverip=192.168.0.1\0" \
        "bootargs_base=setenv bootargs rw " \
index d7755b8cafa2941a54696f2172df2f426bc0e87d..c046fcb2bec0e93056326e7987c6f787529cb82f 100644 (file)
@@ -39,8 +39,6 @@
 
 #ifdef CONFIG_MTD_RAW_NAND
 #define NANDTGTS \
-"mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
 "cfgscr=mw ${dtbaddr} 0; nand read ${cfgaddr} cfgscr && source ${cfgaddr};" \
 " fdt addr ${dtbaddr} || cp ${fdtcontroladdr} ${dtbaddr} 4000\0" \
 "nandargs=setenv bootargs console=${console} ${optargs} ${optargs_rot} " \
index 8bad0f9ac4b6bd5e424a4c3b236a50f09eb94caa..97adb835359194c23f74d88fc91ea2b7451c27e2 100644 (file)
@@ -13,8 +13,6 @@
 #define V_SCLK                         (V_OSCK)
 
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} ${optargs} " \
                "${mtdparts} " \
                "root=${nandroot} " \
index 3bb00a359f88f57cda38a886ce1b1287cfcf4cea..cbba7264400264914f43a5239aa261058d865351 100644 (file)
@@ -53,8 +53,6 @@
        "video_dvi=mxcfb0:dev=dvi,1280x800M-32@50,if=RGB32\0" \
        "doboot=bootm ${kernel_addr_r}\0" \
        "doloadfdt=false\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "setboottypez=setenv kernel ${zImage};" \
                "setenv doboot bootz ${kernel_addr_r} - ${fdt_addr_r};" \
                "setenv doloadfdt true;\0" \
index b81c3af29f625552b7cc49c815c6aeb8627266a1..4baf7f7e24aed09884d06645e865d64ac9975f80 100644 (file)
@@ -31,8 +31,6 @@
                "bootm ${loadaddr}\0"
 
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandroot=ubi0:rootfs rw\0" \
        "nandrootfstype=ubifs\0" \
        "nandargs=setenv bootargs console=${console} " \
index bf020612837fb8d4d257e734741af7a444042437..528c7c98d235d9145baf5a09bf0ea98504540520 100644 (file)
@@ -65,7 +65,6 @@
 #define DFU_ALT_NAND_INFO "imx6ull-bcb part 0,1;u-boot1 part 0,2;u-boot2 part 0,3;u-boot-env part 0,4;ubi partubi 0,5"
 #define MODULE_EXTRA_ENV_SETTINGS \
        "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        UBI_BOOTCMD
 #else
 #define        MODULE_EXTRA_ENV_SETTINGS ""
index c8884e61b7154708dae90167332813394ec40f43..8a6536eec8916d1274a15545795abb742d33b308 100644 (file)
 
 #if defined(CONFIG_TARGET_COLIBRI_IMX7_NAND)
 #define MODULE_EXTRA_ENV_SETTINGS \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        UBI_BOOTCMD
 #elif defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC)
 #define MODULE_EXTRA_ENV_SETTINGS \
index 1e6561dc281bd29429b27e4b102e1ad1800546a5..73d18444215a2c969690012094cfbfc63e826a55 100644 (file)
@@ -25,7 +25,6 @@
 /* Environment in NAND, 64K is a bit excessive but erase block is 512K anyway */
 #define BOARD_EXTRA_ENV_SETTINGS \
        "boot_script_dhcp=boot.scr\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        UBOOT_UPDATE
 
 #include "tegra-common-post.h"
index 7d2b7dece029fa71c5d27bebda8f8cb420dd52b2..268afbb7fa389cfa2c36cdffc8c388087dda7dfa 100644 (file)
@@ -68,7 +68,6 @@
        "fdt_board=eval-v3\0" \
        "fdt_fixup=;\0" \
        "kernel_image=zImage\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "setsdupdate=mmc rescan && set interface mmc && " \
                "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
                "source ${loadaddr}\0" \
index af2d3b6bcc3af145fc14793d03b0c95671260916..015bc78648f375ab005c505128785eaf65c22ffe 100644 (file)
@@ -41,7 +41,6 @@
        "stderr=serial\0" \
        "loadaddr=0x800000\0" \
        "console=ttyS0,115200\0" \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT \
        "optargs=\0" \
        "bootenv=uEnv.txt\0" \
        "importbootenv=echo Importing environment ...; " \
index 381a189149ea169eed744d92453984293a0cb373..33ae7d654b0bead1d966d25beebbebac1049dd5c 100644 (file)
@@ -24,8 +24,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0" \
-       "mtdids=nand0=orion_nand\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT \
        "kernel=/boot/uImage\0" \
        "initrd=/boot/uInitrd\0" \
        "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
index d335a42e99c108163206b2081869793385bedacc..66eed9e14f819601f7eb43f686daaf884087251a 100644 (file)
@@ -33,8 +33,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0" \
-       "mtdids=nand0=orion_nand\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT \
        "kernel=/boot/uImage\0" \
        "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
 
index d5655e4ada69cbccf4d5f6ba5274cc3a9ed5185d..4954c5ca0800902297b1dd891d06892b026aced9 100644 (file)
@@ -26,7 +26,6 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0"                                \
        "mtdids=nand0=orion_nand\0"                                     \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT                      \
        "kernel=/boot/zImage\0"                                         \
        "fdt=/boot/guruplug-server-plus.dtb\0"                          \
        "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0"
index 251e360daa9c22094184e739275a11368c709486..77f41502220a21124203ad7c71d7ab29d5429e85 100644 (file)
@@ -85,8 +85,6 @@
        "hwconfig=_UNKNOWN_\0" \
        "video=\0" \
        \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
        "disk=0\0" \
        "part=1\0" \
        \
index aff948cfe70819be8fe97d132dab43740cbfa18e..05192218d2253977cd080af415570281bcd00791 100644 (file)
@@ -20,8 +20,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0"                                \
-       "mtdids=nand0=orion_nand\0"                                     \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT                      \
        "kernel=/boot/zImage\0"                                         \
        "fdt=/boot/ib62x0.dtb\0"                                        \
        "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0"
index cb4cf9beb7409b2d9fc4108f1ccbf8692c1bb815..f2e3608d3a3fe6ab2daabe8b3788509791f87cf9 100644 (file)
@@ -13,8 +13,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0"        \
-       "mtdids=nand0=orion_nand\0"             \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT     \
        "kernel=/boot/uImage\0"                 \
        "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
 
index aa6a471cc2547da6b928ad5832ca5a5028ccb5d8..e0994d12baf43464e5a99996341b04dbc007023b 100644 (file)
                        "${netmask}:${hostname}:${netdev}:off "         \
                        "console=${console},${baudrate} ${othbootargs}\0" \
        "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"              \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                                    \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                                \
        "\0"
 
 /* UBI Support */
index 40c0f1fe36bded6358ac1593e37daeae95acb65a..17430f15d139292532ddbc2b1e20d9ee0ace38cd 100644 (file)
                " +${filesize};cp.b ${fileaddr} "                       \
                __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0"   \
        "upd=run load update\0"                                         \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                                    \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                                \
 
 /* additions for new relocation code, must be added to all boards */
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
index f7529783692eac1aaf5d6b1a3f5a66ef09b9de1a..84c19824bdca7d9c9f65d4fd44146bab3d73cfa5 100644 (file)
@@ -14,8 +14,6 @@
 #include <config_distro_bootcmd.h>
 
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} " \
                "${optargs} " \
                "root=${nandroot} " \
index c0b52558d81c8d9d969856fbb4a3e6aa7a971d2f..ecf876478100c2e62c97d2a61eac6ce0adf010fd 100644 (file)
        DFU_ALT_INFO_RAM \
        DFU_ALT_INFO_OSPI
 
-#if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
-#define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD                             \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
-#else
-#define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD
-#endif
-
 #if CONFIG_IS_ENABLED(CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
        EXTRA_ENV_RPROC_SETTINGS                                        \
        EXTRA_ENV_DFUARGS                                               \
        DEFAULT_UFS_TI_ARGS                                             \
-       EXTRA_ENV_J721E_BOARD_SETTINGS_MTD                              \
        EXTRA_ENV_CONFIG_MAIN_CPSW0_QSGMII_PHY                          \
        BOOTENV
 
index 8e3ea670d0896336e01760f6c21c6b2d2441fddf..4c3a155a950abc7110493599dfa359663a348723 100644 (file)
        DFU_ALT_INFO_RAM \
        DFU_ALT_INFO_OSPI
 
-#if defined(CONFIG_TARGET_J721S2_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
-#define EXTRA_ENV_J721S2_BOARD_SETTINGS_MTD                            \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
-#else
-#define EXTRA_ENV_J721S2_BOARD_SETTINGS_MTD
-#endif
-
 /* Incorporate settings into the U-Boot environment */
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        DEFAULT_LINUX_BOOT_ENV                                          \
        EXTRA_ENV_RPROC_SETTINGS                                        \
        EXTRA_ENV_DFUARGS                                               \
        DEFAULT_UFS_TI_ARGS                                             \
-       EXTRA_ENV_J721S2_BOARD_SETTINGS_MTD                             \
        EXTRA_ENV_CONFIG_MAIN_CPSW0_QSGMII_PHY
 
 /* Now for the remaining common defines */
index 4bca1a783020335db23adfde665832045065204b..1bfc89bf44ca9f4b8c61c39e67901e04bf3ef6a7 100644 (file)
        "init=/sbin/init-overlay.sh\0"                                  \
        "load_addr_r=" __stringify(CONFIG_KM_KERNEL_ADDR) "\0"          \
        "load=tftpboot ${load_addr_r} ${u-boot}\0"                      \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                                    \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                                \
        ""
 #endif /* CONFIG_KM_DEF_ENV */
 
index 52703632a7e3fc84817fef75e8d238c271e68387..253911518669f723bd5463ce3a404c6d5811d154 100644 (file)
@@ -87,7 +87,6 @@
        "kernelhdr_addr_sd=0x3000\0" \
        "kernelhdr_size_sd=0x10\0" \
        "console=ttyS0,115200\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        BOOTENV \
        "boot_scripts=ls1028aqds_boot.scr\0" \
        "boot_script_hdr=hdr_ls1028aqds_bs.out\0" \
index 665723b151163814f87cd77853be7f9b881454ed..e7b2543b7301865dadc48706ff57b318924f6542 100644 (file)
@@ -82,7 +82,6 @@
        "kernelhdr_addr_sd=0x3000\0"            \
        "kernelhdr_size_sd=0x20\0"              \
        "console=ttyS0,115200\0"                \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"        \
        BOOTENV                                 \
        "boot_scripts=ls1028ardb_boot.scr\0"    \
        "boot_script_hdr=hdr_ls1028ardb_bs.out\0"       \
index 6e2c048fb1285a9078e2f6b0d970d687d1e2ee8d..8363969d557cf96e08ad6c8942abd9d60ca3c327 100644 (file)
        "kernelhdr_size_sd=0x10\0"              \
        "console=ttyS0,115200\0"                \
        "boot_os=y\0"                           \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"        \
        BOOTENV                                 \
        "boot_scripts=ls1043ardb_boot.scr\0"    \
        "boot_script_hdr=hdr_ls1043ardb_bs.out\0"       \
index 1533e57fa8ca7e466d6fe9a79d3324300bc97b37..b3348bc63bb9c663759229e1af297defbdea2f5b 100644 (file)
        "mmcpart=1\0"                                                   \
        "rootpath=/srv/\0"                                              \
        "kernel_addr_r=0x72000000\0"                                    \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                        \
        "netdev=eth0\0"                                                 \
        "splashsource=mmc_fs\0"                                         \
        "splashfile=boot/usplash.bmp.gz\0"                              \
index 2c862e9ddcc253f9b465514b87f0a0e2fc9523f4..02a22351874bf88e25799a9b8cfb10cabdb574c5 100644 (file)
                          "fi;" \
                     "fi;" \
                "fi\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "bootdev=1\0" \
        "bootpart=1\0" \
        "netdev=eth0\0" \
index f7dd31e5578053c5e8aa6b36d79127243836d413..b9689238195fdd824a9ad9c37bfc5c3046e30983 100644 (file)
@@ -39,8 +39,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=ttymxc0,115200n8\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "fdt_addr_r=0x82000000\0" \
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
index a8a905d4942a0f96ac11d4909f9c9292881d6e29..1b7eb3433483678fa9a1c9cdb9c58b2a38e67874 100644 (file)
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "bootargs=console=ttyS0,115200\0" \
-       "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\
-       "0x010000@0xa0000(env),"\
-       "0x500000@0xc0000(uimage),"\
-       "0x1a40000@0x5c0000(rootfs)\0" \
-       "mtdids=nand0=orion_nand\0"\
        "autostart=no\0"
 
 /*
index 96f570af1d059fba5f553518ac71ffa02059a716..6cdb1afcd9a97b924c5c8fc9befaea1e9809d4bb 100644 (file)
@@ -48,8 +48,6 @@
        "console=ttymxc0,115200n8\0" \
        "image=zImage\0" \
        "fdtfile=imx6ull-seeed-npi-dev-board.dtb\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "fdt_addr_r=0x82000000\0" \
        "kernel_addr_r=0x81000000\0" \
        "pxefile_addr_r=0x87100000\0" \
index 46fd6e6e3b5278ee7bebcc5858ca335d85cf3bb0..027a47b5a32f9373c9fe5a5d959bfc9c5d5548c4 100644 (file)
@@ -15,8 +15,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=console=ttyS0,115200\0" \
-       "mtdids=nand0=orion_nand\0" \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT \
        "kernel=/boot/zImage\0" \
        "fdt=/boot/nsa310s.dtb\0" \
        "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
index 9c4e172d037df00d68b8c8ef6b2e806c95c208f0..1b94f8efa2246ab9d1cc0c709906e7f728424bf2 100644 (file)
@@ -76,8 +76,6 @@
        DEFAULT_MMC_TI_ARGS \
        DEFAULT_FIT_TI_ARGS \
        "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "fdt_high=0xffffffff\0" \
        "console=ttyO0,115200n8\0" \
        "bootdir=/boot\0" \
index ef55a621674776f26755f864c4643b9a4cc99172..38dc7ea88f7b545a98e56ff7a027d3a3a9f6c14b 100644 (file)
@@ -35,8 +35,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        DEFAULT_LINUX_BOOT_ENV \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"    \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "mmcdev=0\0" \
        "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
        "mmcrootfstype=ext4 rootwait\0" \
index a07d3517ce294d2c524e24846bfbc7fd705187aa..6683f21d15d28f21d7996ec400b5a3360818d560 100644 (file)
@@ -51,8 +51,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=ttymxc0,115200n8\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "fdt_addr_r=0x82000000\0" \
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
index bc4a59b3875781dc8cbdea45d5c4347bd8b91042..a8cfec96595999e1bbeb2ad01baba443f8733274 100644 (file)
@@ -49,7 +49,6 @@
        "nfs_root=/path/to/nfs/root\0" \
        "tftptimeout=1000\0" \
        "tftptimeoutcountmax=1000000\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "bootargs_base=setenv bootargs rw " \
                " mem=" __stringify(CONFIG_PCM052_DDR_SIZE) "M " \
                "console=ttyLP1,115200n8\0" \
index e87b6409bab09226c2e7b9028dc5fdf32f2a636d..cff71df1c9620444f17e28d31d9f91069d3233f8 100644 (file)
@@ -37,8 +37,6 @@
        "mmcboot=run mmcloadfit;run mmcargs;bootm ${loadaddr}\0"
 
 #define ENV_NAND \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandroot=ubi0:root ubi.mtd=rootfs\0" \
        "nandrootfstype=ubifs\0" \
        "nandargs=setenv bootargs root=${nandroot} " \
index 7fa911620e11c31d33752009f606f56b622759d5..f69d8adb91cac51a3b7826f0672357a4f197522f 100644 (file)
@@ -16,8 +16,6 @@
 
 #ifdef CONFIG_MTD_RAW_NAND
 #define NANDARGS \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "nandargs=setenv bootargs console=${console} " \
                "${optargs} " \
                "root=${nandroot} " \
index 921f92bd012d79df01becd48ba78d0b2de408e58..bc15cdb44602033efb700211919dc784c0cbfebc 100644 (file)
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 
 #define CONFIG_EXTRA_ENV_SETTINGS                              \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                        \
        "partition=nand0,0\0"                                   \
        "ramargs=setenv bootargs $(bootargs) $(mtdparts)\0"     \
        "nfsargs=setenv bootargs root=/dev/nfs rw "             \
index c6b106c64cbf18af18d089888af0fe86980c833e..a0eed66b5ff1acc5287c9673c2b0539ffe38df1d 100644 (file)
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 
 #define CONFIG_EXTRA_ENV_SETTINGS                              \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"                            \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"                        \
        "partition=nand0,0\0"                                   \
        "ramargs=setenv bootargs $(bootargs) $(mtdparts)\0"     \
        "nfsargs=setenv bootargs root=/dev/nfs rw "             \
index cb221501e269bbee10dd2ebe1435118f79cbb533..085732214e50a663cfb83e0548484ad1e4228584 100644 (file)
@@ -19,9 +19,6 @@
  */
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
-       "32M(rootfs),-(data)\0"\
-       "mtdids=nand0=orion_nand\0"\
        "bootargs_console=console=ttyS0,115200\0" \
        "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
        "ext2load usb 0:1 0x01100000 /uInitrd\0"
index 24cbf6b72ea70747335a681f6b59d6dabe69127a..7fff78b7b5d68a4d8f1158c1f173596a6ddfa0d0 100644 (file)
@@ -26,8 +26,6 @@
  */
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "dtb_file=/boot/dts/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"\
-       "mtdids=nand0=orion_nand\0"\
        "bootargs_console=console=ttyS0,115200\0" \
        "bootcmd_usb=usb start; load usb 0:1 0x00800000 /boot/uImage; " \
        "load usb 0:1 0x01100000 /boot/uInitrd; " \
index 3b94b17ff78876b9452cb01856a40a763a371bfc..ab4fe6b460245e8d8a1c70cb3197fd54e99cf844 100644 (file)
@@ -75,7 +75,6 @@
        "verify=n\0" \
        "rootfstype=ext4\0" \
        "console=console=ttySAC1,115200n8\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT \
        "mbrparts=" MBRPARTS_DEFAULT \
        "meminfo=crashkernel=32M@0x50000000\0" \
        "nfsroot=/nfsroot/arm\0" \
index b86b05b3193a45aa4f59ff79d29bc248ccc18aca..215c31bca410804c8c22c9ba074f4a7780454034 100644 (file)
@@ -92,7 +92,6 @@
                                                                        \
        "basicargs=console=ttyS0,115200\0"                              \
                                                                        \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0"
 
 /*
  * Initial stack pointer: 4k - GENERATED_GBL_DATA_SIZE in internal SRAM,
index 9a9f3fedff1866cdcbf3473cb433f503df30d899..a7b0ce9f975a6724afbfeb8d84dc4823f3b1cfa5 100644 (file)
@@ -69,7 +69,6 @@
                " console=ttySAC0,115200n8 mem=128M" \
                " initrd=0x33000000,8M ramdisk=8192\0" \
        "rootfstype=cramfs\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "meminfo=mem=128M\0" \
        "nfsroot=/nfsroot/arm\0" \
        "bootblock=5\0" \
index 3a77c71874d9bf04a9078af9c81ae854b63f6599..2d654b42d56bd8ee018ff88f5475d3b2973cd2b0 100644 (file)
@@ -66,8 +66,6 @@
        "fdt_addr=" __stringify(CONFIG_KM_FDT_ADDR) "\0" \
        "load=tftpboot ${loadaddr} u-boot-with-nand-spl.sfp\0" \
        "loadaddr=" __stringify(CONFIG_KM_KERNEL_ADDR) "\0" \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
        "update=nand erase 0x0 0x00100000 && nand write ${loadaddr} 0x0 ${filesize}\0" \
        "userload=ubi part nand.ubi &&" \
                "ubi check rootfs$bootnum &&" \
index 1f77b7b2dfde969efdfbfc56f1dbfcb3c5095875..d52552c5fe76abb62bf77331a46a28045e46d6e5 100644 (file)
        "stderr=serial\0"
 #endif
 
-#ifdef CONFIG_MTDIDS_DEFAULT
-#define SUNXI_MTDIDS_DEFAULT \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"
-#else
-#define SUNXI_MTDIDS_DEFAULT
-#endif
-
-#ifdef CONFIG_MTDPARTS_DEFAULT
-#define SUNXI_MTDPARTS_DEFAULT \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
-#else
-#define SUNXI_MTDPARTS_DEFAULT
-#endif
-
 #define PARTS_DEFAULT \
        "name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};" \
        "name=loader2,size=984k,uuid=${uuid_gpt_loader2};" \
        DFU_ALT_INFO_RAM \
        "fdtfile=" FDTFILE "\0" \
        "console=ttyS0,115200\0" \
-       SUNXI_MTDIDS_DEFAULT \
-       SUNXI_MTDPARTS_DEFAULT \
        "uuid_gpt_esp=" UUID_GPT_ESP "\0" \
        "uuid_gpt_system=" UUID_GPT_SYSTEM "\0" \
        "partitions=" PARTS_DEFAULT "\0" \
index fa5d91099e1a92ebe280f2a4c172c913c91fb901..1aca83a9bcebe776d06b691ce0275ebe13278eb3 100644 (file)
@@ -13,9 +13,7 @@
 #include <asm/arch/omap.h>
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
-       DEFAULT_LINUX_BOOT_ENV \
-       "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
+       DEFAULT_LINUX_BOOT_ENV
 
 /* Clock Defines */
 #define V_OSCK          24000000    /* Clock output from T2 */
index 6952cc637199989a31a904bad02856f0c9505381..bf76afaededc9a4fb07ed3fe6b5c54d7373c5201 100644 (file)
        "args_ramfs=setenv bootargs ${bootargs} "                       \
                "rdinit=/sbin/init rw root=/dev/ram0 "                  \
                "initrd=0x808080000,80M\0"                              \
-       "no_post=1\0"                                                   \
-       "mtdparts=mtdparts=davinci_nand.0:"                             \
-               "1024k(bootloader)ro,512k(params)ro,-(ubifs)\0"
+       "no_post=1\0"
 
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>
index 32e8f6be0d1e7777a1bc0fa8100c3017c4818f99..e432b04e9f5a0cf866b381470a551c34454986b9 100644 (file)
@@ -55,6 +55,5 @@
 
 /* bootstrap + u-boot + env + linux in dataflash on CS0 */
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
 
 #endif
index 88c3061db632dea70b12ee6de689f69c5a11fbc9..43127ae649a6ab74e26fda448a5842aeb19aacc9 100644 (file)
 #error Unknown DDR size - please add!
 #endif
 
-#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT)
-#define VCOREIII_DEFAULT_MTD_ENV                   \
-       "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0"      \
-       "mtdids="CONFIG_MTDIDS_DEFAULT"\0"
-#else
-#define VCOREIII_DEFAULT_MTD_ENV    /* Go away */
-#endif
-
 #define CONFIG_SYS_BOOTM_LEN      (16 << 20)      /* Increase max gunzip size */
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
-       VCOREIII_DEFAULT_MTD_ENV                                        \
        "loadaddr=0x81000000\0"                                         \
        "spi_image_off=0x00100000\0"                                    \
        "console=ttyS0,115200\0"                                        \
index d1508b3ff44ecd65a386bcee603f49ad97829da6..4e461c815a79331cad0b1092474061b578142a4c 100644 (file)
@@ -108,6 +108,12 @@ const char default_environment[] = {
 #if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0)
        "bootlimit="    __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0"
 #endif
+#ifdef CONFIG_MTDIDS_DEFAULT
+        "mtdids="      CONFIG_MTDIDS_DEFAULT           "\0"
+#endif
+#ifdef CONFIG_MTDPARTS_DEFAULT
+       "mtdparts="     CONFIG_MTDPARTS_DEFAULT         "\0"
+#endif
 #ifdef CONFIG_EXTRA_ENV_TEXT
        /* This is created in the Makefile */
        CONFIG_EXTRA_ENV_TEXT