Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment
- 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>
This commit is contained in:
parent
bf904ea418
commit
a331017c23
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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} " \
|
||||
|
@ -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; " \
|
||||
|
@ -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" \
|
||||
|
@ -146,8 +146,6 @@
|
||||
#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} " \
|
||||
|
@ -65,14 +65,6 @@
|
||||
"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" \
|
||||
@ -104,7 +96,6 @@
|
||||
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 \
|
||||
|
@ -110,9 +110,6 @@
|
||||
"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" \
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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} " \
|
||||
|
@ -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 " \
|
||||
|
@ -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} " \
|
||||
|
@ -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} " \
|
||||
|
@ -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" \
|
||||
|
@ -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} " \
|
||||
|
@ -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 ""
|
||||
|
@ -102,7 +102,6 @@
|
||||
|
||||
#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 \
|
||||
|
@ -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"
|
||||
|
@ -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" \
|
||||
|
@ -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 ...; " \
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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" \
|
||||
\
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -244,8 +244,6 @@
|
||||
"${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 */
|
||||
|
@ -132,8 +132,6 @@
|
||||
" +${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
|
||||
|
@ -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} " \
|
||||
|
@ -151,14 +151,6 @@
|
||||
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
|
||||
@ -189,7 +181,6 @@
|
||||
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
|
||||
|
||||
|
@ -128,14 +128,6 @@
|
||||
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 \
|
||||
@ -146,7 +138,6 @@
|
||||
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 */
|
||||
|
@ -171,8 +171,6 @@
|
||||
"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 */
|
||||
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -167,7 +167,6 @@
|
||||
"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" \
|
||||
|
@ -112,8 +112,6 @@
|
||||
"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" \
|
||||
|
@ -109,7 +109,6 @@
|
||||
"fi;" \
|
||||
"fi;" \
|
||||
"fi\0" \
|
||||
"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
|
||||
"bootdev=1\0" \
|
||||
"bootpart=1\0" \
|
||||
"netdev=eth0\0" \
|
||||
|
@ -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" \
|
||||
|
@ -37,11 +37,6 @@
|
||||
|
||||
#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"
|
||||
|
||||
/*
|
||||
|
@ -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" \
|
||||
|
@ -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"
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -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} " \
|
||||
|
@ -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} " \
|
||||
|
@ -161,8 +161,6 @@
|
||||
#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 " \
|
||||
|
@ -184,8 +184,6 @@
|
||||
#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 " \
|
||||
|
@ -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"
|
||||
|
@ -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; " \
|
||||
|
@ -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" \
|
||||
|
@ -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,
|
||||
|
@ -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" \
|
||||
|
@ -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 &&" \
|
||||
|
@ -317,20 +317,6 @@
|
||||
"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};" \
|
||||
@ -362,8 +348,6 @@
|
||||
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" \
|
||||
|
@ -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 */
|
||||
|
@ -184,9 +184,7 @@
|
||||
"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>
|
||||
|
@ -55,6 +55,5 @@
|
||||
|
||||
/* bootstrap + u-boot + env + linux in dataflash on CS0 */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
|
||||
|
||||
#endif
|
||||
|
@ -32,18 +32,9 @@
|
||||
#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" \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user